Image edge to black

1 visualización (últimos 30 días)
hendra prima
hendra prima el 21 de Ag. de 2012
Hi,
Anyone develop algorithm to change the outer pixel(edge) become full black ? like a frame.
Thanks
  1 comentario
Jan
Jan el 21 de Ag. de 2012
Editada: Jan el 21 de Ag. de 2012
Currently the best answer is:
Yes.
The algorithm is such trivial that I'm convinced, that somebody did this already.

Iniciar sesión para comentar.

Respuesta aceptada

Image Analyst
Image Analyst el 21 de Ag. de 2012
How about
imageArray(1,:) = 0;
imageArray(end,:) = 0;
imageArray(:,1) = 0;
imageArray(:,end) = 0;

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by