Abstract:
A method for detecting a parfocality of a zoom-stereo microscope includes: acquiring four highest definitions corresponding to a plurality of images with a cooperation of four definition judging functions, acquiring a relatively clearest position according to the four highest definitions, comparing a definition in the relatively clearest position with a definition in a parfocal position to judge whether the relatively clearest position is the parfocal position, then adjusting a magnification of the zoom-stereo microscope to acquire the parfocal positions at a finite number of the discrete magnifications, and finally fitting a parfocal curve at the continuous magnifications. The method according to the present invention implements a parfocality detection of the stereo microscope automatically and effectively and increases a productivity, and has a high detecting precision. In addition, the method according to the present invention has a good robustness, so that users needn&#39;t intervene and adjust frequently.

Description:
BACKGROUND OF THE PRESENT INVENTION 
       [0001]    1. Field of Invention 
         [0002]    The present invention relates to a method for detecting a parfocality of a stereo microscope, and more particularly to a method for detecting a parfocality of a zoom-stereo microscope. 
         [0003]    2. Description of Related Arts 
         [0004]    Stereo microscopes play a more and more important and valuable role in contemporary world industry. The stereo microscope is capable of observing a stereo image of an object, to further realize functions of stereoscopic measurement, automatic operation, three-dimensional reconstruction, etc. Especially in stereoscopic microoperation, precision control can be realized by sending instructions to manipulators, wherein the instructions are acquired via high resolution stereoscopic microscopic image processing. A zoom-stereo microscope is able to provide images which are always clear at different magnifications, to customers, therefore a requirement for the zoom-stereo microscope is also getting more and more. For a microscope, at a certain magnification, if a clear target image is obtained via adjustment, the position of the objective lens at the moment is called a parfocal position. If the clear target image can not be obtained via adjustment, the parfocal position doesn&#39;t exist. For a zoom lens set, if the clear target image can be obtained via adjustment at a high magnification, the target image should keep clear in a course of zooming to a low magnification, which is called parfocality. However, in delivery of the zoom lens sets, one or more lenses may shift due to vibration, etc., which causes a decrement of the parfocality. It means that the target image can not keep clear in the course of zooming to a low magnification from a high magnification, even at some magnification, the focal distance is required to be adjusted to obtain the clear target image, even worse, the clear target image can not be obtained via adjusting the focal distance and the parfocal position doesn&#39;t exist. Therefore an effective detection of the parfocality of the zoom lens sets will increase a productivity and a product quality of the stereo microscope. 
         [0005]    Three problems should be solved in the detection of the parfocality of the zoom lens sets. The first problem is the judgment of definition, a relatively clearest position at present magnification can be obtained via a definition judging model; the second problem is the judgment of parfocality, whether the relatively clearest position at present magnification is the parfocal position can be judged via a parfocality judging model; the third problem is to fit a parfocality position curve at the continuous magnifications according to the parfocality positions detected under the discrete magnifications. 
         [0006]    At present, an artificial observing method is adopted in the detection of the parfocality of the zoom lens sets. The artificial observing method comprises: adjusting the magnification of the stereo microscope to a maximum value firstly and adjusting the microscope to obtain a clear image; then decreasing the magnification, observing whether the image is clear, if the image is not clear, slightly adjusting the focal distance to obtain the clear image, and recording a clear position as the parfocal position; repeating the above steps to obtain a group of parfocal positions at different magnifications; and estimating the parfocal positions under the continuous magnifications by experience, according to the parfocal positions under the discrete magnifications, to further obtain an empirical curve. The artificial observing method is low in efficiency, and erroneous judgment easily happens to influence the product quality. On the other hand, when a product yield is increased and a full inspection of the product is required, a large number of detecting workers are required. Therefore the artificial observing method can only be applied in initial product trial-manufacturing stage, but in a mass production, a more efficient parfocality detecting method is required. 
       SUMMARY OF THE PRESENT INVENTION 
       [0007]    An object of the present invention is to provide a method for detecting a parfocality of a zoom-stereo microscope, and the method has a high detecting precision, a high detecting efficiency, and a good robustness. 
         [0008]    Accordingly, in order to accomplish the above object, the present invention provides a method for detecting a parfocality of a zoom-stereo microscope, comprising: {circle around (1)} turning a magnification knob of the zoom-stereo microscope, and adjusting a magnification thereof to M; 
         [0009]    {circle around (2)} turning a focusing knob of the zoom-stereo microscope, particularly turning clockwise or counterclockwise from a benchmark position, and then acquiring Q groups of images corresponding to Q different focusing knob angles, wherein each group consists of T images, a No. k image in the T images acquired at the magnification of M and the focusing knob angle of θ s  is denoted as I Mθ     s     k , Q≧7, T≧3, 1≦s≧Q, 1≦k≦T, when the focusing knob is turned clockwise, −5°≦θ s ≦0°, and when the focusing knob is turned counterclockwise, 0°≦θ s ≦5°; 
         [0010]    {circle around (3)} respectively calculating definitions of the Q×T images acquired at Q different focusing knob angles and the magnification of M according to four definition judging functions, respectively figuring out a highest definition in the Q×T definitions calculated according to each of the definition judging functions, and in the four focusing knob angles respectively corresponding to the four highest definitions, judging whether at least three focusing knob angles are in a same position, if yes, defining the focusing knob angles in the same position corresponding to the highest definitions as a relatively clearest position at the magnification of M, and if no, defining the focusing knob angle corresponding to the highest definition calculated according to the first definition judging function as the relatively clearest position at the magnification of M; and 
         [0011]    {circle around (4)} according to operations in step {circle around (1)} to step {circle around (3)}, acquiring P relatively clearest positions respectively corresponding to P different magnifications, and then judging whether the P relatively clearest positions are all parfocal positions via a parfocality judging method, if yes, confirming a success of a parfocality detection and judging that the zoom-stereo microscope is a qualified product, and if no, confirming a failure of the parfocality detection and judging that the zoom-stereo microscope is an unqualified product, wherein P≧6. 
         [0012]    The focusing knob angle is a relative angle between the position of the focusing knob and the benchmark position; if the focusing knob is turned clockwise from the benchmark position, the direction that the focusing knob is turned is defined as a negative direction, and if the focusing knob is turned counterclockwise from the benchmark, the direction that the focusing knob is turned is defined as a positive direction. 
         [0013]    In the step CD, respectively calculating the definitions of the Q×T images acquired at Q different focusing knob angles and the magnification of M according to the four definition judging functions comprises: 
         [0014]    {circle around (3)}-1, respectively defining the four definition judging functions as a gradient square function, an image variance function, a discrete Fourier transform function and a Walsh-Hadamard transform function, and respectively denoting the four definition judging functions as F C     1    ( ), F C     2    ( ), F C     3    ( ) and F C     4    ( ); 
         [0015]    {circle around (3)}-2, in the Q×T images acquired at the Q different focusing knob angles, defining the No. k′ image processed at present as a present image, denoted as I Mk′ , wherein 1≦k′≦Q×T; 
         [0016]    {circle around (3)}-3, calculating a first definition of the present image according to the gradient square function F C     1    ( ), and denoting the first definition as F C     1    (I Mk′ ), wherein 
         [0000]    
       
         
           
             
               
                 
                   F 
                   
                     C 
                     1 
                   
                 
                  
                 
                   ( 
                   
                     I 
                     
                       Mk 
                       ′ 
                     
                   
                   ) 
                 
               
               = 
               
                 
                   ∑ 
                   
                     x 
                     = 
                     
                       
                         W 
                         - 
                         N 
                       
                       2 
                     
                   
                   
                     
                       
                         W 
                         + 
                         N 
                       
                       2 
                     
                     - 
                     1 
                   
                 
                  
                 
                     
                 
                  
                 
                   
                     ∑ 
                     
                       y 
                       = 
                       
                         
                           H 
                           - 
                           N 
                         
                         2 
                       
                     
                     
                       
                         
                           H 
                           + 
                           N 
                         
                         2 
                       
                       - 
                       1 
                     
                   
                    
                   
                       
                   
                    
                   
                     [ 
                     
                         
                     
                      
                     
                       
                         
                           ( 
                           
                             
                               
                                 I 
                                 
                                   Mk 
                                   ′ 
                                 
                               
                                
                               
                                 ( 
                                 
                                   x 
                                   , 
                                   y 
                                 
                                 ) 
                               
                             
                             - 
                             
                               
                                 I 
                                 
                                   Mk 
                                   ′ 
                                 
                               
                                
                               
                                 ( 
                                 
                                   
                                     x 
                                     + 
                                     1 
                                   
                                   , 
                                   y 
                                 
                                 ) 
                               
                             
                           
                           ) 
                         
                         2 
                       
                       + 
                       
                         
                           ( 
                           
                             
                               
                                 I 
                                 
                                   Mk 
                                   ′ 
                                 
                               
                                
                               
                                 ( 
                                 
                                   x 
                                   , 
                                   y 
                                 
                                 ) 
                               
                             
                             - 
                             
                               
                                 I 
                                 
                                   Mk 
                                   ′ 
                                 
                               
                                
                               
                                 ( 
                                 
                                   x 
                                   , 
                                   
                                     y 
                                     + 
                                     1 
                                   
                                 
                                 ) 
                               
                             
                           
                           ) 
                         
                         2 
                       
                     
                     ] 
                   
                 
               
             
             , 
           
         
       
     
         [0000]    W and H respectively represent a width and a height of the present image, a value of N is not larger than the width and the height of the present image and is an integer power of 2, I Mk′ (x, y) represents a gray level of a pixel having a coordinate of (x, y) in the present image, I Mk′ (x+1, y) represents a gray level of a pixel having a coordinate of (x+1, y) in the present image, and I Mk′ (x, y+1) represents a gray level of a pixel having a coordinate of (x, y+1) in the present image; 
         [0017]    {circle around (3)}-4, calculating a second definition of the present image according to the image variance function F C     2    ( ), and denoting the second definition as F C     2    (I Mk′ ), wherein 
         [0000]    
       
         
           
             
               
                 
                   F 
                   
                     C 
                     2 
                   
                 
                  
                 
                   ( 
                   
                     I 
                     
                       Mk 
                       ′ 
                     
                   
                   ) 
                 
               
               = 
               
                 
                   ∑ 
                   
                     x 
                     = 
                     
                       
                         W 
                         - 
                         N 
                       
                       2 
                     
                   
                   
                     
                       
                         W 
                         + 
                         N 
                       
                       2 
                     
                     - 
                     1 
                   
                 
                  
                 
                     
                 
                  
                 
                   
                     ∑ 
                     
                       y 
                       = 
                       
                         
                           H 
                           - 
                           N 
                         
                         2 
                       
                     
                     
                       
                         
                           H 
                           + 
                           N 
                         
                         2 
                       
                       - 
                       1 
                     
                   
                    
                   
                       
                   
                    
                   
                     
                       [ 
                       
                         ( 
                         
                           
                             
                               I 
                               
                                 Mk 
                                 ′ 
                               
                             
                              
                             
                               ( 
                               
                                 x 
                                 , 
                                 y 
                               
                               ) 
                             
                           
                           - 
                           
                             
                               
                                 I 
                                 
                                   Mk 
                                   ′ 
                                 
                               
                                
                               
                                 ( 
                                 
                                   x 
                                   , 
                                   y 
                                 
                                 ) 
                               
                             
                             _ 
                           
                         
                         ) 
                       
                       ] 
                     
                     2 
                   
                 
               
             
             , 
             
               
 
             
              
             and 
           
         
       
       
         
           
             
               
                 
                   
                     I 
                     
                       Mk 
                       ′ 
                     
                   
                    
                   
                     ( 
                     
                       x 
                       , 
                       y 
                     
                     ) 
                   
                 
                 _ 
               
               = 
               
                 
                   1 
                   
                     N 
                     2 
                   
                 
                  
                 
                   
                     ∑ 
                     
                       x 
                       = 
                       
                         
                           W 
                           - 
                           N 
                         
                         2 
                       
                     
                     
                       
                         
                           W 
                           + 
                           N 
                         
                         2 
                       
                       - 
                       1 
                     
                   
                    
                   
                       
                   
                    
                   
                     
                       ∑ 
                       
                         y 
                         = 
                         
                           
                             H 
                             - 
                             N 
                           
                           2 
                         
                       
                       
                         
                           
                             H 
                             + 
                             N 
                           
                           2 
                         
                         - 
                         1 
                       
                     
                      
                     
                         
                     
                      
                     
                       
                         I 
                         
                           Mk 
                           ′ 
                         
                       
                        
                       
                         ( 
                         
                           x 
                           , 
                           y 
                         
                         ) 
                       
                     
                   
                 
               
             
             ; 
           
         
       
     
         [0018]    {circle around (3)}-5, calculating a third definition of the present image according to the discrete Fourier transform function F C     3    ( ), and denoting the third definition as F C     3    (I Mk′ ), wherein 
         [0000]    
       
         
           
             
               
                 
                   F 
                   
                     C 
                     3 
                   
                 
                  
                 
                   ( 
                   
                     I 
                     
                       Mk 
                       ′ 
                     
                   
                   ) 
                 
               
               = 
               
                 
                   ∑ 
                   
                     u 
                     = 
                     0 
                   
                   
                     N 
                     - 
                     1 
                   
                 
                  
                 
                     
                 
                  
                 
                   
                     ∑ 
                     
                       v 
                       = 
                       0 
                     
                     
                       N 
                       - 
                       1 
                     
                   
                    
                   
                       
                   
                    
                   
                     
                       F 
                       
                         Mk 
                         ′ 
                       
                     
                      
                     
                       ( 
                       
                         u 
                         , 
                         v 
                       
                       ) 
                     
                   
                 
               
             
             , 
             
               
 
             
              
             
               
                 F 
                 
                   Mk 
                   ′ 
                 
               
                
               
                 ( 
                 
                   u 
                   , 
                   v 
                 
                 ) 
               
             
           
         
       
     
         [0000]    represents a discrete Fourier transform of 
         [0000]    
       
         
           
             
               
                 I 
                 
                   Mk 
                   ′ 
                 
               
                
               
                 ( 
                 
                   x 
                   , 
                   y 
                 
                 ) 
               
             
             , 
             
               
 
             
              
             
               
                 
                   F 
                   
                     Mk 
                     ′ 
                   
                 
                  
                 
                   ( 
                   
                     u 
                     , 
                     v 
                   
                   ) 
                 
               
               = 
               
                 
                   ∑ 
                   
                     x 
                     = 
                     
                       
                         W 
                         - 
                         N 
                       
                       2 
                     
                   
                   
                     
                       
                         W 
                         + 
                         N 
                       
                       2 
                     
                     - 
                     1 
                   
                 
                  
                 
                     
                 
                  
                 
                   
                     ∑ 
                     
                       y 
                       = 
                       
                         
                           H 
                           - 
                           N 
                         
                         2 
                       
                     
                     
                       
                         
                           H 
                           + 
                           N 
                         
                         2 
                       
                       - 
                       1 
                     
                   
                    
                   
                       
                   
                    
                   
                     
                       
                         I 
                         
                           Mk 
                           ′ 
                         
                       
                        
                       
                         ( 
                         
                           x 
                           , 
                           y 
                         
                         ) 
                       
                     
                      
                     
                        
                       
                         
                           - 
                           j 
                         
                          
                         
                             
                         
                          
                         2 
                          
                         
                             
                         
                          
                         
                           π 
                            
                           
                             ( 
                             
                               
                                 ux 
                                 N 
                               
                               + 
                               
                                 vy 
                                 N 
                               
                             
                             ) 
                           
                         
                       
                     
                   
                 
               
             
             , 
           
         
       
     
         [0000]    and j represents a imaginary unit; 
         [0019]    {circle around (3)}-6, calculating a fourth definition of the present image according to the Walsh-Hadamard transform function F C     4    ( ), and denoting the fourth definition as F C     4    (I Mk′ ), wherein 
         [0000]    
       
         
           
             
               
                 
                   F 
                   
                     C 
                     4 
                   
                 
                  
                 
                   ( 
                   
                     I 
                     
                       Mk 
                       ′ 
                     
                   
                   ) 
                 
               
               = 
               
                 
                   ∑ 
                   
                     u 
                     = 
                     0 
                   
                   
                     N 
                     - 
                     1 
                   
                 
                  
                 
                     
                 
                  
                 
                   
                     ∑ 
                     
                       v 
                       = 
                       0 
                     
                     
                       N 
                       - 
                       1 
                     
                   
                    
                   
                       
                   
                    
                   
                     
                       W 
                       
                         Mk 
                         ′ 
                       
                     
                      
                     
                       ( 
                       
                         u 
                         , 
                         v 
                       
                       ) 
                     
                   
                 
               
             
             , 
             
               
 
             
              
             
               
                 W 
                 
                   Mk 
                   ′ 
                 
               
                
               
                 ( 
                 
                   u 
                   , 
                   v 
                 
                 ) 
               
             
           
         
       
     
         [0000]    represents a Walsh-Hadamard transform of I Mk′ (x, y), 
         [0000]    
       
         
           
             
               
                 
                   W 
                   
                     Mk 
                     ′ 
                   
                 
                  
                 
                   ( 
                   
                     u 
                     , 
                     v 
                   
                   ) 
                 
               
               = 
               
                 
                   1 
                   
                     N 
                     2 
                   
                 
                  
                 
                   
                     ∑ 
                     
                       x 
                       = 
                       
                         
                           W 
                           - 
                           N 
                         
                         2 
                       
                     
                     
                       
                         
                           W 
                           + 
                           N 
                         
                         2 
                       
                       - 
                       1 
                     
                   
                    
                   
                       
                   
                    
                   
                     
                       ∑ 
                       
                         y 
                         = 
                         
                           
                             H 
                             - 
                             N 
                           
                           2 
                         
                       
                       
                         
                           
                             H 
                             + 
                             N 
                           
                           2 
                         
                         - 
                         1 
                       
                     
                      
                     
                       
                         
                           w 
                           N 
                         
                          
                         
                           ( 
                           
                             u 
                             , 
                             x 
                           
                           ) 
                         
                       
                        
                       
                         
                           I 
                           
                             Mk 
                             ′ 
                           
                         
                          
                         
                           ( 
                           
                             x 
                             , 
                             y 
                           
                           ) 
                         
                       
                        
                       
                         
                           w 
                           N 
                         
                          
                         
                           ( 
                           
                             v 
                             , 
                             y 
                           
                           ) 
                         
                       
                     
                   
                 
               
             
             , 
           
         
       
     
         [0000]    wherein w N (u, x) and w N (v, y) both represent kernel functions of the Walsh-Hadamard transform, 
         [0000]    
       
         
           
             
               
                 
                   w 
                   N 
                 
                  
                 
                   ( 
                   
                     u 
                     , 
                     x 
                   
                   ) 
                 
               
               = 
               
                 
                   ∏ 
                   
                     r 
                     = 
                     0 
                   
                   
                     p 
                     - 
                     1 
                   
                 
                  
                 
                     
                 
                  
                 
                   
                     ( 
                     
                       - 
                       1 
                     
                     ) 
                   
                   
                     
                       u 
                       r 
                     
                      
                     
                       u 
                       x 
                     
                   
                 
               
             
             , 
             
               
 
             
              
             and 
           
         
       
       
         
           
             
               
                 
                   w 
                   N 
                 
                  
                 
                   ( 
                   
                     v 
                     , 
                     y 
                   
                   ) 
                 
               
               = 
               
                 
                   ∏ 
                   
                     r 
                     = 
                     0 
                   
                   
                     p 
                     - 
                     1 
                   
                 
                  
                 
                     
                 
                  
                 
                   
                     ( 
                     
                       - 
                       1 
                     
                     ) 
                   
                   
                     
                       v 
                       r 
                     
                      
                     
                       v 
                       y 
                     
                   
                 
               
             
             , 
           
         
       
     
         [0000]    p=log 2  N, u r  represents a No. r digit of a binary form of u, u x  represents a No. x digit of the binary form of u, v r  represents a No. r digit of a binary form of v, and v y  represents a No. y digit of the binary form of v; and 
         [0020]    {circle around (3)}-7, let k′=k′+1, wherein “=” is an assignment symbol, in the Q×T images acquired at the Q different focusing knob angles, defining a next image to be processed as the present image, and then returning to the step {circle around (3)}-3, until acquiring four definitions of each of the Q×T images acquired at the Q different focusing knob angles. 
         [0021]    In the step {circle around (4)}, judging whether the relatively clearest position at each of the P different magnifications is the parfocal position according to the parfocality judging method comprises: 
         [0022]    {circle around (4)}-1, turning a magnification knob of another zoom-stereo microscope, then acquiring P parfocal clear images at the P different magnifications with a calibration target, forming a group of reference images with the P parfocal clear images, and defining the parfocal clear image acquired with the calibration target at the magnification of M p′  as the reference image at the magnification of M p′ , wherein M p′  is a No. p′ magnification in the P different magnifications, the reference image is denoted as I M     p′   , and 1≦p′≦P; 
         [0023]    {circle around (4)}-2, respectively calculating P definitions of the P reference images corresponding to the P different magnifications according to the gradient square function F C     1    ( ), and denoting the definition of the reference image I M     p′    acquired at the magnification of M p′  as F C     1    (I M     p′   ), wherein is the No. p′ magnification in the P different magnifications, and 
         [0000]    
       
         
           
             
               
                 
                   F 
                   
                     C 
                     1 
                   
                 
                  
                 
                   ( 
                   
                     I 
                     
                       M 
                       
                         p 
                         ′ 
                       
                     
                   
                   ) 
                 
               
               = 
               
                 
                   ∑ 
                   
                     
                       x 
                       ′ 
                     
                     = 
                     
                       
                         
                           W 
                           ′ 
                         
                         - 
                         
                           N 
                           ′ 
                         
                       
                       2 
                     
                   
                   
                     
                       
                         
                           W 
                           ′ 
                         
                         + 
                         
                           N 
                           ′ 
                         
                       
                       2 
                     
                     - 
                     1 
                   
                 
                  
                 
                     
                 
                  
                 
                   
                     ∑ 
                     
                       
                         y 
                         ′ 
                       
                       = 
                       
                         
                           
                             H 
                             ′ 
                           
                           - 
                           
                             N 
                             ′ 
                           
                         
                         2 
                       
                     
                     
                       
                         
                           
                             H 
                             ′ 
                           
                           + 
                           
                             N 
                             ′ 
                           
                         
                         2 
                       
                       - 
                       1 
                     
                   
                    
                   
                       
                   
                    
                   
                     [ 
                     
                         
                     
                      
                     
                       
                         
                           ( 
                           
                             
                               
                                 I 
                                 
                                   M 
                                   
                                     p 
                                     ′ 
                                   
                                 
                               
                                
                               
                                 ( 
                                 
                                   
                                     x 
                                     ′ 
                                   
                                   , 
                                   
                                     y 
                                     ′ 
                                   
                                 
                                 ) 
                               
                             
                             - 
                             
                               
                                 I 
                                 
                                   M 
                                   
                                     p 
                                     ′ 
                                   
                                 
                               
                                
                               
                                 ( 
                                 
                                   
                                     
                                       x 
                                       ′ 
                                     
                                     + 
                                     1 
                                   
                                   , 
                                   
                                     y 
                                     ′ 
                                   
                                 
                                 ) 
                               
                             
                           
                           ) 
                         
                         2 
                       
                       + 
                       
                         
                           ( 
                           
                             
                               
                                 I 
                                 
                                   M 
                                   
                                     p 
                                     ′ 
                                   
                                 
                               
                                
                               
                                 ( 
                                 
                                   
                                     x 
                                     ′ 
                                   
                                   , 
                                   
                                     y 
                                     ′ 
                                   
                                 
                                 ) 
                               
                             
                             - 
                             
                               
                                 I 
                                 
                                   M 
                                   
                                     p 
                                     ′ 
                                   
                                 
                               
                                
                               
                                 ( 
                                 
                                   
                                     x 
                                     ′ 
                                   
                                   , 
                                   
                                     
                                       y 
                                       ′ 
                                     
                                     + 
                                     1 
                                   
                                 
                                 ) 
                               
                             
                           
                           ) 
                         
                         2 
                       
                     
                     ] 
                   
                 
               
             
             , 
           
         
       
     
         [0000]    wherein W′ and H′ respectively represent a width and a height of the reference image, a value of N′ is not larger than the width and the height of the reference image and is an integer power of 2, I M     p′   (x′, y′) represents a gray level of a pixel having a coordinate of (x′, y′) in the reference image I M     p′    acquired at the magnification of M p′ , I M     p′   (x′+1, y′) represents a gray level of a pixel having a coordinate of (x′+1, y′) in the reference image I M     p′    acquired at the magnification of M p′ , and I M     p′    (x′, y′+1) represents a gray level of a pixel having a coordinate of (x′, y′+1) in the reference image I M     p′    acquired at the magnification of M p′ ; and 
         [0024]    {circle around (4)}-3, respectively comparing the P relatively clearest positions at the P different magnifications acquired in the operations in step {circle around (1)} to step {circle around (3)} with P parfocal positions of the P reference images acquired at the P different magnifications one by one, judging whether the relatively clearest position at each of the P different magnifications acquired in the operations in step {circle around (1)} to step {circle around (3)} is the parfocal position, for the relatively clearest position at the magnification of M p′  acquired in the operations in step {circle around (1)} to step {circle around (3)}, wherein M p′  is the No. p′ magnification in the P different magnifications, setting a judging condition of the relatively clearest position as 
         [0000]    
       
         
           
             Parfocality 
             = 
             
               { 
               
                 
                   
                     
                       parfocal 
                       , 
                     
                   
                   
                     
                       
                         if 
                          
                         
                             
                         
                          
                         
                           
                              
                             
                               
                                 
                                   F 
                                   
                                     C 
                                     1 
                                   
                                 
                                  
                                 
                                   ( 
                                   
                                     I 
                                     
                                       M 
                                       
                                         p 
                                         ′ 
                                       
                                     
                                   
                                   ) 
                                 
                               
                               - 
                               
                                 
                                   F 
                                   
                                     C 
                                     1 
                                   
                                 
                                 ( 
                                 
                                   I 
                                   
                                     
                                       M 
                                       
                                         p 
                                         ′ 
                                       
                                     
                                      
                                     
                                       θ 
                                       
                                         M 
                                         
                                           p 
                                           ′ 
                                         
                                       
                                     
                                   
                                 
                                 ) 
                               
                             
                              
                           
                           
                             
                               F 
                               
                                 C 
                                 1 
                               
                             
                              
                             
                               ( 
                               
                                 
                                   I 
                                   M 
                                 
                                 
                                   p 
                                   ′ 
                                 
                               
                               ) 
                             
                           
                         
                       
                       &lt; 
                       
                         α 
                         
                           p 
                           ′ 
                         
                       
                     
                   
                 
                 
                   
                     
                       
                         not 
                          
                         
                             
                         
                          
                         parfocal 
                       
                       , 
                     
                   
                   
                     
                       
                         if 
                          
                         
                             
                         
                          
                         
                           
                              
                             
                               
                                 
                                   F 
                                   
                                     C 
                                     1 
                                   
                                 
                                  
                                 
                                   ( 
                                   
                                     I 
                                     
                                       M 
                                       
                                         p 
                                         ′ 
                                       
                                     
                                   
                                   ) 
                                 
                               
                               - 
                               
                                 
                                   F 
                                   
                                     C 
                                     1 
                                   
                                 
                                 ( 
                                 
                                   I 
                                   
                                     
                                       M 
                                       
                                         p 
                                         ′ 
                                       
                                     
                                      
                                     
                                       θ 
                                       
                                         M 
                                         
                                           p 
                                           ′ 
                                         
                                       
                                     
                                   
                                 
                                 ) 
                               
                             
                              
                           
                           
                             
                               F 
                               
                                 C 
                                 1 
                               
                             
                              
                             
                               ( 
                               
                                 
                                   I 
                                   M 
                                 
                                 
                                   p 
                                   ′ 
                                 
                               
                               ) 
                             
                           
                         
                       
                       ≥ 
                       
                         α 
                         
                           p 
                           ′ 
                         
                       
                     
                   
                 
               
             
           
         
       
     
         [0000]    wherein θ M     p′    represents a focusing knob angle corresponding to the relatively clearest position at the magnification of M p′  in the P different magnifications acquired in the operations in step {circle around (1)} to step {circle around (3)}, 
         [0000]    
       
         
           
             
               F 
               
                 C 
                 1 
               
             
             ( 
             
               I 
               
                 
                   M 
                   
                     P 
                     ′ 
                   
                 
                  
                 
                   θ 
                   
                     M 
                     
                       P 
                       ′ 
                     
                   
                 
               
             
             ) 
           
         
       
     
         [0000]    represents a highest definition corresponding to the relatively clearest position in the magnification of M p′  in the P different magnification, calculated according to the gradient square function F C     1    ( ) in the operations in step {circle around (1)} to step {circle around (3)}, the symbol “∥” is an absolute value symbol, and α p′  represents a threshold value for judging the parfocality at the magnification of M P′ . 
         [0025]    A value of α p′  in step {circle around (4)}-3 depends on the magnification, when the magnification is 6.5, the value of α p′  is 0.30%; when the magnification is 5, the value of α p′  is 0.56%; when the magnification is 4, the value of α p′  is 0.06%; when the magnification is 2, the value of α p′  is 1.40%; when the magnification is 1, the value of α p′  is 0.038%; and when the magnification is 0.8, the value of α p′  is 0.10%. 
         [0026]    In the step {circle around (4)}, after the zoom-stereo microscope is judged as the qualified product, a parfocal curve of the zoom-stereo microscope is fitted, and that is to fit the parfocal curve of the zoom-stereo microscope via a least square method, according to the parfocal positions at each of the P different magnifications acquired in step {circle around (4)}, the parfocal curve is represented in a polynomial form as d(M)=a 0 +a 1 M+a 2 M 2 +L+a L M L , wherein d represents a distance between an objective lens and an objective table of the zoom-stereo microscope when the zoom-stereo microscope is parfocal, d(M) represents the parfocal curve consisting of the distances between the objective lens and the objective table corresponding to the parfocal positions at each of the P different magnifications acquired in step {circle around (4)}, M represents the magnification, M 2  represents a second power of M, M L  represents a No. L power of M, Mε{M 1 , M 2 , L, M P-1 , M P }, M 1 , M 2 , L, M P-1 , M P  represent the P different magnifications, a 0 , a 1 , a 2 , . . . , a L  represent undetermined coefficients in d(M)=a 0 +a 1 M+a 2 M 2 +L+a L M L , and L represents an order of the parfocal curve. 
         [0027]    In the step {circle around (4)}, after the zoom-stereo microscope is judged as the qualified product, the parfocal curve of the zoom-stereo microscope is fitted, which comprises: 
         [0028]    a, calculating a height of the objective lens of the zoom-stereo microscope at each of the P different magnifications acquired in the step {circle around (4)}, and denoting the height of the objective lens at the parfocal position of θ M     p′    and the magnification of M p′  as d M     p′   , wherein M p′  is the No. p′ magnification in the P different magnifications, d M     p′   =d 0 +θ M     p′   ×Δd, d 0  represents the height of the objective lens when the focusing knob is in the benchmark position, Δd represents a distance the objective lens moves after the focusing knob is turned by 1 degree, 
         [0000]    
       
         
           
             
               
                 Δ 
                  
                 
                     
                 
                  
                 d 
               
               = 
               
                 
                   
                     d 
                     max 
                   
                   - 
                   
                     d 
                     min 
                   
                 
                 n 
               
             
             , 
             
               
 
             
              
             
               d 
               max 
             
           
         
       
     
         [0000]    represents the height of the objective lens when the focusing knob adjusts the objective lens to a highest position, d min  represents the height of the objective lens when the focusing knob adjusts the objective lens to a lowest position, n represents the degrees the focusing knob is turned by in a course that the focusing knob adjusts the objective lens from the lowest position to the highest position, and a unit of n is degree; 
         [0029]    b, forming P discrete points with each magnification in the P different magnifications and the corresponding height of the objective lens, for M p′ , which is the No. p′ magnification in the P different magnifications, forming the discrete point with M p′  and the corresponding height of the objective lens d M     p′   , and denoting the discrete point as (M p′ ,d M     p′   ; 
         [0030]    c, constructing the parfocal curve of the zoom-stereo microscope, which is denoted as d(M)=a 0 +a 1 M+a 2 M 2 +L+a L M L , acquiring sum of squares of errors of the P discrete points according to d(M)=a 0 +a 1 M+a 2 M 2 +L+a L M L , wherein sum of squares of errors of the P discrete points is denoted as T(a 0 , a 1 , L, a L ), 
         [0000]    
       
         
           
             
               
                 T 
                  
                 
                   ( 
                   
                     
                       a 
                       0 
                     
                     , 
                     
                       a 
                       1 
                     
                     , 
                     L 
                     , 
                     
                       a 
                       L 
                     
                   
                   ) 
                 
               
                
               
                 
                   ∑ 
                   
                     i 
                     = 
                     1 
                   
                   P 
                 
                  
                 
                     
                 
                  
                 
                   
                     ( 
                     
                       
                         ( 
                         
                           
                             a 
                             0 
                           
                           + 
                           
                             
                               a 
                               1 
                             
                              
                             
                               M 
                               i 
                             
                           
                           + 
                           
                             
                               a 
                               2 
                             
                              
                             
                               M 
                               i 
                               2 
                             
                           
                           + 
                           L 
                           + 
                           
                             
                               a 
                               L 
                             
                              
                             
                               M 
                               i 
                               L 
                             
                           
                         
                         ) 
                       
                       - 
                       
                         d 
                         
                           M 
                           i 
                         
                       
                     
                     ) 
                   
                   2 
                 
               
             
             , 
           
         
       
     
         [0000]    and a partial derivative of each of undetermined coefficients in 
         [0000]    
       
         
           
             
               T 
                
               
                 ( 
                 
                   
                     a 
                     0 
                   
                   , 
                   
                     a 
                     1 
                   
                   , 
                   L 
                   , 
                   
                     a 
                     L 
                   
                 
                 ) 
               
             
              
             
               
                 ∑ 
                 
                   i 
                   = 
                   1 
                 
                 P 
               
                
               
                   
               
                
               
                 
                   ( 
                   
                     
                       ( 
                       
                         
                           a 
                           0 
                         
                         + 
                         
                           
                             a 
                             1 
                           
                            
                           
                             M 
                             i 
                           
                         
                         + 
                         
                           
                             a 
                             2 
                           
                            
                           
                             M 
                             i 
                             2 
                           
                         
                         + 
                         L 
                         + 
                         
                           
                             a 
                             L 
                           
                            
                           
                             M 
                             i 
                             L 
                           
                         
                       
                       ) 
                     
                     - 
                     
                       d 
                       
                         M 
                         i 
                       
                     
                   
                   ) 
                 
                 2 
               
             
           
         
       
     
         [0000]    is set to zero to minimize T(a 0 , a 1 , L, a L ), namely 
         [0000]    
       
         
           
             
               
                 
                   ∂ 
                   T 
                 
                 
                   ∂ 
                   
                     a 
                     l 
                   
                 
               
               = 
               
                 
                   2 
                    
                   
                     
                       ∑ 
                       
                         i 
                         = 
                         1 
                       
                       P 
                     
                      
                     
                         
                     
                      
                     
                       
                         ( 
                         
                           
                             ( 
                             
                               
                                 a 
                                 0 
                               
                               + 
                               
                                 
                                   a 
                                   1 
                                 
                                  
                                 
                                   M 
                                   i 
                                 
                               
                               + 
                               
                                 
                                   a 
                                   2 
                                 
                                  
                                 
                                   M 
                                   i 
                                   2 
                                 
                               
                               + 
                               L 
                               + 
                               
                                 
                                   a 
                                   L 
                                 
                                  
                                 
                                   M 
                                   i 
                                   L 
                                 
                               
                             
                             ) 
                           
                           - 
                           
                             d 
                             
                               M 
                               i 
                             
                           
                         
                         ) 
                       
                        
                       
                         M 
                         i 
                         l 
                       
                     
                   
                 
                 = 
                 0 
               
             
             , 
           
         
       
     
         [0000]    wherein M i  represents a No. i magnification in the P different magnifications, d M     i    represents the height of the objective lens of the zoom-stereo microscope corresponding to the parfocal position at the magnification of M i , M i   l  represents a No. l power of M i , and 1≦l≦L; and 
         [0031]    d, calculating values of the undetermined coefficients in d(M)=a 0 +a 1 M+a 2 M 2 +L+a L M L  according to the step c, and finally acquiring the parfocal curve of the zoom-stereo microscope according to the values of the undetermined coefficients. 
         [0032]    The height of the objective lens is a distance between a bottom of the objective lens and the objective table. 
         [0033]    The benchmark position is the position of the focusing knob when the image is relatively clearest at the highest magnification and the focusing knob angle is 0 degree. 
         [0034]    Compared to the prior art, the present invention is advanced in acquiring the four highest definitions corresponding to a plurality of the images with a cooperation of the four definition judging functions, acquiring the relatively clearest position according to the four highest definitions, comparing the definition in the relatively clearest position with the definition in the parfocal position to judge whether the relatively clearest position is the parfocal position, then adjusting the magnification of the zoom-stereo microscope to acquire the parfocal positions at a finite number of the discrete magnifications, and finally fitting the parfocal curve at the continuous magnifications. The parfocality of the stereo microscope can be detected automatically and effectively in the present invention, and the detecting precision is high, in such a manner that productivity will be increased effectively; additionally, the method according to the present invention has a good robustness, so that users needn&#39;t intervene and adjust frequently. The method is suitable for the parfocality detections of majority of the stereo microscopes. The method can increase the productivity drastically, when cooperating with automatic devices. 
         [0035]    These and other objectives, features, and advantages of the present invention will become apparent from the following detailed description, the accompanying drawings, and the appended claims. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0036]      FIG. 1  is a flow block diagram of a method for detecting a parfocality of a zoom-stereo microscope according to a preferred embodiment of the present invention. 
           [0037]      FIG. 2   a  is a sketch view of the zoom-stereo microscope. 
           [0038]      FIG. 2   b  is a sketch view illustrating positions of an objective lens and an objective table of the zoom-stereo microscope. 
           [0039]      FIG. 3   a  is a picture acquired when a magnification is 5 and a focusing knob is turned clockwise by 4°, namely θ s =4°. 
           [0040]      FIG. 3   b  is a picture acquired when the magnification is 5 and the focusing knob is turned clockwise by 3°, namely θ s =3°. 
           [0041]      FIG. 3   c  is a picture acquired when the magnification is 5 and the focusing knob is turned clockwise by 2°, namely θ s =−2°. 
           [0042]      FIG. 3   d  is a picture acquired when the magnification is 5 and the focusing knob is turned clockwise by 1°, namely θ s =−1°. 
           [0043]      FIG. 3   e  is a picture acquired when the magnification is 5 and the focusing knob is at a benchmark position, namely θ s =0°. 
           [0044]      FIG. 3   f  is a picture acquired when the magnification is 5 and the focusing knob is turned counterclockwise by 1°, namely θ s =1°. 
           [0045]      FIG. 3   g  is a picture acquired when the magnification is 5 and the focusing knob is turned counterclockwise by 2°, namely θ s =2°. 
           [0046]      FIG. 4   a  is a definition broken line graph illustrating definitions of images acquired at  7  different focusing knob angles and the magnification of 6.5 respectively calculated according to four definition judging functions. 
           [0047]      FIG. 4   b  is a definition broken line graph illustrating definitions of images acquired at the 7 different focusing knob angles and the magnification of 5 respectively calculated according to the four definition judging functions. 
           [0048]      FIG. 4   c  is a definition broken line graph illustrating definitions of images acquired at the 7 different focusing knob angles and the magnification of 4 respectively calculated according to the four definition judging functions. 
           [0049]      FIG. 4   d  is a definition broken line graph illustrating definitions of images acquired at the 7 different focusing knob angles and the magnification of 2 respectively calculated according to the four definition judging functions. 
           [0050]      FIG. 4   e  is a definition broken line graph illustrating definitions of images acquired at the 7 different focusing knob angles and the magnification of 1 respectively calculated according to the four definition judging functions. 
           [0051]      FIG. 4   f  is a definition broken line graph illustrating definitions of images acquired at the 7 different focusing knob angles and the magnification of 0.8 respectively calculated according to the four definition judging functions. 
           [0052]      FIG. 5  is 3 rd , 5 th  and 8 th  parfocal curves of the zoom-stereo microscope. 
       
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT 
       [0053]    The present invention will be further described as followed. 
         [0054]    Referring to  FIG. 2   a , a zoom-stereo microscope comprises two adjusting knobs, namely a magnification knob for adjusting a magnification of the zoom-stereo microscope and a focusing knob for adjusting a focal distance of the zoom-stereo microscope. The present invention provides a method for detecting a parfocality of a zoom-stereo microscope, and a flow block diagram of the method is shown in  FIG. 1 . The method comprises: 
         [0055]    {circle around (1)} turning the magnification knob of the zoom-stereo microscope, and adjusting the magnification thereof to M; 
         [0056]    {circle around (2)} turning the focusing knob of the zoom-stereo microscope, particularly turning clockwise or counterclockwise from a benchmark position, and then acquiring Q groups of images corresponding to Q different focusing knob angles, namely θ 1 , θ 2 , L, θ s , L, θ Q , wherein each group consists of T images, and a No. k image in the T images acquired at the magnification of M and the focusing knob angle of θ s  is denoted as I Mθ     s     k , wherein Q≧7, T≧3, 1≦s≦Q, and 1≦k≦T; 
         [0057]    in this embodiment, Q=7, T=3, the benchmark position is a position of the focusing knob when the image is relatively clearest at the highest magnification and the focusing knob angle is 0 degree, the focusing knob angle is a relative angle between the position of the focusing knob and the benchmark position, if the focusing knob is turned clockwise from the benchmark position, the direction that the focusing knob is turned is defined as a negative direction, if the focusing knob is turned counterclockwise from the benchmark, the direction that the focusing knob is turned is defined as a positive direction, when the focusing knob is turned clockwise, usually −5°≦θ Q &lt;L&lt;θ s &lt;L&lt;θ 2 &lt;θ 1 ≦0° however, in order to increase a detecting precision in practice, a range of the focusing knob angle is narrowed properly, e.g. −3°≦θ Q &lt;L&lt;θ s &lt;L&lt;θ 2 &lt;θ 1 ≦0°, similarly, when the focusing knob is turned counterclockwise, 0°≦θ 1 &lt;θ 2 &lt;L&lt;θ s &lt;L&lt;θ Q ≦5°, however, in order to increase the detecting precision in practice, the range of the focusing knob angle is narrowed properly, e.g. 0°≦θ 1 &lt;θ 2 &lt;L&lt;θ s &lt;L&lt;θ Q ≦3°; 
         [0058]    in this embodiment, the subject of the zoom-stereo microscope is a calibration target having minimum grids of 0.1 mm, a resolution of the images acquired with the digital camera is 1600×1200,  FIG. 3   a ,  FIG. 3   b ,  FIG. 3   c  and  FIG. 3   d  respectively show the images acquired when the magnification is 5 and the focusing knob is turned clockwise by 4°, 3°, 2° and 1°,  FIG. 3   e  shows the image acquired when the magnification is 5 and the focusing knob is in the benchmark position, and  FIG. 3   f  and  FIG. 3   g  respectively show the images acquired when the magnification is 5 and the focusing knob is turned counterclockwise by 1° and 2°; 
         [0059]    {circle around (3)} respectively calculating definitions of the Q×T images acquired at Q different focusing knob angles and the magnification of M according to four definition judging functions, that is to say respectively calculating the definition of each image in the Q×T images according to the first definition judging function to acquire Q×T definitions, respectively calculating the definition of each image in the Q×T images according to the second definition judging function to acquire Q×T definitions, respectively calculating the definition of each image in the Q×T images according to the third definition judging function to acquire Q×T definitions, and respectively calculating the definition of each image in the Q×T images according to the fourth definition judging function to acquire Q×T definitions, then figuring out a highest definition in the Q×T definitions calculated according to each of the four definition judging functions to acquire four highest definitions altogether, denoting a focusing knob angle corresponding to the highest definition in the Q×T definitions calculated according to the first definition judging function as θ C     1   , denoting a focusing knob angle corresponding to the highest definition in the Q×T definitions calculated according to the second definition judging function as θ C     2   , denoting a focusing knob angle corresponding to the highest definition in the Q×T definitions calculated according to the third definition judging function as θ C     3   , denoting a focusing knob angle corresponding to the highest definition in the Q×T definitions calculated according to the fourth definition judging function as θ C     4   , wherein θ C     1   , θ C     2   , θ C     3    and θ C     4    are all in the {θ 1 , θ 2 , L, θ s , L, θ Q }, and judging whether at least three focusing knob angles in the four focusing knob angles corresponding to the four highest definitions are in a same position, if yes, defining the focusing knob angles in the same position corresponding to the highest definitions as a relatively clearest position at the magnification of M, and if no, defining the focusing knob angle corresponding to the highest definition calculated according to the first definition judging function, namely θ C     1   , as the relatively clearest position at the magnification of M; 
         [0060]    in the above embodiment, wherein respectively calculating the definitions of the Q×T images acquired at Q different focusing knob angles and the magnification of M according to the four definition judging functions comprises: 
         [0061]    {circle around (3)}-1, respectively defining the four definition judging functions as a gradient square function, an image variance function, a discrete Fourier transform function and a Walsh-Hadamard transform function, and respectively denoting the four definition judging functions as F C     1    ( ) F C     2    ( ), F C     3    ( ) and F C     4    ( ); 
         [0062]    {circle around (3)}-2, in the Q×T images acquired at the Q different focusing knob angles, defining a No. k′ image processed at present as a present image, and denoting the present image as I Mk′ , wherein 1≦k′≦Q×T; 
         [0063]    {circle around (3)}-3, calculating a first definition of the present image according to the gradient square function F C     1    ( ), and denoting the first definition as F C     1    (I Mk′ ), wherein 
         [0000]    
       
         
           
             
               
                 
                   F 
                   
                     C 
                     1 
                   
                 
                  
                 
                   ( 
                   
                     I 
                     
                       Mk 
                       ′ 
                     
                   
                   ) 
                 
               
               = 
               
                 
                   ∑ 
                   
                     x 
                     = 
                     
                       
                         W 
                         - 
                         N 
                       
                       2 
                     
                   
                   
                     
                       
                         W 
                         + 
                         N 
                       
                       2 
                     
                     - 
                     1 
                   
                 
                  
                 
                     
                 
                  
                 
                   
                     ∑ 
                     
                       y 
                       = 
                       
                         
                           H 
                           - 
                           N 
                         
                         2 
                       
                     
                     
                       
                         
                           H 
                           + 
                           N 
                         
                         2 
                       
                       - 
                       1 
                     
                   
                    
                   
                       
                   
                    
                   
                     [ 
                     
                         
                     
                      
                     
                       
                         
                           ( 
                           
                             
                               
                                 I 
                                 
                                   Mk 
                                   ′ 
                                 
                               
                                
                               
                                 ( 
                                 
                                   x 
                                   , 
                                   y 
                                 
                                 ) 
                               
                             
                             - 
                             
                               
                                 I 
                                 
                                   Mk 
                                   ′ 
                                 
                               
                                
                               
                                 ( 
                                 
                                   
                                     x 
                                     + 
                                     1 
                                   
                                   , 
                                   y 
                                 
                                 ) 
                               
                             
                           
                           ) 
                         
                         2 
                       
                       + 
                       
                         
                           ( 
                           
                             
                               
                                 I 
                                 
                                   Mk 
                                   ′ 
                                 
                               
                                
                               
                                 ( 
                                 
                                   x 
                                   , 
                                   y 
                                 
                                 ) 
                               
                             
                             - 
                             
                               
                                 I 
                                 
                                   Mk 
                                   ′ 
                                 
                               
                                
                               
                                 ( 
                                 
                                   x 
                                   , 
                                   
                                     y 
                                     + 
                                     1 
                                   
                                 
                                 ) 
                               
                             
                           
                           ) 
                         
                         2 
                       
                     
                     ] 
                   
                 
               
             
             , 
           
         
       
     
         [0000]    W and H respectively represent a width and a height of the present image, preferably W=1600 and H=1200, a value of N is not larger than the width and the height of the present image and is an integer power of 2, preferably N=1024, I Mk′ (x, y) represents a gray level of a pixel having a coordinate of (x, y) in the present image, I Mk′ (x+1, y) represents a gray level of a pixel having a coordinate of (x+1, y) in the present image, and I Mk′ (x, y+1) represents a gray level of a pixel having a coordinate of (x, y+1) in the present image; 
         [0064]    {circle around (3)}-4, calculating a second definition of the present image according to the image variance function F C     2    ( ), and denoting the second definition as F C     2    (I Mk′ ), wherein 
         [0000]    
       
         
           
             
               
                 
                   F 
                   
                     C 
                     2 
                   
                 
                  
                 
                   ( 
                   
                     I 
                     
                       Mk 
                       ′ 
                     
                   
                   ) 
                 
               
               = 
               
                 
                   ∑ 
                   
                     x 
                     = 
                     
                       
                         W 
                         - 
                         N 
                       
                       2 
                     
                   
                   
                     
                       
                         W 
                         + 
                         N 
                       
                       2 
                     
                     - 
                     1 
                   
                 
                  
                 
                     
                 
                  
                 
                   
                     ∑ 
                     
                       y 
                       = 
                       
                         
                           H 
                           - 
                           N 
                         
                         2 
                       
                     
                     
                       
                         
                           H 
                           + 
                           N 
                         
                         2 
                       
                       - 
                       1 
                     
                   
                    
                   
                       
                   
                    
                   
                     
                       [ 
                       
                         ( 
                         
                           
                             
                               I 
                               
                                 Mk 
                                 ′ 
                               
                             
                              
                             
                               ( 
                               
                                 x 
                                 , 
                                 y 
                               
                               ) 
                             
                           
                           - 
                           
                             
                               
                                 I 
                                 
                                   Mk 
                                   ′ 
                                 
                               
                                
                               
                                 ( 
                                 
                                   x 
                                   , 
                                   y 
                                 
                                 ) 
                               
                             
                             _ 
                           
                         
                         ) 
                       
                       ] 
                     
                     2 
                   
                 
               
             
             , 
             
               
 
             
              
             and 
           
         
       
       
         
           
             
               
                 
                   
                     I 
                     
                       Mk 
                       ′ 
                     
                   
                    
                   
                     ( 
                     
                       x 
                       , 
                       y 
                     
                     ) 
                   
                 
                 _ 
               
               = 
               
                 
                   1 
                   
                     N 
                     2 
                   
                 
                  
                 
                   
                     ∑ 
                     
                       x 
                       = 
                       
                         
                           W 
                           - 
                           N 
                         
                         2 
                       
                     
                     
                       
                         
                           W 
                           + 
                           N 
                         
                         2 
                       
                       - 
                       1 
                     
                   
                    
                   
                       
                   
                    
                   
                     
                       ∑ 
                       
                         y 
                         = 
                         
                           
                             H 
                             - 
                             N 
                           
                           2 
                         
                       
                       
                         
                           
                             H 
                             + 
                             N 
                           
                           2 
                         
                         - 
                         1 
                       
                     
                      
                     
                       
                         I 
                         
                           Mk 
                           ′ 
                         
                       
                        
                       
                         ( 
                         
                           x 
                           , 
                           y 
                         
                         ) 
                       
                     
                   
                 
               
             
             ; 
           
         
       
     
         [0065]    {circle around (3)}-5, calculating a third definition of the present image according to the discrete Fourier transform function F C     3    ( ), and denoting the third definition as F C     3    (I Mk′), wherein    
         [0000]    
       
         
           
             
               
                 
                   F 
                   
                     C 
                     3 
                   
                 
                  
                 
                   ( 
                   
                     I 
                     
                       Mk 
                       ′ 
                     
                   
                   ) 
                 
               
               = 
               
                 
                   ∑ 
                   
                     u 
                     = 
                     0 
                   
                   
                     N 
                     - 
                     1 
                   
                 
                  
                 
                     
                 
                  
                 
                   
                     ∑ 
                     
                       v 
                       = 
                       0 
                     
                     
                       N 
                       - 
                       1 
                     
                   
                    
                   
                       
                   
                    
                   
                     
                       F 
                       
                         Mk 
                         ′ 
                       
                     
                      
                     
                       ( 
                       
                         u 
                         , 
                         v 
                       
                       ) 
                     
                   
                 
               
             
             , 
           
         
       
     
         [0000]    F Mk′ (u, v) represents a discrete Fourier transform of 
         [0000]    
       
         
           
             
               
                 I 
                 
                   Mk 
                   ′ 
                 
               
                
               
                 ( 
                 
                   x 
                   , 
                   y 
                 
                 ) 
               
             
             , 
             
               
 
             
              
             
               
                 
                   F 
                   
                     Mk 
                     ′ 
                   
                 
                  
                 
                   ( 
                   
                     u 
                     , 
                     v 
                   
                   ) 
                 
               
               = 
               
                 
                   ∑ 
                   
                     x 
                     = 
                     
                       
                         W 
                         - 
                         N 
                       
                       2 
                     
                   
                   
                     
                       
                         W 
                         + 
                         N 
                       
                       2 
                     
                     - 
                     1 
                   
                 
                  
                 
                     
                 
                  
                 
                   
                     ∑ 
                     
                       y 
                       = 
                       
                         
                           H 
                           - 
                           N 
                         
                         2 
                       
                     
                     
                       
                         
                           H 
                           + 
                           N 
                         
                         2 
                       
                       - 
                       1 
                     
                   
                    
                   
                     
                       
                         I 
                         
                           Mk 
                           ′ 
                         
                       
                        
                       
                         ( 
                         
                           x 
                           , 
                           y 
                         
                         ) 
                       
                     
                      
                     
                        
                       
                         
                           - 
                           j 
                         
                          
                         
                             
                         
                          
                         2 
                          
                         
                             
                         
                          
                         
                           π 
                            
                           
                             ( 
                             
                               
                                 ux 
                                 N 
                               
                               + 
                               
                                 vy 
                                 N 
                               
                             
                             ) 
                           
                         
                       
                     
                   
                 
               
             
             , 
           
         
       
     
         [0000]    and j represents a imaginary unit; 
         [0066]    {circle around (3)}-6, calculating a fourth definition of the present image according to the Walsh-Hadamard transform function F C     4    ( ), and denoting the fourth definition as F C     4    (I Mk′ ), wherein 
         [0000]    
       
         
           
             
               
                 F 
                 
                   C 
                   4 
                 
               
               = 
               
                 
                   ( 
                   
                     I 
                     
                       Mk 
                       ′ 
                     
                   
                   ) 
                 
                 = 
                 
                   
                     ∑ 
                     
                       u 
                       = 
                       0 
                     
                     
                       N 
                       - 
                       1 
                     
                   
                    
                   
                       
                   
                    
                   
                     
                       ∑ 
                       
                         v 
                         = 
                         0 
                       
                       
                         N 
                         - 
                         1 
                       
                     
                      
                     
                         
                     
                      
                     
                       
                         W 
                         
                           Mk 
                           ′ 
                         
                       
                        
                       
                         ( 
                         
                           u 
                           , 
                           v 
                         
                         ) 
                       
                     
                   
                 
               
             
             , 
           
         
       
     
         [0000]    W Mk′ (u, v) represents a Walsh-Hadamard transform of I Mk′ (x, y), 
         [0000]    
       
         
           
             
               
                 
                   W 
                   
                     Mk 
                     ′ 
                   
                 
                  
                 
                   ( 
                   
                     u 
                     , 
                     v 
                   
                   ) 
                 
               
               = 
               
                 
                   1 
                   
                     N 
                     2 
                   
                 
                  
                 
                   
                     ∑ 
                     
                       x 
                       = 
                       
                         
                           W 
                           - 
                           N 
                         
                         2 
                       
                     
                     
                       
                         
                           W 
                           + 
                           N 
                         
                         2 
                       
                       - 
                       1 
                     
                   
                    
                   
                       
                   
                    
                   
                     
                       ∑ 
                       
                         y 
                         = 
                         
                           
                             H 
                             - 
                             N 
                           
                           2 
                         
                       
                       
                         
                           
                             H 
                             + 
                             N 
                           
                           2 
                         
                         - 
                         1 
                       
                     
                      
                     
                       
                         
                           w 
                           N 
                         
                          
                         
                           ( 
                           
                             u 
                             , 
                             x 
                           
                           ) 
                         
                       
                        
                       
                         
                           I 
                           
                             Mk 
                             ′ 
                           
                         
                          
                         
                           ( 
                           
                             x 
                             , 
                             y 
                           
                           ) 
                         
                       
                        
                       
                         
                           w 
                           N 
                         
                          
                         
                           ( 
                           
                             v 
                             , 
                             y 
                           
                           ) 
                         
                       
                     
                   
                 
               
             
             , 
           
         
       
     
         [0000]    w N (u, x) and w N (v, y) both represent kernel functions of the Walsh-Hadamard transform, 
         [0000]    
       
         
           
             
               
                 
                   w 
                   n 
                 
                  
                 
                   ( 
                   
                     u 
                     , 
                     x 
                   
                   ) 
                 
               
               = 
               
                 
                   ∏ 
                   
                     r 
                     = 
                     0 
                   
                   
                     p 
                     - 
                     1 
                   
                 
                  
                 
                     
                 
                  
                 
                   
                     ( 
                     
                       - 
                       1 
                     
                     ) 
                   
                   
                     
                       u 
                       r 
                     
                      
                     
                       u 
                       x 
                     
                   
                 
               
             
             , 
             
               
 
             
              
             
               
                 
                   w 
                   N 
                 
                  
                 
                   ( 
                   
                     v 
                     , 
                     y 
                   
                   ) 
                 
               
               = 
               
                 
                   ∏ 
                   
                     r 
                     = 
                     0 
                   
                   
                     p 
                     - 
                     1 
                   
                 
                  
                 
                     
                 
                  
                 
                   
                     ( 
                     
                       - 
                       1 
                     
                     ) 
                   
                   
                     
                       v 
                       r 
                     
                      
                     
                       v 
                       x 
                     
                   
                 
               
             
             , 
           
         
       
     
         [0000]    p=log 2  N, u r  represents a No. r digit of a binary form of u, u x  represents a No. x digit of the binary form of u, v r  represents a No. r digit of a binary form of v, and v y  represents a No. y digit of the binary form of v; and 
         [0067]    {circle around (3)}-7, let k′=k′+1, wherein “=” is an assignment symbol, in the Q×T images acquired at the Q different focusing knob angles, defining a next image to be processed as the present image, then returning to the step {circle around (3)}-3, until acquiring four definitions of each of the Q×T images acquired at the Q different focusing knob angles. 
         [0068]      FIG. 4   a ,  FIG. 4   b ,  FIG. 4   c ,  FIG. 4   d ,  FIG. 4   e  and  FIG. 4   f  respectively show the definitions of the images acquired at the magnifications of 6.5, 5, 4, 2, 1, 0.8 and 7 different focusing knob angles of 3°, 2°, 1°, 0°,1°, 2°, 3°, wherein the definitions is calculated according to the four definition judging functions. 
         [0069]    {circle around (4)} according to operations in step {circle around (1)} to step {circle around (3)}, acquiring P relatively clearest positions corresponding to P different magnifications, and then judging whether the P relatively clearest positions are all parfocal positions via a parfocality judging method, if yes, confirming a success of a parfocality detection and judging that the zoom-stereo microscope is a qualified product, and if no, confirming a failure of the parfocality detection and judging that the zoom-stereo microscope is an unqualified product, wherein P≧6, preferably P=6, in practice, a plurality of magnifications can be chosen in accordance with specific conditions, the more magnifications are chosen, the higher the detecting precision of the parfocality is, but a computational complexity will be increased simultaneously, therefore P=6 is usually chosen so that whether the zoom-stereo microscope is the qualified product is able to be judged correctly, and values of the P different magnifications can be chosen in accordance with specific conditions. 
         [0070]    In the above embodiment, in step {circle around (4)}, whether the relatively clearest position at each of the P different magnifications is the parfocal position is judged according to the parfocality judging method, which comprises: 
         [0071]    {circle around (4)}-1, turning a magnification knob of another zoom-stereo microscope to set a magnification thereof to M, and then acquiring a parfocal clear image with a calibration target, defining the parfocal clear image as a reference image denoted as I M , in such a manner that a parfocal clear image is able to be acquired at each of the P different magnifications via adjusting the magnification, and a group of reference images can further be acquired, wherein the reference image at the magnification of M p′  is denoted as I M     p′   , and M p′  is the No. p′ magnification in the P different magnifications, and 1≦p′≦P; 
         [0072]    {circle around (4)}-2, calculating P definitions of the reference images acquired at each of the P different magnifications according to the gradient square function F C     1    ( ), and denoting the definition of the reference image I M     p′    acquired at the magnification of M p′  as F C     1    (I M     p′   ), wherein M p′  is the No. p′ magnification in the P different magnifications, 
         [0000]    
       
         
           
             
               
                 
                   F 
                   
                     C 
                     1 
                   
                 
                  
                 
                   ( 
                   
                     I 
                     
                       M 
                       
                         p 
                         ′ 
                       
                     
                   
                   ) 
                 
               
               = 
               
                 
                   ∑ 
                   
                     
                       x 
                       ′ 
                     
                     = 
                     
                       
                         
                           W 
                           ′ 
                         
                         - 
                         
                           N 
                           ′ 
                         
                       
                       2 
                     
                   
                   
                     
                       
                         
                           W 
                           ′ 
                         
                         + 
                         
                           N 
                           ′ 
                         
                       
                       2 
                     
                     - 
                     1 
                   
                 
                  
                 
                     
                 
                  
                 
                   
                     ∑ 
                     
                       
                         y 
                         ′ 
                       
                       = 
                       
                         
                           
                             H 
                             ′ 
                           
                           - 
                           
                             N 
                             ′ 
                           
                         
                         2 
                       
                     
                     
                       
                         
                           
                             H 
                             ′ 
                           
                           + 
                           
                             N 
                             ′ 
                           
                         
                         2 
                       
                       - 
                       1 
                     
                   
                    
                   
                     [ 
                     
                         
                     
                      
                     
                       
                         
                           ( 
                           
                             
                               
                                 I 
                                 
                                   M 
                                   
                                     p 
                                     ′ 
                                   
                                 
                               
                                
                               
                                 ( 
                                 
                                   
                                     x 
                                     ′ 
                                   
                                   , 
                                   
                                     y 
                                     ′ 
                                   
                                 
                                 ) 
                               
                             
                             - 
                             
                               
                                 I 
                                 
                                   M 
                                   
                                     p 
                                     ′ 
                                   
                                 
                               
                                
                               
                                 ( 
                                 
                                   
                                     
                                       x 
                                       ′ 
                                     
                                     + 
                                     1 
                                   
                                   , 
                                   
                                     y 
                                     ′ 
                                   
                                 
                                 ) 
                               
                             
                           
                           ) 
                         
                         2 
                       
                       + 
                       
                         
                           ( 
                           
                             
                               
                                 I 
                                 
                                   M 
                                   
                                     p 
                                     ′ 
                                   
                                 
                               
                                
                               
                                 ( 
                                 
                                   
                                     x 
                                     ′ 
                                   
                                   , 
                                   
                                     y 
                                     ′ 
                                   
                                 
                                 ) 
                               
                             
                             - 
                             
                               
                                 I 
                                 
                                   M 
                                   
                                     p 
                                     ′ 
                                   
                                 
                               
                                
                               
                                 ( 
                                 
                                   
                                     x 
                                     ′ 
                                   
                                   , 
                                   
                                     
                                       y 
                                       ′ 
                                     
                                     + 
                                     1 
                                   
                                 
                                 ) 
                               
                             
                           
                           ) 
                         
                         2 
                       
                     
                     ] 
                   
                 
               
             
             , 
           
         
       
     
         [0000]    W′ and H′ respectively represent a width and a height of the reference image, wherein preferably W′=1600 and H′=1200, a value of N′ is not larger than the width and the height of the reference image and is an integer power of 2, wherein preferably N′=1024, I M     p′    (x′, y′) represents a gray level of a pixel having a coordinate of (x′, y′) in the reference image I M     p′ acquired at the magnification of M     p′ , I M     p′    (x′+1, y′) represents a gray level of a pixel having a coordinate of (x′+1, y′) in the reference image I M     p′   , acquired at the magnification of M p′ , and I M     p′    (x′, y′+1) represents a gray level of a pixel having a coordinate of (x′, y′+1) in the reference image I M     p′    acquired at the magnification of M p′ ; and 
         [0073]    {circle around (4)}-3, comparing the relatively clearest position at each of the P different magnifications acquired in the operations in step {circle around (1)} to step {circle around (3)} with the parfocal position of the reference image acquired at each of the P different magnifications one by one, judging whether the relatively clearest position at each of the P different magnifications acquired in the operations in step {circle around (1)} to step {circle around (3)} is the parfocal position, for the relatively clearest position at the magnification of M p′  acquired in the operations in step {circle around (1)} to step {circle around (3)}, wherein M p′  is the No. p′ magnification in the P different magnifications, setting a judging condition of the relatively clearest position as 
         [0000]    
       
         
           
             Parfocality 
             = 
             
               { 
               
                 
                   
                     
                       parfocal 
                       , 
                     
                   
                   
                     
                       
                         if 
                          
                         
                             
                         
                          
                         
                           
                              
                             
                               
                                 
                                   F 
                                   
                                     C 
                                     1 
                                   
                                 
                                  
                                 
                                   ( 
                                   
                                     I 
                                     
                                       M 
                                       
                                         p 
                                         ′ 
                                       
                                     
                                   
                                   ) 
                                 
                               
                               - 
                               
                                 
                                   F 
                                   
                                     C 
                                     1 
                                   
                                 
                                 ( 
                                 
                                   I 
                                   
                                     
                                       M 
                                       
                                         p 
                                         ′ 
                                       
                                     
                                      
                                     
                                       θ 
                                       
                                         M 
                                         
                                           p 
                                           ′ 
                                         
                                       
                                     
                                   
                                 
                                 ) 
                               
                             
                              
                           
                           
                             
                               F 
                               
                                 C 
                                 1 
                               
                             
                              
                             
                               ( 
                               
                                 
                                   I 
                                   M 
                                 
                                 
                                   p 
                                   ′ 
                                 
                               
                               ) 
                             
                           
                         
                       
                       &lt; 
                       
                         α 
                         
                           p 
                           ′ 
                         
                       
                     
                   
                 
                 
                   
                     
                       
                         not 
                          
                         
                             
                         
                          
                         parfocal 
                       
                       , 
                     
                   
                   
                     
                       
                         
                           if 
                            
                           
                               
                           
                            
                           
                             
                                
                               
                                 
                                   
                                     F 
                                     
                                       C 
                                       1 
                                     
                                   
                                    
                                   
                                     ( 
                                     
                                       I 
                                       
                                         M 
                                         
                                           p 
                                           ′ 
                                         
                                       
                                     
                                     ) 
                                   
                                 
                                 - 
                                 
                                   
                                     F 
                                     
                                       C 
                                       1 
                                     
                                   
                                   ( 
                                   
                                     I 
                                     
                                       
                                         M 
                                         
                                           p 
                                           ′ 
                                         
                                       
                                        
                                       
                                         θ 
                                         
                                           M 
                                           
                                             p 
                                             ′ 
                                           
                                         
                                       
                                     
                                   
                                   ) 
                                 
                               
                                
                             
                             
                               
                                 F 
                                 
                                   C 
                                   1 
                                 
                               
                                
                               
                                 ( 
                                 
                                   I 
                                   
                                     M 
                                     
                                       p 
                                       ′ 
                                     
                                   
                                 
                                 ) 
                               
                             
                           
                         
                         ≥ 
                         
                           α 
                           
                             p 
                             ′ 
                           
                         
                       
                       , 
                     
                   
                 
               
             
           
         
       
     
         [0000]    wherein θ M     p′    represents the focusing knob angle corresponding to the relatively clearest position at the magnification of M p′  in the P different magnifications acquired in the operations in step {circle around (1)} to step {circle around (3)}, 
         [0000]    
       
         
           
             
               F 
               
                 C 
                 1 
               
             
             ( 
             
               I 
               
                 
                   M 
                   
                     P 
                     ′ 
                   
                 
                  
                 
                   θ 
                   
                     M 
                     
                       P 
                       ′ 
                     
                   
                 
               
             
             ) 
           
         
       
     
         [0000]    represents the highest definition corresponding to the relatively clearest position at the magnification of M p′  in the P different magnification, calculated according to the gradient square function F C     1    ( ) in the operations in step {circle around (1)} to step {circle around (3)}, the symbol “∥” is an absolute value symbol, and α p′  represents a threshold value for judging the parfocality at the magnification of M p′ . 
         [0074]    In the above embodiment, when the magnification is 6.5, α p′  is 0.30%; when the magnification is 5, α p′  is 0.56%; when the magnification is 4, α p′  is 0.06%; when the magnification is 2, α p′  is 1.40%; when the magnification is 1, α p′  is 0.038%; when the magnification is 0.8, α p′  is 0.10%; herein, other values of α p′  can be acquired via a large number of experiments based on contents recorded in step {circle around (1)} to step {circle around (4)}. 
         [0075]    Whether the relatively clearest position at each of the P different magnifications acquired according to the operations in step {circle around (1)} to step {circle around (3)} is the parfocal position is judged according to the above step {circle around (4)}-1 to step {circle around (4)}-3; when the relatively clearest position at each of the magnifications is the parfocal position, the parfocality detection is confirmed to be successful; however, these parfocal positions are discrete magnitudes, so these discrete magnitudes are fitted to acquire a parfocal curve of the zoom-stereo microscope in the embodiment, that is to fit the parfocal curve of the zoom-stereo microscope via a least square method, according to the parfocal positions at each of the P different magnifications; the parfocal curve is represented in a polynomial form as d(M)=a 0 +a 1 M+a 2 M 2 +L+a L M L , wherein d represents a distance between an objective lens and an objective table of the zoom-stereo microscope when the zoom-stereo microscope is parfocal, d(M) represents the parfocal curve, consisting of the distances between the objective lens and the objective table corresponding to the parfocal positions at the P different magnifications acquired in the step {circle around (4)}, namely consisting of the distances d between the objective lens and the objective table when the zoom-stereo microscope is parfocal at each of the P different magnifications, M represents the magnification, M 2  represents a second power of M, M L  represents a No. L power of M, Mε{M 1 , M 2 , L, M P-1 , M P }, M 1 , M 2 , L, M P-1 , M P  represent the P different magnifications, a 0 , a 1 , a 2 , . . . , a L  represent undetermined coefficients in d(M)=a 0 +a 1 M+a 2 M 2 +L+a L M L , L represents an order of the parfocal curve, and a value of L is usually set near P, e.g. when P=6 in the embodiment, the value of L is 3, 5, or 8. Fitting the parfocal curve of the zoom-stereo microscope comprises: 
         [0076]    a, calculating a height of the objective lens of the zoom-stereo microscope at each of the P different magnifications acquired in the step {circle around (4)}, when the parfocal position is at θ M     p′   , denoting the height of the objective lens as d M     p′   , wherein M p′  is the No. p′ magnification in the P different magnifications, θ M     p′    is the parfocal position at the magnification of M p′ , d M     p′   =d 0 +θ M     p′   ×Δd, d 0  represents the height of the objective lens when the focusing knob is in the benchmark position, Δd represents a distance the objective lens moves after the focusing knob is turned by 1 degree, 
         [0000]    
       
         
           
             
               
                 Δ 
                  
                 
                     
                 
                  
                 d 
               
               = 
               
                 
                   
                     d 
                     max 
                   
                   - 
                   
                     d 
                     min 
                   
                 
                 n 
               
             
             , 
           
         
       
     
         [0000]    d max  represents the height of the objective lens when the focusing knob adjusts the objective lens to a highest position, d min  represents the height of the objective lens when the focusing knob adjusts the objective lens to a lowest position, n represents the degrees the focusing knob is turned by in a course that the focusing knob adjusts the objective lens from the lowest position to the highest position, a unit of n is degree, as shown in d M     p′   =d 0 +θ M     p′   ×Δd, and a one-to-one correspondence exists between the focusing knob angle and the height of the objective lens, wherein the focusing knob angle is the relative angle between the focusing knob and the benchmark position; 
         [0077]    wherein it&#39;s worth mentioning that the height of the objective lens is a distance between a bottom of the objective lens and the objective table, and  FIG. 2   b  is a sketch view of positions of the objective lens and the objective table of the zoom-stereo microscope. 
         [0078]    b, forming P discrete points with each magnification in the P different magnifications and the corresponding height of the objective lens, for M p′ , which is the No. p′ magnification in the P different magnifications, forming the discrete point with M p′  and the corresponding height of the objective lens d M     p′    and denoting the discrete point as (M p′ ,d M     p′   ); 
         [0079]    c, constructing the parfocal curve of the zoom-stereo microscope, denoted as d(M)=a 0 +a 1 M+a 2 M 2 +L+a L M L , acquiring sum of squares of errors of the P discrete points according to d(M)=a 0 +a 1 M+a 2 M 2 +L+a L M L , wherein the sum of squares of errors of the P discrete points is denoted as T(a 0 , a 1 , L, a L ), 
         [0000]    
       
         
           
             
               
                 T 
                  
                 
                   ( 
                   
                     
                       a 
                       0 
                     
                     , 
                     
                       a 
                       1 
                     
                     , 
                     L 
                     , 
                     
                       a 
                       L 
                     
                   
                   ) 
                 
               
               = 
               
                 
                   ∑ 
                   
                     i 
                     = 
                     1 
                   
                   P 
                 
                  
                 
                     
                 
                  
                 
                   
                     ( 
                     
                       
                         ( 
                         
                           
                             a 
                             0 
                           
                           + 
                           
                             
                               a 
                               1 
                             
                              
                             
                               M 
                               i 
                             
                           
                           + 
                           
                             
                               a 
                               2 
                             
                              
                             
                               M 
                               i 
                               2 
                             
                           
                           + 
                           L 
                           + 
                           
                             
                               a 
                               L 
                             
                              
                             
                               M 
                               i 
                               L 
                             
                           
                         
                         ) 
                       
                       - 
                       
                         d 
                         
                           M 
                           i 
                         
                       
                     
                     ) 
                   
                   2 
                 
               
             
             , 
           
         
       
     
         [0000]    and a partial derivative of each of undetermined coefficients in 
         [0000]    
       
         
           
             
               T 
                
               
                 ( 
                 
                   
                     a 
                     0 
                   
                   , 
                   
                     a 
                     1 
                   
                   , 
                   L 
                   , 
                   
                     a 
                     L 
                   
                 
                 ) 
               
             
             = 
             
               
                 ∑ 
                 
                   i 
                   = 
                   1 
                 
                 P 
               
                
               
                   
               
                
               
                 
                   ( 
                   
                     
                       ( 
                       
                         
                           a 
                           0 
                         
                         + 
                         
                           
                             a 
                             1 
                           
                            
                           
                             M 
                             i 
                           
                         
                         + 
                         
                           
                             a 
                             2 
                           
                            
                           
                             M 
                             i 
                             2 
                           
                         
                         + 
                         L 
                         + 
                         
                           
                             a 
                             L 
                           
                            
                           
                             M 
                             i 
                             L 
                           
                         
                       
                       ) 
                     
                     - 
                     
                       d 
                       
                         M 
                         i 
                       
                     
                   
                   ) 
                 
                 2 
               
             
           
         
       
     
         [0000]    is set to zero to minimize T(a 0 , a 1 , L, a L ), namely 
         [0000]    
       
         
           
             
               
                 
                   ∂ 
                   T 
                 
                 
                   ∂ 
                   
                     a 
                     l 
                   
                 
               
               = 
               
                 
                   2 
                    
                   
                     
                       ∑ 
                       
                         i 
                         = 
                         1 
                       
                       P 
                     
                      
                     
                         
                     
                      
                     
                       
                         ( 
                         
                           
                             ( 
                             
                               
                                 a 
                                 0 
                               
                               + 
                               
                                 
                                   a 
                                   1 
                                 
                                  
                                 
                                   M 
                                   i 
                                 
                               
                               + 
                               
                                 
                                   a 
                                   2 
                                 
                                  
                                 
                                   M 
                                   i 
                                   2 
                                 
                               
                               + 
                               L 
                               + 
                               
                                 
                                   a 
                                   L 
                                 
                                  
                                 
                                   M 
                                   i 
                                   L 
                                 
                               
                             
                             ) 
                           
                           - 
                           
                             d 
                             
                               M 
                               i 
                             
                           
                         
                         ) 
                       
                        
                       
                         M 
                         i 
                         l 
                       
                     
                   
                 
                 = 
                 0 
               
             
             , 
           
         
       
     
         [0000]    wherein M i  represents a No. i magnification in the P different magnifications, d M     p′    represents the height of the objective lens of the zoom-stereo microscope corresponding to the parfocal position at the magnification of M i , M i   l  represents a No. l power of M i , and 1≦l≦L; and 
         [0080]    d, acquiring a system of linear equations consisting of L equations according to step c, calculating values of the undetermined coefficient in d(M)=a 0 +a 1 M+a 2 M 2 +L+a L M L  according to the system of linear equations, and finally acquiring the parfocal curve d(M)=a 0 +a 1 M+a 2 M 2 +L+a L M L  according to the values of the undetermined coefficients.  FIG. 5  shows 3 rd , 5 th , and 8 th  parfocal curves fitted finally, as shown in  FIG. 5 , the 3 rd  parfocal curve, namely L=3, doesn&#39;t pass through all of the 6 discrete points, so that an error is large, the 8 th  parfocal curve, namely L=8, passes through all of the 6 discrete points, but an amplitude of fluctuation of the curve is large, the 5 th  parfocal curve, namely L=5, passes through all of the 6 discrete points, and the amplitude of fluctuation is less, so adopting the 5 th  parfocal curve has a best effect. 
         [0081]    One skilled in the art will understand that the embodiment of the present invention as shown in the drawings and described above is exemplary only and not intended to be limiting. 
         [0082]    It will thus be seen that the objects of the present invention have been fully and effectively accomplished. Its embodiments have been shown and described for the purposes of illustrating the functional and structural principles of the present invention and is subject to change without departure from such principles. Therefore, this invention includes all modifications encompassed within the spirit and scope of the following claims.