Difference between revisions of "Function:HistEq"
From CUVI Wiki
(Created page with "__NOTOC__ Performs histogram equalization ===Function=== {| |style="font-size:150%;"| <syntaxhighlight lang="cpp"> CuviStatus histEq(CuviImage* srcImage, Cuv...") |
|||
| Line 5: | Line 5: | ||
|style="font-size:150%;"| | |style="font-size:150%;"| | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
CuviStatus histEq(CuviImage | CuviStatus histEq(const CuviImage& src, | ||
CuviImage | CuviImage dst, | ||
CuviStream | const CuviStream& stream = CuviStream()); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
| Line 18: | Line 18: | ||
! Description | ! Description | ||
|- | |- | ||
| | | src | ||
| CuviImage | | const CuviImage& | ||
| Input Image | | Input Image | ||
|- | |- | ||
| | | dst | ||
| CuviImage | | CuviImage& | ||
| Equalized Image | | Equalized Image | ||
|- | |- | ||
| stream | | stream | ||
| CuviStream | | const CuviStream& | ||
| GPU stream ID for execution | | GPU stream ID for execution | ||
| Line 57: | Line 57: | ||
//Input and output image containers on GPU | //Input and output image containers on GPU | ||
CuviImage | CuviImage gimg = cuvi::io::loadImage(path,CUVI_LOAD_IMAGE_GRAYSCALE), gout; | ||
//Histogram equalization | //Histogram equalization | ||
Revision as of 12:20, 18 April 2013
Performs histogram equalization
Function
|
Parameters
| Name | Type | Description |
|---|---|---|
| src | const CuviImage& | Input Image |
| dst | CuviImage& | Equalized Image |
| stream | const CuviStream& | GPU stream ID for execution |
Image Type Support
| Input | Output |
|---|---|
| 8uC1 | 8uC1 |
Sample
Example
|

