Flat-field correction

Flat-field correction

Zebra Rapixo CoF100 can perform flat-field correction, to help improve the quality of images taken in environments with uneven lighting, which can affect the quality of your processing. To correct this, an on-board flat-field correction can be applied to images so that the intensity across the image is even before processing begins. This operation essentially does a gain and offset correction on a pixel basis, where a different gain and offset can be applied to each pixel.
To use flat-field correction, you need to specify an on-board buffer that contains the gain values, and optionally another that contains the offset values, using MdigControl with M_SHADING_CORRECTION_GAIN_ID and M_SHADING_CORRECTION_OFFSET_ID, respectively. The buffers should be the same size as the grabbed image, and the gain values should be in the specified fixed point format (M_SHADING_CORRECTION_GAIN_FIXED_POINT). The aggregate bandwidth to read the gain buffer and offset buffer from on-board memory cannot be bigger than the internal maximum bandwidth of the DMA port (8 Gbytes/sec). There is a line limitation of 64 K pixels per line and 1M lines per frame. Once you have set the buffers, enable the correction using MdigControl with M_SHADING_CORRECTION.
Flat-field correction is applied to the images as they are being transferred from memory to the Host. This on-board correction is only available on the CoF100 model with the appropriated firmware installed. This functionality cannot be used simultaneously with peak extraction because this requires a separate firmware.