Login  Register

Macro Checkboxes

Posted by nmichel on Oct 10, 2012; 1:56pm
URL: http://imagej.273.s1.nabble.com/Macro-Checkboxes-tp5000361.html

Hello,

I have those three checkboxes:

Dialog.addCheckbox("Display Results", true);
Dialog.addCheckbox("Exclude Edges", true);
Dialog.addCheckbox("Add to Manager", true);

Display_results = Dialog.getCheckbox();
Exclude_edges = Dialog.getCheckbox();
Add_to_manager = Dialog.getCheckbox();

I want to run the following line:

run("Analyze Particles...", "size=350-Infinity circularity=0.00-1.00
show=Outlines display exclude add");

and I want to do it in a way so when display_results is true for  
example and exclude_edges is false to run it with those parameters. Is  
there a way to do it in one line or do I have to write a seperate line  
for each case, e.g when display_results=true, exclude_edges=false,  
Add_to_manager=false, etc.

Thanks,

Nick

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