|
Dear all,
My main problem is to make settings in a separate window that opens when I use the IJ.doCommand(“e.g. Set Measurements…”); or IJ.run(“Set Measurements…”); in a plugin.
I’ve got a lot of images to analyze, and I’d like to write a Plugin, that does the following things:
1. selects some relevant items I want to measure at Analyze->Set Measurements
2. sets the threshold and scale
3. runs “Analyze Particles with the following settings:
size=0-Infinity
circularity=0.00-1.00
show=Outlines display
I can do this in a macro by using
run("Analyze Particles...", "size=0-Infinity circularity=0.00-1.00 show=Outlines display");,
but in a plugin, I cannot add the settings to the command
run("Analyze Particles...");
or
IJ.doCommand("Analyze Particles...");
4. Saves the data with the plugin “Excel Writer”,
Again I can do this in a macro, but don’t know how it works for a plugin:
run("Excel...", "select...=[C:\\Users\\Silökre\\Desktop\\ImageJ Lunkeranteil.xls]");
I tried to use the plugin example “IP Demo” that comes along with ImageJ, and tried to copy my macro into the “macro 1”, but the command
run("Excel...", "select...=[C:\\Users\\....xls]");
didn’t work either.
Does anybody know what I have to do here?
Thanks a lot!
Regards
Silke
|