gray2rgb
Version 1.0.0.0 (1.1 KB) by
Gabriel Frangakis
Turns an m by n matrix into an m x n x 3 matrix.
This just makes a grayscale image, with values ranging from 0 to 255, into a RGB truecolor image with values ranging from 0 to 1 in each of the 3 colors. I wrote this so that I could outline the objects in a grayscale image with color borders.
Cite As
Gabriel Frangakis (2024). gray2rgb (https://www.mathworks.com/matlabcentral/fileexchange/28111-gray2rgb), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2010a
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
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 |