title: Compare features in two images in OpenCV vc++
body: <p>I have to compare two images in OpenCV, both are black and white and have white edges, I would like to get a sort of percentage result by comparing these two images. What should i do?</p>
  
  <p><img src="https://i.stack.imgur.com/XKqCO.png" alt="enter image description here"></p>
  
  <p>1st image and</p>
  
  <p><img src="https://i.stack.imgur.com/Phrtp.png" alt="enter image description here"></p>
  
  <p>2nd image</p>
  
  <p>Can someone advice on how to perform this operation?</p>