File Exchange

image thumbnail

pseudocolor image processing

version 1.0 (28.2 KB) by

pseudocolor image processing



View License

the program is for pseudocolor image processing, it can convert a grayscale image to color. The color may not be accurate but quite useful for certain applications.

Comments and Ratings (8)


anitha (view profile)

i want to see the program

Deepak Kumar Rout

Cheggoju Naveen
this program was never designed to provide you near true colors, human eyes can distinguish only few shades of grey while they can distinguish thousands of colors, so this program has been only to provide pseudo colors not the real colors

Cheggoju Naveen

Cheggoju Naveen (view profile)

  • 1 file
  • 3.90909

This code is not valid for other images. We are unable to get at least near true color for the images.

Deepak Kumar Rout

you have to make small modification in my program
after the 'for' loops start make changes to the 'if' loops below and replace

if (y(i,j)>= 0) && (y(i,j)< 18)
        elseif (y(i,j)>= 18) && (y(i,j)< 36)

with your desired gray level values and you will get the desired result


lina (view profile)

Hi,how if I want to assign the grayimage into four different RGB color, let say respectively 0~63, 64~127, 128~191, 192~255 become blue(001),magenta(101),green(010),and red(100). thanks

Debaraj Rana

Debaraj Rana (view profile)

excellent,nice work

MATLAB Release
MATLAB 7.5 (R2007b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video