Difference between revisions of "Function:FftGetProperty"

From CUVI Wiki
(Created page with "__NOTOC__ Gets different properties of fft of an image. ===Function=== {| |style="font-size:150%;"| <syntaxhighlight lang="cpp"> CuviStatus fftGetProperty(const CuviImage& src...")
 
 
(4 intermediate revisions by the same user not shown)
Line 3: Line 3:
===Function===
===Function===
{|
{|
|style="font-size:150%;"|
|style="font-size:100%;"|
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">
CuviStatus fftGetProperty(const CuviImage& src,
CuviStatus fftGetProperty(const CuviImage& src,
Line 11: Line 11:
</syntaxhighlight>
</syntaxhighlight>
|}
|}
===Parameters===
===Parameters===
 
{|
|style="font-size:75%;"|
{|class="wikitable"
{|class="wikitable"
|-
|-
Line 34: Line 36:
| 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 47: Line 50:
| 32fC1
| 32fC1
|}
|}
 
|}
===Sample===
 
 


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



Latest revision as of 18:26, 19 October 2022

Gets different properties of fft of an image.

Function

CuviStatus fftGetProperty(const CuviImage& src,
                          CuviImage& dst,
                          const CuviFFTProp prop,
                          const CuviStream& stream = CuviStream());

Parameters

Name Type Description
src const CuviImage& Input FFT image
dst CuviImage& Output image containing the specified property
prop const CuviFFTProp The property of FFT to get.
stream const CuviStream& GPU stream ID for execution

Image Type Support

Input Output
32fC2 32fC1

Example

//Creating GPU images
CuviImage input = cuvi:io::loadImage(path), fftImage, magnitude;

	
//Computing the Fourier Transform
cuvi::imageTransforms::fft2(input,fftImage);

//Compute the magnitude of fft
cuvi::imageTransforms::fftGetProperty(fftImage, magnitude, CUVI_FFT_MAGNITUDE);