Jump to content

  • Log In with Google      Sign In   
  • Create Account


phyitbos

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

#4989022 Speedy Image Likeness Comparison

Posted by phyitbos 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.

http://stackoverflow.com/questions/1563038/fast-work-with-bitmaps-in-c-sharp

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)?


PARTNERS