Function:HaarInv

From CUVI Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Performs one-level haar wavelet reconstruction of an image

Function

CuviStatus haarInv(const CuviImage& srcApprox,
                   const CuviImage& srcDetailX,
                   const CuviImage& srcDetailY,
                   const CuviImage& srcDetailXY,
                   CuviImage& dstImage,
                   const CuviStream& stream = CuviStream());

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

Input Approx


Input X Component


Input Y Component


Input XY Component


Resultant Image

Example

//Four input images
CuviImage a = cuvi::io::loadImage(path);
CuviImage x = cuvi::io::loadImage(path);
CuviImage y = cuvi::io::loadImage(path);
CuviImage xy = cuvi::io::loadImage(path);

//Destination Image
CuviImage gout;


//Performs one-level haar wavelet reconstruction of an image
cuvi::imageTransforms::haarInv(a,x,y,xy,gout);