Time-of-flight nearest target ranging with pulse distortion immunity

By finding the first rising edge in the histogram and adding a predetermined offset in the ToF ranging system, combined with differential histogram processing, the problem of difficult target distance estimation in the existing technology is solved, and a more accurate and robust Distance measurement.

CN118566875APending Publication Date: 2024-08-30STMICROELECTRONICS INT NV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410207325.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-02-28
Filing Date
2024-02-26
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing ToF ranging systems encounter computational complexity and pulse shape distortion problems when processing SPAD histograms, making target distance estimation difficult, especially in the case of multiple targets or receiver bandwidth limitations.

Method used

Target distance is achieved by finding the first rising edge in the histogram in the ToF ranging system and calculating the distance to the nearest target by adding a predetermined offset to its distance, combined with the use of the differential histogram and the predetermined offset. estimate.

Benefits of technology

Improves accuracy and robustness in estimating distance to the nearest target, reduces computational complexity, and works efficiently against pulse shape distortion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118566875A
    Figure CN118566875A
Patent Text Reader

Abstract

The embodiment of the invention relates to time-of-flight nearest target ranging with pulse distortion immunity. A method of determining a distance to a nearest target using a time of flight (ToF) ranging system includes receiving, by a processor, a histogram generated by a ToF imager of the ToF ranging system, wherein the ToF imager is configured to transmit light pulses for ranging purposes; finding a first rising edge in the histogram, the first rising edge corresponding to a rising edge of the light pulse reflected from the nearest target; and calculating a first estimate of the distance to the nearest target by adding a predetermined offset to the distance to the first rising edge.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates generally to time-of-flight (ToF) ranging systems, and in particular embodiments, to ToF ranging systems for determining the distance to a nearest object. Background Art

[0002] Time-of-flight (ToF) imagers (also known as ToF sensors) have been widely used in various applications such as gesture / facial recognition, light detection and ranging (LiDAR), virtual reality, augmented reality, and autonomous robotics. ToF ranging systems use ToF imagers to measure the distance of an object (e.g., a target). To measure an object, a ToF ranging system instructs the ToF sensor to send a light signal (e.g., a light pulse) toward the object and measures the time it takes for the signal to travel to the object and back.

[0003] A single photon avalanche diode (SPAD) can be used as a detector of reflected light. In some applications, an array of SPADs is provided as a sensor (e.g., a SPAD array) to detect reflected light pulses. The reflected photons can generate carriers in the SPAD by means of the photoelectric effect. The photon-generated carriers may trigger an avalanche current in one or more SPADs in the SPAD array. The avalanche current may indicate an event, i.e., a photon has been detected. Information related to the reflected intensity (also referred to as a "signal count") is output as a histogram of the SPAD array. The histogram for each SPAD includes a plurality of histogram columns, wherein each histogram column corresponds to a distance (or a narrow range of distances) from the SPAD array, and the value of each histogram column (e.g., a signal count) corresponds to the number of avalanche current events detected (e.g., the number of photons detected).

[0004] The histogram from the SPAD needs to be processed to extract useful information, such as the number of detected targets, the distance of the targets, etc. There are still challenges in the processing of histograms. For example, when the shape of the received light pulse is distorted and no longer resembles the shape of the transmitted light pulse (e.g., transmitted by a ToF sensor), and / or when the light pulses reflected from multiple targets merge together, it may be difficult to detect the distance of (multiple) targets. In addition, the processing of the histogram is typically computationally intensive and is typically performed by an off-chip processor that is located in a semiconductor die different from the semiconductor die with the SPAD array. Efficient processing of the histogram of the SPAD is needed to reduce the computational complexity and achieve a higher level of integration for ToF imagers and / or ToF ranging systems. Summary of the invention

[0005] In one embodiment, a method for determining the distance of a closest target using a time-of-flight (ToF) ranging system includes: receiving, by a processor, a histogram generated by a ToF imager of the ToF ranging system, wherein the ToF imager is configured to transmit light pulses for ranging purposes; finding a first rising edge in the histogram, the first rising edge corresponding to a rising edge of a light pulse reflected from a closest target; and calculating a first estimate of the distance of the closest target by adding a predetermined offset to the distance of the first rising edge.

[0006] In one embodiment, a method of operating a time-of-flight (ToF) ranging system includes: transmitting light pulses by a light source of the ToF ranging system toward one or more targets; receiving light pulses reflected by one or more targets by a ToF sensor of the ToF ranging system; generating a histogram based on the received light pulses; generating a differential histogram by calculating the differences between adjacent histogram bins of the histogram, and assigning the calculated differences as values ​​of corresponding histogram bins of the differential histogram; finding a first histogram bin of the differential histogram, wherein a first value of the first histogram bin of the differential histogram is greater than a predetermined threshold, or the first value of the first histogram bin of the differential histogram is a maximum value among the values ​​of the histogram bins of the differential histogram; and calculating an estimate of the distance of the nearest target by adding a predetermined offset to the first distance of the first histogram bin.

[0007] In one embodiment, a time-of-flight (ToF) ranging system includes: a light source configured to transmit light pulses for illuminating one or more targets; a ToF sensor configured to receive light pulses reflected from the one or more targets and generate a histogram based on the reflected light pulses; a processor configured to determine the distance of the nearest target of the one or more targets by: finding a first rising edge in the histogram, the first rising edge corresponding to a rising edge of a reflected light pulse reflected by the nearest target; and calculating an estimate of the distance of the nearest target by adding a predetermined offset to the distance of the first rising edge. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] Details of one or more embodiments of the present invention are set forth in the accompanying drawings and the following description. Other features, objects, and advantages of the present invention will be apparent from the description and drawings, and from the claims. In the drawings, the same or similar reference numerals generally denote the same or similar components in the various drawings, and for the sake of brevity, the same or similar components are generally not re-described. For a more complete understanding of the present invention, reference is now made to the following description taken in conjunction with the accompanying drawings, in which:

[0009] Figure 1 A time of flight (ToF) ranging system in one embodiment is illustrated;

[0010] Figure 2 illustrates a histogram generated by a ToF imager in one embodiment;

[0011] Figure 3 illustrates challenges in target range estimation due to limitations in receiver bandwidth in some embodiments;

[0012] FIG. 4A to FIG. 4C illustrates challenges in target distance estimation in other embodiments;

[0013] Figure 5 illustrates the pile-up problem in a SPAD array in some embodiments;

[0014] Figure 6 A method of estimating the distance to the nearest target in one embodiment is illustrated;

