How to read .tif as .mat file?

2 ビュー (過去 30 日間)
Azzadiva Sawungrana
Azzadiva Sawungrana 2016 年 10 月 10 日
編集済み: Marc Jakobi 2016 年 10 月 10 日
I tried to read my .tif file as .mat and my fixed model didn't accept it. Is there something wrong in this code?
if true
load z.mat
z=double(imread(z.tif));
% code
end

回答 (1 件)

Marc Jakobi
Marc Jakobi 2016 年 10 月 10 日
編集済み: Marc Jakobi 2016 年 10 月 10 日
Not sure what you are trying to do. Do you have a .tif file called z.tif? Then the solution would be to specify the .tif file as a string:
z = double(imread('z.tif'));

カテゴリ

Help Center および File ExchangeWorkspace Variables and MAT-Files についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by