Function:Transpose

From CUVI Wiki
Revision as of 18:45, 19 April 2013 by Jawad (talk | contribs)

Takes Transpose of the image

Function

CuviStatus transpose(const CuviImage& src,
                     CuviImage& dst,
                     const CuviStream& stream = CuviStream());


Parameters

Name Type Description
srcImage CuviImage* Input image
dstImage CuviImage* Output image
stream CuviStream* GPU stream ID for execution


Image Type Support

Input Output
8uC1 8uC1
8uC3 8uC3
16uC1 16uC1
16uC3 16uC3

Sample

Error creating thumbnail: Unable to save thumbnail to destination
Input Image
Error creating thumbnail: Unable to save thumbnail to destination
Output Image


Example

CuviImage* gimg = new CuviImage(size,img->depth,img->nChannels);
CuviImage* gout = new CuviImage(sizeT,img->depth,img->nChannels);

//Populating GPU input image
gimg->upload(img->imageData,img->widthStep);


//function call
cuvi::geometryTransforms::transpose(gimg,gout);