I have a AFM image that (after come scaling to nanometer scale) has 32-bit floating point intensity values.
Now I want to apply a threshold using a script for pixels that are 0.5 to 1.8 nm high (i.e. their intensity values range from 0.5 to 1.8).
I run into a problem when calling
setThreshold(0.5, 1.8): The whole image gets selected (in red).
However, when I do not use scripting but click “Set” in the “Image -> Adjust… -> Threshold” and enter these values the mask is ok.
Is there a problem with the
setThreshold() function on 32-bit float images?
PS: I used the IJ1 Macro language, but I also tried the Python scripting interface where the same bug occurs.