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]);


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


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


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

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