dektronics / printalyzer-densitometer

Reflection and Transmission Densitometer for Photographic Darkroom Use
19 stars 4 forks source link

Modify sensor channel processing flow to just use CH0 #37

Closed dkonigsberg closed 2 years ago

dkonigsberg commented 2 years ago

The TSL2591 sensor has two channels, CH0 and CH1. The CH0 spectrum is vaguely similar to the "visual" density spectrum we are trying to measure, and the CH1 spectrum has lower sensitivity and leans towards the infrared.

The current approach subtracts the reading of CH1 from CH0, in basic counts, to get a combined reading that then has a slope correction applied and density calculations performed. So far this has worked out fine, despite some comments that combining sensor channels like this is not advisable.

However, recent analysis efforts have shown that CH1 has behavior that may not be desirable:

For the most part, its been easy to ignore these issues because:

Making this change would only have a minor effect on the device's spectral sensitivity: pd-ch0-ch1-comp

As such, making this change is likely a "safe" course of action for standardizing how the device processes sensor data. For the most part, it would involve removing one math operation from a few routines and recalibrating the device. It would also be possible to remove CH1 from the gain calibration data, however it does no harm to leave that in there.