fiji / Colocalisation_Analysis

Fiji's plugin for colocalization analysis
http://imagej.net/Coloc_2
GNU General Public License v3.0
25 stars 18 forks source link

Prevent potential overflow of channel specific thesholds #1

Closed tomka closed 10 years ago

tomka commented 10 years ago

The variables storing thresholds for channel one and two are of the same data type as the image data. It is very well possible, that the auto threshold regression will calculate thresholds that don't fit into the data types of the images to colocalize. This is for instance the case for negative thresholds and a standard eight bit data type. This commit makes sure the thresholds used for comparison with the actual image data, are within bounds. Before, too low or to big values could overflow the threshold variable and lead to wrong threshold values.