How to make tif output file with Coordinate Reference System (CRS)?
2 次查看(过去 30 天)
显示 更早的评论
Hello,
I am working on tif files to produce the median matrix for them, I am using the following cod for that.
How I can make the output as .tif with keep the coordinate refrence system (CRS)?
unzip Test3.zip
% Warning: Cannot open file "" for reading.
files = dir('*.tif');
filenames = fullfile({files.folder},{files.name});
N = numel(files);
sz = zeros(N,2);
for ii = 1:N
files(ii).data = imread(filenames{ii});
sz(ii,:) = size(files(ii).data);
end
datablock = cat(3, files.data);
image_median = median(datablock, 3, 'omitnan');
[min(image_median(:)), max(image_median(:))]
image(image_median)
0 个评论
回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!