Image edge to black

1 view (last 30 days)
hendra prima
hendra prima on 21 Aug 2012
Hi,
Anyone develop algorithm to change the outer pixel(edge) become full black ? like a frame.
Thanks
  1 Comment
Jan
Jan on 21 Aug 2012
Edited: Jan on 21 Aug 2012
Currently the best answer is:
Yes.
The algorithm is such trivial that I'm convinced, that somebody did this already.

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 21 Aug 2012
How about
imageArray(1,:) = 0;
imageArray(end,:) = 0;
imageArray(:,1) = 0;
imageArray(:,end) = 0;

More Answers (0)

Community Treasure Hunt

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

Start Hunting!