Difference between revisions of "Function:Transpose"

From CUVI Wiki
 
Line 20: Line 20:
! Description
! Description
|-
|-
| srcImage
| src
| CuviImage*
| const CuviImage&
| Input image
| Input image
|-
|-
| dstImage
| dst
| CuviImage*
| CuviImage&
| Output image
| Output image
|-
|-
| stream
| stream
| CuviStream*
| const CuviStream&
| GPU stream ID for execution
| GPU stream ID for execution


Line 54: Line 54:
| 16uC3
| 16uC3
| 16uC3
| 16uC3
|-
| 32fC1
| 32fC1
|-
| 32fC3
| 32fC3
|}
|}


Line 70: Line 76:
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


CuviImage* gimg = new CuviImage(size,img->depth,img->nChannels);
CuviImage gimg = cuvi::io::loadImage(path), gout;
CuviImage* gout = new CuviImage(sizeT,img->depth,img->nChannels);
 
//Populating GPU input image
gimg->upload(img->imageData,img->widthStep);
 


//function call
//function call

Latest revision as of 18:47, 19 April 2013

Takes Transpose of the image

Function

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


Parameters

Name Type Description
src const CuviImage& Input image
dst CuviImage& Output image
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

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 = cuvi::io::loadImage(path), gout;

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