필터 지우기
필터 지우기

How to detect Triange and Hexagone?

조회 수: 1 (최근 30일)
saravanakumar D
saravanakumar D 2013년 12월 31일
댓글: Image Analyst 2013년 12월 31일
Anybody please tell the algorithm to detect the Triangle and Hexagone shapes in pictures

채택된 답변

Image Analyst
Image Analyst 2013년 12월 31일
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
saravanakumar D
saravanakumar D 2013년 12월 31일
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 2013년 12월 31일
Alright, so try regionprops.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by