Difference between revisions of "Function:Adjust"
From CUVI Wiki
(5 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
Maps the values of the input image evenly in the intensity map such that the pixel values of the adjusted image is spread across the intensity map of the image container. The function adjusts of CUVI maps the intensities of the image between LOW_IN and HIGH_IN to the LOW_OUT and HIGH_OUT. By default all the values of the input images are mapped across the full intensity map. | Maps the values of the input image evenly in the intensity map such that the pixel values of the adjusted image is spread across the intensity map of the image container. The function adjusts of CUVI maps the intensities of the image between LOW_IN and HIGH_IN to the LOW_OUT and HIGH_OUT. By default all the values of the input images are mapped across the full intensity map. | ||
===Function=== | ====Function==== | ||
{| | {| | ||
|style="font-size: | |style="font-size:100%;"| | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
CuviStatus adjust(CuviImage& src, | CuviStatus adjust(CuviImage& src, | ||
Line 15: | Line 15: | ||
|} | |} | ||
===Parameters=== | ====Parameters==== | ||
{| | |||
|style="font-size:75%;"| | |||
{|class="wikitable" | {|class="wikitable" | ||
|- | |- | ||
Line 33: | Line 34: | ||
| HIGH_IN | | HIGH_IN | ||
| const CuviScalar& | | const CuviScalar& | ||
| Values below this point are mapped | | Values below this point are mapped. | ||
|- | |- | ||
| LOW_OUT | | LOW_OUT | ||
Line 46: | Line 47: | ||
| 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" | {| class="wikitable" | ||
|- | |- | ||
Line 62: | Line 64: | ||
| 8uC3 | | 8uC3 | ||
|} | |} | ||
|} | |} | ||
====Sample==== | |||
[[File:02_before.jpg|none|frame|Input Image]] | |||
<br/> | |||
[[File:02_imadjust.jpg|none|frame|Adjusted Image]] | |||
<br/> | |||
===Example=== | ====Example==== | ||
{| | {| | ||
|style="font-size: | |style="font-size:100%;"| | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
Latest revision as of 13:50, 20 October 2022
Maps the values of the input image evenly in the intensity map such that the pixel values of the adjusted image is spread across the intensity map of the image container. The function adjusts of CUVI maps the intensities of the image between LOW_IN and HIGH_IN to the LOW_OUT and HIGH_OUT. By default all the values of the input images are mapped across the full intensity map.
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
|