How to detect Triange and Hexagone?
2 次查看(过去 30 天)
显示 更早的评论
Anybody please tell the algorithm to detect the Triangle and Hexagone shapes in pictures
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Segmentation and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!