|
On Sunday 01 Apr 2012 09:48:42 you wrote:
> run("Color Threshold..."); in HSB Color Space
> and press "Select"
> then
> getThreshold(min,max);
> reports -1 and -1
The getThreshold() function is for greyscale images or stacks, not for the
colour threshold plugin in IJ.
There is a macro button that generates the thresholding code for colour images
if you need those values. This is not an autothreshold plugin for colour
images, it just happens that when one runs the plugin, the brightness channel
in the HSB space is autothresholded.
Why do you get the values after conversion to stack: If you look at the
default settings in the panel, it starts by thresholding the brightness
channel (and does not touch the hue or saturation). So if the image is
converted to a stack those were the values set in the brightness channel.
Once you start using the sliders you have 3 sets of min and max thresholds (a
pair per channel) and that function does not return what you expect.
Hope this explains it.
Regards,
Gabriel
|