File Exchange

image thumbnail

Transform a Gray Image to Pseudo-color Image

version 1.0.0.0 (1.75 KB) by Xiangguo Li
this function is based on pre-defined color maps in Matlab

6 Downloads

Updated 15 May 2012

View License

function rgb = ImGray2Pseudocolor(gim, map, n)
% IMGRAY2PSEUDOCOLOR transform a gray image to pseudocolor image
% GIM is the input gray image data
% MAP is the colormap already defined in MATLAB, for example:
% 'Jet','HSV','Hot','Cool','Spring','Summer','Autumn','Winter','Gray',
% 'Bone','Copper','Pink','Lines'
% N specifies the size of the colormap
% rgb is the output COLOR image data
%

Cite As

Xiangguo Li (2020). Transform a Gray Image to Pseudo-color Image (https://www.mathworks.com/matlabcentral/fileexchange/36703-transform-a-gray-image-to-pseudo-color-image), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2009b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!