[0015] Figure 7 illustrates a histogram and a corresponding difference histogram in one embodiment;

[0016] Fig. 8A and Figure 8B In one embodiment, Figure 6 The performance of the method in

[0017] Fig. 9 A method of estimating the distance to the nearest target in another embodiment is illustrated;

[0018] Fig. 10A and Fig. 10B In one embodiment, Fig. 9 The performance of the methods in

[0019] Fig.11 An integrated circuit (IC) device formed as a ToF ranging system in one embodiment is illustrated. DETAILED DESCRIPTION

[0020] The manufacture and use of the currently preferred embodiments are discussed in detail below. However, it should be understood that the present invention provides many applicable inventive concepts that can be embodied in various specific contexts. The specific embodiments discussed only illustrate specific methods of manufacture and use of the present invention and do not limit the scope of the present invention.

[0021] The present invention will be described in the context of a time-of-flight (ToF) ranging system, and in a specific embodiment, the ToF ranging system is capable of estimating the distance to the nearest target with immunity to pulse distortion.

[0022] Figure 1A time of flight (ToF) ranging system 100 in one embodiment is illustrated. Note that for simplicity, not all features of the ToF ranging system 100 are illustrated. In addition, for ease of discussion, Figure 1 Object 105 (eg, target) and environmental sources 102 are illustrated with the understanding that object 105 and environmental sources 102 are not part of ToF ranging system 100 . Figure 1 The upper part of FIG. 1 illustrates a cross-sectional view of the ToF ranging system 100 , and Figure 1 The lower portion illustrates details of some components of the ToF ranging system 100, such as a top view of the SPAD array 101 and the reference SPAD array 101R, output pulses generated by the SPADs in the SPAD array 101 and the reference SPAD array 101R (e.g., indicating an avalanche current event), an OR tree for combining the output pulses, and details of the processing unit 107.

[0023] like Figure 1 As shown, the ToF ranging system 100 includes a SPAD array 101, a reference SPAD array 101R, a light source 103 (also referred to as a transmitter), and a processing unit 107 attached to a substrate 109 (eg, a printed circuit board (PCB), an interposer, etc.). Figure 1 A component housing 115 (e.g., a protective case, a box, a housing, etc.) is also illustrated. The SPAD array 101, the reference SPAD array 101R, the light source 103, the processing unit 107, and the substrate 109 are located inside a space surrounded by the component housing 115. A cover glass 113 is attached to an upper surface of a side wall of the component housing 115, thereby forming a closed space for protecting components disposed in the space. Figure 1 The illustrated attachment of cover glass 113 to component housing 115 is merely a non-limiting example. Cover glass 113 may be attached by any suitable method.

[0024] Light source 103 is a circuit configured to generate light signal 104 for illuminating object 105 (e.g., target). Light source 103 may be, for example, a vertical cavity surface emitting laser (VCSEL) device, a light emitting diode (LED), an infrared (IR) device, etc. Light signal 104 may include multiple light pulses. Light signal 106 reflected from object 105 is received by SPAD array 101. SPAD array 101 includes multiple SPADs arranged, for example, in rows and columns. Figure 1In the example, the reference SPAD array 101R receives a reference light signal 104R from the light source 103 and provides a reference SPAD output. The reference SPAD output and the SPAD output (e.g., the output of the SPAD array 101) are sent to a ToF histogram generation circuit 107A to generate a histogram (also referred to as a ToF histogram). Methods for generating histograms using SPAD arrays and reference SPAD arrays are known in the art and the details are not repeated. For example, US20170115381 discloses circuits and methods for generating histograms using SPAD arrays and reference SPAD arrays. US20170115381 is incorporated herein by reference.

[0025] exist Figure 1 In the example of , the ToF histogram generation circuit 107A is part of the processing unit 107. The processing unit 107 also includes a processor 107B, which receives and processes the histogram. The processor 107B can be, for example, a microcontroller, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), etc. The processor 107B processes the histogram to extract useful information, such as the number of (multiple) targets in the histogram, the distance of each target, etc. In an example embodiment, the processor 107B is configured to perform one or more methods disclosed below to estimate the distance of the nearest target (e.g., the target with the shortest distance to the ToF ranging system 100). In some embodiments, the ToF histogram generation circuit 107A and the processor 107B are integrated together in the same semiconductor die (e.g., as a single integrated circuit (IC) die). In other embodiments, the ToF histogram generation circuit 107A and the processor 107B are formed in different (e.g., separate) semiconductor dies. These and other variations are fully intended to be included within the scope of the present disclosure.

[0026] Figure 1 A crosstalk signal 106C is illustrated, which represents the optical signal reflected by the cover glass 113 and received by the SPAD array 101. The detection of crosstalk signals and their removal from the histogram is known in the art and will not be discussed in detail here. The method discussed herein assumes that the histogram being processed for detecting the nearest target is free of crosstalk signals or substantially free of crosstalk signals, which can be achieved by removing the crosstalk signals from the histogram using methods known and used in the art.

[0027] The components for transmitting light signals, receiving reflected light signals, and generating histograms (including light source 103, SPAD array 101, reference SPAD array 101R, and ToF histogram generation circuit 107A) are collectively referred to as ToF imagers (also referred to as ToF sensors) in some embodiments. Therefore, ToF ranging system 100 includes a ToF imager and a processor 107B, and processor 107B processes the histogram generated by the ToF imager.

[0028] Figure 1 The light source 103, SPAD array 101, reference SPAD array 101R, and processing unit 107 are illustrated as separate components attached to substrate 109. This is only a non-limiting example. In some embodiments, the light source 103, SPAD array 101, reference SPAD array 101R, and ToF histogram generation circuit 107A are integrated into a single IC die as an integrated ToF imager. In some embodiments, the light source 103, SPAD array 101, reference SPAD array 101R, ToF histogram generation circuit 107A, and processor 107B are integrated into a single IC die as an integrated ToF ranging system. These and other variations are fully intended to be included within the scope of the present disclosure.

[0029] Figure 2 A histogram generated by a ToF imager in one embodiment is illustrated. Figure 2 The histogram in the example has multiple columns (also referred to as histogram columns). The value of each column of the histogram (e.g., along the y-axis) represents the signal count within the duration of the column (e.g., a fixed duration). The position (e.g., along the x-axis) or index number of each column of the histogram corresponds to a distance (or a narrow range of distances) from the SPAD array 101. During histogram processing, when a target is identified as being located in a histogram column, the distance of the histogram column is used as the distance of the target (e.g., the distance between the SPAD array 101 and the target). In the discussion herein, it is assumed that the light source 103 and the SPAD array 101 are located at the same location, so that the distance between the SPAD array 101 and the target is considered to be the same as the distance between the light source 103 and the target.

