im2gray matlab_compat · scripts/matlab_compat/wave5/im2gray.m IM2GRAY RGB to grayscale (MATLAB images/.m shape). Thin M over rgb2gray / luminance weights when needed.