CN1560697A - Automatic quick focusing method on high exponent moment - Google Patents

Automatic quick focusing method on high exponent moment Download PDF

Info

Publication number
CN1560697A
CN1560697A CNA200410015587XA CN200410015587A CN1560697A CN 1560697 A CN1560697 A CN 1560697A CN A200410015587X A CNA200410015587X A CN A200410015587XA CN 200410015587 A CN200410015587 A CN 200410015587A CN 1560697 A CN1560697 A CN 1560697A
Authority
CN
China
Prior art keywords
camera lens
image
distance
focusing
camera
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CNA200410015587XA
Other languages
Chinese (zh)
Inventor
刘树凤
杜明辉
李慧芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
South China University of Technology SCUT
Original Assignee
South China University of Technology SCUT
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by South China University of Technology SCUT filed Critical South China University of Technology SCUT
Priority to CNA200410015587XA priority Critical patent/CN1560697A/en
Publication of CN1560697A publication Critical patent/CN1560697A/en
Pending legal-status Critical Current

Links

Landscapes

  • Automatic Focus Adjustment (AREA)
  • Studio Devices (AREA)
  • Focusing (AREA)

Abstract

The invention provides an automatic quick focusing method for high order moment, the relation between image f(x, y) in the camera, the object g(x, y) and the point expanding function of the imaging system of the camera h(x, y) are expressed into formula 1, thus it can shoot three frames of image from three different positions, thus the focusing position of the digital camera can be determined according to the three frames of images.

Description

