Witam, porównuję obraz w następujący sposób
pictureBox1.Image = (Bitmap)eventArgs.Frame.Clone();// clone the bitmap
Bitmap obrazzKlatek = (Bitmap)eventArgs.Frame.Clone();
if (porownywanie == true)
{
ExhaustiveTemplateMatching tm = new ExhaustiveTemplateMatching(0);
// compare two images
TemplateMatch[] matchings = tm.ProcessImage(obrazWzorcowy, obrazzKlatek);
// check similarity level
}
i dostaje wyjątek taki
An exception of type 'AForge.Imaging.UnsupportedImageFormatException' occurred in AForge.Imaging.dll but was not handled in user code
Additional information: Unsupported pixel format of the source or template image.
Nie mam pojęcia jak go naprawić