rgb2gray
Image Processing
Convert an RGB or RGBA image to grayscale using luminance weighting.
Syntax
gray = rgb2gray(img)
Examples
gray = rgb2gray(imread("/cat.jpg"))▶ RunSee Also
Try SimLab — Free MATLAB® Alternative
466 functions. Runs in your browser. No install.
Open SimLab