フィルターのクリア

How to create a black image using MATLAB?

7 ビュー (過去 30 日間)
Ana Olivia
Ana Olivia 2015 年 5 月 27 日
コメント済み: Ana Olivia 2015 年 5 月 27 日
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 件のコメント
B.k Sumedha
B.k Sumedha 2015 年 5 月 27 日
Have u tried with im2bw function..
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;
  1 件のコメント
Ana Olivia
Ana Olivia 2015 年 5 月 27 日
It helped me a lot! Thank you very much!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by