Code covered by the BSD License  

Highlights from
gray2rgb

Be the first to rate this file! 81 Downloads (last 30 days) File Size: 1.1 KB File ID: #28111

gray2rgb

by

 

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

| Watch this File

File Information
Description

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.

MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us