I’m looking for a way to extract Auto Local Threshold parameters, specifically pixel radius below, and store into a data file containing an image’s analysis results. Is there a straight forward way of doing this? I’ve looked at the list of macros and the only thing I saw was retrieving current threshold method. However, I would like to retrieve radius, parameter_1, etc. so I can trace an images analysis to specific thresholding.
run("Auto Local Threshold", "method=Phansalkar radius=250 parameter_1=.5 parameter_2=.5 white"); setOption("BlackBackground", false); run("Convert to Mask"); run("Remove Outliers...", "radius=1 threshold=50 which=Bright"); run("Despeckle"); saveAs("tiff",dir2 + baset + "_a" + fil_num + "__bin");