【发布时间】:2012-05-24 05:35:31
【问题描述】:
我正在尝试从另一张图片中减去 1 张图片,有点像这样:
Image<Gray, float> result, secondImage;
Image<Gray, byte> firstImage;
result = firstImage - secondImage;
但它给出了一个错误
Operator '-' cannot be applied to operands of type 'Emgu.CV.Image<Emgu.CV.Structure.Gray,byte>' and 'Emgu.CV.Image<Emgu.CV.Structure.Gray,float>'
也许我需要将 firstImage 转换为 Image<Gray, float> 类型。但我不知道该怎么做。
【问题讨论】: