How to create a black image using MATLAB?

8 Ansichten (letzte 30 Tage)
Ana Olivia
Ana Olivia am 27 Mai 2015
Kommentiert: Ana Olivia am 27 Mai 2015
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 Kommentare
B.k Sumedha
B.k Sumedha am 27 Mai 2015
Have u tried with im2bw function..
Ana Olivia
Ana Olivia am 27 Mai 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.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 27 Mai 2015
BlackImage = 0 * OriginalImage;

Weitere Antworten (0)

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by