How to find the best circular fit for an irregular shape and define an average radious for it. The Goal is to define a fix distance from the weighed center and extract the ave

3 ビュー (過去 30 日間)
Ali Hariri
Ali Hariri 2022 年 1 月 14 日
編集済み: Matt J 2022 年 2 月 14 日
How to find the best circular fit for an irregular shape and define an average radious for it. The Goal is to define a fix distance on the radious e.g. (0.5 R) from the weighed center and extract the ave od data from those pixels.

回答 (2 件)

Abhiroop Rastogi
Abhiroop Rastogi 2022 年 2 月 14 日
Hi Ali Hariri,
For fitting a best circular fit for the data you have you choose from the resources given
The first two give you a fit if you have the data in coordinates form and the third one utilizes the image data itself.

Matt J
Matt J 2022 年 2 月 14 日
編集済み: Matt J 2022 年 2 月 14 日
You can use circularFit(), available at
Or, you can use regionprops,
reg=regionprops(BW,'WeightedCentroid','PixelList');
averageRadius=mean(vecnorm( reg.WeightedCentroid-reg.PixelList ,2,2));

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by