Analyze Particles: Roundness and aspect-ratio not in summary table?

Hey all,

I’m trying to use the Particle Analyser in ImageJ to measure the average of different shape descriptors of objects in an image (actually, I want to do this on a folder of images). This is my example macro:

run("Blobs (25K)");
setAutoThreshold("Default");
setOption("BlackBackground", true);
run("Convert to Mask");
run("Set Measurements...", "shape redirect=None decimal=3");
run("Analyze Particles...", "display summarize");

Unfortunately, the summary table doesn’t contain roundness and aspect ratio:
image

While the results table does…
image

Is this a bug or does somebody know if this can be configured?

Thanks!

Cheers,
Robert

I can confirm this behavior. The summarizing of values in the Analyze Particles command is hard-coded here:


As a workaround, you can always call Results > Summarize on the results table, which will add four new rows to the table, containing {Mean, SD, Min, Max} for each table column.


Independent of this, I’d like to question the usefulness of calculating the mean value of those shape descriptors, as I assume they’d not follow a normal distribution (see the user guide for how they’re calculated). The median might be more useful in many use cases…

1 Like

Awesome, thanks @imagejan !

Just for completeness, as macro code it looks then like this:

// measure properties
run("Clear Results");
run("Analyze Particles...", "display");
run("Summarize");
		
// read out value from table
circularity = getResult("Circ.", nResults() - 4);

Thanks again!

Cheers,
Robert