Hello to all,
I want to threshold an image from within a macro with a certain threshold method - this works fine. However, I need to give the user the oportunity to fine tune the settings. Therefore the Threshold window is opended. Although the image is thresholded with the method of choice (Triangle in this example) this method is not selected in the Threshold window. This would be very nice to have, because the user could simply click on Auto to get back to where the threshold was before (in case fine tuning was not successfull).
In the following example the image is thresholded with the Triangle method, but the method shown in the Threshold window is “Default” (or whatever was selected manually the last time):
run("Blobs (25K)"); setAutoThreshold("Triangle"); run("Threshold...");
Is there a way to select Triangle from the macro?