www.gusucode.com > map 案例源码 matlab代码程序 > map/ReadImageReferencedToProjectedCoordinateSystemExample.m

    %% Read Image Referenced to Projected Coordinate System
% 
%%
% Read an ortho image referenced to a projected coordinate system
% (Massachusetts State Plane Mainland).
filename = 'concord_ortho_w.tif';
[X, cmap] = imread(filename);
%%
% Derive worldfile name from image file name.
worldFileName = getworldfilename(filename);
%%
% Read the world file, returning a referencing object.
R = worldfileread(worldFileName, 'planar', size(X))