Image box or rectangle color
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Nasir Ali
il 29 Mag 2021
Commentato: Khalid Mahmood
il 29 Mag 2021
I want to drag a rectangle on image and set color of edges of rectangle. How to start?
0 Commenti
Risposta accettata
Khalid Mahmood
il 29 Mag 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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Image Data Workflows in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!