Difference between revisions of "Function:HaarFwd"
From CUVI Wiki
Line 72: | Line 72: | ||
//Input Image | //Input Image | ||
CuviImage *gimg = new CuviImage(size, | CuviImage *gimg = new CuviImage(size,depth,nChannels); | ||
//Four output images | //Four output images | ||
Line 81: | Line 81: | ||
//Populate the GPU image with pixel data | //Populate the GPU image with pixel data | ||
gimg->upload( | gimg->upload(hostImg->imageData,hostImg->widthStep); | ||
//compute one-level haar wavelet decomposition | //compute one-level haar wavelet decomposition |
Revision as of 13:12, 8 May 2012
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
Name | Type | Description |
---|---|---|
srcImage | CuviImage* | Input image |
dstApprox | CuviImage* | Output approximation image |
dstDetailX | CuviImage* | Output horizontal detail image |
dstDetailY | CuviImage* | Output vertical detail image |
dstDetailXY | CuviImage* | Output diagonal detail image |
stream | CuviStream* | GPU stream ID for execution |
Image Type Support
Input | Output |
---|---|
8uC1 | 32fC1 x 4 |
Sample
File:Haar.jpg |
Example
|