MATLAB has changed the protocol for 2-D Spatial Transformations.
The original protocol used cp2tform
and imtransform
.
The new protocol uses fitgeotrans
and imwarp
.
MATLAB code:
The code demonstrates a 3D projective transformation to rectify an oblique view of a planar object. (Download planar.zip)
Maintained by John Loomis, last updated 11 March 2015