Going to read this in depth. I have been on and off trying to find a way to distinguish between in focus, motion blur (camera shake) and out of focus. Motion blur is surprisingly tricky to distinguish using a computer from the others. I can glance at a 2D Fft plot and tell, but the computer - not yet.