Detect rounding objects only and remove all other objects!

Hello,
My name is Raafat, I'm a quite new in this community and I'm trying my luck in here to get answers from you guys if anybody can help me out!
Briefly, my project with using Matlab image processing tools is detecting objects which are rounding and out-layer is smooth but in my images we can find irregular and non smooth objects! so please, which code in image processing tools can I use to detect the rounding and at same time delete the other which are non rounding??
I have found a code which is helping me to identify round objects in DEMO but I'm looking for more, looking for deleting non-round objects in same image!
Please guys, I will appreciate your helping! any answer!
Regards,

 Respuesta aceptada

Image Analyst
Image Analyst el 17 de Sept. de 2011
For roundness, you'll need to calculate the circularity, which is the perimeter squared divided by (4*pi*Area). See my BlobsDemo demo for how to filter blobs on various criteria using the ismember() function - deleting non-round objects like you say.

2 comentarios

Thank you image analyst for helping, I have followed your steps and in the end I got some problem that as I knew the ismember will show the index of the object only, so how can I show the result on image! Plus I get some error in the result that it shows me incorrect object which is out of my conditions... Hope you can help me more and Thank you again!
Actually to be more clear, my problem is that I cant use ismember() function inside loop(loop for calculating perimeter of object to find the metric of roundness for each object in the image).. so how can i use ismember() function, in this case? or if there is an other way to delete the non-round objects!
hope to hear from you soon!
Regards,

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by