Image box or rectangle color

조회 수: 3 (최근 30일)
Nasir Ali
Nasir Ali 2021년 5월 29일
댓글: Khalid Mahmood 2021년 5월 29일
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