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 Center および File ExchangeImage Data Workflows についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by