Image box or rectangle color
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Nasir Ali
el 29 de Mayo de 2021
Comentada: Khalid Mahmood
el 29 de Mayo de 2021
I want to drag a rectangle on image and set color of edges of rectangle. How to start?
0 comentarios
Respuesta aceptada
Khalid Mahmood
el 29 de Mayo de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Image Data Workflows en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!