Difference between revisions of "Function:Fft2"

From CUVI Wiki
 
(2 intermediate revisions by the same user not shown)
Line 36: Line 36:


===Image Type Support===
===Image Type Support===
 
{|
|style="font-size:75%;"|
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 45: Line 46:
| 32fC2
| 32fC2
|}
|}
 
|}
===Sample===
 
 


===Example===
===Example===
{|
{|
|style="font-size:150%;"|
|style="font-size:100%;"|
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">



Latest revision as of 18:25, 19 October 2022

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

Example

//Creating GPU images
CuviImage gimg = cuvi:io::loadImage(path), gout;

	
//Computing the Fourier Transform
cuvi::imageTransforms::fft2(gimg,gout);