imtranslate

PURPOSE ^

Translate an image to subpixel accuracy.

SYNOPSIS ^

function IR = imtranslate( I, dx, dy, method, bbox )

DESCRIPTION ^

 Translate an image to subpixel accuracy.

 Note that for subplixel accuracy cannot use nearest neighbor interpolation.

 INPUTS
   I       - 2D image [converted to double]
   dx      - x translation (right)
   dy      - y translation (up)
   method  - 'nearest',{'linear'},'spline','cubic';
   bbox    - {'loose'}, 'crop'

 OUTPUTS
   IR      - rotated image

 EXAMPLE
   load trees;
   XT = imtranslate(X,0,1.5,'bicubic','crop');
   figure(1); im(X,[0 255]); figure(2); im(XT,[0 255]);

 DATESTAMP
   2-May-2006  10:00pm

 See also IMROTATE2

CROSS-REFERENCE INFORMATION ^

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