Performs histogram equalization
Function
CuviStatus histEq(CuviImage* srcImage,
CuviImage* dstImage,
CuviStream* stream = NULL);
|
Parameters
| Name
|
Type
|
Description
|
| srcImage
|
CuviImage*
|
Input Image
|
| dstImage
|
CuviImage*
|
Equalized Image
|
| stream
|
CuviStream*
|
GPU stream ID for execution
|
Image Type Support
Sample
Input Image
|
Equalized Image
|
Example
//Input and output image containers on GPU
CuviImage* gimg = new CuviImage(size,img->depth,img->nChannels);
CuviImage* gout = new CuviImage(size,img->depth,img->nChannels);
//Populate image data on gpu
gimg->upload(img->imageData,img->widthStep);
//Histogram equalization
cuvi::colorOperations::histEq(gimg,gout);
|