Hi Question is about eleminating unwanted regions in binary image.
조회 수: 2 (최근 30일)
이전 댓글 표시
I work on fundus image , bwareaopen() function removes all connected components fewer than P pixels. But in my image I need to remove all the regions which have more than 11 pixels how can I do so? And how can I calculate the metrics of each region and eliminate the structures having metrics less than 0.95?
댓글 수: 0
답변 (1개)
Image Analyst
2016년 1월 10일
So P=11, right? Did you try this:
binaryImage = bwareaopen(binaryImage, 11);
Regarding "metrics", I think you need to do a spatial calibration, and I attach my demo for that. So then use regionprops() and multiply linear measurements by the spatial calibration factor and area measurements by the spatial calibration factor squared.
댓글 수: 5
Meghana Dinesh
2016년 1월 13일
You can do what Image Analyst mentioned:
binaryImage_out = bwareaopen(binaryImage_in, 11);
Later, subtract binaryImage_in and binaryImage_out.
Image Analyst
2016년 1월 13일
binaryImage = binaryImage - bwareaopen(binaryImage, 11);
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Processing and Computer Vision에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!