how can i view a digital surface model which is in tiff format?,
12 views (last 30 days)
Ben Drebing on 13 Sep 2017
The way that this file works is that the color of each pixel represents the elevation at a given point. So, the lighter the pixel the higher the elevation, etc. You can read in this image and plot the elevations by doing something like:
>> A = imread('myDSMFile.tif'); % Get elevation data
>> [X, Y] = meshgrid(1:size(A,2), 1:size(A,1)); % Create all (x,y) points to plot
>> mesh(X,Y,A); % Plot the data
The mapping toolbox has a function called "geotiffread" which acts very similarly but it also extracts different information out of the file like geographic location and scale.