Averaging the object in multiple images

4 次查看(过去 30 天)
I have a circular shape-like object in multiple images. The location of centroid of the objects are same but size (~radius) varies. How can I get an average of the size of all the objects and display it in a new image? The sum of the images divided by the number of images gives the average of the pixel values of the objects and not the pixel location (i.e. size of the object). Thank you for your help.

回答(1 个)

Image Analyst
Image Analyst 2021-4-19
Vinit, I have a demo that does exactly that.
The attached demo takes a pseudo-periodic array of shapes (a chain link fence) and determines the "Average" shape and identifies the one with the closest-to-average shape.
  5 个评论
Image Analyst
Image Analyst 2021-4-21
props = regionprops(mask, 'EquivDiameter');
allDiameters = [props.EquivDiameter]
Attach your images separately if you can't figure it out.
Vinit Nagda
Vinit Nagda 2021-4-21
@Image Analyst I do not have circular-shaped objects, instead I have something similar to your blobs shape. So, 'EquivDiameter' properties won't be a good solution. Just to show that when number of shapes=2, the averaging does not work as in your code, I gave a simple example of circular objects.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

产品


版本

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by