Effacer les filtres
Effacer les filtres

Image box or rectangle color

1 vue (au cours des 30 derniers jours)
Nasir Ali
Nasir Ali le 29 Mai 2021
Commenté : Khalid Mahmood le 29 Mai 2021
I want to drag a rectangle on image and set color of edges of rectangle. How to start?

Réponse acceptée

Khalid Mahmood
Khalid Mahmood le 29 Mai 2021
I hope you want this
set(gcf,'Units','normalized')
im=imread('peppers.png');
imshow(im);
k = waitforbuttonpress;
rect_pos = rbbox;
annotation('rectangle',rect_pos,'Color','red')
  2 commentaires
Nasir Ali
Nasir Ali le 29 Mai 2021
It worked. I will contact you on email for further help
Khalid Mahmood
Khalid Mahmood le 29 Mai 2021
I will try best to help you

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Images dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by