how to convert black and white image into a colour image using matlab functions?

13 ビュー (過去 30 日間)
sandhya
sandhya 2011 年 3 月 21 日
回答済み: PROSANJEET SARKAR 2020 年 3 月 27 日
how to convert black and white image into a colour image using matlab functions?

回答 (2 件)

Walter Roberson
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
Aya Ahmed 2020 年 2 月 16 日
How to convert colour image into black and white using matlab functions? (inverse image)??
Image Analyst
Image Analyst 2020 年 2 月 16 日
grayScaleImage = rgb2gray(255 - rgbImage);

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


PROSANJEET SARKAR
PROSANJEET SARKAR 2020 年 3 月 27 日
bwImg=im2bw(image_name,thershold value);
above function you can convert colour image to black and white image

カテゴリ

Help Center および File ExchangeWhite についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by