Code covered by the BSD License  

Highlights from
mrgb2gray

4.66667

4.7 | 3 ratings Rate this file 4 Downloads (last 30 days) File Size: 2.2 KB File ID: #5855

mrgb2gray

by Kristian Sveen

 

10 Sep 2004 (Updated 28 Sep 2006)

Function to convert an RGB image to a grayscale image.

| Watch this File

File Information
Description

Function to convert an RGB image to a grayscale image. Default behaviour is the same as MATLAB's (IP toolbox) RGB2GRAY, but MRGB2GRAY also has several other convertion schemes.

Acknowledgements
This submission has inspired the following:
Bipolar Colormap
MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
20 Mar 2006 Susanne Hansen

Super program.
Just what i have been looking for :-)

11 Jul 2006 Jean-Christophe Cazenave  
24 Sep 2006 Pedro Castro

I think there's a bug with your program. The 'mean' and 'min' methods return the same values , which might be happening because you're using the 'min' function in the 'mean' method.

Please login to add a comment or rating.
Updates
24 Aug 2006

A minor cleanup of the code - no functionality added or changed.

28 Sep 2006

Bug fix: Changed occurence of 'min' to 'mean'.

Tag Activity for this File
Tag Applied By Date/Time
grayscale rgb convertion rgb2gray Kristian Sveen 22 Oct 2008 07:31:19

Contact us at files@mathworks.com