Difference between revisions of "Function:BitConversion"
From CUVI Wiki
(Created page with "__NOTOC__ Converts image pixel values from one data type to another. It uses dataBits field of CuviImage to decide the number of bits of the destination image. ===Function=== ...") |
|||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
Converts image pixel values from one data type to another. It uses dataBits field of CuviImage to decide the number of bits of the destination image. | Converts image pixel values from one data type to another. It uses dataBits field of CuviImage to decide the number of bits of the destination image while the destination CuviImage decides the container. For example we want to convert an 8-bit input image to 15-bit image than the dataBits field of destination image will be 15 and container/datatype of destination image will be 16. | ||
===Function=== | ===Function=== | ||
{| | {| | ||
Revision as of 09:38, 26 April 2012
Converts image pixel values from one data type to another. It uses dataBits field of CuviImage to decide the number of bits of the destination image while the destination CuviImage decides the container. For example we want to convert an 8-bit input image to 15-bit image than the dataBits field of destination image will be 15 and container/datatype of destination image will be 16.
Function
|
Parameters
| Name | Type | Description |
|---|---|---|
| srcImage | CuviImage* | Input Image |
| dstImage | CuviImage* | Output Image |
| stream | CuviStream* | GPU stream ID for execution |
Image Type Support
| Input | Output |
|---|---|
| 8u | 8u |
| 8u | 16u |
| 16u | 16u |
| 16u | 8u |
Sample
Example
|

