Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 30 Sep 2012
Offline Last Active Oct 15 2012 11:36 PM

#4989022 Speedy Image Likeness Comparison

Posted by on 11 October 2012 - 02:26 AM

Wow, yes apparently GetPixel is incredibly slow. I don't understand the idea behind image locking, but I found this post that explains how to get access to the bitmaps byte array.


That cut the algorithms time down to 11 ms using the Marshal'ing method. To subtract the RGB values from each other just (aR+aG+aB)-(bR+bG+bB)?