如何利用matlab将rgb图转为灰度图

2025-03-07 11:08:34
推荐回答(1个)
回答1:

RGB2GRAY Convert RGB image or colormap to grayscale.
    RGB2GRAY converts RGB images to grayscale by eliminating the
    hue and saturation information while retaining the
    luminance.
 
    I = RGB2GRAY(RGB) converts the truecolor image RGB to the
    grayscale intensity image I.