I am trying to use the function “Distribution” in a macro to guess best values to be used in Analyze particles.
So the first step consists in running Analyze particles with no values:
run("Analyze Particles...", "display clear");
Then from the results generated I use the following command to obtain the distribution:
run("Distribution...", "parameter=Area automatic");
Then I would like to obtain the values of the distribution which appear only when I click LIST. My walk around is to use WaitForUser but it is not ideal because it requires a click:
waitForUser("Please Click the LIST button." +"\n Then Click OK");
Then I use:
SelectWindow("Area Distribution"); AreaDistributionContent=getInfo("window.contents");
To get the content of the distribution values.
So my question is: Is there a way to call the “List” directly within the macro without having to click?
Thank you all in advance