Automatically quick focus method based on High Order Moment
Technical field
The invention belongs to technical field of imaging, particularly a kind of automatically quick focus method based on High Order Moment.
Background technology
The principle of camera auto-focus is: clap when defocusing image clap when focusing on the contained high fdrequency component of image lack, in other words be that the high fdrequency component that focusedimage comprised is more than out-of-focus image, and it is big more to defocus degree, and the high fdrequency component that image comprised is few more so.So can judge whether image focuses on according to the contained high fdrequency component of image, in the middle of a series of images that is obtained in the focusing process, the image that high fdrequency component is maximum is a focusedimage, at this moment digital camera correctly focuses on.
The auto focusing method of traditional digital camera generally adopts mountain-climbing servo-actuated method, i.e. HCS (Hill-climbing search) algorithm.The HCS algorithm comprises three patterns: (1) search pattern; (2) calibration mode; (3) look around pattern.Search pattern determines the moving direction of initial camera lens and finds the maximal value of focusing operator; Calibration mode and the pattern of looking around are used for judging whether the focusing operator maximum of points that finds at search pattern is focus point, whether the focusing operator maximal value of promptly judging in search pattern to be found is global maximum, that is to say a process of eliminating local maximum.In these three patterns, can adopt some focusing operators to calculate optimal value in this pattern.Focusing operator commonly used has: Tenengrad operator, correction Laplce summation SML (Sum-Modified-Laplacian) operator, modulus deviation summation SMD (Sum-Modulus-Difference) operator, brightness change VAR (Variance) operator and FSWM (Frequency-Selective-Weighted-Median) filter operator.
The thought of Tenenbaum operator is: the gradient of each point of computed image, then simply with all gradient magnitude additions, that width of cloth image of gradient magnitude maximum is exactly a focusedimage.
The thought of SML operator is: the absolute value of the secondary deviation of each pixel of computed image is exactly a focusedimage with these absolute value summations and that maximum width of cloth image then.
The thought of SMD operator is: calculate the summation of the single order gray-scale deviation of the horizontal direction of two adjacent pixels and vertical direction, then with the summation addition of this both direction, that width of cloth image that obtain at last and maximum is exactly a focusedimage.
The thought of VAR operator is: the summation of the difference of each pixel gray scale of computed image and image averaging gray-scale value, with these and addition, that width of cloth image that obtain at last and maximum is exactly a focusedimage then.
The thought of FSWM filter operator is: to piece image along continuous straight runs and vertical direction filtering, obtain filtering result's quadratic sum, the quadratic sum maximum be exactly focusedimage.
The auto focusing method of this present practical application has several shortcomings: the one, because the optical imaging system of digital camera is a very complicated system, be subjected to light, camera lens is not normal, the influence of diffraction etc., the point spread function of each digital camera all is different in different practical applications, can't express with a very clear and definite expression formula, can only know digital camera by inference when being in defocus condition according to the principle of its optical imagery, the imaging system of digital camera is a low-pass filter, but the concrete parameter of this low-pass filter is unknowable, can't express with the expression formula of a clear and definite low-pass filter, can only suppose that in actual applications it is the 2-d gaussian filters device of a low pass.So in actual applications, can not find a kind of focusing operator can express the state of image completely, therefore utilize focusing operator to analyze in the self-focusing process that captured image carries out digital camera, the focusing operator value not only has a global maximum point, also has a lot of local maximums, its curve is not dull a rising or the dull smooth curve that descends, and the existence of local maximum has increased very big difficulty for the automatic focus of digital camera.Require than higher process because the automatic focus process of digital camera is real-time, general using HCS algorithm finds a maximum of points promptly to think focus point, thereby and can be in each position of camera all photographic images carry out global search.If do not carry out global search, can not find a kind of algorithm from a series of data, to find out global maximum thereby fully local maximum is filtered out with a lot of local maximums.Even so adopt new HCS optimizing searching algorithm can not overcome the problem of local maximum fully, therefore adopt existing auto focusing method to carry out in the automatic focus process of digital camera, inevitably mistake can be introduced, assurance can not be reached under any circumstance, can both correctly focus at every turn.
Second shortcoming of existing digital camera auto focusing method is: the method that the employing of digital camera auto focusing method is adjusted lens location according to the comparative result of focusing operator value realizes focusing on, if the position that focuses in the initial position of camera lens is distant, just need so on the one hand to take multiple image, can increase the time of Flame Image Process like this; On the other hand, when focal position is distant in lens location, it is bigger to defocus degree, the local maximum point of focusing operator value is a lot of so, when utilizing the calibration mode of HCS algorithm and looking around the process of pattern elimination local maximum, camera lens need move forward and backward photographic images, so also can increase Flame Image Process time, increased the probability of wrong focusing.Having increased the Flame Image Process time just is equivalent to increase the self-focusing time of digital camera, can realize self-focusing words in a short period of time if require digital camera, because existing auto focusing method will utilize a lot of two field pictures, so just increased requirement, increased logarithmic code camera processing chip and carry out the requirement of image-capable image capturing system.
Summary of the invention
The objective of the invention is to overcome the deficiency of existing focus method, provide a kind of new, be different from the higher accuracy of having of existing auto focusing method, shorter focal time fully, and the focus method fast automatically that has great practical value based on High Order Moment.
In order to reach above-mentioned goal of the invention, the technical solution used in the present invention is as follows:
The present invention adopts the 2-d gaussian filters device h ( x , y ) = 1 2 πσ 2 exp ( - x 2 + y 2 2 σ 2 ) The point spread function of representing the imaging system of camera, so according to the characteristic of High Order Moment, can be with magazine image f (x, y) with the own g (x of object that is taken, y) and the point spread function h of the imaging system of digital camera (x, between y) concern f (x, y)=g (x, y) (x, y) derivation draws second order centre distance to * h
u pq ( f ) = Σ k = 0 p Σ l = 0 q p k q l u k , l ( h ) u p - k , q - l ( g )
So, by take three secondary different images at diverse location, just can determine the position of focusing,
v 0 = ( v 3 + v 2 ) u 20 ( f 1 ) + ( v 1 + v 3 ) u 20 ( f 2 ) + ( v 2 + v 1 ) u 20 ( f 3 ) u 20 ( f 1 ) + u 20 ( f 2 ) + u 20 ( f 3 )
Wherein,
v 0For digital camera lens is in when focusing on camera lens apart from the distance of imaging plane,
v 1Camera lens is apart from the distance of imaging plane when being in position 1 for digital camera lens,
v 2Camera lens is apart from the distance of imaging plane when being in position 2 for digital camera lens,
v 3Camera lens is apart from the distance of imaging plane when being in position 3 for digital camera lens,
u 20 (f1)For digital camera lens is in the second order centre distance of position 1 captured image,
u 20 (f2)For digital camera lens is in the second order centre distance of position 2 captured images,
u 20 (f3)Be in the second order centre distance of position 3 captured images for digital camera lens.
The invention has the beneficial effects as follows: have higher focusing accuracy than conventional auto focusing method, and focus on required time also still less.
Embodiment
The present invention is described further below by specific embodiment.
Respectively five kinds of different material objects are focused on by five kinds of different focus methods and to contrast, thereby a kind of superiority of focus method fast automatically based on High Order Moment provided by the invention is described.First kind is conventional HCS algorithm; Calculate the position of focus point by provided by the invention based on the automatically fast focus method of High Order Moment for second kind, use the search pattern of FSWM operator, HCS algorithm then; The third calculates the position of focus point by provided by the invention based on the automatically fast focus method of High Order Moment, uses three patterns of FSWM operator, HCS algorithm then; Calculate the position of focus point by provided by the invention based on the automatically fast focus method of High Order Moment for the 4th kind, use the search pattern of VAR operator, HCS algorithm then; Calculate the position of focus point by provided by the invention based on the automatically fast focus method of High Order Moment for the 5th kind, use three patterns of VAR operator, HCS algorithm then.
The result of five kinds of focus methods contrasts as shown in the table:
The analysis of the accuracy of the different auto focusing methods of table 1
Image sequence The focal position Revise standard deviation MSD (modified standard deviations)
Algorithm 1 Algorithm 2 Algorithm 3 Algorithm 4 Algorithm 5
??Books ??28 ?2.02 ?0.78 ?0.78 ?1.20 ?1.12
??Bag ??34 ?2.56 ?0.76 ?0.57 ?1.08 ?0.98
??Flowers ??36 ?2.03 ?0.54 ?0.46 ?1.14 ?0.85
??People ??41 ?2.38 ?1.09 ?0.81 ?1.46 ?1.23
??Lamp ??21 ?1.89 ?0.82 ?0.69 ?0.98 ?0.76
The analysis of the different auto focusing method required times of table 2
Image sequence The focal position Focus on required time (unit: second)
Algorithm 1 Algorithm 2 Algorithm 3 Algorithm 4 Algorithm 5
??Books ?28 ?0.43 ?0.29 ?0.33 ?0.18 ?0.25
??Bag ?34 ?0.65 ?0.31 ?0.38 ?0.26 ?0.34
??Flowers ?30 ?0.58 ?0.36 ?0.42 ?0.35 ?0.40
??People ?41 ?0.51 ?0.32 ?0.41 ?0.27 ?0.41
??Lamp ?22 ?0.62 ?0.36 ?0.39 ?0.31 ?0.38
Revise being calculated as follows of standard deviation MSD in the table 1:
MSD = Σ i = 1 N ( m p - m a ) N

