Hey @Praveen_kumar_R
Welcome to the Forum!
So to start scripting with ImageJ/Fiji… here are few helpful links to get you started:
- ImageJ Wiki - the go-to place to search for help with ImageJ/Fiji
- Scripting overview page on the wiki
- A helpful workshop on Scripting with Fiji - the corresponding slides are here
- Introduction into Macro Programming page of the wiki
- Built-In Macro Functions list
- An overview of the ImageJ Macro language - also on that page is a section on functions
Here is a little macro I put together that might get you what you need…
setOption("BlackBackground", true);
run("Make Binary");
run("Analyze Particles...", "size=200-Infinity exclude clear add"); // you can set different size limits here if you want
count = roiManager("count");
for (i = 0; i < count; i++) {
roiManager("Select", i);
run("Fit Ellipse");
roiManager("Add");
roiManager("Select", i);
roiManager("Delete");
}
roiManager("Deselect");
roiManager("multi-measure measure_all");
You can change what is measured in Set Measurements.
Hope this helps!
eta
1 Like
Thanks alot…
1 Like