Removes haze and brings out the real colors in underwater photography. Apart from removing haze, it also enhances the colors of haze-less images and is so additive that you start using it on every underwater photo by default.
Function
CuviStatus cuvi::imageFiltering::underwaterFilter(const CuviImage& src,
CuviImage& dst,
CuviEnhamcementParams params = CuviEnhancementParams(),
const CuviStream& stream = CuviStream());
|
Parameters
Name
|
Type
|
Description
|
src
|
const CuviImage&
|
Input Image
|
dst
|
CuviImage&
|
Output Image
|
params
|
CuviEnhacementParams
|
bool autoColor, Cuvi32i filterStrength, Cuvi64f deGalreAmount.
|
stream
|
const CuviStream&
|
GPU stream ID for execution
|
Image Type Support
Sample
Error creating thumbnail: Unable to save thumbnail to destination Input
|
Error creating thumbnail: Unable to save thumbnail to destination Output
|
Example
CuviImage input("D:/lowlight.jpg", CUVI_LOAD_IMAGE_COLOR_KEEP_DEPTH), output;
//Perform low-light enhancement
cuvi::colorOperations::lowlight(input, output);
//Save Output to file
cuvi::io::saveImage(output, "D:/enhanced.jpg");
|