Difference between revisions of "Function:Fft2"

From CUVI Wiki
(Created page with "__NOTOC__ Computes the 2D Fast Fourier Transform of the input image. ===Function=== {| |style="font-size:150%;"| <syntaxhighlight lang="cpp"> CuviStatus fft2(const CuviImage& ...")
 
 
(5 intermediate revisions by 2 users not shown)
Line 3: Line 3:
===Function===
===Function===
{|
{|
|style="font-size:150%;"|
|style="font-size:100%;"|
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">
CuviStatus fft2(const CuviImage& src,
CuviStatus fft2(const CuviImage& src,
Line 10: Line 10:
</syntaxhighlight>
</syntaxhighlight>
|}
|}
===Parameters===
===Parameters===
 
{|
|style="font-size:75%;"|
{|class="wikitable"
{|class="wikitable"
|-
|-
Line 30: Line 32:
| const CuviStream&
| const CuviStream&
| GPU stream ID for execution
| GPU stream ID for execution
 
|}
|}
|}


===Image Type Support===
===Image Type Support===
 
{|
|style="font-size:75%;"|
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 41: Line 44:
|-
|-
| 8uC1
| 8uC1
| 32fC1
| 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);