imrotate2

PURPOSE ^

Custom version of imrotate that demonstrates use of apply_homography.

SYNOPSIS ^

function IR = imrotate2( I, angle, method, bbox )

DESCRIPTION ^

 Custom version of imrotate that demonstrates use of apply_homography.

 Works exactly the same as imrotate.  For usage see imrotate.

 INPUTS
   I       - 2D image [converted to double]
   angle   - angle to rotate in degrees
   method  - 'nearest',{'linear'},'spline','cubic';
   bbox    - {'loose'}, 'crop'

 OUTPUTS
   IR      - rotated image

 EXAMPLE
   load trees;
   tic; X1 = imrotate( X, 55, 'bicubic' ); toc, 
   tic; X2 = imrotate2( X, 55, 'bicubic' ); toc
   clf;  subplot(2,2,1); im(X); subplot(2,2,2); im(X1-X2);
   subplot(2,2,3); im(X1); subplot(2,2,4); im(X2);

 DATESTAMP
   2-May-2006  10:00pm

 See also IMROTATE

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Wed 03-May-2006 23:48:50 by m2html © 2003