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 个评论

Have u tried with im2bw function..
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.

请先登录,再进行评论。

 采纳的回答

更多回答(0 个)

类别

在 帮助中心 和 File 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