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

    %% Read Image Referenced to Geographic Coordinate System
% 
%%
% Read image reference to a geographic coordinate system.
filename = 'boston_ovr.jpg';
RGB = imread(filename);
%%
% Derive worldfile name from image file name,
worldFileName = getworldfilename(filename);
%%
% Read world file, returning a referencing object.
R = worldfileread(worldFileName, 'geographic', size(RGB))