Transform a Gray Image to Pseudo-color Image
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 (2025). 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 .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > Images > Modify Image Colors >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |