【发布时间】:2019-10-09 04:58:39
【问题描述】:
我正在使用 emgucv。
我想做 hsl 过滤。
颜色范围是 0 到 359。
我正在过滤黄色,所以我正在寻找从 30 到 60 的色调。
我加载现有位图并将其加载为 hsv 图像:
var img = new Image<Hsv, int>(@"D:\yellow.jpg");
当我运行它时,我得到:
System.NotSupportedException: 'There is an error converting Emgu.CV.Structure.Bgr to Emgu.CV.Structure.Hsv: Requested value 'Bgr2Bgr' was not found.'
我可以这样做:
var img = new Image<Hsv, byte>(@"D:\yellow.jpg");
加载正常,但字节值最多只能达到 255。
我还能尝试什么?我是否必须将每个“像素”数据乘以值 * 255/359?
【问题讨论】:
标签: c# image-processing colors emgucv