You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
on the same image produces a much more aggressively thresholded image:
I don't think this is just a different in image type because if I convert the image to 8-bit and run the IJ1 auto threshold it's actually even more generous:
However I can produce a similar image in the IJ1 auto threshold by operating on the 16-bit image and turning up the minValue cutoff:
It looks like the issue is that Ops is computing the min/max for the histogram off the 16-bit input but then always converts the output to 8-bit, resulting in a too-high threshold.
First converting the test image to 8-bit and then running the above script results in a reasonable output:
The text was updated successfully, but these errors were encountered:
Sample Data
When using
Image > Adjust > Threshold...
and selectingYen
to get the ImageJ 1.x threshold on a test image, we get:Running a simple groovy script to threshold with ops
on the same image produces a much more aggressively thresholded image:
I don't think this is just a different in image type because if I convert the image to 8-bit and run the IJ1 auto threshold it's actually even more generous:
However I can produce a similar image in the IJ1 auto threshold by operating on the 16-bit image and turning up the
minValue
cutoff:It looks like the issue is that Ops is computing the min/max for the histogram off the 16-bit input but then always converts the output to 8-bit, resulting in a too-high threshold.
First converting the test image to 8-bit and then running the above script results in a reasonable output:
The text was updated successfully, but these errors were encountered: