Hi

@thant_hein

This should help you.

```
//setTool("rectangle");
makeRectangle(0, 0, 2048, 1533);
run("Crop");
run("Duplicate...", "title=1");
run("Duplicate...", "title=2");
setAutoThreshold("Triangle dark");
//setThreshold(18, 255);
//run("Threshold...");
setOption("BlackBackground", true);
run("Convert to Mask");
run("Watershed");
run("Set Measurements...", "area bounding add redirect=None decimal=3");
run("Analyze Particles...", "size=0-Infinity circularity=0-1.00 display clear include add");
run("Distribution...", "parameter=Width or=50 and=0-0");
```

Greetings

Thank you so much, Mathew !

Hello again **Mathew** ! Can you explain a little bit more Instructions or the way to add this script ( the steps) to plugin and how to run this solution?

Thanks for your deeply help .

@thant_hein

I donâ€™t quite understand your question.

Paste the above macro code to an empty macro window (Plugins->New->Macro) and run it with an image open in ImageJ.

The histogram gives you the measurements of the sides (height or width) of the rectangle [Which should be a square] includes the circle.

For the volume of the sphere you apply the mathematical relations.

Assuming that your circles are vertical projections of the spheres,

on a horizontal plane.

To understand the macro method, do it line by line.

Look at whatâ€™s going on line by line.

Look at your Results.

Width and Height are almost always equal (Almost square).

Click on â€śLabelâ€ť in the ROI window. You will see your circles.

If you want another histogram then go to: Analyze-> Distribution.

Read this:

https://imagej.nih.gov/ij/docs/guide/146-30.html#toc-Section-30

Good luck

Hello Mathew again !!! For the volume of the sphere i used formula (mathematical relations.) v= 4/3 * pi*r^3 , But t want to know to find out volume fraction (Vv %) . when i want to add 10% nanoparticles, to get Vv=10%, 15% added get Vv=15% , 20% added Vv=20% which method can i be used? { to get max and min dia of nano particle i used macro method, measure line by line for the particles in the rectangle ares. Do you have any recommendation ? Do am i right to do this way? Thanks a lot.

Hi @thant_hein

To study the volume fraction in more detail you need to go to this side:

https://forum.image.sc/search?expanded=true&q=volume%20fraction

Greetings