I have two arrays
B. I want to do color mapping of their difference
A - B. So far, I am doing this:
1) calculate d = A - B 2) find min / max in d 3) linear mapping of d from (min, max) to (0, 1) 4) convert (0, 1) to color
The problem is, that sometimes, there are noise values in my data. For example, several values in
B are too large (like 100 times bigger than the rest) and it leads to enormous difference and increased
max. After mapping to (0, 1) all other values are "wiped". How can I solve this?