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

73 vues (au cours des 30 derniers jours)
sandhya
sandhya le 21 Mar 2011
how to convert black and white image into a colour image using matlab functions?

Réponses (2)

Walter Roberson
Walter Roberson le 21 Mar 2011
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 commentaires
Aya Ahmed
Aya Ahmed le 16 Fév 2020
How to convert colour image into black and white using matlab functions? (inverse image)??
Image Analyst
Image Analyst le 16 Fév 2020
grayScaleImage = rgb2gray(255 - rgbImage);

Connectez-vous pour commenter.


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

Catégories

En savoir plus sur Red dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by