Hi Everybody,
I am trying to save images but the outputs images were overturned (up down and down up). Therefor I used flipud but it isn't work.
Thank you in advance
Reyadh
if true cd C:\Calculated_NDVI_Arcgisdinfo = dir('*_B3*.tif');nfile = length(dinfo);filenames = {dinfo.name};for K = 1 : nfileb3_file{K} = filenames{K};band_pos{K} = strfind(b3_file{K}, '_B3');b4_file{K} = b3_file{K}; b4_file{K}(band_pos{K} + 2) = '4';b3_data{K} = double( imread(b3_file{K}) );b4_data{K} = double( imread(b4_file{K}) );finalndvi{K} = (b4_data{K} - b3_data{K}) ./ (b4_data{K} + b3_data{K});%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
R = georasterref('RasterSize',size(finalndvi{K}),'LatitudeLimits',[30.95115,31.76385],'LongitudeLimits',[46.58315,47.43285]);R= flipud(R);geotiffwrite(sprintf('%d.tif',K),finalndvi{K},R);end
Best Answer