Type of automatically computed magnitude should be large enough to not overflow
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
The magnitude that is automatically computed for the ThresholdFilter (which turns an array Colors into a magnitude array Colors_Magnitude) is stored as the same type as the array. That is, the magnitude of an unsigned char array (255,255,255) is stored as an unsigned char is which overflows to 185 instead of being correctly 441.
Using a double can still have problems (as the components approach double_max you run into generate INF or rolling over), but it should always be better than using the same type as the array components.