Difference between revisions of "Function:Dehaze"
From CUVI Wiki
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
Makes sense of hazy images. Note this function is ideal for extreme blizzard and very low visibility. For small hazes, we prefer using '''[[Function:adjust]]'''. | Makes sense of hazy images. Note this function is ideal for extreme blizzard and very low visibility. For small hazes, we prefer using '''[[Function:adjust]]'''. | ||
===Function=== | ====Function==== | ||
{| | {| | ||
|style="font-size: | |style="font-size:100%;"| | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
CuviStatus cuvi::colorOperations::dehaze(const CuviImage& src, | CuviStatus cuvi::colorOperations::dehaze(const CuviImage& src, | ||
Revision as of 12:54, 18 October 2022
Makes sense of hazy images. Note this function is ideal for extreme blizzard and very low visibility. For small hazes, we prefer using Function:adjust.
Function
|
Parameters
| Name | Type | Description |
|---|---|---|
| src | const CuviImage& | Input Image |
| dst | CuviImage& | Output Image |
| max0 | int | Maximum Value to consider in Channel 1 |
| max1 | int | Maximum Value to consider in Channel 2 |
| max2 | int | Maximum Value to consider in Channel 3 |
| stream | const CuviStream& | GPU stream ID for execution |
Image Type Support
| Input | Output |
|---|---|
| 8uC3 | 8uC3 |
| 16uC3 | 16uC3 |
Sample
Example
|

