Hello! Can you please explain how to find the maximum and minimum of diameter nanoparticles (Dmax, Dmin) and volumetric content(Vv %) of the nano-particles using image j? Thanks a lot


This should help you.

makeRectangle(0, 0, 2048, 1533);
run("Duplicate...", "title=1");
run("Duplicate...", "title=2");
setAutoThreshold("Triangle dark");
//setThreshold(18, 255);
setOption("BlackBackground", true);
run("Convert to Mask");
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");



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 .

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.

1 Like

I got just like this.

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:

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:


1 Like