File Exchange

image thumbnail

mrgb2gray

version 1.0.0.0 (2.2 KB) by Kristian Sveen
Function to convert an RGB image to a grayscale image.

3 Downloads

Updated 28 Sep 2006

View License

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.

Cite As

Kristian Sveen (2021). mrgb2gray (https://www.mathworks.com/matlabcentral/fileexchange/5855-mrgb2gray), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

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.

Jean-Christophe Cazenave

Susanne Hansen

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

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: Bipolar Colormap

Community Treasure Hunt

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

Start Hunting!