# Is there a way to determine the maximum inscribed circle within a particle count in Image-Pro 11?

Is there a Measurement List Types option in Image-Pro 11 that allows for the determination of the maximum inscribed circle within particle count?

0

Is there a Measurement List Types option in Image-Pro 11 that allows for the determination of the maximum inscribed circle within particle count?

0

## Answers

If you want to create the circle manually, you can use Best-Fit circle tool.

If you want to get it automatically, you can use statistical table to get min/max values of object centroids and then draw the circle based on the bounding box of all objects from a macro.

Here is the macro that can draw the circle inscribing all objects inside:

The result will look like this:

Regards,

Yuri

Then I completely misunderstood your question. Measuring inscribed circle of every measured object is a different task.

There is no built-in measurement that provides this measure, but I will show you the steps how to get it using a Distance map. Distance map creates an image of the mask where pixel intensities are equal to the distance from the current pixel to the closest edge of the object, so measuring the Maximum Intensity of the distance map will give you the Radius of the Inscribed circle to that object, in pixels.

Here are the steps:

1. Create Mask of you objects using the Mask button

2. Create Distance Map of the mask image, use 3D Filters, as they produce a higher accuracy map:

3. Segment distance map using Threshold=1 and measure Intensity Max of each object - it corresponds to the Radius of the inscribed circle (in pixels)

4. Optionally, if your image is calibrated, you can create Intensity calibration that matches the spatial calibration, so Intensity Max will give you the Radius in Calibrated units (µm).

I've added an Inscribed Circle (C2) to the image, that illustrates that the Radius of the circle matches the Intensity Max of the object, in micrometers.

Yuri

YuriG, I had already calculated the maximum inscribed circle's diameter in Python before I saw your solution. However, I've now implemented your solution on one image, and the results appear quite similar. I plan to assess its performance across multiple images and make a comparison. I'm leaning towards using ImagePro for its Measurement List Types feature to gather additional data. Your solution was greatly appreciated.

CraigW, I initially experimented with the Minimum Diameter and Minor Axis methods prior to posting this question on the forum. The Minimum Diameter values turned out to be significantly smaller, while the Minor Axis values were slightly larger when compared to the diameter of the maximum inscribed circle. Thanks for your input.