[0030] For ease of discussion, each column of the histogram is assigned a distance (e.g., the distance corresponding to the center of the column), and the distance corresponding to the column is also referred to as the column distance or column distance. The index of the column (also referred to as the column index or column number) can be used to indicate the distance of the column. For example, assuming that the index of the first column of the histogram (e.g., the leftmost column or the earliest column) is 1, the index of the second column is 2, and so on, the distance of the i-th column can be calculated as ((i-1)+0.5)D, where D is the distance the optical signal propagates during a duration equal to half of the time interval T, and the time interval T is the duration of the histogram column. The distance D is also referred to as the column width. Note that the time interval T represents the round-trip time of the optical signal. In Figure 2 In the example of , the histogram includes two peaks 121 and 123, which may be caused by two targets located at different distances from the ToF imager.

[0031] Figure 3 The challenges in target range estimation due to receiver bandwidth limitations in some embodiments are illustrated. Figure 3 , the x-axis represents the range (e.g., distance) of the target, and the y-axis represents the range reported by the reference ToF ranging system. The reference ToF ranging system is a ToF ranging system that does not use the method disclosed herein, and is used as a performance comparison with the ToF ranging system (or method) disclosed herein.

[0032] exist Figure 3 In the example of FIG. 1 , the distance of a single target is determined by a reference ToF ranging system. The reference pulse shape 201 is Figure 3 , which represents the shape of the light pulse transmitted by the ToF imager. Figure 3 Three histograms 211, 213 and 215 are also illustrated, which are histograms of the reflected light signals when the target is at a long distance (e.g., 1000 mm away), a short distance (e.g., 100 mm away) and a very close distance (e.g., 10 mm away), respectively. Figure 3 In the figure, the histograms 211, 213 and 215 are illustrated as curves rather than bars, and as those skilled in the art understand, these curves are envelopes of the corresponding bar histograms. In addition, in each of the histograms 211, 213 and 215, only the portion of the histogram containing pulses corresponding to reflections from the target (also referred to as the received pulse area) is shown, and for simplicity, other portions of the histogram (such as portions containing random noise (e.g., shot noise)) are drawn as flat lines (e.g., with zero values).

[0033] In order to determine the distance of the target, the reference ranging system identifies the received pulse area of ​​the histogram, finds the histogram bin where the median position of the received pulse area is located, and reports the bin distance of the histogram bin found above as the distance of the target. Here, the median position of the received pulse area refers to a position with the same number of signal events (e.g., avalanche current events) before and after the received pulse area, and can be determined (e.g., approximately) as the middle point between the start position and the end position of the received pulse area of ​​the histogram.

[0034] like Figure 3 As illustrated, when the target is at a long distance, a small portion of the transmitted light signal is reflected back, and the photons reflected from the target arrive at the ToF sensor at a low rate. Therefore, the bandwidth of the SPAD array is not a limiting factor for detecting the reflected photons. Therefore, the shape of the histogram 211 is substantially the same as the reference pulse shape 201. In other words, there is little or no distortion between the reference pulse shape 201 and the shape of the received pulse area of ​​the histogram 211. In this fairly ideal case, the distance to the median position of the received pulse area (indicated by the dotted line 212) gives an accurate estimate of the distance to the target, as indicated by the point on the dotted line 212. Note that this point is also located on the dotted line 202 having a 45-degree angle, which represents the ideal output of Y=X.

[0035] When the target is at a short distance, the reflected photons arrive at a faster rate. The bandwidth of the SPAD array may limit the detection of photons. For example, if two photons arrive at the SPAD at two different times separated by a duration less than the dead time of the SPAD, the first photon may be detected while the second photon cannot be detected due to the dead time of the SPAD after the first photon is detected. Figure 5 The bandwidth impact of the SPAD array is discussed in more detail.

[0036] Due to the limited receiver bandwidth of the SPAD array, the shape of the received pulse area of ​​the histogram 213 is distorted compared to the reference pulse shape 201. In some embodiments, the received pulse area of ​​the histogram 213 has a shorter width than the ideal received pulse shape 223 (which is the same as the reference pulse shape 201), which is illustrated by the dashed line. The median position of the received pulse area of ​​the histogram 213 (as illustrated by the dashed line 214) corresponds to a smaller distance than the median position of the ideal received pulse shape 223 (illustrated by the dashed line 214T). In other words, for short-range ranging, the reference ToF ranging system underestimates the distance of the target. The estimated distance generated by the reference ToF ranging system is indicated by the point on the dashed line 214T, which is located below the 45-degree dashed line 202 representing the ideal (e.g., correct) distance estimate.

[0037] When the target is at a very close distance, the reflected photons arrive at an even faster rate. The bandwidth of the SPAD array may further limit the detection of the reflected photons, resulting in even greater distortion in the receiving pulse region of the histogram 215. The corresponding ideal receiving pulse shape 225 is illustrated with a dotted line. The median position of the pulse region of the histogram 215 and the ideal receiving pulse shape 225 are illustrated by dotted lines 216 and 216T, respectively. In this case, the reference ToF ranging system may seriously underestimate the target distance, and the target distance is shown as a point on the dotted line 216T. Note that the vertical distance between the point on the dotted line 216T and the 45-degree angle dotted line 202 is greater than the vertical distance between the point on the dotted line 214T and the dotted line 202.

[0038] Note that although the bandwidth limitation of the SPAD array may distort the received pulse shape (e.g., the shape of the received pulse area of ​​the histogram), the position of the rising edge of the received pulse area of ​​the histogram 213 (or 215) still overlaps (e.g., is the same) with the corresponding rising edge of the ideal received pulse shape. In other words, the position of the rising edge of the received pulse area (e.g., the column index) is not affected by the distortion of the received pulse area. The method disclosed herein utilizes this important observation of the characteristics to estimate the distance of the nearest target while resisting pulse shape distortion. The method disclosed herein overcomes various challenges faced by reference ToF ranging systems. The details are discussed below.

