永发信息网

matlab怎样看图像是彩色还是灰度

答案:2  悬赏:0  手机版
解决时间 2021-01-25 10:06
  • 提问者网友:趣果有间
  • 2021-01-25 02:56
matlab怎样看图像是彩色还是灰度
最佳答案
  • 五星知识达人网友:往事埋风中
  • 2021-01-25 04:33
看这幅图像的维数就可以啊,如果是二维矩阵,那肯定是灰度图像。不过有个函数isgray可以判断(isbw判断是否二值图)
全部回答
  • 1楼网友:行路难
  • 2021-01-25 05:41
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。
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