Falcon™ 4-CLHS Series Operational Reference 47
Defective Pixel Replacement
The Pixel Replacement algorithm is based on a predefined bad pixel map (as an XML file), either
supplied by the factory (file loaded as “Factory Map”) or generated by the user (file uploaded as
“User Map 1”).
Note: Identifying bad pixels is left to the user’s discretion, but Teledyne DALSA
technical support can provide guidance.
The following XML code sample forms the template for the user to build bad pixel maps for any of
their Falcon4 cameras.
Example User Defective Pixel Map XML File
The following example shows the required components of the defective pixel map file. Each bad
pixel position (relative to the image origin which is the upper left corner), must be identified by the
XML statement:
<DefectivePixel OffsetX=”
number
” OffsetY=”
number
”/>
Note: Pixels must be sorted in the XML file by ascending row (OffsetY); within each
row, pixels must also be sorted in ascending order horizontally (OffsetX). That is,
the order is from top-left of the image to the bottom-right.
The pixel format (whether 8-bit or 10-bit) is handled transparently, thus requires no special
consideration by the user.
This example XML listing has four “bad” pixels identified (maximum number of entries is model
dependent). The Algorithm descriptions that follow defines the rules used by the Falcon4 firmware
to replace an identified bad pixel.
<?xml version="1.0" encoding="utf-8"?>
<!--Example User Defective Pixel Map-->
<!--maximum 1022 coordinates-->
<!--filename: Falcon4ExampleBadPixels.xml-->
<Coordinates>
<DefectivePixel OffsetX="100" OffsetY="0"/>
<DefectivePixel OffsetX="468" OffsetY="50"/>
<DefectivePixel OffsetX="223" OffsetY="600"/>
<DefectivePixel OffsetX="800" OffsetY="600"/>
</Coordinates>
Note: The Falcon4 automatically adjusts the defective pixel map if binning is
enabled by combining adjacent row defects. Pixel replacement occurs in the
processing chain before horizontal binning.
The user defective pixel map can be downloaded or uploaded to the camera using the features
available in the File Access Control category. The factory map can also be downloaded.