How to create a black image using MATLAB?

7 次查看(过去 30 天)
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 个评论
Ana Olivia
Ana Olivia 2015-5-27
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.

请先登录,再进行评论。

采纳的回答

Walter Roberson
Walter Roberson 2015-5-27
BlackImage = 0 * OriginalImage;

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by