Functions | |
ComplexImage | IPUImageShift (Image imgSrc, Number fShiftX, Number fShiftY, Image imgDst) |
Translate Image using FFT. |
ComplexImage IPUImageShift | ( | Image | imgSrc, | |
Number | fShiftX, | |||
Number | fShiftY, | |||
Image | imgDst | |||
) |
Translate Image using FFT.
imgSrc | Source image | |
fShiftX | X shift | |
fShiftY | Y shift | |
imgDst | Destination image (can be NULL, or imgSrc for in-place calculation) |
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();