how to convert black and white image into a colour image using matlab functions?
조회 수: 72 (최근 30일)
이전 댓글 표시
how to convert black and white image into a colour image using matlab functions?
댓글 수: 0
답변 (2개)
Walter Roberson
2011년 3월 21일
ColorImage = repmat(BWImage,[1,1,3]);
The result will be an RGB image whose colors are the same as the black and white image. If you want colors other than shades of grays, then you would need to alter the image.
Or perhaps the answer you are looking for is
colormap hot
or
colormap copper
or any of the other ready-made colormaps.
댓글 수: 2
Aya Ahmed
2020년 2월 16일
How to convert colour image into black and white using matlab functions? (inverse image)??
PROSANJEET SARKAR
2020년 3월 27일
bwImg=im2bw(image_name,thershold value);
above function you can convert colour image to black and white image
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Red에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!