Homec4science

Make sure calculated thresholds fit into image data type

Authored by Tom Kazimiers <tom@voodoo-arts.net> on Aug 16 2013, 16:04.

Description

Make sure calculated thresholds fit into image data type

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.

Signed-off-by: Tom Kazimiers <tom@voodoo-arts.net>

Details

Committed
Tom Kazimiers <tom@voodoo-arts.net>Mar 14 2014, 18:51
Pushed
oburriMar 8 2018, 18:06
Parents
R6269:c796821c2a68: Mark first commit as external plugin
Branches
Unknown
Tags
Unknown

Event Timeline

Tom Kazimiers <tom@voodoo-arts.net> committed R6269:5f6dd6d91250: Make sure calculated thresholds fit into image data type (authored by Tom Kazimiers <tom@voodoo-arts.net>).Mar 14 2014, 18:51