MATLAB: How to convert a .tif file into a .mat file

conversiondwt2mattifwavelet coefficients

I intend to get the haar wavelet coefficients of an user specified .tif image using the dwt2 command.However, dwt2 command requires that the variable depicting the image be loaded into the workspace.Now the load command can load variables only from a .mat file.Hence,I need to convert the user specified .tif file into a .mat file.Kindly help. Other solutions for the above problem will also be appreciated

Best Answer

If it is so, then you simply convert that tiff into mat file like this..
let say tif file name is "Example.tiff";
A = imread('Example.tiff');
save('myTiff2mat','A');
Where 'myTiff2mat' is file name you want to be...
Related Question