Hi Question is about eleminating unwanted regions in binary image.

2 vues (au cours des 30 derniers jours)
Pradeep Gowda
Pradeep Gowda le 10 Jan 2016
Commenté : Image Analyst le 13 Jan 2016
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?

Réponses (1)

Image Analyst
Image Analyst le 10 Jan 2016
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 commentaires
Meghana Dinesh
Meghana Dinesh le 13 Jan 2016
You can do what Image Analyst mentioned:
binaryImage_out = bwareaopen(binaryImage_in, 11);
Later, subtract binaryImage_in and binaryImage_out.
Image Analyst
Image Analyst le 13 Jan 2016
binaryImage = binaryImage - bwareaopen(binaryImage, 11);

Connectez-vous pour commenter.

Catégories

En savoir plus sur Image Processing and Computer Vision dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by