Draw an outline within an image

Hi,
I've got an image up in MATLAB, ~ 50 x 50 grid cells, and would like to draw a (black) outline around a small box of pixels within the image. I don't want to shade them or colour them in, just draw an outline around them.
Thanks.

回答 (2 件)

Walter Roberson
Walter Roberson 2011 年 3 月 27 日

0 投票

rectangle() can be used for that. Or line(), or patch() .
David Young
David Young 2011 年 3 月 27 日

0 投票

You might find the techniques described in this blog entry helpful.

カテゴリ

ヘルプ センター および File ExchangeImages についてさらに検索

タグ

質問済み:

2011 年 3 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by