Image_Shifting.s File Reference

Functions

ComplexImage IPUImageShift (Image imgSrc, Number fShiftX, Number fShiftY, Image imgDst)
 Translate Image using FFT.

Detailed Description


Function Documentation

ComplexImage IPUImageShift ( Image  imgSrc,
Number  fShiftX,
Number  fShiftY,
Image  imgDst 
)

Translate Image using FFT.

Parameters:
imgSrc Source image
fShiftX X shift
fShiftY Y shift
imgDst Destination image (can be NULL, or imgSrc for in-place calculation)
Returns:
imgDst

This function shifts an image using the shift theorem of Fourier Transform. Thus, you can specify sub-pixel numbers to fShiftX and fShiftY.
If imgDst is allocated, this function put a result to it. Otherwise, this function allocates a new destination area and returns the result on it.

Example:

Image img := GetFrontImage().ImageClone();

img.ConvertToFloat();

// translate (X, Y) = (10.5, 3)
IPUImageShift(img, 10.5, 3, img);

img.ShowImage();

Generated on Wed Feb 29 16:36:11 2012 for Image Processing Utilities by  doxygen 1.6.1