gray2rgb

Turns an m by n matrix into an m x n x 3 matrix.
6.6K 次下载
更新时间 2010/7/2

查看许可证

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.

引用格式

Gabriel Frangakis (2024). gray2rgb (https://www.mathworks.com/matlabcentral/fileexchange/28111-gray2rgb), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2010a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Modify Image Colors 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0