AccessViolation when using LockBits

I would like to compare the similar images more faster using LockBits method as follows using System; using System.Drawing; using System.Drawing.Imaging; using System.Runtime.InteropServices; pub...