How to detect a polygon of following Shape in an image with other objects. I greatly appreciate for some help.
Mostrar comentarios más antiguos
Respuestas (2)
Image Analyst
el 11 de Sept. de 2014
0 votos
Define exactly what does "detect" mean to you.
In hte meantime, see my Image Segmentation Tutorial: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
8 comentarios
Rohit Tripathi
el 12 de Sept. de 2014
Image Analyst
el 12 de Sept. de 2014
I still don't know what that means. Do you want a binary image of the black outlines region filled in? Or of just the black outline itself? Or of the (x,y) coordinates of the outer and inner perimeter of the black outline? Or the area of the filled object? Or the area of only the black outline itself? Or just a yes/no decision if there is something black in the image? Or something else?
Image Analyst
el 12 de Sept. de 2014
Please attach your actual image with all the other shapes.
Rohit Tripathi
el 12 de Sept. de 2014
Editada: Image Analyst
el 12 de Sept. de 2014
Image Analyst
el 12 de Sept. de 2014
What can vary? Easiest is to just find purple blobs of that particular color. But if they can vary in color, that might not work. Could all the shapes be the same size? Can the L vary in aspect ratio? If not, the solidity would be a good thing to measure, and probably the next easiest.
This looks so fake that it's probably your homework assignment rather than a real world situation. What's the use case here?
Rohit Tripathi
el 12 de Sept. de 2014
Image Analyst
el 12 de Sept. de 2014
Alright, I did it for you. It works for this image. Since you didn't answer the question about what can vary from image to image, I give no gaurantees that it works for other images. See code attached below image.

Image Analyst
el 13 de Sept. de 2014
Rohit, does it not do exactly what you asked for?
Rushikesh Tade
el 12 de Sept. de 2014
Editada: Rushikesh Tade
el 12 de Sept. de 2014
0 votos
You can use Active shape model for that.
4 comentarios
Rohit Tripathi
el 12 de Sept. de 2014
Star Strider
el 12 de Sept. de 2014
Rushikesh Tade
el 13 de Sept. de 2014
Same link as above that Star Strider has given
Image Analyst
el 13 de Sept. de 2014
Same document, except that Star's link worked. Hover over your link to discover why it didn't work. http://www.mathworks.com/matlabcentral/answers/13205-tutorial-how-to-format-your-question-with-markup
Categorías
Más información sobre Image Segmentation en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


