Image box or rectangle color
조회 수: 3 (최근 30일)
이전 댓글 표시
I want to drag a rectangle on image and set color of edges of rectangle. How to start?
댓글 수: 0
채택된 답변
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Data Workflows에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!