Function:Fft2

From CUVI Wiki
Jump to: navigation, search

Computes the 2D Fast Fourier Transform of the input image.

Function

CuviStatus fft2(const CuviImage& src,
                CuviImage& dst,
                const CuviStream& stream = CuviStream());

Parameters

Name Type Description
src const CuviImage& Input Image
dst CuviImage& Destination Image
stream const CuviStream& GPU stream ID for execution

Image Type Support

Input Output
8uC1 32fC2

Sample

Example

//Creating GPU images
CuviImage gimg = cuvi:io::loadImage(path), gout;
 
 
//Computing the Fourier Transform
cuvi::imageTransforms::fft2(gimg,gout);