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
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 (2026). Transform a Gray Image to Pseudo-color Image (https://in.mathworks.com/matlabcentral/fileexchange/36703-transform-a-gray-image-to-pseudo-color-image), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2009b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > Images > Modify Image Colors >
Find more on Modify Image Colors in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
