Image box or rectangle color

조회 수: 1(최근 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
Khalid Mahmood
Khalid Mahmood 2021년 5월 29일
I will try best to help you

댓글을 달려면 로그인하십시오.

추가 답변(0개)

범주

Find more on Convert Image Type in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by