Effacer les filtres
Effacer les filtres

to find the ROI surrounding the centroid

3 vues (au cours des 30 derniers jours)
BV
BV le 1 Juin 2013
I have an image that has several objects in it. I have found the centroid of one of the desired objects in them. I want to create ROI surrounding this centroid alone and make other objects zero or null.

Réponse acceptée

Image Analyst
Image Analyst le 1 Juin 2013
Like I said in your question last month (that you accepted - thanks), that's covered in my Image Segmentation Tutorial. If you don't think it does, the post your code and show why not.
  6 commentaires
Image Analyst
Image Analyst le 2 Juin 2013
Perhaps you might want to use the convex hull by using bwconvhull(). Feel free to adapt my code. I've given you a good start, but I'm not going to do the whole project for you. Good luck.
BV
BV le 2 Juin 2013
Modifié(e) : BV le 2 Juin 2013
thank you once again) bwconvhull()doesnt work that well. I have a centroid position.I want to create a rectangle of a particular dimension sround this centroid. Is there any function to do make a rect around the centroid? I don know how to use the centroid in 'imrect()'.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Recognition, Object Detection, and Semantic Segmentation 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