フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

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

1 回表示 (過去 30 日間)
Som
Som 2017 年 4 月 6 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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