Abstract:
A method of measuring a distance by using a 3-dimensional (3D) depth sensor is provided. The method may include: measuring m number of frames using light modulated at a first frequency to determine a first tentative distance from a viewpoint to an object at the first frequency, m being a positive integer; measuring n number of frames using light modulated at a second frequency to determine a second tentative distance from the viewpoint to the object at the second frequency, n being a positive integer, a sum of m and n being four; and determining a resulting distance to the object based on the first distance and the second distance.

Description:
CROSS-REFERENCE TO RELATED APPLICATION 
       [0001]    This application claims priority from Korean Patent Application No. 10-2015-0149725, filed on Oct. 27, 2015, in the Korean Intellectual Property Office, the disclosure of which is incorporated herein in by reference its entirety. 
       BACKGROUND 
       [0002]    1. Field 
         [0003]    Apparatuses and methods consistent with exemplary embodiments relate to measuring a distance by using an optical shutter, and more particularly, to measuring a distance by using a 3-dimensional (3D) depth sensor including an optical shutter. 
         [0004]    2. Description of the Related Art 
         [0005]    A 3-dimensional (3D) depth sensor that includes an optical shutter or a depth camera is a sensor using a time of flight (TOF) method. The 3D depth sensor measures a distance to an object by measuring a time for light that is emitted from a light source and is reflected by the object to return thereto. The 3D depth sensor may be used as a motion capture sensor in various user interfaces. Also, the 3D depth sensor may be used for measuring distances and detecting various 3D shapes. For example, the 3D depth sensor may be used as a camera for detecting depth information in industrial fields and as a range sensor in military laser radar or robotic navigation. 
       SUMMARY 
       [0006]    One or more exemplary embodiments provide methods of measuring a distance by using a 3-dimensional (3D) depth sensor to increase measuring distances and accuracy of distance measurement. 
         [0007]    According to an example embodiment, there is provided a method of measuring a distance by using a 3D depth sensor including measuring m number of frames using light modulated at a first frequency to determine a first tentative distance from a viewpoint to an object at the first frequency; measuring n number of frames using light modulated at a second frequency to determine a second tentative distance from the viewpoint to the object at the second frequency; and determining a resulting distance to the object based on the first distance and the second distance. m and n may be positive integers, and a sum of m and n may be four. 
         [0008]    The measuring the first distance may include: measuring a first phase with respect to the first frequency; and determining the first distance based on the first phase. 
         [0009]    The measuring of the second distance may include: measuring a second phase with respect to the second frequency; and determining the second distance based on the second phase. 
         [0010]    An A value and a B value of an image signal integrated at the depth sensor are determined based on the following equations: 
         [0000]        I   1   =A  cos φ 1   +B  
 
         [0000]        I   2   =αA  cos φ 2   +βB  
 
         [0000]    I 1  denotes a frame of the m number of frames, I 2  denotes a frame of the n number of frames, φ 1  denotes the first phase, and φ 2  denotes the second phase. An amplitude and an offset of a drive signal to drive an optical shutter may be controlled to set α and β to be 1. 
         [0011]    m may be one, two, or three. 
         [0012]    N may be one, two, or three. 
         [0013]    The method may further include measuring k number of frames to determine a third tentative distance to the object at the third frequency, wherein the determining the resulting distance comprises determining the resulting distance based on the first tentative distance, the second tentative distance, and the third tentative distance, and wherein k, n, and m are two, respectively. 
         [0014]    According to an aspect of another exemplary embodiment, there is provided a non-transitory computer readable storage medium storing a program that is executable by a computer to perform a method, the method including: measuring m number of frames using light modulated at a first frequency to determine a first tentative distance from a viewpoint to an object at the first frequency; measuring n number of frames using light modulated at a second frequency to determine a second tentative distance from the viewpoint to the object at the second frequency; and determining a resulting distance to the object based on the first distance and the second distance. m and n may be positive integers, and a sum of m and n may be four. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0015]    The above and/or other aspects will be more apparent by describing certain exemplary embodiments, with reference to the accompanying drawings, in which: 
           [0016]      FIG. 1  is a cross-sectional view showing a configuration of a 3-dimensional (3D) depth sensor including an optical shutter and a phase of a frequency used for driving the 3D depth sensor, according to an exemplary embodiment; 
           [0017]      FIG. 2  is a flowchart of a method of measuring a distance by using the 3D depth sensor, according to an exemplary embodiment; 
           [0018]      FIG. 3  is a graph showing a result of simulation with respect to distance measurements by using a distance measuring method, according to an exemplary embodiment; and 
           [0019]      FIG. 4  is a graph showing a result of simulation with respect to distance measurements by using a measuring method that uses a single frequency (20 MHz), according to the related art. 
       
    
    
     DETAILED DESCRIPTION 
       [0020]    Exemplary embodiments are described in greater detail below with reference to the accompanying drawings. 
         [0021]    In the following description, like drawing reference numerals are used for like elements, even in different drawings. The matters defined in the description, such as detailed construction and elements, are provided to assist in a comprehensive understanding of the exemplary embodiments. However, it is apparent that the exemplary embodiments can be practiced without those specifically defined matters. Also, well-known functions or constructions are not described in detail since they would obscure the description with unnecessary detail. 
         [0022]    As depicted in  FIG. 1 , a depth sensor  10  that is used for measuring a distance may include a light source  30 , a lens  34 , an optical shutter  36 , and an image sensor  38 . The depth sensor  10  may further include a processor that calculates a phase of measured light and a display that visually provides distance information based on the calculated phase. The lens  34  focuses light reflected off the object  32 . Light that has passed through the lens  34  is transmitted to the image sensor  38  through the optical shutter  36 . The light source  30  may be, for example, a light source that emits infra-red rays, but is not limited thereto. The image sensor  38  may be, for example, a complementary metal oxide semiconductor (CMOS), but is not limited thereto. Light emitted from the light source  30  may be modulated by using a given frequency, and the optical shutter  36  may be driven by a frequency that is the same as the given frequency. 
         [0023]    When one frequency is used for modulation of light emitted from the light source  30  and used for driving the optical shutter  36 , a maximum distance to be measured by using the depth sensor  10  may be determined according to the frequency. 
         [0024]    For example, when the frequency is 20 MHz, the maximum measurable distance may be limited to 7,500 mm. When a measuring distance exceeds this limit, it may be difficult to distinguish a distance to an object within one cycle or beyond one cycle, due to cycle ambiguity. Also, a driving frequency may be increased to enhance an accuracy of distance measurement, but the measurable distance may be reduced. 
         [0025]    In order to address this problem, a driving method in which three frequencies are used has been proposed. However, in this case, in order to perform a single update of distance information with respect to an object, three frames per frequency are measured. As a result, 9 frames of data are measured for a single update. 
         [0026]    However, in this driving method, although the measurable distance and the accuracy of distance measurement may be increased since a plurality of frequencies are used, 9 frame measurements are required for a single update of the distance information. 
         [0027]    In a driving method in which a single frequency is used, distance information may be updated by measuring only four frames. Therefore, the driving method in which three frames per single frequency are measured may have a problem in that the time taken to update the distance information may be longer than that of the driving method in which a single frequency is used. 
         [0028]    A distance measuring method according to an exemplary embodiment may use two frequencies, and the number of frames to be measured for updating distance information may be less than or equal to four frames. Accordingly, the distance measuring method according to an exemplary embodiment may maintain the time for updating the distance information to be equal to the case when a single frequency is used while increasing the measuring distance and the accuracy of distance measurement. 
         [0029]    Also, a distance measuring method according to an exemplary embodiment may use more than three frequencies. In this case, two frames per frequency are measured. Accordingly, in the case of the distance measuring method according to an exemplary embodiment, the total number of frames may be reduced compared to the driving method in which three frames per single frequency are measured. 
         [0030]    Hereinafter, a method of measuring a distance by using a three-dimensional (3D) depth sensor including an optical shutter, according to an exemplary embodiment will be described in detail with reference to the accompanying drawings. In the drawings, thicknesses of layers or regions may be exaggerated for clarity of the specification. 
         [0031]      FIG. 2  is a flowchart of a method of measuring a distance by using the 3D depth sensor according to an exemplary embodiment. 
         [0032]    Referring to  FIG. 2 , a frame with respect to a first frequency may be measured in operation S 1 . 
         [0033]    Light modulated by using the first frequency is emitted from the light source  30 , and afterwards, the light enters the image sensor  38  through the lens  34  and the optical shutter  36  after being reflected off the object  32 . An intensity of the light incident to the image sensor  38  may be measured in operation S 1 . 
         [0034]    The number of frame measurements with respect to the first frequency may be from one to three. However, if three frequencies are used to measure a distance, the number of frame measurements with respect to the first frequency may be two. 
         [0035]    When the frame measurements with respect to the first frequency are performed two times, light that is measured at the first measurement may be the light emitted at a phase 0° in  FIG. 1 . Also, light that is measured at the second measurement may be the light emitted at a phase 90° in  FIG. 1 . When the frame measurements with respect to the first frequency are performed three times, light that is measured at the third measurement may be the light emitted at a phase 180° in  FIG. 1 . In the process of frame measurements, a frequency equal to the first frequency may be applied to the optical shutter  36  as a driving frequency. At this point, there may be a phase difference of 90° or more between a driving frequency applied to the optical shutter  36  and a driving frequency applied to the light source  30 . 
         [0036]    In operation S 2 , a first phase φ 1  with respect to the first frequency may be calculated. 
         [0037]    The operation S 2  is a process of measuring a phase (the first phase φ 1 ) of light incident to the optical shutter  36  when the light modulated by the first frequency is reflected off the object  32  and enters the optical shutter  36 , which will be described below. 
         [0038]    In operation S 3 , a frame with respect to a second frequency may be measured. 
         [0039]    The second frequency is different from the first frequency. Light that is modulated by the second frequency is emitted from the light source  30  and enters the image sensor  38  through the lens  34  and the optical shutter  36  after being reflected off the object  32 . The operation S 3  may be a process of measuring an intensity of the light incident to the image sensor  38 . 
         [0040]    The number of frame measurements with respect to the second frequency may be from one to three. However, when the frequencies used for measuring a distance are three, the number of frame measurements with respect to the second frequency may be two. A total number of frame measurements, that is, the sum of the number of frame measurements with respect to the first frequency and the number of frame measurements with respect to the second frequency for updating the distance information of the object  32  may not exceed four. Accordingly, the number of frame measurements with respect to the first frequency and the number of frame measurements with respect to the second frequency may be determined based on the total number of frame measurements. For exemplary, when the frame measurements with respect to the first frequency are performed three times, the number of frame measurements with respect to the second frequency may be performed once, and vice versa. Also, when the frame measurements with respect to the first frequency are performed twice, the frame measurements with respect to the second frequency may be performed twice. 
         [0041]    When three frequencies are used, the total number of frame measurements may be six in order to perform a single update of the distance information. 
         [0042]    When the frame measurements with respect to the second frequency are performed twice, light that is measured at the first measurement may be the light emitted at a phase 180° in  FIG. 1 , and light that is measured at the second measurement may be the light emitted at a phase 270° in  FIG. 1 . When the frame measurements with respect to the first frequency are performed three times, the frame measurements with respect to the second frequency may be performed once, and at this point, the light measured may be the light emitted at a phase 270° in FIG. 
         [0043]    In the process of frame measurements with respect to the second frequency, a frequency equal to the second frequency may be applied to the optical shutter  36  as a driving frequency. At this point, there may be a phase difference of 90° or more between a driving frequency applied to the optical shutter  36  and a driving frequency applied to the light source  30 . 
         [0044]    In operation S 4 , a second phase φ 2  with respect to the second frequency is calculated. 
         [0045]    The fourth operation S 4  is a process of measuring a phase (the second phase φ 2 ) of light incident to the optical shutter  36  when the light modulated by the second frequency is reflected off the object  32  and enters the optical shutter  36 . The second phase φ 2  may be calculated by using the following Equations 1 through 7. In this process, the first phase φ 1  may be calculated together with the second phase φ 2 . The first phase φ 1  and the second phase φ 2  include distance information to the object  32 . Accordingly, a distance to the object  32  may be obtained by measuring the first phase φ 1  and the second phase φ 2  and using an algorithm (e.g., a computer-implemented program). 
         [0046]    Equations 1 through 3 shown below indicate a process of calculating the first phase φ 1  and the second phase φ 2  when the frame measurements with respect to the first frequency and the frame measurements with respect to the second frequency are respectively performed twice. 
         [0000]    
       
         
           
             
               
                 
                   
                     
                       I 
                       1 
                     
                     = 
                     
                       
                         A 
                          
                         
                             
                         
                          
                         cos 
                          
                         
                             
                         
                          
                         
                           φ 
                           1 
                         
                       
                       + 
                       B 
                     
                   
                    
                   
                     
 
                   
                    
                   
                     
                       I 
                       2 
                     
                     = 
                     
                       
                         A 
                          
                         
                             
                         
                          
                         sin 
                          
                         
                             
                         
                          
                         
                           φ 
                           1 
                         
                       
                       + 
                       B 
                     
                   
                    
                   
                     
 
                   
                    
                   
                     
                       I 
                       3 
                     
                     = 
                     
                       
                         αA 
                          
                         
                             
                         
                          
                         cos 
                          
                         
                             
                         
                          
                         
                           φ 
                           2 
                         
                       
                       + 
                       
                         β 
                          
                         
                             
                         
                          
                         B 
                       
                     
                   
                    
                   
                     
 
                   
                    
                   
                     
                       I 
                       4 
                     
                     = 
                     
                       
                         αA 
                          
                         
                             
                         
                          
                         sin 
                          
                         
                             
                         
                          
                         
                           φ 
                           2 
                         
                       
                       + 
                       
                         β 
                          
                         
                             
                         
                          
                         B 
                       
                     
                   
                    
                   
                     
 
                   
                    
                   
                     
                       φ 
                       1 
                     
                     = 
                     
                       a 
                        
                       
                           
                       
                        
                       
                         tan 
                          
                         
                           ( 
                           
                             
                               
                                 I 
                                 2 
                               
                               - 
                               B 
                             
                             
                               
                                 I 
                                 1 
                               
                               - 
                               B 
                             
                           
                           ) 
                         
                       
                     
                   
                    
                   
                     
 
                   
                    
                   
                     
                       φ 
                       2 
                     
                     = 
                     
                       a 
                        
                       
                           
                       
                        
                       
                         tan 
                          
                         
                           ( 
                           
                             
                               
                                 I 
                                 4 
                               
                               - 
                               
                                 β 
                                  
                                 
                                     
                                 
                                  
                                 B 
                               
                             
                             
                               
                                 I 
                                 3 
                               
                               - 
                               
                                 β 
                                  
                                 
                                     
                                 
                                  
                                 B 
                               
                             
                           
                           ) 
                         
                       
                     
                   
                    
                   
                     
 
                   
                    
                   
                     
                       φ 
                       2 
                     
                     = 
                     
                       
                         
                           f 
                           1 
                         
                         
                           f 
                           2 
                         
                       
                        
                       
                         φ 
                         1 
                       
                     
                   
                 
               
               
                 
                   [ 
                   
                     Equation 
                      
                     
                         
                     
                      
                     1 
                   
                   ] 
                 
               
             
           
         
       
     
         [0047]    In Equation 1, I 1  and I 2  indicate two frames measured with respect to the first frequency in the operation S 1 . I 3  and I 4  indicate two frames measured with respect to the second frequency in the operation S 3 . Parameters f1 and f2 respectively indicate frequencies of the first frequency and the second frequency. B of Equation 1 may be obtained from a quadratic equation with respect to B of Equation 2. 
         [0000]    
       
         
           
             
               
                 
                   
                       
                   
                    
                   
                     
                       
                         
                           ( 
                           
                             
                               I 
                               1 
                             
                             - 
                             B 
                           
                           ) 
                         
                         2 
                       
                       + 
                       
                         
                           ( 
                           
                             
                               I 
                               2 
                             
                             - 
                             B 
                           
                           ) 
                         
                         2 
                       
                     
                     = 
                     
                       
                         
                           
                             
                               A 
                               2 
                             
                              
                             
                               
 
                             
                             ( 
                             
                               
                                 I 
                                 3 
                               
                               - 
                               
                                 β 
                                  
                                 
                                     
                                 
                                  
                                 B 
                               
                             
                             ) 
                           
                           2 
                         
                         + 
                         
                           
                             ( 
                             
                               
                                 I 
                                 4 
                               
                               - 
                               
                                 β 
                                  
                                 
                                     
                                 
                                  
                                 B 
                               
                             
                             ) 
                           
                           2 
                         
                       
                       = 
                       
                         
                           
                             
                               ( 
                               
                                 α 
                                  
                                 
                                     
                                 
                                  
                                 A 
                               
                               ) 
                             
                             2 
                           
                           ⇒ 
                           
                             
                               
                                 
                                   ( 
                                   
                                     
                                       I 
                                       3 
                                     
                                     - 
                                     
                                       β 
                                        
                                       
                                           
                                       
                                        
                                       B 
                                     
                                   
                                   ) 
                                 
                                 2 
                               
                               + 
                               
                                 
                                   ( 
                                   
                                     
                                       I 
                                       4 
                                     
                                     - 
                                     
                                       β 
                                        
                                       
                                           
                                       
                                        
                                       B 
                                     
                                   
                                   ) 
                                 
                                 2 
                               
                             
                             
                               α 
                               2 
                             
                           
                         
                         = 
                         
                           
                             
                               
                                 
                                   A 
                                   2 
                                 
                                  
                                 
                                   
 
                                 
                                 ( 
                                 
                                   
                                     I 
                                     1 
                                   
                                   - 
                                   B 
                                 
                                 ) 
                               
                               2 
                             
                             + 
                             
                               
                                 ( 
                                 
                                   
                                     I 
                                     2 
                                   
                                   - 
                                   B 
                                 
                                 ) 
                               
                               2 
                             
                           
                           = 
                           
                             
                               
                                 
                                   
                                     
                                       ( 
                                       
                                         
                                           I 
                                           3 
                                         
                                         - 
                                         
                                           β 
                                            
                                           
                                               
                                           
                                            
                                           B 
                                         
                                       
                                       ) 
                                     
                                     2 
                                   
                                   + 
                                   
                                     
                                       ( 
                                       
                                         
                                           I 
                                           4 
                                         
                                         - 
                                         
                                           β 
                                            
                                           
                                               
                                           
                                            
                                           B 
                                         
                                       
                                       ) 
                                     
                                     2 
                                   
                                 
                                 
                                   α 
                                   2 
                                 
                               
                               ⇒ 
                               
                                 
                                   2 
                                    
                                   
                                     ( 
                                     
                                       1 
                                       - 
                                       
                                         
                                           β 
                                           2 
                                         
                                         
                                           α 
                                           2 
                                         
                                       
                                     
                                     ) 
                                   
                                    
                                   
                                     B 
                                     2 
                                   
                                 
                                 - 
                                 
                                   2 
                                    
                                   
                                     ( 
                                     
                                       
                                         I 
                                         1 
                                       
                                       + 
                                       
                                         I 
                                         2 
                                       
                                       - 
                                       
                                         
                                           β 
                                           
                                             α 
                                             2 
                                           
                                         
                                          
                                         
                                           I 
                                           3 
                                         
                                       
                                       - 
                                       
                                         
                                           β 
                                           
                                             α 
                                             2 
                                           
                                         
                                          
                                         
                                           I 
                                           4 
                                         
                                       
                                     
                                     ) 
                                   
                                    
                                   B 
                                 
                                 + 
                                 
                                   ( 
                                   
                                     
                                       I 
                                       1 
                                       2 
                                     
                                     + 
                                     
                                       I 
                                       2 
                                       2 
                                     
                                     - 
                                     
                                       
                                         I 
                                         3 
                                         2 
                                       
                                       
                                         α 
                                         2 
                                       
                                     
                                     - 
                                     
                                       
                                         I 
                                         4 
                                         2 
                                       
                                       
                                         α 
                                         2 
                                       
                                     
                                   
                                   ) 
                                 
                               
                             
                             = 
                             0 
                           
                         
                       
                     
                   
                 
               
               
                 
                   [ 
                   
                     Equation 
                      
                     
                         
                     
                      
                     2 
                   
                   ] 
                 
               
             
           
         
       
     
         [0048]    In Equation 2, when α and β are 1, the equation with respect to B may be simplified as Equation 3. 
         [0049]    As in the distance measuring method by using a 3D depth sensor according to an exemplary embodiment, when two different frequencies from each other are used for driving the depth sensor  10 , an A value and a B value of a signal integrated in the image sensor  38  may become αA and βB. When a driving voltage of the optical shutter  36  is set in an appropriate ratio according to corresponding frequencies, that is, through an appropriate control of an amplitude and offset when the optical shutter  36  is driven, it may be set as α=1 and β=1. In this case, a computation with respect to B may be simplified as shown in Equation 3. As a result, a distance calculation is simplified. 
         [0000]    
       
         
           
             
               
                 
                   
                     B 
                     = 
                     
                       
                         
                           I 
                           1 
                           2 
                         
                         + 
                         
                           I 
                           2 
                           2 
                         
                         - 
                         
                           I 
                           3 
                           2 
                         
                         - 
                         
                           I 
                           4 
                           2 
                         
                       
                       
                         2 
                          
                         
                           ( 
                           
                             
                               I 
                               1 
                             
                             + 
                             
                               I 
                               2 
                             
                             - 
                             
                               I 
                               3 
                             
                             - 
                             
                               I 
                               4 
                             
                           
                           ) 
                         
                       
                     
                   
                   , 
                   
                     
 
                   
                    
                   
                     
                       φ 
                       1 
                     
                     = 
                     
                       a 
                        
                       
                           
                       
                        
                       
                         tan 
                          
                         
                           ( 
                           
                             
                               
                                 I 
                                 2 
                               
                               - 
                               B 
                             
                             
                               
                                 I 
                                 1 
                               
                               - 
                               B 
                             
                           
                           ) 
                         
                       
                     
                   
                   , 
                   
                     
                       φ 
                       2 
                     
                     = 
                     
                       a 
                        
                       
                           
                       
                        
                       
                         tan 
                          
                         
                           ( 
                           
                             
                               
                                 I 
                                 4 
                               
                               - 
                               B 
                             
                             
                               
                                 I 
                                 3 
                               
                               - 
                               B 
                             
                           
                           ) 
                         
                       
                     
                   
                   , 
                 
               
               
                 
                   [ 
                   
                     Equation 
                      
                     
                         
                     
                      
                     3 
                   
                   ] 
                 
               
             
           
         
       
     
         [0050]    Equations 4 through 6 shown below indicate a process of calculating the first phase φ 1  and the second phase φ 2  when the frame measurements with respect to the first frequency are performed three times and the frame measurement with respect to the second frequency is performed once. In this process, α and β are set as α=1 and β=1. 
         [0000]        I   1   =A  cos(φ 1 +α 1 )+ B  
 
         [0000]        I   2   =A  cos(φ 1 +α 2 )+ B  
 
         [0000]        I   3   =A  cos(φ 1 +α 3 )+ B  
 
         [0000]        I   4   =A  cos φ 2   +B   [Equation 4]
 
         [0051]    In Equation 4, I 1  through I 3  indicate three frames measured with respect to the first frequency in operation S 1 . I 4  indicates one frame measured with respect to the second frequency in operation S 3 . 
         [0052]    A and B in Equation 4 may be obtained by using Equation 5. 
         [0000]    
       
         
           
             
               
                 
                   
                     A 
                     = 
                     
                       
                         
                           I 
                           1 
                         
                         - 
                         
                           I 
                           2 
                         
                       
                       
                         ( 
                         
                           
                             cos 
                              
                             
                               ( 
                               
                                 
                                   φ 
                                   1 
                                 
                                 + 
                                 
                                   α 
                                   1 
                                 
                               
                               ) 
                             
                           
                           - 
                           
                             cos 
                              
                             
                               ( 
                               
                                 
                                   φ 
                                   1 
                                 
                                 + 
                                 
                                   α 
                                   2 
                                 
                               
                               ) 
                             
                           
                         
                         ) 
                       
                     
                   
                   , 
                   
                     
 
                   
                    
                   
                     B 
                     = 
                     
                       
                         I 
                         1 
                       
                       - 
                       
                         A 
                          
                         
                             
                         
                          
                         
                           cos 
                            
                           
                             ( 
                             
                               
                                 φ 
                                 1 
                               
                               + 
                               
                                 α 
                                 1 
                               
                             
                             ) 
                           
                         
                       
                     
                   
                   , 
                 
               
               
                 
                   [ 
                   
                     Equation 
                      
                     
                         
                     
                      
                     5 
                   
                   ] 
                 
               
             
           
         
       
     
         [0053]    The first phase φ 1  and the second phase φ 2  may be obtained by using Equations 6 and 7, respectively. 
         [0000]    
       
         
           
             
               
                 
                   Φ1 
                   = 
                   
                     atan 
                      
                     
                       [ 
                       
                         
                           
                             
                               
                                 
                                   
                                     ( 
                                     
                                       
                                         I 
                                         2 
                                       
                                       - 
                                       
                                         I 
                                         3 
                                       
                                     
                                     ) 
                                   
                                    
                                   cos 
                                    
                                   
                                       
                                   
                                    
                                   
                                     α 
                                     1 
                                   
                                 
                                 - 
                               
                             
                           
                           
                             
                               
                                 
                                   
                                     ( 
                                     
                                       
                                         I 
                                         1 
                                       
                                       - 
                                       
                                         I 
                                         3 
                                       
                                     
                                     ) 
                                   
                                    
                                   cos 
                                    
                                   
                                       
                                   
                                    
                                   
                                     α 
                                     2 
                                   
                                 
                                 + 
                                 
                                   
                                     ( 
                                     
                                       
                                         I 
                                         1 
                                       
                                       - 
                                       
                                         I 
                                         2 
                                       
                                     
                                     ) 
                                   
                                    
                                   cos 
                                    
                                   
                                       
                                   
                                    
                                   
                                     α 
                                     3 
                                   
                                 
                               
                             
                           
                         
                         
                           
                             
                               
                                 
                                   
                                     ( 
                                     
                                       
                                         I 
                                         2 
                                       
                                       - 
                                       
                                         I 
                                         3 
                                       
                                     
                                     ) 
                                   
                                    
                                   sin 
                                    
                                   
                                       
                                   
                                    
                                   
                                     α 
                                     1 
                                   
                                 
                                 - 
                               
                             
                           
                           
                             
                               
                                 
                                   
                                     ( 
                                     
                                       
                                         I 
                                         1 
                                       
                                       - 
                                       
                                         I 
                                         3 
                                       
                                     
                                     ) 
                                   
                                    
                                   sin 
                                    
                                   
                                       
                                   
                                    
                                   
                                     α 
                                     2 
                                   
                                 
                                 + 
                                 
                                   
                                     ( 
                                     
                                       
                                         I 
                                         1 
                                       
                                       - 
                                       
                                         I 
                                         2 
                                       
                                     
                                     ) 
                                   
                                    
                                   sin 
                                    
                                   
                                       
                                   
                                    
                                   
                                     α 
                                     3 
                                   
                                 
                               
                             
                           
                         
                       
                       ] 
                     
                   
                 
               
               
                 
                   [ 
                   
                     Equation 
                      
                     
                         
                     
                      
                     6 
                   
                   ] 
                 
               
             
             
               
                 
                   Φ2 
                   = 
                   
                     acos 
                      
                     
                       ( 
                       
                         
                           
                             I 
                             4 
                           
                           - 
                           B 
                         
                         A 
                       
                       ) 
                     
                   
                 
               
               
                 
                   [ 
                   
                     Equation 
                      
                     
                         
                     
                      
                     7 
                   
                   ] 
                 
               
             
           
         
       
     
         [0054]    In this manner, when the first phase φ 1  and the second phase φ 2  are obtained, a distance to the object  32  is measured based on the first phase φ 1  (hereinafter, a first measurement) (operation S 5 ) and a distance to the object  32  is measured based on the second phase φ 2  (hereinafter, a second measurement) (operation S 6 ). 
         [0055]    In operation S 7 , a final distance to the object  32  is calculated and output by using data with respect to the distances obtained from the first and second measurements. 
         [0056]    The first and second measurements of operation S 6  and the calculation of operation S 7  may be performed by using an algorithm (e.g., a computer-implemented program) on a computer-readable recording medium. 
         [0057]    The computer-recording medium may be disposed in the depth sensor  10 , or alternatively, disposed in another device that may be connected to the depth sensor  10  via wire or wireless communication. The computer-readable recording medium is any data storage device that can store data that can be thereafter read by a computer system. Examples of the computer-readable recording medium include read-only memory (ROM), random-access memory (RAM), CD-ROMs, magnetic tapes, floppy disks, and optical data storage devices. The computer-readable recording medium can also be distributed over network-coupled computer systems so that the computer-readable code is stored and executed in a distributed fashion. Also, an exemplary embodiment may be written as a computer program transmitted over a computer-readable transmission medium, such as a carrier wave, and received and implemented in general-use or special-purpose digital computers that execute the programs. Moreover, it is understood that in exemplary embodiments, one or more units of the above-described apparatuses and devices can include circuitry, a processor, a microprocessor, etc., and may execute a computer program stored in a computer-readable medium. 
         [0058]    A maximum measurable distance in this method may be determined by the least common multiple of the maximum distances at each of the used frequencies. 
         [0059]    For example, when two frequencies (the first and second frequencies) are used to measure a distance, the maximum measurable distance may be the least common multiple of the maximum distances measured at the first frequency and the second frequency. Accordingly, frequencies to be used may be appropriately combined by taking into account a distance to be measured. 
         [0060]      FIG. 3  is a graph showing a result of simulation with respect to distance measurements by using a distance measuring method according to an exemplary embodiment. 
         [0061]    In a simulation for obtaining the result of  FIG. 3 , the first frequency and the second frequency are set as 30 MHz and 40 MHz, respectively and α and β are set as α=1 and β=1 in driving of the optical shutter  36 . 
         [0062]      FIG. 4  is a graph showing a result of simulation with respect to distance measurements by using a measuring method that uses a single frequency (20 MHz), according to the related art. 
         [0063]    In  FIGS. 3 and 4 , the horizontal axis indicates a distance to an object and the vertical axis indicates a depth error. 
         [0064]    In the method of measuring a distance according to an example embodiment, the depth error is 1.25% as shown in  FIG. 3 , but in the method of measuring a distance according to the related art, the depth error is 2.11% as shown in  FIG. 4 .  FIGS. 3 and 4  show that, when a distance is measured according to an exemplary embodiment, the depth error may be reduced lower than the depth error of the related art and, the accuracy of distance measurement may be increased. 
         [0065]    In the driving of the 3D depth sensor according to an exemplary embodiment, when an optical signal is measured by using a light receiving device, for example, a photodiode, it is possible to confirm that what kinds of frequency component signals are included in the optical signal in what order, that is, that two frames or three frames with respect to the first frequency are measured. Through this confirmation, whether the same computation is used or not may be confirmed. 
         [0066]    The method of measuring a distance according to an exemplary embodiment uses two different frequencies from each other. However, the number of frames measured for updating distance information may not exceed more than four frames. Accordingly, the method of measuring a distance according to an exemplary embodiment may increase a measuring distance and the accuracy of distance measurement while the time for updating the distance information is maintained as the same in the case of using a single frequency. 
         [0067]    The foregoing exemplary embodiments are merely exemplary and are not to be construed as limiting. The present teaching can be readily applied to other types of apparatuses. Also, the description of the exemplary embodiments is intended to be illustrative, and not to limit the scope of the claims, and many alternatives, modifications, and variations will be apparent to those skilled in the art.