NOTICE! This is a static HTML version of a legacy ImageJ Trac ticket.

The ImageJ project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Ticket #1759 (closed defect: moved)

Opened 2013-03-29T12:12:53-05:00

Setting threshold levels tricky with float images

Reported by: bdezonia Owned by: bdezonia
Priority: major Milestone: imagej2-b8-analysis
Component: Analysis Plugins Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking: #1678

Description

Create a float image containing nothing but 0's, 0.1's, 0.2's, and 0.3's. (For instance maybe as 3 filled rects).

Adjust threshold. Threshold min and max say 0.1 and 0.2. Adjust to 0.1 and 0.3. See that the 0.1 pixels are not included in threshold. If you print out min/max inside Threshold plugin you see that min is calced as 0.1000001 or something. The text in the field says 0.1 but its a little bigger. And thus the 0.1 pixels fall outside the threshold.

In addition you can type 0.1 in min field and tab to next field. Now 0.1 pixels are part of threshold. But then clicking on +/- arrows of min does not change the value. Somehow the bounds checking code determines it is out of bounds and fails completely. You can only get unstuck by entering in text field something greater than 0.1000001 and less than max.

Change History

comment:1 Changed 2015-02-23T11:08:51-06:00 by curtis

  • Status changed from new to closed
  • Resolution set to moved