I used a python script to threshold an image. The result is shown below. My next step would be to run the particle analyzer on this image, but is has to be converted to a thresholded image or 8-bit binary.
1st: Question: Why is the threshold image not already usable for the particle analyzer?
2nd question: If I use Process - Binary - Convert to Mask I get the result below, which does not really make sense to me. What is my mistake here?
To me it seems my threshold script is not really creating " thresholded image", because the pixel vales are either 0 or 12, but not 0 or 255. But I do not really know why, since the relevant line of code is
and from the API documentation I read
`threshold(int level)` Sets pixels less than or equal to level to 0 and all other pixels to 255.