Image box or rectangle color

1 次查看(过去 30 天)
I want to drag a rectangle on image and set color of edges of rectangle. How to start?

采纳的回答

Khalid Mahmood
Khalid Mahmood 2021-5-29
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 个评论
Nasir Ali
Nasir Ali 2021-5-29
It worked. I will contact you on email for further help
Khalid Mahmood
Khalid Mahmood 2021-5-29
I will try best to help you

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Data Workflows 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by