how to make Geometric shapes detection?

조회 수: 16 (최근 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?

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by