Difference between revisions of "Function:Gray2rgb"
From CUVI Wiki
(→Sample) |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
Converts a gray-scale image to 3 or 4 channel image by copying the same input image to all the channels of output image. For a 4 channel output image, the alpha channel is ignored. | Converts a gray-scale image to 3 or 4 channel image by copying the same input image to all the channels of output image. For a 4 channel output image, the alpha channel is ignored. The resultant image will still be gray (since all channels are of same value) but it will be a 3/4 channel image. For debayer, please refer to [[Function:DemosaicDFPD|demosaicDFPD]]. | ||
===Function=== | ====Function==== | ||
{| | {| | ||
|style="font-size: | |style="font-size:100%;"| | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
CuviStatus gray2rgb(const CuviImage& src, | CuviStatus gray2rgb(const CuviImage& src, | ||
Line 15: | Line 15: | ||
|} | |} | ||
====Parameters==== | |||
===Parameters=== | {| | ||
|style="font-size:75%;"| | |||
{|class="wikitable" | {|class="wikitable" | ||
|- | |- | ||
Line 35: | Line 35: | ||
| CuviStream& | | CuviStream& | ||
| GPU stream ID for execution | | GPU stream ID for execution | ||
|} | |||
|} | |} | ||
====Image Type Support==== | |||
{| | |||
===Image Type Support=== | |style="font-size:75%;"| | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
Line 55: | Line 54: | ||
| 32fC1 | | 32fC1 | ||
| 32fC3 or 32fC4 | | 32fC3 or 32fC4 | ||
|} | |||
|} | |} | ||
=== | ====Example==== | ||
== | |||
{| | {| | ||
|style="font-size: | |style="font-size:100%;"| | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
Latest revision as of 21:01, 18 October 2022
Converts a gray-scale image to 3 or 4 channel image by copying the same input image to all the channels of output image. For a 4 channel output image, the alpha channel is ignored. The resultant image will still be gray (since all channels are of same value) but it will be a 3/4 channel image. For debayer, please refer to demosaicDFPD.
Function
|
Parameters
|
Image Type Support
|
Example
|