Difference between revisions of "Function:AutoColor"
From CUVI Wiki
| Line 12: | Line 12: | ||
{|class="wikitable" style="background-color:#ffffcc;" | {|class="wikitable" style="background-color:#ffffcc;" | ||
|- | |- | ||
! Name | ! Name | ||
! Type | ! Type | ||
! Description | ! Description | ||
|- | |- | ||
| src | | style="background-color:#ffff;" src | ||
| const CuviImage& | | const CuviImage& | ||
| Input Image | | Input Image | ||
Revision as of 12:51, 3 January 2022
Fixes false colors at pixel level of the image using CUVI's own propriety approach. For most clients, this function is always part of the pipeline to ensure best results.
Function
CuviStatus cuvi::colorOperations::autoColor(const CuviImage& src, CuviImage& dst, const CuviStream& stream = CuviStream());
Parameters
| Name | Type | Description |
|---|---|---|
| style="background-color:#ffff;" src | const CuviImage& | Input Image |
| dst | CuviImage& | Output Image |
| stream | const CuviStream& | GPU stream ID for execution |
Image Type Support
| Input | Output |
|---|---|
| 8uC3 | 8uC3 |
| 16uC3 | 16uC3 |
Sample
Example
CuviImage input("D:/false.jpg", CUVI_LOAD_IMAGE_COLOR_KEEP_DEPTH), output;
//Perform low-light enhancement
cuvi::colorOperations::autoColor(input, output);
//Save Output to file
cuvi::io::saveImage(output, "D:/true.jpg");

