フィルターのクリア

boundary mark of the image?

2 ビュー (過去 30 日間)
mathru
mathru 2020 年 8 月 18 日
回答済み: Pankhuri Kasliwal 2020 年 8 月 21 日
I want to mark the boundary of the centered circular objects. I also want to calculate the area of the object. How can I do it?
  1 件のコメント
Rik
Rik 2020 年 8 月 18 日
What have you tried to segment the object? Once you have a binary mask of the object itself or most of the boundary pixels you can fit a circle and calculate the area.
My first try would be to threshold this image, and fit a circle (fit a function with x_center, y_center, and r as variables). You could then further refine the fit by excluding point that are too far away from the circle and repeating the fit with the remaining points.

サインインしてコメントする。

採用された回答

Pankhuri Kasliwal
Pankhuri Kasliwal 2020 年 8 月 21 日
You can use the “bwboundaries” function for tracing boundaries and use an additional ‘noholes’ parameter to accelerate the process for finding circular objects only. Further, to find the area of the detected object you can use the “regionprops” function. For detailed information on how to do this please see the documentation link below - https://www.mathworks.com/help/images/identifying-round-objects.html

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Segmentation and Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by