Claims (3)

1, a kind of automatically quick focus method based on High Order Moment, image f (x, y) with the g (x of object own, y) and the point spread function h of the imaging system of camera (x, y) pass between be f (x, y)=g (x, y) * h (x, y), it is characterized in that described focus method by the different image of three frames at different position shot object itself, described three two field pictures have been determined the position that focuses on; Concrete focusing formula is:
v 0 = ( v 3 + v 2 ) u 20 ( f 1 ) + ( v 1 + v 3 ) u 20 ( f 2 ) + ( v 2 + v 1 ) u 20 ( f 3 ) u 20 ( f 1 ) + u 20 ( f 2 ) + u 20 ( f 3 )
Wherein, v 0Camera lens is apart from the distance of imaging plane, v when being in focusing for camera lens 1Camera lens is apart from the distance of imaging plane, v when being in position 1 for camera lens 2Camera lens is apart from the distance of imaging plane, v when being in position 2 for camera lens 3Camera lens is apart from the distance of imaging plane when being in position 3 for camera lens, For camera lens is in the second order centre distance of position 1 captured image,
Figure A2004100155870002C3
For camera lens is in the second order centre distance of position 2 captured images, Be in the second order centre distance of position 3 captured images for camera lens.
2, the automatically fast focus method based on High Order Moment according to claim 1 is characterized in that (x y) adopts the 2-d gaussian filters device for the point spread function h of the imaging system of described camera h ( x , y ) = 1 2 πσ 2 exp ( - x 2 + y 2 2 σ 2 ) Represent that wherein σ is a coefficient of diffusion.
3, the automatically quick focus method based on High Order Moment according to claim 1 and 2 is characterized in that described second order centre distance is
u pq ( f ) = Σ k = 0 p Σ l = 0 q p k q l u k , l ( h ) u p - k , q - l ( g ) .
CNA200410015587XA 2004-03-08 2004-03-08 Automatic quick focusing method on high exponent moment Pending CN1560697A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA200410015587XA CN1560697A (en) 2004-03-08 2004-03-08 Automatic quick focusing method on high exponent moment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA200410015587XA CN1560697A (en) 2004-03-08 2004-03-08 Automatic quick focusing method on high exponent moment