[0039] FIG. 4A to FIG. 4C Challenges in target distance estimation in other embodiments are illustrated. Figure 4A A baseline scenario with a single target is illustrated, where a ToF device (e.g., a ToF imager or a ToF ranging system) transmits a light signal toward the single target and generates a histogram based on the reflected light signal. The transmitted light pulse and the received pulse area of ​​the histogram are Figure 4A , and are labeled "reference pulse" and "return pulse #1," respectively. The distance (e.g., measured in millimeters or meters) of the median position of return pulse #1 gives an accurate estimate of the distance to a single target, and the distance of the median position of return pulse #1 is proportional to the time difference Δ between the median position of the reference pulse and the median position of return pulse #1.

[0040] exist Figure 4BIn the histogram, two targets labeled "target #1" and "target #2" are closely spaced. The light pulses reflected from the two targets are combined to form a combined received pulse area in the histogram, which is labeled "return pulse #1+#2". The distance of the median position of the combined received pulse area can give an estimate of the distance between target #1 and target #2 at a certain point, and the distance of the median position of the combined received pulse area is proportional to the time difference Δm between the median position of the reference pulse and the median position of the combined received pulse area. This means that the reference ToF ranging system may not be able to distinguish between the two targets, and the estimated distance of the target is not an accurate estimate of the distance of either target. Although algorithms can be developed to distinguish between the two targets contained in the histogram and estimate the distance of each target separately, such algorithms are generally complex and may be difficult to implement in hardware or software algorithms. However, in many applications, only the distance of the nearest target is of interest. For such applications, it may be advantageous to develop a simple algorithm that gives an accurate estimate of the distance of the nearest target, such a simple algorithm can be easily implemented in hardware or as software, and can reduce the power consumption of the implementation.

