I want to find the top apexes in a BW image in matlab

3 ビュー (過去 30 日間)
Praveen GB
Praveen GB 2019 年 8 月 27 日
回答済み: Dinesh Yadav 2019 年 8 月 30 日
I want to find the top apexes in a BW image in matlab
  1 件のコメント
Praveen GB
Praveen GB 2019 年 8 月 27 日
This is an Example image and I want to find the top apex of each vessels

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

採用された回答

Dinesh Yadav
Dinesh Yadav 2019 年 8 月 30 日
To solve the problem we will use concept of connected components. You can go through following steps
  • To correctly get the number of disjoint objects you can use the command bwareaopen(BW,numpixels) which removes noise from the image.
  • You can use the command bwconncomp to find the number of connected components. If it is more than the number of objects you see in the image, try increasing numpixels in bwareaopen until you get the same number of components you want.
  • You can use the command bwlabel to get a matrix of size of your input image. This matrix will contain labels number corresponding to each object.
  • From there you can find top co-ordinate for each label by traversing the matrix and recording co-ordinate for first occurrence of each object label.
You can refer following links to documentation for your further exploration.

その他の回答 (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