Image edge to black

Hi,
Anyone develop algorithm to change the outer pixel(edge) become full black ? like a frame.
Thanks

1 件のコメント

Jan
Jan 2012 年 8 月 21 日
編集済み: Jan 2012 年 8 月 21 日
Currently the best answer is:
Yes.
The algorithm is such trivial that I'm convinced, that somebody did this already.

サインインしてコメントする。

 採用された回答

Image Analyst
Image Analyst 2012 年 8 月 21 日

0 投票

How about
imageArray(1,:) = 0;
imageArray(end,:) = 0;
imageArray(:,1) = 0;
imageArray(:,end) = 0;

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by