[0041] exist Figure 4C In , there is only one target, but the target is tilted so that different parts of the target are at different distances from the ToF device. As a result, the histogram may include a region of received pulses that are longer than the reference pulse shape (in Figure 4C The distance estimate based on the median position of return pulse #1 can more or less give the midpoint of the target. However, in many applications, only the closest point of the tilted target is of interest.

[0042] exist Figure 4B and Figure 4C In both cases, although the number of targets and the location of the target(s) distorts the received pulse shape, Figure 4B The combined received pulse area (or Figure 4C The position of the rising edge of the stretched received pulse region in the image remains unchanged from that of the ideal received pulse shape. This observation is consistent with Figure 3 As discussed below, based on these observations, the rising edge of the first received pulse region in the histogram is identified and used to derive an estimate of the distance to the nearest target.

[0043] Figure 5 The problem of pile-up in a SPAD array in some embodiments is illustrated. The pile-up occurs due to the dead time of the SPADs in the SPAD array and / or due to the structure of the SPAD array (e.g., the OR tree used). Figure 5, two SPADs in a SPAD array (labeled "SPAD#1" and "SPAD#2") are illustrated. For SPAD#1, multiple reflected photons arrive at times 231, 233, 235, and 237, which are shown as arrows. As indicated by the logic high state of the signal labeled "SPAD#1 sensitive", SPAD#1 is sensitive (e.g., ready to detect photons) before time 231. At time 231, a photon arrives and causes an avalanche current event, and SPAD#1 generates an output pulse 241 in the SPAD output signal labeled "SPAD#1 output". Those skilled in the art will readily appreciate that after an avalanche current event occurs in the SPAD, the SPAD is unable to detect photons for a period of time, which is referred to as the dead time of the SPAD. The dead time is illustrated by the logic low state of the SPAD#1 sensitive signal. Note that the photon arriving at time 233 falls within the dead time of SPAD #1 and is therefore not detected and does not generate a SPAD output. The photon arriving at time 235 is outside the previous dead time of SPAD #1 and therefore generates a SPAD output (e.g., a pulse in the SPAD #1 output signal). The photon arriving at time 237 is within the previous dead time of SPAD #1 and therefore does not generate a SPAD output.

[0044] For SPAD #2, two photons arrive at times 251 and 253, which are separated by a duration longer than the dead time of SPAD #2, and therefore each of the photons generates an output pulse in the SPAD #2 output signal.

[0045] Figure 5 Also illustrated is an OR tree in a SPAD array, the OR tree comprising one or more logical OR gates that perform a logical OR operation on the outputs from all SPADs in the SPAD array. In some embodiments, the output of the OR tree is used as the output of the SPAD array. Note that the output pulse 241 from SPAD#1 overlaps in time with the output pulse 261 from SPAD#2, and as a result, the two output pulses 241 and 261 are merged together by the OR tree to form a merged pulse 271 that is longer than the output pulses 241 and 261. It is worth noting that the histogram readout typically detects the rising edge of the pulse, and therefore, only one event is recorded from this elongated pulse consisting of two merged SPAD pulses.

[0046] As described above, the dead time of the SPAD and the OR tree in the SPAD array may cause some photons to be missed (e.g., not detected or counted) and may cause distortion of the output pulse of the SPAD. This is called the pile-up problem. The pile-up may distort the received pulse shape in the histogram and may pose challenges to target detection and / or target distance estimation for the ToF ranging system. The currently disclosed ToF ranging system 100 can overcome the pile-up problem and generate an accurate estimate of the distance to the nearest target by using the various methods disclosed herein.

[0047] Various methods of generating an estimate of the nearest target will be discussed below. The processing of various methods may include the following steps. First, a rising edge in a histogram corresponding to a rising edge of a light pulse reflected from the nearest target is identified. For ease of discussion, a rising edge in a histogram corresponding to a rising edge of a light pulse reflected from the nearest target may also be referred to as an anchor rising edge.

[0048] In some embodiments, the light pulse reflected from the target generates a corresponding received pulse area in the histogram. The shape of the received pulse area in the histogram may be distorted or may not be distorted compared to the shape of the transmitted light pulse. In addition, the light pulses reflected from closely spaced targets can be merged together, thereby generating a longer pulse area in the histogram. However, as discussed above, even if the shape of the received pulse area is distorted for the various reasons mentioned above, the position of the rising edge of the received pulse area does not change. Note that the rising edge of the first (e.g., earliest) received pulse area of ​​the histogram corresponds to the rising edge of the earliest arriving reflected light pulse, which is reflected from the nearest target. Therefore, the rising edge of the first received pulse area of ​​the histogram can be found and used as an anchor rising edge.

[0049] The position of the anchor rising edge can be found by different methods. For example, the gradient of the histogram at each histogram column is calculated, for example, by calculating the difference between adjacent histogram columns and using the calculated difference as the gradient of the corresponding histogram column. The first histogram column with the maximum gradient value (e.g., the leftmost histogram column or the earliest histogram column) is considered to contain the anchor rising edge, and the distance of the first histogram column is used as the distance of the anchor rising edge. As another example, the gradient of the histogram at each column is calculated, and the first histogram column with a gradient value greater than a predetermined threshold is considered to contain the anchor rising edge, and the distance of the first histogram column is used as the distance of the anchor rising edge. The predetermined threshold can be determined by the ambient noise level and the user-defined confidence level, and the details of the ambient noise level and the user-defined confidence level will be discussed below.

[0050] After the position (e.g., distance) of the anchor rising edge is determined, the predetermined offset D OFFis added to the distance to the rising edge of the anchor to form an estimate of the distance to the nearest target. In some embodiments, the predetermined offset D OFF is half the width of the transmitted light pulse (measured in units of distance). For example, let T be the duration of the transmitted light pulse (see e.g. Figure 3 The duration T of the reference pulse shape 201 in FIG. 2 is denoted by C, and the speed of light is denoted by D. OFF =0.5×T×C.

[0051] Note that the predetermined offset D OFF The predetermined offset D is determined by the shape of the transmitted light pulse generated by the light source 103 (eg, a VCSEL device), which shape may be previously characterized (eg, measured), for example, by a calibration process of the light source 103. In some embodiments, the predetermined offset D OFF is determined in advance, saved, and later used to calculate the distance to the nearest target. Note that due to the predetermined offset D OFF Independent of the various factors that distort the shape of the received pulse area in the histogram, the estimate of the distance to the nearest target is therefore robust and unaffected by distortions in the received pulse shape.

[0052] In some embodiments, the shape of the transmitted light pulse generated by light source 103 varies with the temperature of light source 103. To improve the accuracy of the estimate of the distance to the nearest target, the shape of the transmitted light pulse can be characterized (e.g., measured) at multiple temperatures (e.g., covering all or part of the operating temperature range of light source 103), and the predetermined offset D at different temperatures is determined. OFF During operation of the ToF ranging system, the current temperature of the light source 103 is determined, and the predetermined offset D at the current temperature is OFF A predetermined offset D may be used OFF For example, a simple LUT method finds the temperature closest to the current temperature in the LUT and uses the corresponding stored predetermined offset D OFF As the predetermined offset D at the current temperature OFF As another example, interpolation (eg, linear interpolation) may use a predetermined offset D at different temperatures. OFF The stored value is executed to generate the predetermined offset D at the current temperature. OFF The interpolated value.

[0053] After the estimate of the nearest target distance is formed, the estimate can be fine-tuned by adding an adjustment term. The adjustment term can be calculated based on the value of the histogram bar and can provide an adjustment to the estimate of the distance by a portion of the bar width D. The details of the adjustment term are discussed below. In some embodiments, the fine-tuning step is omitted.

[0054] Various embodiment methods for estimating the distance of the nearest target using a ToF ranging system are discussed below. These methods may be executed by the processor 107B of the ToF ranging system 100.

[0055] Figure 6 A method 400 of estimating the distance of the nearest target in one embodiment is illustrated. It should be understood that Figure 6 The embodiment methods shown are only examples of many possible embodiment methods. Those skilled in the art will recognize many variations, alternatives and modifications. For example, Figure 6 The various steps shown in may be added, deleted, substituted, rearranged or repeated.

[0056] refer to Figure 6 , at box 410, a histogram generated by a ToF imager is received, for example, by processor 107B. At box 420, a differential histogram is generated by calculating the difference between adjacent columns of the histogram. The calculated difference is assigned to the corresponding column of the differential histogram. For example, the value of the i-th column of the histogram is represented as H(i), and the value of the i-th column of the differential histogram is represented as DH(i), then DH(i) can be calculated as DH(i)=H(i)-H(i-1). In some embodiments, assuming that the index of the histogram column starts from 1, a zero value is assigned to DH(1), so that the differential histogram has the same length as the histogram (e.g., the same number of histogram columns), and there is a one-to-one correspondence between the histogram columns of the histogram and the histogram columns (also referred to as columns) of the differential histogram. In some embodiments, the value of the i-th column of the differential histogram is an approximation of (e.g., proportional to) the histogram gradient of the histogram at the i-th column of the histogram.

[0057] Next, at block 430, a first rising edge in the histogram is found, the first rising edge having the maximum gradient indicated by the differential histogram. The first rising edge is located in the earliest or leftmost column with the maximum gradient in the histogram. In some embodiments, to find the first rising edge, the maximum value of the value of the column of the differential histogram (e.g., the maximum gradient value) is determined, and the first column with the maximum value in the differential histogram (e.g., the leftmost column) is identified. The column index of the first column of the differential histogram is used to indicate the position (or equivalently, the distance) of the first rising edge in the histogram.

[0058] Next, at block 440, an estimate of the distance to the nearest target is determined by adding a predetermined offset to the distance of the first rising edge. As described above, the predetermined offset D OFF The predetermined offset D can be determined by the shape of the transmitted light pulse. OFF to generate a predetermined offset D for the current temperature of the light source 103 OFF .

[0059] Next, at block 450, the estimate obtained in block 440 is fine-tuned by adding an adjustment term to the estimate. In some embodiments, the adjustment term is calculated using the value of the bin of the difference histogram containing the first rising edge and using the values ​​of the bins of the histogram surrounding the first rising edge. For example, assuming from block 430 that the first rising edge is determined to be in the mth bin of the histogram, it is labeled D ADJ The adjustment term is calculated as D ADJ =DH(m) / (H(m)+H(m+1)). Note that the sign of H(m) and the sign of DH(m) represent the value of the mth bin of the histogram and the difference histogram, respectively. The fine-tuning in block 450 is optional and is omitted in some embodiments.

[0060] Adjustment item D ADJ It is calculated by dividing DH(m) by the sum of H(m) and H(m+1). In other words, the adjustment term D ADJ The shape of the histogram around the first rising edge is taken into account and thus fine tuning of distances smaller than the bin width D can be provided, thereby improving the accuracy of the estimate of the distance to the nearest target.

[0061] Figure 7 The histogram and the corresponding difference histogram in the embodiment are illustrated. Figure 7 In FIG. 3 , curve 301 shows a histogram from a ToF imager, and curve 303 shows a corresponding difference histogram generated from histogram 301. Note that in Figure 7 In FIG. 3 , curve 301 and curve 303 respectively show the envelope of the histogram and the envelope of the difference histogram. The envelope of the histogram can be drawn by connecting the midpoints of all the histogram columns. Figure 7 In the example of FIG. 3 , curve 303 has a maximum value at position 304 , which corresponds to Figure 6 The position of the first rising edge in block 430 of FIG. In the illustrated embodiment, the first rising edge is the rising edge of the first received pulse region of the histogram. Figure 7 The vertical dashed line 305 in the figure illustrates that the first rising edge is shifted by a predetermined offset D. OFF Therefore, the vertical dashed line 305 indicates the estimated position (or distance) of the nearest target, as shown in Figure 6 calculated in block 440 of .

[0062] Fig. 8A and Figure 8B In the examples, the use of Figure 6 The performance of the ToF ranging system 100 according to the method in FIG. A single target is simulated, and the power of the light source 103 is set to a high level to simulate the situation where the received light pulse is distorted due to the bandwidth limitation of the SPAD array.

[0063] exist Fig. 8A In FIG. 3 , the x-axis is the target distance and the y-axis is the range reported by the ToF ranging system. Curve 313 illustrates the use of Figure 6 For comparison, Fig. 8A Curve 311 in shows the performance of a reference ToF ranging system which uses the median position of the received pulse shape (which may be distorted) as the estimated distance of the target. Fig. 8A The dashed line with a 45 degree angle in shows the performance of an ideal ranging system (y=x). Figure 8B The values ​​of the error between the reported distance (e.g., along the y-axis) and the target distance (e.g., along the x-axis) are illustrated. Curves 317 and 315 respectively show the error between the reported distance (e.g., along the y-axis) and the target distance (e.g., along the x-axis). Figure 6 The performance of the ToF ranging system 100 of the method and the performance of the reference ToF ranging system.

[0064] like Fig. 8A and Figure 8B As shown, the reference ToF ranging system underestimates the distance to targets at short distances, while using Figure 6 The ToF ranging system 100 of the method achieves better performance at short distances. When the target is at a longer distance, the received pulse shape in the histogram is almost undistorted for this simple scenario, and both ranging systems achieve good performance.

[0065] Fig. 9 A method for estimating the distance of the nearest target in another embodiment is illustrated. It should be understood that Fig. 9 The embodiment methods shown are only examples of many possible embodiment methods. Those skilled in the art will recognize many variations, alternatives and modifications. For example, Fig. 9 The various steps illustrated in the drawings may be added, deleted, replaced, rearranged or repeated.

[0066] Fig. 9 The method of processing and Figure 6The processing of the method in is similar, but the first rising edge is found in block 630 using a different method. In other words, the processing in blocks 610, 620, 640 and 650 is the same as the processing in blocks 410, 420, 440 and 450, so the details are not repeated. The processing of block 630 will be discussed below.

[0067] In block 630, a first rising edge of the histogram is found, wherein the first rising edge has a gradient greater than a threshold value indicated by the differential histogram, the threshold value being determined by the ambient noise level and a user-defined confidence level (e.g., a user-defined scaling factor). In an embodiment, to find the location of the first rising edge, the values ​​of the columns in the differential histogram are compared to the threshold value, and the first column (e.g., the leftmost column) in the differential histogram having a value greater than the threshold value is identified. The column index of the first column of the differential histogram is used to indicate the location (or equivalently, the distance) of the first rising edge in the histogram.

[0068] As an example, the threshold used in block 630 may be determined as follows. Denote the ambient event (eg, avalanche current event caused by an ambient light signal) of each histogram bin as σ 2 , and denote the user-defined confidence level as C, then the threshold TH is calculated as Note that in the above calculations, the environmental events of each column in the differential histogram are regarded as twice the environmental noise events of each column in the histogram (due to the subtraction operation used to calculate the differential histogram, the power of the environmental event level is doubled). Due to the shot noise characteristics of light, the noise from these two columns is the square root of twice the environmental events of each column. The environmental noise events of each histogram column can be measured in advance using a calibration process, or can be measured periodically during the operation of the ToF ranging system. The user-defined confidence level C can be adjusted according to the environmental noise level to achieve reliable detection of the first rising edge. For example, if the environmental noise level increases, the user-defined confidence level C can be increased, and vice versa, to avoid erroneous detection of the first rising edge and achieve a target detection rate for the first rising edge. In addition to the methods discussed above, other appropriate methods for determining the threshold used in the processing of box 630 are also possible and are fully intended to be included in the scope of the present disclosure.

[0069] Fig. 10A and Fig. 10B The use of the embodiment is illustrated Fig. 9 The performance of the ToF ranging system 100 in the method. Fig. 10A and Fig. 10BIn the simulation, two targets are simulated. The first target is fixed at 200 mm from the ToF ranging system 100, and the second target is scanned from a distance of 200 mm to 1 m over time. The reflectivity of the second target is twice that of the first target. Fig. 10A The target distance along the x-axis and the reported range along the y-axis are shown. Fig. 10A , curve 323 shows the use of Fig. 9 The performance of the ToF ranging system 100 of the method is shown in FIG. 3 , and curve 321 shows the performance of the reference ToF ranging system (with Fig. 8A and Figure 8B The performance of the reference ToF ranging system in Fig. 10B In the figure, curves 327 and 325 respectively show the use of Fig. 9 The performance of the ToF ranging system 100 of the method and the performance of the reference ToF ranging system.

[0070] like Fig. 10A and Fig. 10B exemplified using Fig. 9 The ToF ranging system 100 of the method is able to lock onto a first target (e.g., the nearest target) throughout the simulation process and report the correct distance of the nearest target, while the reference ToF ranging system is affected by the reflected light pulses from the second moving target and, as a result, the reported range varies over time and as the second target moves.

[0071] Fig.11 An integrated circuit (IC) device 1000 formed as a ToF ranging system in one embodiment is illustrated. The IC device 1000 may be formed as Figure 1 ToF ranging system 100. Note that for simplicity, not all features of IC device 1000 are illustrated. IC device 1000 includes a light source 1013 (eg, VCSEL, LED, etc.) and a SPAD array 1010. Light source 1013 may correspond to Figure 1 The SPAD array 1010 may correspond to Figure 1 The SPAD array 101 and the reference SPAD array 101R may additionally include Figure 1 ToF histogram generation circuit 107A in.

[0072] IC device 1000 also includes a memory module 1015 for storing the histograms generated by SPAD array 1010. Fig.11 In the embodiment, the processor 1017 is integrated in the IC device 1000, and the processor 1017 may correspond to Figure 1The processor 107B in the IC device 1000 may be configured to perform one or more of the methods disclosed herein to generate an estimate of the distance of the nearest target. The IC device 1000 may also include an input / output (I / O) module 1019 for communicating with other devices.

[0073] Note that the various methods for nearest target distance estimation are easy to implement and require little computing power. These advantages allow many different types of processors to be easily and economically integrated into IC device 1000 as processor 1017, and no off-chip processing of the histogram by another processor is required. On-chip processing of histogram data significantly reduces the chip complexity associated with I / O transmission of histogram data to off-chip processing modules and reduces processing delays associated with off-chip processing.

[0074] The disclosed embodiments can achieve advantages. For example, various disclosed methods provide accurate estimates of the nearest target and are robust to distortions in the received pulse shape. Temperature compensation can be performed to further improve the accuracy of the estimate. The adjustment term provides fine tuning for distances smaller than the column width. The disclosed methods are easy to implement and save computing power, and as a result allow a ToF ranging system to be fully integrated on a single IC device.

[0075] Example embodiments of the invention are summarized here. Other embodiments may also be understood from the overall description and claims presented herein.

[0076] Example 1. In one embodiment, a method for determining the distance of the nearest target using a time of flight (ToF) ranging system includes: receiving, by a processor, a histogram generated by a ToF imager of the ToF ranging system, wherein the ToF imager is configured to transmit light pulses for ranging purposes; finding a first rising edge in the histogram, the first rising edge corresponding to a rising edge of a light pulse reflected from the nearest target; and calculating a first estimate of the distance of the nearest target by adding a predetermined offset to the distance of the first rising edge.

[0077] Example 2. A method according to Example 1, wherein finding the first rising edge includes: generating a differential histogram by calculating the difference between adjacent histogram bins of the histogram, and assigning the calculated difference as the value of the corresponding histogram bin of the differential histogram; and finding a first histogram bin of the differential histogram, wherein the first value of the first histogram bin of the differential histogram is greater than a predetermined threshold, or the first value of the first histogram bin of the differential histogram is the maximum value among the histogram bin values ​​of the differential histogram.

[0078] Example 3. The method of Example 2, wherein the first histogram bin is a leftmost histogram bin of the difference histogram having a first value.

[0079] Example 4. The method of Example 3, wherein the predetermined threshold is determined by the ambient noise level in the histogram and a user-specified confidence level.

[0080] Example 5. The method of Example 3, wherein the predetermined offset is determined by a shape of a light pulse transmitted by the ToF imager and corresponds to half the width of the transmitted light pulse.

[0081] Example 6. The method according to Example 5 also includes: performing a calibration process on the ToF imager, the calibration process on the ToF imager including: measuring the shape of light pulses transmitted by the ToF imager at different temperatures; calculating multiple values ​​for predetermined offsets at different temperatures; and storing the multiple values ​​for predetermined offsets at different temperatures.

[0082] Example 7. The method according to Example 6 also includes: obtaining a measurement value of a current temperature of the ToF imager; and determining a current value for the predetermined offset based on the measurement value of the current temperature and multiple values ​​stored for the predetermined offset at different temperatures.

[0083] Example 8. The method of Example 7, wherein determining the current value for the predetermined offset comprises determining the current value for the predetermined offset by performing interpolation using a measured value of the current temperature and a plurality of stored values ​​for the predetermined offset at different temperatures.

[0084] Example 9. A method according to Example 3, wherein the first histogram bin has a first bin index, and wherein the method further comprises: fine-tuning the first estimate of the nearest target distance by adding an adjustment term to the first estimate, wherein the adjustment term is calculated based on a first value of a first histogram bin of the difference histogram, a second value of a second histogram bin of the histogram having the first bin index, and a third value of a third histogram bin of the histogram adjacent to the second histogram bin.

[0085] Example 10. The method according to Example 9 further includes: calculating an adjustment term, wherein calculating the adjustment term includes: dividing the first value by the sum of the second value and the third value.

[0086] Example 11. In one embodiment, a method of operating a time-of-flight (ToF) ranging system includes: transmitting a light pulse by a light source of the ToF ranging system toward one or more targets; receiving a light pulse reflected by one or more targets by a ToF sensor of the ToF ranging system; generating a histogram based on the received light pulses; generating a differential histogram by calculating the differences between adjacent histogram bins of the histogram, and assigning the calculated differences as values ​​of corresponding histogram bins of the differential histogram; finding a first histogram bin of the differential histogram, wherein a first value of the first histogram bin of the differential histogram is greater than a predetermined threshold, or the first value of the first histogram bin of the differential histogram is a maximum value among the values ​​of the histogram bins of the differential histogram; and calculating an estimate of the distance of the nearest target by adding a predetermined offset to the first distance of the first histogram bin.

[0087] Example 12. The method of Example 11, wherein the first histogram bin is a leftmost histogram bin of the difference histogram having a first value.

[0088] Example 13. The method of Example 12, wherein the predetermined offset is proportional to half the width of a light pulse transmitted by the light source.

[0089] Example 14. A method according to Example 13, wherein the width of a light pulse transmitted by the light source varies with temperature, wherein the method further includes: measuring in advance the width of a light pulse transmitted by the light source at different temperatures; measuring the current temperature of the light source; and calculating a predetermined offset at the current temperature by performing interpolation to generate an estimate of the width of the light pulse at the current temperature using the measured widths of the light pulses at different temperatures.

[0090] Example 15. A method according to Example 12, wherein the first histogram bin has a first bin index, wherein the method further comprises fine-tuning an estimate of the distance to the nearest target by adding an adjustment term to the estimate, wherein the adjustment term is calculated based on the first value and values ​​of histogram bins of the histogram surrounding the first bin index.

[0091] Example 16. The method of Example 12, wherein the predetermined threshold is determined by an ambient noise level in the histogram and a user-specified scaling factor.

[0092] Example 17. In one embodiment, a time-of-flight (ToF) ranging system includes: a light source configured to transmit light pulses for illuminating one or more targets; a ToF sensor configured to receive light pulses reflected from the one or more targets and generate a histogram based on the reflected light pulses; a processor configured to determine the distance of the nearest target of the one or more targets by: finding a first rising edge in the histogram, the first rising edge corresponding to a rising edge of a reflected light pulse reflected by the nearest target; and calculating an estimate of the distance of the nearest target by adding a predetermined offset to the distance of the first rising edge.

[0093] Example 18. A ToF ranging system according to Example 17, wherein finding a first rising edge includes: calculating differences between adjacent histogram bins of a histogram and assigning the calculated differences as gradients of corresponding histogram bins of the histogram; and finding a first histogram bin of the histogram having a first value, wherein the first value is a maximum value among the calculated differences, or the first value is greater than a predetermined threshold.

[0094] Example 19. A ToF ranging system according to Example 18, wherein the first histogram bin is a leftmost histogram bin of the histogram having a first value.

[0095] Example 20. A ToF ranging system according to Example 19, wherein the predetermined offset is proportional to half the width of the transmitted light pulse.

[0096] Although the present invention has been described with reference to illustrative embodiments, this description is not intended to be interpreted in a limiting sense. Various modifications and combinations of the illustrative embodiments, as well as other embodiments of the present invention, will be apparent to those skilled in the art upon reference to the specification. Therefore, the appended claims are intended to cover any such modifications or embodiments.

Claims

1. A method for determining the distance of the nearest target using a time-of-flight (ToF) ranging system, the method comprising: receiving, by a processor, a histogram generated by a ToF imager of the ToF ranging system, wherein the ToF imager is configured to transmit light pulses for ranging purposes; Finding a first rising edge in the histogram, the first rising edge corresponding to a rising edge of a light pulse reflected from the nearest target; as well as A first estimate of the distance of the nearest target is calculated by adding a predetermined offset to the distance of the first rising edge.

2. The method of claim 1 , wherein finding the first rising edge comprises: generating a differential histogram by calculating differences between adjacent histogram bins of the histogram, and assigning the calculated differences as values ​​of corresponding histogram bins of the differential histogram; and Find a first histogram bin of the differential histogram, wherein a first value of the first histogram bin of the differential histogram is greater than a predetermined threshold, or the first value of the first histogram bin of the differential histogram is a maximum value among the values ​​of the histogram bin of the differential histogram.

3. The method of claim 2, wherein the first histogram bin is the leftmost histogram bin of the difference histogram having the first value. The method according to claim 3 , wherein the predetermined threshold is determined by the ambient noise level in the histogram and a user-specified confidence level. 5 . The method of claim 3 , wherein the predetermined offset is determined by the shape of the light pulse transmitted by the ToF imager and corresponds to half the width of the transmitted light pulse.

6. The method according to claim 5, further comprising: Performing a calibration process on the ToF imager, the calibration process on the ToF imager comprising: measuring the shapes of the light pulses transmitted by the ToF imager at different temperatures; calculating a plurality of values ​​for the predetermined offset at the different temperatures; and The plurality of values ​​for the predetermined offset at the different temperatures are stored.

7. The method according to claim 6, further comprising: Obtaining a measurement value of a current temperature of the ToF imager; as well as A current value for the predetermined offset is determined based on the measured value of the current temperature and the plurality of stored values ​​for the predetermined offset at the different temperatures.

8. The method of claim 7, wherein determining the current value for the predetermined offset comprises: The current value for the predetermined offset is determined by performing interpolation using the measured value of the current temperature and the plurality of stored values ​​for the predetermined offset at the different temperatures.

9. The method of claim 3, wherein the first histogram bin has a first bin index, wherein the method further comprises: The first estimate of the distance to the nearest target is fine-tuned by adding an adjustment term to the first estimate, wherein the adjustment term is calculated based on the first value of the first histogram bin of the differential histogram, the second value of a second histogram bin of the histogram having the first bin index, and a third value of a third histogram bin of the histogram adjacent to the second histogram bin.

10. The method according to claim 9, further comprising: Calculating the adjustment item, wherein calculating the adjustment item includes: The first value is divided by the sum of the second value and the third value.

11. A method of operating a time-of-flight (ToF) ranging system, the method comprising: Transmitting light pulses from a light source of the ToF ranging system toward one or more targets; receiving, by a ToF sensor of the ToF ranging system, the light pulses reflected by the one or more targets; generating a histogram based on the received light pulses; generating a differential histogram by calculating differences between adjacent histogram bins of the histogram, and assigning the calculated differences as values ​​of corresponding histogram bins of the differential histogram; Finding a first histogram bin of the difference histogram, wherein a first value of the first histogram bin of the difference histogram is greater than a predetermined threshold, or the first value of the first histogram bin of the difference histogram is a maximum value among the values ​​of the histogram bin of the difference histogram; as well as An estimate of the distance of the nearest target is calculated by adding a predetermined offset to the first distance of the first histogram bin.

12. The method of claim 11, wherein the first histogram bin is a leftmost histogram bin of the difference histogram having the first value.

13. The method of claim 12, wherein the predetermined offset is proportional to half the width of a light pulse transmitted by the light source.

14. The method of claim 13, wherein the width of the light pulses transmitted by the light source varies with temperature, wherein the method further comprises: measuring in advance the width of the light pulses transmitted by the light source at different temperatures; measuring a current temperature of the light source; as well as The predetermined offset at the current temperature is calculated by performing interpolation to generate an estimate of the width of the light pulse at the current temperature using the measured widths of the light pulse at the different temperatures.

15. The method of claim 12, wherein the first histogram bin has a first bin index, wherein the method further comprises: The estimate of the distance of the nearest target is fine-tuned by adding an adjustment term to the estimate, wherein the adjustment term is calculated based on the first value and values ​​of the histogram bins of the histogram around the first bin index.

16. The method of claim 12, wherein the predetermined threshold is determined by an ambient noise level in the histogram and a user-specified scaling factor.

17. A time-of-flight (ToF) ranging system, comprising: a light source configured to transmit light pulses for illuminating one or more targets; a ToF sensor configured to receive light pulses reflected from the one or more targets and to generate a histogram based on the reflected light pulses; A processor is configured to determine a distance to a nearest target of the one or more targets by: Finding a first rising edge in the histogram, the first rising edge corresponding to a rising edge of a reflected light pulse reflected by the nearest target; as well as An estimate of the distance of the nearest target is calculated by adding a predetermined offset to the distance of the first rising edge.

18. The ToF ranging system according to claim 17, wherein finding the first rising edge comprises: Calculating differences between adjacent histogram bins of the histogram and assigning the calculated differences as gradients of corresponding histogram bins of the histogram; and A first histogram bin of the histogram having a first value is found, wherein the first value is a maximum value among the calculated differences, or the first value is greater than a predetermined threshold.

19. The ToF ranging system of claim 18, wherein the first histogram bin is a leftmost histogram bin of the histogram having the first value.

20. The ToF ranging system of claim 19, wherein the predetermined offset is proportional to half the width of the transmitted light pulse.