Function:Fpn

From CUVI Wiki

Removes fixed point camera noise from the image using black image. Ideally the black image taken from camera with closed shutter should be all 0s. Any value above that is considered a black noise and can be removed via the formula: outputImage[i] = max(0, inputImage[i] - blackImage[i]);

Function

CuviStatus fpn(CuviImage &output,
               const CuviImage &input,
               const CuviImage &blackImage)

Parameters

Name Type Description
output CuviImage& Resultant Image
input CuviImage& Source Image
blackImage CuviImage& Black image from camera with closed shutter

Image Type Support

output input blackImage
8uC1 8uC1 8uC1
16uC1 16uC1 16uC1
8uC3 8uC3 8uC3
16uC3 16uC3 16uC3


Example

CuviImage input = cuvi::io::loadImage(path);
CuviImage blackImage= cuvi::io::loadImage(path);
CuviImage output;

//fpn
cuvi::colorOperations::fpn(output, input, blackImage);