필터 지우기
필터 지우기

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 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