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일

1 개 추천

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개)

카테고리

도움말 센터File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

제품

질문:

2021년 5월 29일

댓글:

2021년 5월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by