I’m trying to substract 1 image from another, somewhat like this:
Image<Gray, float> result, secondImage;
Image<Gray, byte> firstImage;
result = firstImage - secondImage;
But it gives an error
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>'
Maybe i need to convert firstImage into Image<Gray, float> type. But I don’t know how to do it.
To quote from the documentation:
So, in your case, you could use