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일

1 개 추천

BlackImage = 0 * OriginalImage;

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

태그

질문:

2015년 5월 27일

댓글:

2015년 5월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by