Want to read DOF from photo. For that I guess I would need to scan a line on image and see for each pixel if it is sharp or blurred. Any idea, algorithm outthere , how to do that ?