Bounding Box set by parameters
    조회 수: 3 (최근 30일)
  
       이전 댓글 표시
    
Hi, how i can set bounding box if i need that recantagle be then width are biger then height. Sorry for my english. Also add image too easy understand my question.

댓글 수: 0
답변 (1개)
  Image Analyst
      
      
 2016년 4월 5일
        Call regionprops():
measurements = regionprops(logical(binaryImage), 'BoundingBox');
bBox = measurements.BoundingBox;
hold on;
rectangle('Position', bBox, 'EdgeColor', 'r');
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

