Tech Note
Now, our post processing routine could be handled as follows:
if (pixel B < 16){ pixel_out = pixel A
}else{
pixel_out = pixel B * 64
}
By overlapping the two sensor responses, this approach utilizes the full precision of the lower
Example 3 – Averaging the Overlap
Both of the preceding examples assume that a precise calibration can be made between the two sensors, resulting in a linear output (when plotted on a logarithmic scale). In reality, even the
As a result, if the methods described in Examples 1 or 2 are used, this will produce a sharp discontinuity in the output response line at the transition point between the two sensors (see Figure 5).
FIGURE 5 – Sensor B calibration off by 1 count (64 counts in output)
This transition can be “smoothed” by averaging the values of Sensor A and Sensor B in the area of the graph leading up to the transition point. For example, using the same calibration point as described in Example 2, we could create a Boolean expression where the output value of the
if (pixel A < 512){ pixel_out = pixel A
}elseif (pixel B < 16){
pixel_out = (pixel A + (pixel B * 64))/2 }else{
pixel_out = pixel B * 64
}
NO.