Nano Series GigE Vision Camera Addendums • 315
Color Defective Pixel Replacement Algorithm Description
The replacement algorithm rules for a Bayer color sensor is similar to the monochrome rules with
the exception that replacement pixels of the same color as the bad are used. The two replacement
cases below describe general color pixel replacements.
Again there is no embedded intelligence to adapt the rules to avoid replacing a bad pixel with
possibly other bad data, but in general these rules provide satisfactory results.
Color Sensors (case 1: single bad pixel)
• A bad even pixel is replaced by the previous even pixel.
• A bad odd pixel is replaced by the following odd pixel.
Sensor Row
pix0 pix1
Pixel Pair 1
even odd
pix2 pix3
Pixel Pair 2
even odd
pix4 pix5
Pixel Pair 3
even odd
pix6 pix7
Pixel Pair 4
even odd
Color Sensors (case 2: bad pixels at line ends)
• If the line’s first pixel is bad then the following even pixel (same color) is used as the
replacement pixel.
• If the line’s last pixel is bad then the preceding odd pixel (same color) is used as the
replacement pixel.
Sensor Row
pix0 pix1
Pixel Pair 1
even odd
pix2 pix3
Pixel Pair 2
even odd
Pixel Pair (N-1)
even odd
pix(N-1) pix(N)
Last Pixel Pair (N)
even odd
pix(N-3) pix(N-2)