File Exchange

image thumbnail

gray2rgb

version 1.0 (1.1 KB) by

Turns an m by n matrix into an m x n x 3 matrix.

18 Downloads

Updated

View License

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.

Comments and Ratings (0)

MATLAB Release
MATLAB 7.10 (R2010a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video