Borrar filtros
Borrar filtros

How to detect Triange and Hexagone?

1 visualización (últimos 30 días)
saravanakumar D
saravanakumar D el 31 de Dic. de 2013
Comentada: Image Analyst el 31 de Dic. de 2013
Anybody please tell the algorithm to detect the Triangle and Hexagone shapes in pictures

Respuesta aceptada

Image Analyst
Image Analyst el 31 de Dic. de 2013
Depends on what the picture looks like. If it's just a picture of a random snapshot of a city scene, then it could be difficult. If you already have the binary image, it's a lot easier. Maybe try corner() in the Image Processing Toolbox, or, depending on how perfect the shapes are you could call regionprops() and look at the Perimeter^2/(4*pi*area) ratio, which will be different for the two shapes.
  6 comentarios
saravanakumar D
saravanakumar D el 31 de Dic. de 2013
Corner() function didn't work for me. It just returns and 200 points on the boundries of the Triangle. It just show the points on corner.
Image Analyst
Image Analyst el 31 de Dic. de 2013
Alright, so try regionprops.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Image Segmentation and Analysis en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by