Image box or rectangle color
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Nasir Ali
am 29 Mai 2021
Kommentiert: Khalid Mahmood
am 29 Mai 2021
I want to drag a rectangle on image and set color of edges of rectangle. How to start?
0 Kommentare
Akzeptierte Antwort
Khalid Mahmood
am 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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Data Workflows finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!