Code covered by the BSD License
Felipe G. Nievinski
Felipe G. Nievinski (view profile)
03 Feb 2011
05 Nov 2012)
Changes the map projection of a raster image.
Watch this File
This essentially adds support for map projections to function imtransform from the Image Processing toolbox.
The demo demonstrates the reprojection of a geotiff, from geographic latitude and longitude to UTM coordinates.
If you just want to display an image as a figure in a different map projection, please refer to function geoshow from the Mapping Toolbox.
This was inspired by http://www.gdal.org/gdalwarp.html
Compute XYScale myself to avoid 'images:imtransform:warnForAutomaticScaleChange' warning newly introduced by MathWorks.