Function:Enhance

From CUVI Wiki
Jump to: navigation, search

Enhances the image using adaptive contrast stretching algorithm. Suitable for enhancing poor contrasted and hazy underwater video streams in real-time.

Function

CuviStatus enhance(const CuviImage& src,
                   CuviImage& dst,
                   const CuviStream& stream = CuviStream());

Parameters

Name Type Description
src const CuviImage& Input Image
dst CuviImage& Output Image
stream const CuviStream& GPU stream ID for execution

Image Type Support

Input Output
8uC3 8uC3

Sample

Input Image
Enhanced Image


Example

//Read an image from the disk
CuviImage image = cuvi::io::loadImage(path);
CuviImage output(image.size(), image.type());
 
//Enhance the image!
cuvi::imageFiltering::enhance(image,output);