|
|
Line 45: |
Line 45: |
| |} | | |} |
|
| |
|
| ===Image Type Support=== | | ====Image Type Support==== |
| | | {| |
| | |style="font-size:75%;"| |
| {| class="wikitable" | | {| class="wikitable" |
| |- | | |- |
Line 60: |
Line 61: |
| | 32fC1 x 3 | | | 32fC1 x 3 |
| | 32fC3 | | | 32fC3 |
| | |} |
| |} | | |} |
|
| |
|
Revision as of 20:42, 18 October 2022
Merges R, G and B Channel to form a color image
Function
CuviStatus channelMerge(const CuviImage& red,
const CuviImage& green,
const CuviImage& blue,
CuviImage& dst,
const CuviStream& stream = CuviStream());
|
Parameters
Name
|
Type
|
Description
|
red
|
const CuviImage&
|
Red channel input image
|
green
|
const CuviImage&
|
Green channel input image
|
blue
|
const CuviImage&
|
Blue channel input image
|
dst
|
const CuviImage&
|
3-channel output Image
|
stream
|
const CuviStream&
|
GPU stream ID for execution
|
|
Image Type Support
Input
|
Output
|
8uC1 x 3
|
8uC3
|
16uC1 x 3
|
16uC3
|
32fC1 x 3
|
32fC3
|
|
Sample
Error creating thumbnail: Unable to save thumbnail to destination Red Channel
|
Error creating thumbnail: Unable to save thumbnail to destination Green Channel
|
Error creating thumbnail: Unable to save thumbnail to destination Blue Channel
|
Error creating thumbnail: Unable to save thumbnail to destination Output Image
|
Example
//Three single channel images
CuviImage gr = cuvi::io::loadImage(path,CUVI_LOAD_IMAGE_GRAYSCALE);
CuviImage gg = cuvi::io::loadImage(path,CUVI_LOAD_IMAGE_GRAYSCALE);
CuviImage gb = cuvi::io::loadImage(path,CUVI_LOAD_IMAGE_GRAYSCALE);
//A single color image for storing output
CuviImage gout;
//Merge R, G and B images into a single colored image
cuvi::colorOperations::channelMerge(gr,gg,gb,gout);
|