how to put rectangle for labeled images?? which is labeled using CC = bwconncomp(BW)
조회 수: 1 (최근 30일)
이전 댓글 표시
i labeled an image using CC = bwconncomp(BW); and masking the label with maximum area using code
numPixels = cellfun(@numel,CC.PixelIdxList);
[biggest,idx] = max(numPixels);
BW(CC.PixelIdxList{idx}) = 0;
now i want to put thin rectangular box around that maximum area instead of masking it...how it can be done???
댓글 수: 0
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!