Method for Focus Control
First Claim
1. A method of focusing an optical system, comprising:
- (a) generating a plurality of digital images each obtained with a different focus setting of the optical system within a desired focusing range;
(b) analysing the digital images to generate for each image a score (S) by comparing first groups of pixels chosen from the image and having randomly chosen positional relationships with respect to one another with randomly positioned second groups chosen from the image such that the pixels of each second group have the same respective positional relationships with respect to one another as the pixels of the first group with which it is compared have to one another, the score (S) being a function of the number of mismatches obtained with said comparisons;
choosing that focus setting that corresponds to a score indicative of the largest number of mismatches.
1 Assignment
0 Petitions
Accused Products
Abstract
A camera or other optical system is focused by generating a plurality of digital images each obtained with a different focus setting of the optical system. These images are analysed to generate for each image a score (S) by comparing first groups of pixels chosen from the image with second groups chosen from the image such that the pixels of each second group have same respective positional relationships with respect to one another as the pixels of the first group with which it is compared have to one another, the score (S) being a function of the number of matches obtained with said comparisons. The focus setting that gives the score corresponding to the largest number of matches is chosen.
41 Citations
2 Claims
-
1. A method of focusing an optical system, comprising:
-
(a) generating a plurality of digital images each obtained with a different focus setting of the optical system within a desired focusing range; (b) analysing the digital images to generate for each image a score (S) by comparing first groups of pixels chosen from the image and having randomly chosen positional relationships with respect to one another with randomly positioned second groups chosen from the image such that the pixels of each second group have the same respective positional relationships with respect to one another as the pixels of the first group with which it is compared have to one another, the score (S) being a function of the number of mismatches obtained with said comparisons; choosing that focus setting that corresponds to a score indicative of the largest number of mismatches. - View Dependent Claims (2)
storing each image as an array of pixels, each pixel having a value; selecting test pixels from the array, for each test pixel, selecting one or more neighbour groups of pixels neighbouring the test pixel; selecting comparison pixels from the array; identifying a group of pixels neighbouring a selected comparison pixel having the same respective positional relationships to the comparison pixel as a selected neighbour group of pixels has to the test pixel; and comparing the values of the selected neighbour group with the values of the identified group in accordance with a predetermined match criterion, and generating the score for the image, in dependence upon the number of comparisons for which the comparison results in a mismatch.
-
Specification