Hello, I am trying to work with the color threshold macro but most of the lines of code it generates are not things I want it to do.
What I am trying to do is simply run(“Color Threshold…”); at a given min/max hue values (it does this fine), followed by pressing the “select” button to create a ROI mask. I don’t want it to "Invert’ or “Convert Stack to Images”.
My aim here is shown in the screenshot below where I take my original image (left) run color threshold with the parameters as shown (center) and press the “Select” button to create a ROI of the thresholded areas (right).
I feel like my code should start off something like this:
run("Color Threshold..."); min["Hue"]=50; max["Hue"]=105; filter["Hue"]="pass";
but so far no luck. Hopefully someone can point me in the right direction. Thanks.