boundingBox of a feture in an image

조회 수: 2 (최근 30일)
Akhil Aravind
Akhil Aravind 2019년 4월 25일
댓글: Akhil Aravind 2019년 4월 29일
I found the boundingBoxes of my feture using Regionprop(a,'BoundingBox');. As my feture is having many parts i got many bounding boxes. when i plot them on image i am getting someboxes are subset of other box. so i want to remove that overlaying part. help me with this....
Thank You.....
Screenshot from 2019-04-25 18-52-24.png
i don't want the boxes inside any other box

채택된 답변

Mark Sherstan
Mark Sherstan 2019년 4월 25일
You can use bboxOverlapRatio() to get the ratio and then set a threshold of what is acceptable for plotting or not. A better approach might be what are you passing to region props? Are you looking for color, contrast, etc? If you filter your image more before passing it to region props you may get more desirable results (e.g. bwareafilt())
  댓글 수: 1
Akhil Aravind
Akhil Aravind 2019년 4월 29일
Thank you sir for helping me.

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by