Why HSB Stack after recording Color Thresholder

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Why HSB Stack after recording Color Thresholder

Andrew Sanchez
When I run the autogenerated macro I got after adjusting the Color Threshold, I get a sequence of events which does no appear to replicate what I have done while recording the macro.  Why does the autogenerated macro include

run("HSB Stack");
run("Convert Stack to Images");

Does this happen "behind the scenes" when I adjust the color threshold?  after the Color Thresholding macro runs, I end up with a black and white image, which I think is due to the run("Convert to Mask");


I'm sure this is pretty basic stuff, but I'm still trying to grock the basics

Thank you!

--
Reply | Threaded
Open this post in threaded view
|

Re: Why HSB Stack after recording Color Thresholder

Andrew Sanchez
One more thing:  It would be helpful, if after running the Color Thresholding macro, I can get my original image displayed with the Threshold Color window open (with the values set in the macro), so that I can adjust the threshold if necessary.  Is this possible?
Reply | Threaded
Open this post in threaded view
|

Re: Why HSB Stack after recording Color Thresholder

Gabriel Landini
In reply to this post by Andrew Sanchez
On Thursday 25 Jun 2015 13:17:58 Andrew Sanchez wrote:

> When I run the autogenerated macro I got after adjusting the Color
> Threshold, I get a sequence of events which does no appear to replicate
> what I have done while recording the macro.  Why does the autogenerated
> macro include
>
> run("HSB Stack");
> run("Convert Stack to Images");
>
> Does this happen "behind the scenes" when I adjust the color threshold?
> after the Color Thresholding macro runs, I end up with a black and white
> image, which I think is due to the run("Convert to Mask");

Hi,
The color threshold command "Macro" button generates a macro that replicates
the results obtained when you adjust the sliders after selecting the B/W
'threshold color' in the applet panel (which is the case of a thresholded
result).
For other options you will probably need to combine that result with the
original using the Image Calculator (e.g. AND OR, etc).
Cheers
Gabriel

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html