Color Defective Pixel Replacement Algorithm Description
The replacement algorithm rules for Bayer color sensors 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.
•
Pixel Pair 1
even
pix0
Sensor Row
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.
Pixel Pair 1
even
pix0
Sensor Row
108 • Operational Reference
Pixel Pair 2
odd
even
pix1
pix2
Pixel Pair 2
odd
even
pix1
pix2
Pixel Pair 3
odd
even
pix3
pix4
Pixel Pair (N-1)
odd
even
pix3
pix(N-3) pix(N-2)
Pixel Pair 4
odd
even
pix5
pix6
Last Pixel Pair (N)
odd
even
pix(N-1)
Nano Series GigE Vision Camera
odd
pix7
odd
pix(N)