필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

I got boundary box how can 1 crop only the boundary box automatically and display as a image

조회 수: 1 (최근 30일)
This is my code I= rgb2gray(imread('oct_485.jpg'));
mask =I > 10; % Mask is bright stuff. figure,imshow(mask);
st = regionprops(mask, 'BoundingBox', 'Area' ); [maxArea, indexOfMax] = max([st.Area]);
rectangle('Position',[st(indexOfMax).BoundingBox(1),st(indexOfMax).BoundingBox(2),st(indexOfMax).BoundingBox(3),st(indexOfMax).BoundingBox(4)], 'EdgeColor','r','LineWidth',2 );

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by