Publications (1)

Publication Number Publication Date
CN1560697A true CN1560697A (en) 2005-01-05

Family

ID=34440428

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA200410015587XA Pending CN1560697A (en) 2004-03-08 2004-03-08 Automatic quick focusing method on high exponent moment

Country Status (1)

Country Link
CN (1) CN1560697A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101852970A (en) * 2010-05-05 2010-10-06 浙江大学 Automatic focusing method for camera under imaging viewing field scanning state
CN104102069A (en) * 2013-04-11 2014-10-15 展讯通信(上海)有限公司 Focusing method and device of imaging system, and imaging system
CN104459940A (en) * 2013-09-25 2015-03-25 北京环境特性研究所 Quick self-adaptation automatic focusing method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101852970A (en) * 2010-05-05 2010-10-06 浙江大学 Automatic focusing method for camera under imaging viewing field scanning state
CN101852970B (en) * 2010-05-05 2011-07-20 浙江大学 Automatic focusing method for camera under imaging viewing field scanning state
CN104102069A (en) * 2013-04-11 2014-10-15 展讯通信(上海)有限公司 Focusing method and device of imaging system, and imaging system
CN104102069B (en) * 2013-04-11 2017-03-15 展讯通信(上海)有限公司 A kind of focusing method of imaging system and device, imaging system
CN104459940A (en) * 2013-09-25 2015-03-25 北京环境特性研究所 Quick self-adaptation automatic focusing method
CN104459940B (en) * 2013-09-25 2017-07-14 北京环境特性研究所 A kind of quick self-adapted auto focusing method

Similar Documents

Publication Publication Date Title
JP5068214B2 (en) Apparatus and method for automatic focusing of an image sensor
CN104637064A (en) Defocus blurred image definition detection method based on edge intensity weight
KR101417169B1 (en) Focus assist system and method
CN1184502C (en) Process for automatic focusing
CN1877438A (en) Self-adaptive automatic focusing method used in digital camera
CN105592258B (en) Auto focusing method and device
US9065999B2 (en) Method and apparatus for evaluating sharpness of image
US20140022443A1 (en) Auto-focus image system
CN113743147B (en) Anti-fuzzy two-dimensional code image based on fuzzy imaging mechanism and blind restoration method thereof
CN111505793A (en) Microscopic operation automatic focusing method and system based on variance and global search strategy
CN1560697A (en) Automatic quick focusing method on high exponent moment
Bahy Autofocus microscope system based on blur measurement approach
EP2719162B1 (en) Auto-focus image system
JP3058781B2 (en) Focusing point detection method
CN114967093B (en) Automatic focusing method and system based on microscopic hyperspectral imaging platform
CN112817118B (en) Infrared automatic focusing fast searching method
CN106981065A (en) A kind of image Absolute Central Moment innovatory algorithm based on exposure compensating
CN114785953A (en) SFR-based camera automatic focusing method and device
CN1940699A (en) Camera having automatic lens system
CN114384681A (en) Rapid and accurate automatic focusing method and system for microscope, computer equipment and medium
US9658444B2 (en) Autofocus system and autofocus method for focusing on a surface
CN107622265A (en) Image-recognizing method and Atomatic focusing method
CN105243660A (en) Quality evaluation method of light source scene-containing automatic focusing image
TWI815584B (en) Lens focusing method and system performing the same
CN117970595B (en) Microscope automatic focusing method based on deep learning and image processing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication