How to compare two still images using emgu cv in c #

Searched on Stackoverflow.com and google. But I did not find a suitable method for this, except for the link shown below.

compare two images and extract the difference using emgu cv library

Please offer or give useful feedback so that I can get started with the application.

+4
source share
2 answers

Please see the Emgu CV API API documentation for methods of the Image class .

AbsDiff . Cmp, .

, , , Image.CountNonzero. () . ( ), width * height ( ).

+2

, :

image1 = image2 - image1;

- Emgu CV. , , Emgu CV lib.

Image<Gray, Byte> img1 = new Image<Gray, Byte>("C:\\image1.png"); 
Image<Gray, Byte> img2 = new Image<Gray, Byte>("C:\\image2.png"); 
Image<Gray, Byte> img3 = img2 - img1; //Here the difference is applied.

0

Source: https://habr.com/ru/post/1534609/


All Articles