title: compare two images and extract the difference using emgu cv library
body: <p>i want to compare two images like image1.png and image2.png.both the images look pretty same with some difference. so i want to get the difference and want to apply the difference on first image image1.png. i searched lot to get similar kind of code of this library but found none. </p>
  
  <p>after lots of search i got bit similar kind of things which i am looking for in java code. here is the url <a href="http://mindmeat.blogspot.in/2008/07/java-image-comparison.html" rel="nofollow">http://mindmeat.blogspot.in/2008/07/java-image-comparison.html</a></p>
  
  <p>please go to the url and there you can see the code generate 3rd image with difference but my requirement is bit different. i do not want to generate 3rd image rather i want to apply the difference on the 1st image image1.png. some one told me it can be done very easily with  emgu cv library. so i search for similar code based on  emgu cv library but found no. it will be great help me anyone can guide me with sample code using  emgu cv library.</p>
  
  <p>thanks</p>