Determine approximate shapes of detected objects in a binary image
1 次查看(过去 30 天)
显示 更早的评论
Hi, i'm doing a project on void detection in concrete structures. in this i am using thermal images, converted them into gray scale. later i need to convert it to binary, but one problem here is i need to see few objects which are brighter than background and sometimes i'll need to see dark objects.
i need a way to choose the threshold interactively, like a sliding button that allows me to select threshold. can any one help me how can i include that in code with example.
second problem is(temporarily i kept threshold at 0.67) in my binary image i need to determine shapes of objects approximately, circle, square,triangle or rectangle. i know a relationship to detect circular shape in terms of area and perimeter."perimeter^2/(4*pi*area)" which will be close to one for near circular shape, close to zero otherwise. also for square it is"perimeter^2/(16*area)" will be between zero and one.
can any one help me with other shapes(triangular and rectangular shapes)??? or even relations including other parameters in 'regionprops'(centroid... etc).
0 个评论
回答(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!