Re: ImageJ 1.53a color threshold macro error (HSB stack)
Posted by
Gabriel Landini on
May 28, 2020; 8:19pm
URL: http://imagej.273.s1.nabble.com/ImageJ-1-53a-color-threshold-macro-error-HSB-stack-tp5023409p5023411.html
Hi
The macro does not generate any error here either with 1.53b31
I cannot tell if that macro works or not, but I am sure the second line in
that macro is unnecessary:
run("Color Threshold...");
Just comment it out, it does nothing.
You do not need it because the macro contains all the autogenerated code from
the colour thresholder.
The error you mention would probably happen if you try to run the macro with a
non-colour image. So make sure that you click on the right colour image before
running it.
If you have only one rgb image open and you still get the error, try adding:
wait(100);
before AND after the line:
run("HSB Stack");
If that works, then try deleting one of them and try again. I wonder if there
is something like a race condition in the conversion to the HSB stack. That
delay might be able to avoid it. I have seen a similar kind of problem before.
Cheers
Gabriel
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html