Some embodiments relate to range extraction using processed histograms generated from a time of flight sensor-pile up correction.
Devices for determining the distance (or range) to objects are known. One currently used method is called “Time of Flight” (ToF). This method comprises sending a light signal towards the object and measuring the time taken by the signal to travel to the object and back. The calculation of the time taken by the signal for this travel may be obtained by measuring the phase shift between the signal coming out of the light source and the signal reflected from the object and detected by a light sensor. Knowing this phase shift and the speed of light enables the determination of the distance to the object.
Single photon avalanche diodes (SPAD) may be used as a detector of reflected light. In general, an array of SPADs is provided as a sensor in order to detect a reflected light pulse. A photon may generate a carrier in the SPAD through the photo electric effect. The photo generated carrier may trigger an avalanche current in one or more of the SPADs in an SPAD array. The avalanche current may signal an event, namely that a photon of light has been detected.
Some embodiments relate to range extraction and other parameters such as noise and maximum distance determination extracted from histogram data generated using a time-of-flight photosensitive sensor and in particular but not exclusively to an apparatus with a sensor comprising an array of photosensitive devices.
According to an aspect, a method for processing a histogram output from a detector sensor comprises calculating a median point of a pulse waveform within the histogram. The pulse waveform has an even probability distribution over at least one quantization step of the histogram around the median point.
The method may further comprise: receiving the histogram output as filtered histogram data comprising a plurality of histogram bin values, the filtered histogram data comprising the pulse waveform with a defined width and histogram bin position; and determining from the filtered histogram data and based on the median point at least one parameter associated with the pulse, wherein the at least one parameter comprises at least one of: an object range; a range noise estimate; and a maximum distance detection value.
Determining from the filtered histogram data an object range associated with the pulse may comprise at least one of: applying a linear interpolation to a phase weighted filtered histogram to determine a phase value associated with the median point associated with a zero crossing event; applying a interpolation to a phase weighted filtered histogram, the phase weighted filter comprising a first part and a second part and generating a first difference value based on the sum of the second part and a negative first part, such that for at least one histogram position where the first difference value crosses zero then the interpolation comprises the determined histogram position value+(|difference value for the bin position|/|difference value for the bin position|+|difference value for the bin position following the zero crossing bin position|); and applying a interpolation to phase weighted filtered histogram to determine a phase value associated with the median point, the phase weighted filter comprising a first part, a second part and a third part and generating a first difference value based on the sum of the first part, the second part and a negative third part, and generating a second difference value based on the sum of the second part, the third part and a negative first part, such that for at least one histogram position where the first difference value and the second difference value are greater than zero then the interpolation comprises the determined histogram position value+0.5+((the third part value−the first part value)/(2*(the second part value−a determined ambient value))).
Determining from the filtered histogram data a range noise estimate associated with the pulse may comprise: determining shot noise contributions from each filter part; applying a range interpolation based transfer function to each shot noise contribution; and combining the range interpolation based transfer function components to generate the range noise estimate.
Determining from the filtered histogram data a range noise estimate associated with the pulse may comprise: generating a noise value based on a phase weighted filtered histogram, the phase weighted filter comprising a first part A, a second part B located at the detected median event bin and a third part C, and wherein the noise values is
and amb is a determined ambient level.
Determining from the filtered histogram data a range noise estimate associated with the pulse may comprise: generating a noise value based on a phase weighted filtered histogram, the phase weighted filter comprising a first part A, a second part B located at the detected median event bin and a third part C, and wherein the noise values is
and Ax, Bx and Cx are internal parasitic path components associated with the phase weighted filter first part, second part and third part respectively and amb is a determined ambient level.
Determining from the filtered histogram data and based on the median point a maximum distance detection value may comprise determining based on a threshold from an ambient level and a return level from a determined calibration value the distance at which a returned signal is not significant to determine a range determination.
Determining from the filtered histogram data and based on the median point a maximum distance value (Dmax) may comprise:
wherein a distance at which a Dmax calibration is taken defined by Dcal, a signal value in events/bin generated from a 100% target at the Dmax calibration distance defined as Signal@Dcal, a value of reflectance of target used for signal calibration defined as Ref@Dcal, a desired reflectance that Dmax is to be calculated for defined as Ref, the ambient count defined as Ambient, the signal confidence (in other words 94% valid ranges implies 2 sigma) defined as SConf, and an ambient noise floor aligned with the histogram processing assumption defined as Aconf.
According to a second aspect, an apparatus for processing a histogram output from a detector sensor comprises a median point determiner configured to calculate a median point of a pulse waveform within the histogram. The pulse waveform has an even probability distribution over a quantization step of the histogram around the median point.
The apparatus may further comprise an input configured to receive the histogram output as filtered histogram data comprising a plurality of histogram bin values, the filtered histogram data comprising the pulse waveform with a defined width and histogram bin position; and a parameter extractor configured to determine from the filtered histogram data and based on the median point at least one parameter associated with the pulse, wherein the at least one parameter comprises at least one of: an object range; a range noise estimate; and a maximum distance detection value.
The median point determiner may be configured to: apply a linear interpolation to a phase weighted filtered histogram to determine a phase value associated with the median point associated with a zero crossing event; applying a interpolation to a phase weighted filtered histogram, the phase weighted filter comprising a first part and a second part and generating a first difference value based on the sum of the second part and a negative first part, such that for at least one histogram position where the first difference value crosses zero then the interpolation comprises the determined histogram position value+(|difference value for the bin position|/|difference value for the bin position|+|difference value for the bin position following the zero crossing bin position|); and apply a interpolation to phase weighted filtered histogram to determine a phase value associated with the median point, the phase weighted filter comprising a first part, a second part and a third part and generating a first difference value based on the sum of the first part, the second part and a negative third part, and generating a second difference value based on the sum of the second part, the third part and a negative first part, such that for at least one histogram position where the first difference value and the second difference value are greater than zero then the interpolation comprises the determined histogram position value+0.5+((the third part value−the first part value)/(2*(the second part value−a determined ambient value))).
The parameter determiner may be configured to determine from the filtered histogram data a range noise estimate associated with the pulse by: determining shot noise contributions from each filter part; applying a range interpolation based transfer function to each shot noise contribution; and combining the range interpolation based transfer function components to generate the range noise estimate.
The parameter determiner configured to determine range noise estimate associated with the pulse may be configured to: generate a noise value based on a phase weighted filtered histogram, the phase weighted filter comprising a first part A, a second part B located at the detected median event bin and a third part C, and wherein the noise value is
and amb is a determined ambient level.
The parameter determiner configured to determine from the filtered histogram data a range noise estimate associated with the pulse may be configured to: generate a noise value based on a phase weighted filtered histogram, the phase weighted filter comprising a first part A, a second part B located at the detected median event bin and a third part C, and wherein the noise value is
and Ax, Bx and Cx are internal parasitic path components associated with the phase weighted filter first part, second part and third part respectively and amb is a determined ambient level.
The parameter determiner configured to determine from the filtered histogram data and based on the median point a maximum distance detection value may be configured to determine a distance at which a returned signal is not significant to determine a range determination based on a threshold from an ambient level and a return level from a determined calibration value.
The parameter determiner configured to determine a maximum distance value (Dmax) from the filtered histogram data and based on the median point may be configured to determine:
wherein a distance at which a Dmax calibration is taken defined by Dcal, a signal value in events/bin generated from a 100% target at the Dmax calibration distance defined as Signal@Dcal, a value of reflectance of target used for signal calibration defined as Ref@Dcal, a desired reflectance that Dmax is to be calculated for defined as Ref, the ambient count defined as Ambient, the signal confidence (in other words 94% valid ranges implies 2 sigma) defined as SConf, and an ambient noise floor aligned with the histogram processing assumption defined as Aconf.
The detector sensor may be a single photon avalanche diode array sensor.
The detector sensor may be a time-of-flight sensor.
The detector sensor may be a detector array sensor.
Some embodiments will now be described by way of example only and with reference to the accompanying Figures in which:
The concept in embodiments herein is the implementation of processing of histogram data from a sensor device in order to be able detect or determine object pulses and furthermore to generate or extract parameters such as object distance or range, noise and maximum detection range having determined the object pulses. In some embodiments the processing of the histogram data may include the generation of adaptive width filters which may be applied to the sensor output histograms to filter out undesired cross-talk and assist in identifying median values which may be used to extract a suitable range or distance value in a time-of-flight sensor.
In
The sensor device 101 may comprise a light source (such as a vertical cavity surface emitting laser VCSEL or light emitting diode LED), a suitable light source driver, an array of single photon avalanche diode (SPAD) elements and a time to distance converter (TDC) or histogram generator configured to output the ‘raw’ histogram data representing photon event detection counts for a number of time bins. The histogram data 102 may be passed to the processing device 103. However other configurations may be implemented such as the sensor device comprising a light source, light source driver+a fast photodiode detector with steered charge, an analogue to digital converter (ADC) etc.
The sensor device 101 may for example comprise a generator/driver configured to provide a periodic electric signal (the periodic signal may for example be a square shaped signal or a sine shaped signal or any suitable periodic signal). The generator/driver may furthermore power the light source thus generating a ‘modulated’ light output.
As discussed above an example of a light source may be a light emitting diode, or any known lighting device, for example, a laser diode. The signal coming out of the light source is transmitted towards an object and is reflected by the object.
The reflected light signal is detected by a light sensor which in the following examples is an array of SPADs. The SPAD array may integrate several photo detection elements in the form of Single-photon avalanche diodes, or “SPADs” also called Geiger mode avalanche photodiodes. These devices have a reverse biased p-n junction in which a photo-generated carrier can trigger an avalanche current due to an impact ionization mechanism. SPADs may be designed to operate with a reverse bias voltage well above the breakdown voltage.
At an initial time, the diode is biased to a voltage larger than its breakdown voltage. The reception of a photon in the diode junction area starts an avalanche in the diode, which creates an electric pulse. The diode is then biased back to a voltage smaller than the breakdown voltage, so that the SPAD reacts again to the reception of a photon. SPADs can currently be used in cycles having reactivation periods shorter than 10 ns. Thereby, SPADs can be used at high frequency to detect objects at relatively short distances from the measurement device, for example, distances ranging from a few millimeters to several meters. In different embodiments, different ranges may be supported.
Such detection elements as discussed above may also be rapid charge transfer photodiodes. The signal output by the sensor is thus phase-shifted from the signal provided by the generator/driver by an angle which correlates with the distance to the object.
A Time to Digital Converter (TDC) may be configured to receive the signals generated by generator/driver and by the sensor and calculate the phase shift (or time difference) between these signals to obtain a distance to object. The detector (SPAD array) is configured to generate many fast readings in a short time period and thus the time to distance converter may be configured to generate a histogram of detected events. For example, with a periodic pulsed system, the detected event arrival times may be quantized to build up histogram data which may be post processed to identify the position/distance of multiple targets within the Field of View.
An example generated histogram may be shown in
In some embodiments, a further reference detector within the sensor device is used. The reference detector is configured to receive the light emitted by the light source, and is close to the light source. The distance to the object may be determined using the timing difference between the reference detector receiving the light from the light source and the sensor receiving the light from the reflected object.
The histogram data based distance determination analysis as shown hereafter is applicable to any time of flight ranging application such as gesture analysis where the range output may be used as an input to algorithms to detect motion of a hand or other object to control an interface, and auto-focus assist where the range output may be used as a guide for an auto-focus scheme to speed up camera focus time.
The concept as described herein is the addition or integration of the processing device 103 with the sensor device 101. In some embodiments the processing device 103 is physically integrated with the sensor device 101. In other words the processing device is implemented in the same device as the sensor device. For example within register transfer level (RTL) synthesis or on board microcontroller unit (MCU) on the sensor device. In some embodiments the processing device 103 is logically integrated with the sensor device 101 but is implemented on a separate, dedicated processing device. In some further embodiments the processing device 103 is implemented as software on a host device configured to receive the output from the sensor device 101.
The integration of the processing device 103 and the sensor device 101 may for example be shown by the flow diagram shown in
Thus for example the method is shown wherein the light photons are received or detected. The operation of receiving/detecting the photons is shown in
Then the sensor device may be configured to generate (SPAD) detected event counts. The operation of generating the (SPAD) event counts is shown in
The raw histogram event counts may furthermore be then generated. The operation of generating the raw histogram event counts is shown in
The raw histogram event counts may then be processed in order to determine parameters such as range, noise, and max detection range. The operation of processing the raw histogram even counts to determine the parameters is shown in
As described in further detail hereafter and as shown in
For example as shown in
In some embodiments the processor device 103 may comprise a cross-talk detector 203. The cross-talk detector 203 may be configured to receive the output of the pile-up corrector 201 (or in some embodiments where there is no pile-up corrector 201 receive the raw histogram data directly). The cross-talk detector 203 may thus determine whether the histogram data comprises cross-talk components and furthermore attempt to at least partially remove these components. The operation of the cross-talk detector is described in further detail later in the application. The cross-talk detector 203 may furthermore output the corrected histogram data to the pulse detector and/or parameter extractor.
In some embodiments the processor device comprises a pulse detector 205. The pulse detector 205 may be configured to receive the output of the cross-talk detector 203 (or the pile-up corrector 201) and be configured to detect and filter (or isolate or blank) pulses within the histogram data. The operation of the pulse detector is described in further detail later in the application. These determined pulses may be passed to the parameter extractor 207.
In some embodiments the processor device comprises a parameter extractor 207. The parameter extractor 207 may be configured to receive the output of the cross-talk detector 203 and/or the pulse detector 205 and be configured to extract suitable parameters, such as range from the detected pulses within the histogram data. The operation of the parameter extractor 207 is described in further detail later in the application. These parameters may be output.
With respect to
The method may comprise processing the received histogram data to attempt to correct for pile-up errors. The operation of the correcting for pile-up errors is shown in
The method may further comprise detecting and correcting for cross-talk (in other words determining whether the histogram data comprises cross-talk components and furthermore attempting to at least partially remove these components. The operation of the detecting and subtracting cross-talk is shown in
The method may further comprise detecting and filtering (or isolating or blanking) pulses within the histogram data. The operation of detecting and filtering (or isolating or blanking) pulses within the histogram data is shown in
Furthermore in some embodiments the method may comprise extracting suitable parameters, such as range from the detected pulses within the histogram data. The operation of extracting or determining suitable parameters, such as range from the detected pulses within the histogram data is shown in
We will now discuss the issues and problems with current systems and the aspects of the system shown above which address these problems.
As discussed above there are problems associated with current time-of-flight ranging schemes. Pile-up, for example, may be problematic. Pile-up is a term which refers to the issue found within SPAD based systems and can occur either at the SPAD or within the sensor within the OR tree level. At the SPAD level pile up occurs when a photon event occurs before a previous SPAD event is fully quenched and recharged. In the OR tree case, pile up occurs when the OR tree output is already high when another detected photon event arrives, resulting in the new event not being counted at the output.
This effect for example can be shown with respect to
The effect of pile-up on the return from a target is that as there is higher probability of detecting earlier events the system will under range and produce a distance measurement which is systematically biased to produce a shorter distance value as a result.
Current approaches to address pile-up have been to implement a dynamic SPAD selection scheme. In other words dynamically turning off SPADs where high light conditions are detecting in an attempt to reduce the pile up effect. Similarly other attempts have been to place apertures over some SPADs within the system. Where high light levels are detected and therefore pile-up is likely to be present then a switch is made to use the aperture SPADs to reduce count rate.
Both of these approaches have the effect of reducing the total number of events received. This can be a problem if ambient light is high since the number of ‘signal’ photons received when reducing the total number of events will be low. Furthermore these approaches result in spatial subsampling of the array. In order to achieve this some SPADs, and therefore areas of the sensor must be disabled to achieve the regulation.
Furthermore these approaches are typically applied in an iterative manner and thus may requires a number of iterations before the correct number of SPADs are enabled. This switching iteration may not be able to produce good quality output for challenging or fast changing scenes, for example where the ambient level changes quickly and dramatically.
The concept applied in the pile-up corrector shown herein is shown schematically in
The pile-up corrector in some embodiments comprises a pulse shaper determiner 431 configured to determine a filter length tPULSE_SHAPER which may be applied to the histogram data to shape the histogram data output count event. The pulse shaper determiner 431 in some embodiments may be configured to determine the length of the filter tPULSE_SHAPER by applying a pulse inversion method. A pulse inversion method can be summarized as:
Performing a first Ranging on the SPAD array output;
Performing a second ranging, this time inverting the SPAD array output;
Subtracting the range measurements to find the difference.
The pulse shaper determiner 431 in some embodiments may be configured to determine the length of the filter tPULSE_SHAPER by applying a digital method. A digital method can be summarized as:
Search the histograms for 0->1 transition;
(determine falling edge via search for 1->0 transition);
Average the difference over multiple pulse in a low count scenario (for example using the reference array, a calibration mode, or a low DSS limit on return) to determine the learning of the filter pulse width.
In some embodiments the pile-up corrector 201 comprises a missed count probability determiner 433. The missed count probability determiner 433 in some embodiments may receive the output of the pulse shaper determiner 431 and the histogram bin data. Having determined the pulse shaper width an estimate of the counts in the bin and preceding bins before the pile-up effect may be determined by the missed count probability determiner 433.
The missed count probability determiner 433 may in some embodiments determine the probability of missed counts by applying weightings based on the pulse shaper width to the determined number of events which could cause pile-up. The weightings may be allocated on a bin by bin basis, accounting for pulse shaper width only partially overlapping a bin. Furthermore in some embodiments the first quantization period and last quantization period effect the bin in question approximately half the time.
The width of interest 457 is thus defined as the PS width plus 0.5 bins from the center of the bin in question. Furthermore there are defined three regions. A first region 465 which is within the actual bin. Any counts inside the bin in question can affect count probability for 50% of received events. A second region 463 defined by the overlap period of the first and second PS width where counts in this region always affect the probability of the bin in question. A third region 461 defined by the period covered by the first PS width only is where counts in this region affect the probability of the bin in question for 50% of the received events.
As the pulse shaper width may not be a whole number of bin widths the counts for the second and third regions may require a weighting function to be applied to the values. Thus for any fraction of a bin within the second region the bin counts may be multiplied by the determined fractional value. Similarly for the third region the bin counts may be multiplied by the determined fractional values and furthermore by the weighting effect of the third region (which as the counts in the area affect the bin in question only 50% of the time is 0.5).
Having determined the probability determination this information may be passed to a histogram bin scaler 435.
In some embodiments the pile-up corrector 201 comprises histogram bin scaler 435. The histogram bin scaler 435 may be configured to receive the output of the missed count probability determiner 433 and the histogram bin data. The histogram scaler then may add the determined count events from the missed count determiner 433 to the bin values. The histogram bin scaler furthermore in some embodiments is configured to correct the ambient estimate in a similar manner.
These processed values may then be output. In some embodiments the processed bin values may be feedback to the missed count probability determiner 433 to create a more accurate estimate of pile-up probability.
With respect to
First the pulse shaper width is determined or learnt. The operation of learning the pulse shaper width is shown in
Then the estimate of the probability of missed counts due to pile up using the pulse shaper width is determined. The estimating of the probability of missed counts due to pile-up is shown in
Then the scaling up of the raw histogram bin by the probability of missed counts is performed. The scaling up of the raw histogram bin by the probability of missed counts is shown in
In some embodiments this scaled up histogram data (or corrected bin data) may be passed back to enable more accurate estimates of the pile-up probability to be performed. This is shown in
Then the corrected histogram data may be output. The outputting of the corrected histogram data is shown in
With respect to
In the example shown the ideal (event count before OR tree) plot 471 is shown. Furthermore is shown the RAW histogram output plot 473 is shown. The plot shows the typical pile-up roll off characteristic during the pulse and furthermore a characteristic dip in the ambient count after the pulse. The corrected histogram plot 475 shows the pile-up roll off characteristic during the detected pulse removed 477. Furthermore the dip after the pulse in the ambient is removed 479 and the ambient level increased.
Although the examples shown above are with respect to a single pulse the pile-up corrector will produce similar corrections in multi-pulse and for modulated light (for example sine wave based) systems.
In some embodiments the pile-up corrector may be able to address the SPAD pile up effects. In these embodiments the pulse shaper may be disabled and a similar compensation operation performed on the histogram bins. In these embodiments the total event counts divided by number of SPADs enabled may be used to estimate a probability of SPAD pile up. Then the total counts are then scaled in the same way as before. Since a SPAD dead time (which can be in order of ions) can exceed the VCSEL period (which can be in order of 4 ns), it is possible that some bins will be blocked from detection multiple times.
It has been demonstrated in simulations that the pile-up correction performs well for a range of event rates. However in some embodiments the pile-up corrector is further configured to determine when very high light levels and event rates are detected. As at very high event rates there are very high degrees of pile up it is possible that two light levels (a lower and higher light level) can result in the same output count rate. As this may cause errors in the correction from the histogram data the pile-up corrector may be configured to operate below a defined (very high) light level.
Other problems associated with current time-of-flight ranging schemes include cross-talk. Cross-talk is a term used to describe the effect of a parasitic light path on the histogram data generated by the sensor.
The cross-talk light path 504 adds a contribution which can be problematic if the target is close to the sensor. The effect on a histogram reflecting the example shown in
Furthermore although cross-talk is shown in
The concept of the cross-talk correction algorithm component is to capture, even when no target of significant intensity is present, at least one histogram which provides the location, shape and intensity of the cross-talk waveform (or other noise source waveform). A schematic view of an example cross-talk detector/extractor 203 according to some embodiments is shown in
The cross-talk detector/extractor 203 may in some embodiments comprise a histogram determiner 531. The histogram determiner may be configured to receive or determine from the sensor a raw histogram. The raw histogram in some embodiments may be the output from the pile-up corrector and thus may already be partially processed to address the pile-up.
A single point of the sensor histogram 550 is shown by the top part of
Having determined or generated the raw histogram the cross-talk detector/extractor and the histogram determiner 531 may be configured to generate a further histogram comprising only the cross-talk components. This is shown in
The cross-talk only histogram could be captured in some embodiments during a device test with a cover glass present.
In some embodiments the cross-talk only histogram may be determined by employing a target ‘detector’ configured to determine whether there are no other major target objects obstructing the crosstalk histogram portion and then extracting the cross-talk component from the histogram. The target ‘detector’ algorithm may be based on temporal changes in pulse positions, pulse widths, differencing applications, intensity information, additional sensors outside of time-of-flight sensor, etc.
In some embodiments the cross-talk only histogram is determined by detecting within the histogram data a portion of the histogram data which remains fixed in time and thus inferring the cross-talk only component of the histogram.
The cross-talk detector/extractor 203 may in some embodiments comprise a cross-talk only histogram processor 533. The cross-talk only histogram processor 533 may be configured to receive the cross-talk only histogram data and process this data.
For example in some embodiments having detected or determined the cross-talk only histogram the processor 533 may be configured to remove any ambient contribution (this may for example comprise a determined fixed value or DC level subtraction and an optional windowing out of the ambient noise) since the approximate crosstalk location can be known/determined.
The processor may furthermore in some embodiments be configured to process the cross-talk only histogram (with ambient levels removed) to normalize the histogram. For example in some embodiments the histogram count values are divided by the number of enabled SPADs to give a per SPAD histogram.
In some embodiments a reference range is also stored close to the point in time of the cross talk histogram acquisition.
In some embodiments the processor is configured to average the crosstalk only histogram from multiple range operations to reduce the effect of photon shot noise.
The cross-talk detector/extractor 203 may in some embodiments comprise a raw histogram processor 535. The raw histogram processor 535 may be configured to receive the raw histogram and the processed cross-talk only histogram from the histogram processor 531 and cross-talk only histogram processor 533 respectively and be configured to subtract or remove the processed crosstalk only contribution histogram from the raw histogram.
This may be achieved by multiplying the normalized cross-talk only histogram by the number of SPADs used to generate the raw histogram in order to produce a weighted cross-talk histogram.
In some embodiments an additional reference measurement is made and the weighted cross-talk histogram can be shifted by any difference in the current reference range from the reference range made at the point of crosstalk capture.
For example, if the reference range shifts by ¼ bin width to the right, meaning that the captured crosstalk histogram should also be shifted ¼ width to the right, then the processor shifts ¼ of each bin's content into the bin to the right. For an integer shift, simply shift the full weighted crosstalk histogram to the right by an integer number of bins.
Then in some embodiments the weighted cross-talk only histogram is subtracted from the raw histogram to give a corrected histogram. The subtraction can be shown in
In some embodiments the raw histogram processor 535 is configured to over correct for the cross-talk both in intensity and by making the subtracted component wider (in other words perform the cross-talk subtraction over more histogram bins). The over-correction may be performed in order to allow for the cross-talk pulse intensity/shape/position to shift over variations in process, voltage, temperature (PVT) and thus prevent the correction subtraction from being fully effective in removing all of the cross-talk pulse and thus enabling the detection and parameter determination algorithms detecting a false target. This scheme can also help to account for changes in the level of crosstalk received due to changes in the optical transmission/reflectance of materials, for example rain or smudges on coverglass.
In other words the operation of the cross-talk detection may be summarized by firstly determining a raw histogram such as described in
Then the cross-talk detection operation may determine a cross-talk only histogram. The determination of the cross-talk only histogram is shown in
The cross-talk only histogram may then be processed. For example to remove ambient contributions and to normalize the histogram for a determined SPAD reference number. The processing of the cross-talk only histogram is shown in
The raw histogram may then be processed to remove the cross-talk components by using the processed cross-talk only histogram data. The operation of processing the raw histogram data is shown in
The cross-talk corrected histogram may then be output. The outputting of the cross-talk corrected histogram is shown in
As indicated above in some embodiments the cross-talk correction is implemented as a function across the sensor. In other words as the cross-talk is a function in (x,y) SPAD position on the sensor and the histogram bin (bin) and may be defined as:
xtalk=f(bin,x,y)
As such in some embodiments the cross-talk correction is performed by plane fitting to the determined cross-talk for at least some positional samples. Thus in some embodiments rather than a single cross talk histogram determination a minimum of three quadrants or (spatial) regions of interests are processed as above to determine cross-talk histograms and then a spatial cross-talk model is generated such that the cross-talk may be defined as:
In some embodiments rather than defining a model for cross-talk over the whole of the sensor, regions of interest are modelled separately. Thus for example, such as shown in
In some embodiments for example, such as shown in
In some embodiments for example, such as shown in
Existing methods for processing the histogram attempt to detect the histogram peak in order to then extract parameters such as the time associated with the peak and thus from the time determine the distance between the sensor and the object. However current histogram pulse detection and parameter extraction or determination methods have associated problems.
For example an example histogram with an earlier or first target peak and a later or second target peak may be analyzed by finding the maximum bin value(s) within a histogram to determine pulse locations. This approach however limits the range resolution to the resolution of a histogram bin width. Thus for high accuracy results the sampling rate must be high. Having a high sampling rate impacts on the silicon area used and power consumption for the device. Furthermore for precise timing the scheme requires a very narrow pulse width high powered optical output. This can be difficult to achieve if mm-resolution is required.
An improvement to the peak detection method which has been implemented is a two-bin with additional window to capture ambient count values. An example of the two-bin scheme may be where two bin values from the histogram, which may be defined as Bin A and Bin B are selected. Furthermore from these bin values an ambient contribution is subtracted. The ratio between the Bin A and Bin B values can then define the range based on the light signal pulse width. For example the range parameter may be defined as
Range_output=(Bin B−Bin A)*pulse_width/(2*total_counts)
However this scheme is not satisfactory since it assumes that the light pulse is perfectly square and furthermore requires precise knowledge of the optical pulse shape and thus does not take into account other elements of the system which may distort the pulse shape, including jitter and sampling inaccuracies.
A further scheme which has been implemented to extract parameters from a determined peak within a histogram data set is determining a center of mass within a determined peak series of histogram bins. In such methods the ambient contribution is subtracted from the bin values and then a center of mass calculation is performed around a pulse of interest. This method is problematic since it requires a reasonably high OSR (Over Sampling Ratio) to ensure range linearity. It is furthermore problematic as it requires a uniform pulse shape well matched to a multiple of bin widths. If this is not met then range error (or a Differential Non-Linearity error) will result since the mean based calculation makes an assumption that all events within a bin are weighted around the center of that bin. Also events occurring at the extreme points of any window of interest will have more impact on the mean than values occurring close to the mean of the distribution. This has the impact that noise from ambient results in a higher overall ranging noise.
As discussed previously after generating the corrected (for example with respect to pile-up and/or cross-talk) histogram data a range calculation can be performed on the data by a two stage process of identifying a suitable pulse or bins and then from these identified pulses determining parameters such as range from them.
In the following embodiments this range extraction scheme may be based on assessment of counts received on histogram bins around a determined median bin location.
To ensure no non-linearity issues, the scheme relies on the sampled signal having a shape with an even distribution for one quantization step either side of the pulse median.
The scheme described herein is one where the histogram data is fundamentally not continuous but is built from a probability distribution function from multiple (typically 1000's) of events built up over an integration period.
The parameter extraction methodology in the following embodiments can thus be considered to comprise four steps, the first associated with median event detection and the second to the fourth associated with parameter extraction.
Firstly pulse detection. In this step the goal is to determine the position of the two sample points around the median event, as well as the pulse width to enable filter widths to be tuned for the extraction phase. Around detected pulses the histogram output is padded with ambient level only.
Secondly parameter range calculation. In this step the goal is to compare count ratios to ascertain the precise position of the median event within the constraints of shot noise.
Thirdly parameter noise estimation. In this step the goal is to directly use the histogram data to estimate the noise associated with the ranging measurement.
Fourthly is parameter maximum distance (DMAX) estimation. In this step the goal is to calculate the maximum distance which it would be possible to detect, assuming a specific reflectance value, and assuming the target occupies the full field of view.
Two implementation methods for pulse weighted histogram extraction are described hereafter. It would be understood that in some embodiments although the methods described as ‘method A’ and ‘method B’ show a specific set or steps or operations to obtain the parameters that in some embodiments further hybrid methods may be formed by selecting parts of each of ‘method A’ and ‘method B’ and combining these parts.
With respect to
In some embodiments the pulse detector comprises an ambient threshold determiner 701. The ambient threshold determiner may be configured to receive the output of the cross-talk detector 203 (or the pile-up corrector 201) and be configured to determine an estimate of the ambient light and furthermore identify histogram areas of interest relative to the ambient light values.
In some embodiments the output of the ambient threshold determiner 701 can be passed to the phase weighted filter 703 as well as the processed histogram data.
In some embodiments the pulse detector furthermore comprises a phase weighted filter 703. The phase weighted filter 703 is configured to analyze the histogram data and the determined areas of interest to generate filter outputs which are further analyzed within the filter comparator/pulse detector 705. Although this example shows an ambient threshold determiner 701 followed by a phase weighted filter 703 it is understood that the order of the operations may be reversed or both are performed in parallel and the results of each are passed to the filter comparator 705.
The output of the phase weighted filter 703 may be passed to the filter comparator/pulse detector 705 where the result of the phase weighted filter is compared against criteria to identify whether the area of interest of the histogram is part of a detected signal pulse. These results and the histogram data may be passed to a parameter extractor 707 where the range/max range/noise parameters may be determined for each detected pulse.
In some embodiments the phase weighted filter 703 is an edge detecting filter configured to detect points of rising and falling edges.
Thus for example the phase weighted filter may be a +/− filter e.g. {1+1,+1,+1+1,−1,−1,−1,−1}—The number of +1 and −1 is controlled by the filter width of interest size the filter width of interest size may be determined relative to the VCSEL pulse width. For example in some embodiments
+/−PW width=1+2×CEILING(light-source pulse width/2) phase clocks.
In such a system the filter comparator/pulse detector 705 may be configured to compare the result of the phase weighted filter to identify a significant rising or falling edge. For example a significant negative output indicates a rising edge and significant positive output indicates a falling edge. In such embodiments having determined a rising and falling edge the filter comparator/pulse detector 705 may be configured to filter the histogram data to output a ‘pulse’ comprising the histogram values between the rising and falling edge bins and padding the histogram bins outside of the rising and falling edge with zero values.
Each ‘pulse’ histogram may then be analyzed according to any of the following parameter extraction methods to determine suitable parameter values.
In some embodiments the ambient threshold determiner 701 furthermore is implemented by determining a minimum magnitude change in the filtered data and indicating that a detected rising and falling edge is a valid pulse when the minimum magnitude change is passed.
In some embodiments a parameter extractor may be configured to receive the pulse histogram values and furthermore the phase weighted filter values and from the phase weighted filter values detect a positive zero crossing in the filtered output. At each valid positive zero crossing the parameter extractor may use linear interpolation to generate the phase value which may then be used to determine the median of the pulse and thus from this determine the range value.
In some embodiments the ambient threshold determiner 701 comprises a detection window filter configured to sum the bins within a detection window length. The detection window length in some embodiments is defined by the size of the signal pulse and furthermore related (and may be less than or equal) to the phase width filter width. The detection window filter may be applied for all of the possible window positions within the bins. For example if there are 256 bins then there are 256 detection windows.
For each detection window filter a sum of the detection events is calculated.
Then for each window position an ambient thresholding operation is performed where the possible detected location is indicated where the sum is greater than a threshold value greater than the ambient detection value. For example in some embodiments the detection indicator or flag is generated when
sum>[det_win_size*amb_per_bin+thresh_sigma*sqrt(det_win_size*amb_per_bin)], where amb_per_bin is the ambient detection value per phase clock, and a good threshold value thresh_sigma is >=5 to account for noise from ambient events in the detection and ambient windows. The level of this threshold determines the likelihood of a false target being detected due only to ambient noise. A high threshold setting can prevent detection of an actual returned pulse with too low an intensity.
In some embodiments the phase weighted filter 703 is an ‘ABC’ window. The phase weighted histogram window width may be determined based on the light source pulse width with respect to the quantization/bin size. This width may be established from the input control to the light source, or from a pulse width established during the detection phase. Thus for example in some embodiments the window size in bin widths, where one bin width is the difference between two neighboring sampling phases, can be determined as
ABC PW width=1+2×CEILING(light-source pulse width/2) phase clocks.
So where the light source pulse width is 4.xx phase clocks wide then the ABC PW window width is 7 phase clocks wide and furthermore the detection window width may be 5 phase clocks wide. Furthermore in such an example the ABC filter PW window may comprises a first A part two bins wide, a second B part which is one bin wide, and a third C part which is two bins wide.
In some embodiments the phase weighted filter 703 is furthermore configured to determine differences for every filter position to determine the phases (bin edges) preceding and following the pulse median. The differences may be calculated from the A, B and C parts and a determined ambient event level value according to the following:
In some embodiments these values A, B, C, X, Y and amb may be passed to the filter comparator/pulse detector 705.
With respect to
The filter comparator/pulse detector 705 may in some embodiments use the A, B, C, DX, DY and amb values and from these determine a median bin.
For example in some embodiments where DX and DY are both greater than zero then a median pulse bin has potentially been detected and this is indicated.
In some embodiments if DX=0 and DY=0 then no pulse has been detected. Furthermore in some embodiments to avoid missing pulses centered in the B phase then if DX<0 and DY>0 and for the next phase DX>0 and DY<0 then a pulse is detected. Similarly in some embodiments a pulse is detected when a value of DY is OR-ed with the NOT(DX) value of the following phase.
In some embodiments where the previous phase bin position has been flagged as a potential pulse then the current phase bin position is ‘blocked’ to avoid incorrect double pulse outputs around the same position.
The filter comparator/pulse detector 705 having determined the positions of return event pulses where both the ambient thresholding and PW transition criteria give positive outputs and one or more bin phase positions are determined then these values may be passed to the parameter extractor 707 to determine parameters based on these values.
For example in some embodiments the parameter extractor 707 is configured to determine a range calculation based on the determined median bin values. Thus in some embodiments the parameter extractor 707 may be configured to calculate or determine the median phase from the A, B, C, and ambient values of the PW window for the determined median phase position using the following
Having determined the median phase and knowing the bin location thus enables a range estimate to be generated associated with that determined pulse.
The filter comparator/pulse detector 705 may in some embodiments having determined the median position perform a calculation to estimate the noise associated with the measurement. In some embodiments the numerator shot noise effect on the range determination may be estimated as:
and the denominator shot noise effect on the range may be determined as
The denominator noise contribution goes to zero when pulse is balanced between A and C and is modulated with pulse position. The range noise shape is non-Gaussian due to denominator noise effect, especially for received low counts. The standard deviation estimation may in some embodiments be taken from subtraction of sqrt(B) so any error over-estimates noise.
The total or combined shot noise may thus be estimated as
In some embodiments the noise for the determined range may be determined as
In the embodiments where cross-talk subtraction or filtering occurs it is necessary to account for this subtraction in both the range and noise estimation calculations. For the range calculation, the crosstalk contribution estimation associated with parts A, B, C is subtracted. Contributions are denoted in the formula below by the ‘x’ subscript. As discussed previously these crosstalk contributions could be taken from fixed calibration at test, or from a scheme where these values are calculated or adjusted on the fly.
from the crosstalk compensation algorithm stage. Although the crosstalk subtraction algorithm removes the DC level of the crosstalk, it is important to recognize that the photon shot noise from the crosstalk contribution will remain, and therefore must be accounted for if we are to accurately predict the noise of the ranging measurement.
To account for this, the cross-talk based noise calculation can be adjusted as shown below.
The filter comparator/pulse detector 705 may in some embodiments from the data described above determine a maximum distance (Dmax) which could have been resolved had a target been present. This is useful since the system is effectively blind to targets beyond this maximum distance due to ambient noise in the system.
Thus for example using values such as a distance at which a Dmax calibration is taken defined by Dcal, a signal value in events/bin generated from a 100% target at the Dmax calibration distance (thus for example if a 17% target was used for calibration then this may be scaled by a ratio of reflectance—thus 100/17) defined as Signal@Dcal, a value of reflectance of target used for signal calibration defined as Ref@Dcal, a desired reflectance that Dmax is to be calculated for defined as Ref, the ambient count defined as Ambient, the signal confidence (in other words 94% valid ranges implies 2 sigma) defined as SConf, and an ambient noise floor aligned with the histogram processing assumption (i.e. a value of 6 implies that the signal in a bin must be>ambient+6 standard deviations to be considered valid) defined as Aconf, then a maximum distance defined as Dmax may be calculated by:
With respect to
In some embodiments the pulse detector comprises an ambient threshold determiner 801. The ambient threshold determiner may be configured to receive the output of the cross-talk detector 203 (or the pile-up corrector 201) and be configured to determine an estimate of the ambient light and furthermore identify histogram areas of interest relative to the ambient light values. In some embodiments the output of the ambient threshold determiner 801 can be passed to the criteria comparator 805. In some embodiments an estimate of ambient noise per bin value may be performed by applying an ‘ambient window’. The term ‘ambient window’ represents a time when the received signal is accumulated no optical output made from the device: the name is due to the signal received being from ambient light. Dark signal from the photodetector will also be accumulated during this period: this can be considered in the same way as ambient light. Typically the time allocated to the ambient window may equate to the time allocated to 8 bins of the full histogram, in order to minimize the effect of shot noise in the window. While a perfectly accurate mean would require an infinite number of samples, the ambient window can provide an estimate with sufficient accuracy to prevent error.
For a system where the noise performance is dominated by the photon shot noise of events falling in a given window, the standard deviation of the noise can be estimated by the square root of the mean number of events. This noise estimate can be multiplied by factor to reduce the likelihood of false targets being detected by the system. One example is to multiply this noise estimation by 6. This ambient noise threshold seeks to account for noise both in the ambient window itself and noise from the captured histogram. This threshold may then be applied to the bin difference values to determine pulses.
In other words if we define sigma as the Photon Shot noise=sqrt(events), then sqrt(ambient_events_per_bin)=ambient sigma. Thus an equation for ambient thresholding may be defined as
Ambient threshold=ambient_events_per_bin+sqrt(ambient_events_per_bin)*sigma—thres
For example where ambient events_per_bin=50 and the ambient shot noise (sigma)=sqrt(50)=7.7 and sigma_thres=6.0, then
ambient thresh=50+7.0*7.7=99 events.
In some embodiments the pulse detector furthermore comprises a bin difference determiner 803. The bin difference determiner 803 is configured to analyze the histogram data to generate outputs which are further analyzed by the criteria comparator 805. This for example may be performed by generating a value for each bin which is the bin count minus the previous bin value. In some embodiments the difference value may be rolling window of +/−n bins.
The output of the bin difference determiner 803 may be passed to the criteria comparator 805.
In some embodiments the pulse determiner comprises a criteria comparator 805 where the results of the bin difference determiner 803 and the ambient threshold determiner 801 is analyzed to identify whether the area of interest of the histogram is part of a detected signal pulse. In some embodiments the criteria comparator 805 is configured to determine the start, center and end bins of potential pulses based on comparing the bin difference and ambient threshold values. The criterial may pass these values and the histogram data to a pulse filter 807.
In some embodiments the pulse determiner comprises a pulse filter 807 configured to filter the histogram data based on the output from the criteria comparator 805. Thus in some embodiments for each potential pulse start and end position a pulse window may be generated and the histogram bins filtered using this pulse window filter. In some embodiments the bins outside of the pulse window are padded by a determined ambient value. Furthermore in some embodiments based on the knowledge of the VCSEL pulse width then parameter estimation window(s) within each detection window may be generated. The output of the pulse filter 807 may be passed to a parameter extractor 807.
The parameter extractor 807 may then be configured to determine the parameters associated with the filtered pulse value (for example, determine the range/max range/noise parameters using the parameter estimation window(s) within each pulse window).
With respect to
In some embodiments an ambient window is used to estimate ambient noise per bin. The operation of using an ambient window used to estimate ambient noise per bin is shown in
Having determined the ambient noise per bin a bin threshold for pulse detection is determined, for example using the 6 sigma ambient noise value. The operation of determining a bin threshold for pulse detection using the 6 sigma ambient noise value is shown in
Furthermore bin differences are determined, for example by using each bin minus previous bin value (or optionally a rolling window of +/−n bins). The operation of determining bin differences for example by using each bin minus previous bin value is shown in
Having determined bin differences the positive edge may be indicated by determining positive bin differences.
Furthermore in some embodiments having determined the bin differences potential pulse start bins may be indicated. In some embodiments these are further filtered by bin differences being positive and being above the ambient noise value.
The operation of determining pulse start positions is shown in
Furthermore the pulse center may be flagged for calculation if both zero crossing and ambient criteria are met. The operation of flagging the pulse center for calculation if both zero crossing and ambient criteria are met is shown in
With respect to
The ambient count per bin may furthermore be determined as shown in the top part of
Where the bin difference value is greater than the ambient threshold value then the start bin of the pulse has been determined. This is shown in the bottom part of
In some embodiments rather than applying the ambient threshold to the bin difference the ambient threshold is used to determine a potential pulse start position against the bin values. For example
Additionally shown in
As can be shown in
With respect to
As has been described above for each possible phase location an allocation of up and down bins is made in order to calculate bin differences.
The operation of generating the allocation of up and down bins for each possible phase location is shown in
Having determined the detection windows (the up and down bins) then for each of the possible phase locations (in this example 32 bins within the histogram) the up bin values are summed, the down bin values are summed and then the bin difference (down sum-up sum difference) is determined.
The operation of determining the down sum-up sum difference (which may be defined as the value diff_data) for each of the possible phase locations is shown in
Having determined the bin difference values the point at which the difference goes negative is determined (and may be defined as bin ta) furthermore the next bin phase (defined as tb) is also identified.
The identification of the bin phases where the difference goes negative (and the succeeding bin) is shown in
The median phase value may then be determined based on the detected start bin defined as phase 1 (the value of phase 1 may be determined from the detection operations described above may be determined by a bin difference value being greater than an ambient threshold value) and the following:
Median phase=Phase1+(|diff_data(ta)|/|diff_data(ta)|+|diff_data(tb)|)
The operation of determining the median phase is shown in
Furthermore the range time may then be determined by multiplying the median phase value with the quantization time tquant or in other words
Range time=Median phase*tQUANT
The application of this method can be shown for example in
Thus from the histogram plot 1107 the up-down window differences may be determined and plotted 1109 which would enable a pulse to be detected (from the difference values being greater than the threshold) and furthermore from the zero-crossover detection.
It should be appreciated that the device may be any suitable device. By way of example only and without limitation, that device may be a mobile telephone, smart phone, tablet, computer, measuring device, switch controller such as for a light, controlling a water supply such as in a tap or toilet, door controller, distance sensor, impact controller, or any other suitable device.
Some embodiments may use other sensors, instead of SPADs. These sensors may be integrating elements generating events on reception of the light information. Some embodiments may use any photon sensitive detector.
Some embodiments may have infrared applications. The light source would be replaced by an infrared source and the detector array would be sensitive to infra-red radiation.
It should be appreciated that the above described arrangements may be implemented at least partially by an integrated circuit, a chip set, one or more dies packaged together or in different packages, discrete circuitry or any combination of these options.
For example, the detector and optionally the processor may be provided on an integrated circuit or die. The detector and optionally the processor may be packaged in a module with the light emitter.
Various embodiments with different variations have been described here above. It should be noted that those skilled in the art may combine various elements of these various embodiments and variations.
Such alterations, modifications, and improvements are intended to be part of this disclosure, and are intended to be within the scope of the present invention. Accordingly, the foregoing description is by way of example only and is not intended to be limiting. The present invention is limited only as defined in the following claims and the equivalents thereto.
Number | Date | Country | Kind |
---|---|---|---|
17158736.3 | Mar 2017 | EP | regional |
17305222.6 | Mar 2017 | EP | regional |
17305223.4 | Mar 2017 | EP | regional |
17305224.2 | Mar 2017 | EP | regional |
This application is a continuation application of U.S. application Ser. No. 15/886,353, filed on Feb. 1, 2018, which claims the benefit of European Patent Application No. 17158736.3, filed on Mar. 1, 2017, European Patent Application No. 17305222.6, filed on Mar. 1, 2017, European Patent Application No. 17305223.4, filed on Mar. 1, 2017, and European Patent Application No. 17305224.2, filed on Mar. 1, 2017, which applications are hereby incorporated herein by their reference.
Number | Date | Country | |
---|---|---|---|
Parent | 15886353 | Feb 2018 | US |
Child | 17410143 | US |