Difference between revisions of "Function:AutoColor"
From CUVI Wiki
m (→Function) |
|||
(17 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
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. | 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=== | ====Function==== | ||
{| | {| | ||
|style="font-size:100%;"| | |||
<syntaxhighlight lang="cpp"> | |||
CuviStatus cuvi::colorOperations::autoColor(const CuviImage& src, CuviImage& dst, const CuviStream& stream = CuviStream()); | CuviStatus cuvi::colorOperations::autoColor(const CuviImage& src, CuviImage& dst, const CuviStream& stream = CuviStream()); | ||
</ | </syntaxhighlight> | ||
|} | |} | ||
===Parameters=== | ====Parameters==== | ||
{| | |||
|style="font-size:75%;"| | |||
{|class="wikitable" | |||
|- | |- | ||
! Name | ! Name | ||
Line 27: | Line 29: | ||
| const CuviStream& | | const CuviStream& | ||
| GPU stream ID for execution | | GPU stream ID for execution | ||
|} | |||
|} | |} | ||
===Image Type Support=== | ====Image Type Support==== | ||
{| | |||
|style="font-size:75%;"| | |||
{| class="wikitable" | |||
|- | |- | ||
! Input | ! Input | ||
Line 42: | Line 45: | ||
| 16uC3 | | 16uC3 | ||
| 16uC3 | | 16uC3 | ||
|} | |||
|} | |} | ||
===Sample=== | ===Sample=== | ||
[[File:Deer.jpg|none|frame|Input]] | |||
<br/> | |||
[[File:True.jpg|none|frame|Output]] | |||
<br/> | |||
====Example==== | |||
{| | {| | ||
|- | |style="font-size:100%;"| | ||
<syntaxhighlight lang="C"> | |||
CuviImage input("D:/false.jpg", CUVI_LOAD_IMAGE_COLOR_KEEP_DEPTH), output; | CuviImage input("D:/false.jpg", CUVI_LOAD_IMAGE_COLOR_KEEP_DEPTH), output; | ||
Line 61: | Line 66: | ||
//Save Output to file | //Save Output to file | ||
cuvi::io::saveImage(output, "D:/true.jpg"); | cuvi::io::saveImage(output, "D:/true.jpg"); | ||
</syntaxhighlight> | |||
</ | |||
|} | |} |
Latest revision as of 20:39, 18 October 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
|
Parameters
|
Image Type Support
|
Sample
Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination
Example
|