Function:WarpAffineBack

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.

Applies inverse affine transformation to an image.

Function

CuviStatus warpAffineBack(const CuviImage& src,
                          CuviImage& dst,
                          Cuvi64f coeffs[2][3],
                          const CuviStream& stream = CuviStream());


Parameters

Name Type Description
src const CuviImage& Input Image
dst CuviImage& Output Image
coeffs Cuvi64f [2][3] 2 x 3 affine transformation matrix
stream const CuviStream& GPU stream ID for execution


Image Type Support

Input Output
8uC1 8uC1
8uC3 8uC3
16uC1 16uC1
16uC3 16uC3
32fC1 32fC1
32fC3 32fC3


Samples

Example

CuviImage input = cuvi::io::loadImage(path), output;

//Set affine transformation matrix
Cuvi64f coeffs[2][3] = { 
                         {0.5, 0.0, 0.0}, 
                         {0.0, 0.5, 0.0} 
                       };

//Apply inverse affine transformation
cuvi::geometryTransforms::warpAffineBack(input,output, coeffs);