How do I draw a rectangle around a circular object in an image?
Afficher commentaires plus anciens
I am having difficulty drawing a rectangle around an image in Matlab. I know about the rectangle function, but it is near impossible to accurately estimate the specific points where the rectangle would touch the cell. Here is the code I have so far:
rectangle('Position', x1,y1,x2,y2,'EdgeColor', 'b')
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Image Arithmetic dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!