how to resize an object in binary image ?
이전 댓글 표시
i try to resize (minimize) an object in binary image, but I get the whole picture is to be small. even though I just wanted to minimize only its object. please help me. thanks
채택된 답변
추가 답변 (1개)
Walter Roberson
2016년 3월 20일
0 개 추천
You need to extract the object first and imresize() on the extracted part. Consider using regionprops with the Image property to get the extracted object.
댓글 수: 3
ElizabethR
2016년 3월 20일
Walter Roberson
2016년 3월 20일
props = regionprops(YourBinaryImage, 'Image');
extracted_image = props.Image;
smaller_extracted = imresize(extracted_image, [64 64]); %example output size
ElizabethR
2016년 3월 21일
카테고리
도움말 센터 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


