Difference between revisions of "Function:Transpose"

From CUVI Wiki
(Created page with "__NOTOC__ Takes Transpose of the image ===Function=== {| |style="font-size:150%;"| <syntaxhighlight lang="cpp"> CuviStatus transpose(CuviImage* srcImage, ...")
 
Line 5: Line 5:
|style="font-size:150%;"|
|style="font-size:150%;"|
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">
CuviStatus transpose(CuviImage* srcImage,
CuviStatus transpose(const CuviImage& src,
                     CuviImage* dstImage,
                     CuviImage& dst,
                     CuviStream* stream = NULL);
                     const CuviStream& stream = CuviStream());
</syntaxhighlight>
</syntaxhighlight>
|}
|}

Revision as of 18:45, 19 April 2013

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);