How to create a black image using MATLAB?

Hello!
I have an image and I need a black image with same dimensions as the first one. The second image needs to be all black. Please, is it possible to create a black image specifying its dimensions or to paint the image I have with black color?
Thanks for the help!

2 comentarios

B.k Sumedha
B.k Sumedha el 27 de Mayo de 2015
Have u tried with im2bw function..
Ana Olivia
Ana Olivia el 27 de Mayo de 2015
Thank you! I tried to use this function, but it didn`t work. I think I put the wrong value to modify everything to black.

Iniciar sesión para comentar.

 Respuesta aceptada

Walter Roberson
Walter Roberson el 27 de Mayo de 2015
BlackImage = 0 * OriginalImage;

Más respuestas (0)

Categorías

Más información sobre Image Processing Toolbox en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 27 de Mayo de 2015

Comentada:

el 27 de Mayo de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by