clc
clear all;
close all;
a1 = randc(100);
tifwritename = 'a1tif.tif'
t = Tiff(tifwritename,'w');
tagstruct.ImageLength = size(a1,1);
tagstruct.ImageWidth = size(a1,2);
tagstruct.Photometric = Tiff.Photometric.Mask;
tagstruct.SampleFormat = Tiff.SampleFormat.IEEEFP;
tagstruct.BitsPerSample = 64;
tagstruct.SamplesPerPixel = 1;
tagstruct.PlanarConfiguration = Tiff.PlanarConfiguration.Chunky;
tagstruct.Software = 'MATLAB';
setTag(t,tagstruct)
write(t,a1);
close(t);
评论0