Autofocus system and method using focus measure gradient
First Claim
1. A method for automatically focusing an image detector on an object, the method comprising:
- acquiring a first image of the object at a first focus level;
applying a focus-measure function to the first image to obtain a first focus measure;
moving from the first focus level towards a second focus level at a first focus-level adjustment velocity;
calculating an amount of time to wait before acquiring a second image of the object at the second focus level;
applying the focus-measure function to the second image to obtain a second focus measure;
comparing the first and second focus measures; and
moving from the second focus level to a third focus level at a second focus-level-adjustment velocity based on the comparing,wherein said comparing comprises;
subtracting the second focus measure from the first focus measure and dividing the result by the change in focus level, andmultiplying by a value representing the direction and magnitude of travel.
1 Assignment
0 Petitions
Accused Products
Abstract
Described are autofocusing algorithms and system implementations for machine inspection applications. The disclosed algorithms depend neither on the type of image (visual, infrared, spectrometric, scanning, etc.) nor on the type of image detector. Disclosed image filtering techniques, image focus measure functions and adaptive velocity control methods can be used in computer-based inspection systems for many different types of cameras and detectors as well as for a variety of magnification levels. The proposed autofocusing system can utilize the existing imaging hardware of the inspection system and does not require any additional components.
45 Citations
2 Claims
-
1. A method for automatically focusing an image detector on an object, the method comprising:
-
acquiring a first image of the object at a first focus level; applying a focus-measure function to the first image to obtain a first focus measure; moving from the first focus level towards a second focus level at a first focus-level adjustment velocity; calculating an amount of time to wait before acquiring a second image of the object at the second focus level; applying the focus-measure function to the second image to obtain a second focus measure; comparing the first and second focus measures; and moving from the second focus level to a third focus level at a second focus-level-adjustment velocity based on the comparing, wherein said comparing comprises; subtracting the second focus measure from the first focus measure and dividing the result by the change in focus level, and multiplying by a value representing the direction and magnitude of travel.
-
-
2. A method for automatically focusing an image detector on an object, the method comprising:
-
acquiring a first image of the object at a first focus level; applying a focus-measure function to the first image to obtain a first focus measure; moving from the first focus level towards a second focus level at a first focus-level adjustment velocity; calculating an amount of time to wait before acquiring a second image of the object at the second focus level; applying the focus-measure function to the second image to obtain a second focus measure; comparing the first and second focus measures; and moving from the second focus level to a third focus level at a second focus-level-adjustment velocity based on the comparing, wherein said comparing comprises; subtracting the second focus measure from the first focus measure and dividing the result by the product of the first focus level adjustment velocity and a time measure representing the time between acquiring the first image and acquiring the second image, and multiplying by a value to adjust magnitude.
-
Specification