【发布时间】:2021-04-22 11:21:15
【问题描述】:
我正在使用 C# Emgu CV 将 256 色图像转换为 16 色图像。
我可以读取图像数据。
Image<Gray, Byte> img = new Image<Gray, Byte>("test01.bmp");
我可以找到转换函数。
Image<Gray, Byte> img2 = img.Convert(Gray, Byte);
这里,第二个参数是图像的深度。我想将它设置为 4。但是参数的可用值如下所示。
Byte, SByte, Single, double, UInt16, Int16 or Int32
我该如何解决这个问题?
【问题讨论】:
标签: c# .net image-processing emgucv