Difference between revisions of "Function:Adjust"
From CUVI Wiki
| Line 5: | Line 5: | ||
===Function=== | ===Function=== | ||
{| | {| | ||
|style="font-size: | |style="font-size:135%;"| | ||
<syntaxhighlight lang="c"> | <syntaxhighlight lang="c"> | ||
CUVI_EXPORTS CuviStatus adjust(CuviImage* src, | CUVI_EXPORTS CuviStatus adjust(CuviImage* src, | ||
| Line 43: | Line 43: | ||
|} | |} | ||
===Image Type Support=== | ===Image Type Support=== | ||
| Line 61: | Line 59: | ||
===Samples=== | |||
{| | |||
|- | |||
| [[File:http://www.cuvilib.com/features/images/truck_bike_features.jpg]] | |||
| [[File:http://www.cuvilib.com/features/images/truck_bike_features.jpg]] | |||
|- | |||
| Input Image | |||
| Adjusted Image | |||
|} | |||
Input Image Adjusted Image | Input Image Adjusted Image | ||
Revision as of 11:13, 25 April 2012
Adjust Image
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
| Name | Type | Description |
|---|---|---|
| src | CuviImage* | Input Image |
| LOW_IN | Cuvi32f | Values above this point are mapped. If it’s 0.5 than all the values in the input image between an intensity value of 50% and HIGH_IN are mapped in output |
| HIGH_IN | Cuvi32f | Values below this point are mapped |
| LOW_OUT | Cuvi32f | Output image doesn’t use the values below this point from the intensity map |
| HIGH_OUT | Cuvi32f | Output image doesn’t use the values above this point from the intensity map |
Image Type Support
| Input | Output |
|---|---|
| 8uC1 | 8uC1 |
| 8uC3 | 8uC3 |
Samples
| File:Http://www.cuvilib.com/features/images/truck bike features.jpg | File:Http://www.cuvilib.com/features/images/truck bike features.jpg |
| Input Image | Adjusted Image |
Input Image Adjusted Image