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.
Kristian Sveen (2021). mrgb2gray (https://www.mathworks.com/matlabcentral/fileexchange/5855-mrgb2gray), MATLAB Central File Exchange. Retrieved .
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.
Just what i have been looking for :-)
Inspired: Bipolar Colormap
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!