matlab 中怎样讲一个真彩色图像变为灰度图像
展开全部
rgb2gray Convert an RGB image or colormap to grayscale
转换RGB图像或颜色映像表为灰度图像.
Syntax:
I = rgb2gray(RGB)
newmap = rgb2gray(map)
Description:
rgb2gray converts RGB images to grayscale by eliminating the hue and saturation information while retaining the luminance.
I = rgb2gray(RGB) converts the true-color image RGB to the grayscale intensity image I.
newmap = rgb2gray(map) returns a grayscale colormap equivalent to map.
详细请查阅 matlab中关于rgb2gray的help。
转换RGB图像或颜色映像表为灰度图像.
Syntax:
I = rgb2gray(RGB)
newmap = rgb2gray(map)
Description:
rgb2gray converts RGB images to grayscale by eliminating the hue and saturation information while retaining the luminance.
I = rgb2gray(RGB) converts the true-color image RGB to the grayscale intensity image I.
newmap = rgb2gray(map) returns a grayscale colormap equivalent to map.
详细请查阅 matlab中关于rgb2gray的help。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询