0

How to convert the image with the following information: ColorType: truecolor Format: png bitDepth: 24

to a png grayscale image with bitdepth=8 in matlab ?

4

1 回答 1

0

从文档中imwrite

对于彩色图像,BitDepth 值是每个平面的位数

您要求 matlab 编写 3 个颜色通道,每个通道 8 位,结果为 24 位。如果要灰度,rgb2gray先用转成灰度,再写。

于 2015-03-17T16:29:40.273 回答