OK thanks, this is very enlightening.
Essentially what I am trying to do is find a reliable method to check whether two colors are the same. In other words:
- Define a BaseColor channel value using numbers (e.g 0.4575)
- Take a SceneCapture
- Read the chosen pixel’s BaseColor channel
- Check if the value is the same (i.e. 0.4575), and if so, return TRUE
However, what has become clear from this discussion is that conducting such a test is by no means trivial. As you point out, there are many nuances which might cause values to change somewhere during the process, causing any dependent logic to fail.
I guess the only practical solution would be to assume 8-bit unsigned integers, then implement some watertight testing and validation at every step to ensure data is as expected 