hii sir i need code for coloring the gray scale from source image to color the gray scale image ?pleasee do help me sir am not getting any proper code for that.

Answers (2)

Create a colormap, for example using one of the colormap functions like jet(), hsv(), winter(), hot(), lines(), etc. Then use ind2rgb()
cmap = hsv(256);
rgbImage = ind2rgb(grayImage, cmap);

This question is closed.

Asked:

on 31 Jan 2016

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!