Function:GammaCorrect

From CUVI Wiki
Jump to: navigation, search

Increases or decreases gamma value of input image.

Function

CuviStatus gammaCorrect(const CuviImage& src,
                        CuviImage& dst,
                        const Cuvi32f gamma = 1.0f,
                        const CuviStream& stream = CuviStream());

Parameters

Name Type Description
src const CuviImage& Input Image
dst CuviImage& Destination Image
gamma const Cuvi32f Gamma value
stream const CuviStream& GPU stream ID for execution

Image Type Support

Input Output
8u 8u


Example

//Creating input images
CuviImage input = cuvi:io::loadImage(path), output;
 
const Cuvi32f gamma = 1.5f;
 
cuvi::colorOperations::gammaCorrect(input,output,gamma);