Effacer les filtres
Effacer les filtres

How to create a black image using MATLAB?

7 vues (au cours des 30 derniers jours)
Ana Olivia
Ana Olivia le 27 Mai 2015
Commenté : Ana Olivia le 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 commentaires
B.k Sumedha
B.k Sumedha le 27 Mai 2015
Have u tried with im2bw function..
Ana Olivia
Ana Olivia le 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.

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 27 Mai 2015
BlackImage = 0 * OriginalImage;
  1 commentaire
Ana Olivia
Ana Olivia le 27 Mai 2015
It helped me a lot! Thank you very much!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by