how to make Geometric shapes detection?

5 ビュー (過去 30 日間)
mete polat
mete polat 2015 年 12 月 27 日
コメント済み: Image Analyst 2021 年 8 月 7 日
i have popup menu to detect shapes. for example, i need when i click circle, just circles will show in rgb image on axes2. i am new to this, so couldn't arrange anything. Can anyone help me? i upload my codes. i think, you can understand exactly what i mean, when you check color menu on my codes. thank you.
  1 件のコメント
Image Analyst
Image Analyst 2015 年 12 月 27 日
You forgot to attach the image.

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

採用された回答

Image Analyst
Image Analyst 2015 年 12 月 29 日
mete, because you did not attach your image, to answer your question I had to write a program to draw random shapes. Please see attached demo. It creates an image with random shapes and then computes the circularity of the shapes and assigns the shape to the shape with the theoretical circularity that is closest to the shape's actual circularity. Someday I hope to add another method where I find and count peaks in the centroid to perimeter distance. For now, it will create an image like this:
  9 件のコメント
Beenish Ishtiaq
Beenish Ishtiaq 2021 年 8 月 7 日
Error in ''catch''
Image Analyst
Image Analyst 2021 年 8 月 7 日
@Beenish Ishtiaq I did give him code and he said it was working. Not sure how to help you unless you start a new question with your own images and own code, or my code that you modified.

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

その他の回答 (1 件)

Anindya Banerjee
Anindya Banerjee 2019 年 5 月 17 日
@image analyst your code is not working! in the line pwd its showing error..can you please fix it?
  12 件のコメント
Image Analyst
Image Analyst 2019 年 6 月 26 日
My program was meant for binary images and with this image you can't just threshold it to find shapes.
You will probably have to hand-trace the shapes to create a mask. Or you might try deep learning and see if that can find the shapes you want.
Anindya Banerjee
Anindya Banerjee 2019 年 7 月 5 日
ANY OTHER SUGGETIONS?

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

カテゴリ

Help Center および File ExchangeRed についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by