Fast autofocusing based on pixel difference with the Tanimoto coefficient between images.