Image edge to black

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

1 Commento

Jan
Jan il 21 Ago 2012
Modificato: Jan il 21 Ago 2012
Currently the best answer is:
Yes.
The algorithm is such trivial that I'm convinced, that somebody did this already.

Accedi per commentare.

 Risposta accettata

Image Analyst
Image Analyst il 21 Ago 2012

0 voti

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

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by