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?
댓글 수: 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개)
참고 항목
범주
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!