Difference between revisions of "Function:HaarFwd"
From CUVI Wiki
(→Sample) |
|||
(13 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
===Function=== | ===Function=== | ||
{| | {| | ||
|style="font-size: | |style="font-size:100%;"| | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
CuviStatus haarFwd(CuviImage | CuviStatus haarFwd(const CuviImage& src, | ||
CuviImage | CuviImage& dstApprox, | ||
CuviImage | CuviImage& dstDetailX, | ||
CuviImage | CuviImage& dstDetailY, | ||
CuviImage | CuviImage& dstDetailXY, | ||
CuviStream | const CuviStream& stream = CuviStream()); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
===Parameters=== | ===Parameters=== | ||
{| | |||
|style="font-size:75%;"| | |||
{|class="wikitable" | {|class="wikitable" | ||
|- | |- | ||
Line 21: | Line 23: | ||
! Description | ! Description | ||
|- | |- | ||
| | | src | ||
| CuviImage | | const CuviImage& | ||
| Input image | | Input image | ||
|- | |- | ||
| dstApprox | | dstApprox | ||
| CuviImage | | CuviImage& | ||
| Output approximation image | | Output approximation image | ||
|- | |- | ||
| dstDetailX | | dstDetailX | ||
| CuviImage | | CuviImage& | ||
| Output horizontal detail image | | Output horizontal detail image | ||
|- | |- | ||
| dstDetailY | | dstDetailY | ||
| CuviImage | | CuviImage& | ||
| Output vertical detail image | | Output vertical detail image | ||
|- | |- | ||
| dstDetailXY | | dstDetailXY | ||
| CuviImage | | CuviImage& | ||
| Output diagonal detail image | | Output diagonal detail image | ||
|- | |- | ||
| stream | | stream | ||
| 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 55: | Line 58: | ||
|- | |- | ||
| 8uC1 | | 8uC1 | ||
| | | 8uC1 x 4 | ||
|- | |||
| 8uC3 | |||
| 8uC3 x 4 | |||
|} | |} | ||
|} | |} | ||
====Sample==== | |||
[[File:Haarin.jpg|none|frame|Original Image]] | |||
<br/> | |||
[[File:HaarFwdApp.jpg|none|frame|Approx Component]] | |||
<br/> | |||
[[File:HaarFwdDetailX.jpg|none|frame|Detail X Component]] | |||
<br/> | |||
[[File:HaarFwdDetailY.jpg|none|frame|Detail Y Component]] | |||
<br/> | |||
[[File:HaarFwdDetailXY.jpg|none|frame|Detail XY Component]] | |||
===Example=== | ===Example=== | ||
{| | {| | ||
|style="font-size: | |style="font-size:100%;"| | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
//Input Image | //Input Image | ||
CuviImage | CuviImage gimg = cuvi::io::loadImage(path); | ||
//Four output images | //Four output images | ||
CuviImage | CuviImage a, x, y, xy; | ||
//compute one-level haar wavelet decomposition | //compute one-level haar wavelet decomposition |
Latest revision as of 19:00, 19 October 2022
Performs one-level wavelet decomposition of an image using haar basis. The four resultant images are half the width and half the height of the original image
Function
|
Parameters
|
Image Type Support
|
Sample
Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination
Example
|