CompareImages - Difference

From Emgu CV: OpenCV in .NET (C#, VB, C++ and more)
Jump to navigation Jump to search

Compare Image: Difference

Namespace

Emgu.CV

References

EMGU Reference
EMGU cv Reference
OpenCV Use Reference

Downloads

Source Code V1.0

Example

PENDING...

The following example shows the use of the AbsDiff() method within EMGU. The function of this method is to calculate the absolute difference between two images by subtracting one from the other and taking the absolute value.


Software [[File: |Name|300px]] ScreenShot


Pre-Requisites

The code provided should run straight out of the Emgu.Example folder (V2.4.2), extract it to this location. If the code fails to execute re-reference the EMGU libraries and include the required opencv dlls in the bin directory. Note that the project is set to build to the output path "..\..\..\bin\" you may wish to change this if you don't extract to the EMGU.Example folder.


EMGU Coding Level: While the coding is not advanced the rated level for this example is ___TBC____.

Beginer: This example is clearly laid out the code is basic with few methods. Only Basic knowledge of EMGU is Expected Intermediate: This is not designed as a beginners tutorial and general knowledge of the EMGU video capture example is expected. Advanced: This is not designed as a beginners tutorial and general knowledge of the EMGU video capture example is expected. While comments are provided in the code you may find some basic detail missed.



The Code

The code provided in this sample is basic there is little or no error checking. Support is available through the Forums but please try and examine the code before saying it doesn't work for you. The code is not optimised instead is better formatted to provided an understanding of the stages involved.

Decription....


The Code: Variables

What they do...

Variables


The Code: Methods

What a method does...

Method


Methods Available

Used

  • name()


Unused

  • name()


Bugs

  1. Numbered list If any