Difference between revisions of "Function:HaarInv"
From CUVI Wiki
(Created page with "__NOTOC__ Performs one-level haar wavelet reconstruction of an image ===Function=== {| |style="font-size:150%;"| <syntaxhighlight lang="cpp"> CuviStatus haarInv(CuviImage* src...") |
|||
| Line 5: | Line 5: | ||
|style="font-size:150%;"| | |style="font-size:150%;"| | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
CuviStatus haarInv(CuviImage | CuviStatus haarInv(const CuviImage& srcApprox, | ||
CuviImage | const CuviImage& srcDetailX, | ||
CuviImage | const CuviImage& srcDetailY, | ||
CuviImage | const CuviImage& srcDetailXY, | ||
CuviImage | CuviImage& dstImage, | ||
CuviStream | const CuviStream& stream = CuviStream()); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
| Line 22: | Line 22: | ||
|- | |- | ||
| srcApprox | | srcApprox | ||
| CuviImage | | const CuviImage& | ||
| Input approximation image | | Input approximation image | ||
|- | |- | ||
| srcDetailX | | srcDetailX | ||
| CuviImage | | const CuviImage& | ||
| Input horizontal detail image | | Input horizontal detail image | ||
|- | |- | ||
| srcDetailY | | srcDetailY | ||
| CuviImage | | const CuviImage& | ||
| Input vertical detail image | | Input vertical detail image | ||
|- | |- | ||
| srcDetailXY | | srcDetailXY | ||
| CuviImage | | const CuviImage& | ||
| Input diagonal detail image | | Input diagonal detail image | ||
|- | |- | ||
| dstImage | | dstImage | ||
| CuviImage | | CuviImage& | ||
| Reconstructed image | | Reconstructed image | ||
|- | |- | ||
| stream | | stream | ||
| CuviStream | | const CuviStream& | ||
| GPU stream ID for execution | | GPU stream ID for execution | ||
| Line 54: | Line 54: | ||
! Output | ! Output | ||
|- | |- | ||
| | | 8uC1 x 4 | ||
| 8uC1 | | 8uC1 | ||
|- | |||
| 8uC3 x 4 | |||
| 8uC3 | |||
|} | |} | ||
| Line 72: | Line 75: | ||
//Four input images | //Four input images | ||
CuviImage | CuviImage a = cuvi::io::loadImage(path); | ||
CuviImage | CuviImage x = cuvi::io::loadImage(path); | ||
CuviImage | CuviImage y = cuvi::io::loadImage(path); | ||
CuviImage | CuviImage xy = cuvi::io::loadImage(path); | ||
//Destination Image | //Destination Image | ||
CuviImage | CuviImage gout; | ||
//Performs one-level haar wavelet reconstruction of an image | //Performs one-level haar wavelet reconstruction of an image | ||
Revision as of 12:18, 18 April 2013
Performs one-level haar wavelet reconstruction of an image
Function
|
Parameters
| Name | Type | Description |
|---|---|---|
| srcApprox | const CuviImage& | Input approximation image |
| srcDetailX | const CuviImage& | Input horizontal detail image |
| srcDetailY | const CuviImage& | Input vertical detail image |
| srcDetailXY | const CuviImage& | Input diagonal detail image |
| dstImage | CuviImage& | Reconstructed image |
| stream | const CuviStream& | GPU stream ID for execution |
Image Type Support
| Input | Output |
|---|---|
| 8uC1 x 4 | 8uC1 |
| 8uC3 x 4 | 8uC3 |
Sample
| File:Haar.jpg |
Example
|