Correction for pixel-to-pixel signal spread
The method corrects signal spreading in ToF images by using pixel-based weighting factors and linear combinations to enhance edge detection and foreground-background classification, improving 3D imaging accuracy.
Patent Information
- Application Number
- JP2021573456
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-09-26
- Filing Date
- 2020-04-29
- Publication Date
- 2024-08-20
- Estimated Expiration
- 2040-04-29
AI Technical Summary
Digital images acquired by optical time-of-flight (ToF) cameras suffer from signal spreading between pixels, particularly at edges of foreground objects, leading to uncertainty in depth coordinates and difficulties in distinguishing foreground from background, which affects downstream classification tasks.
A method to correct digital images by calculating a set of weighting factors for each pixel based on the signal amplitudes of surrounding pixels, using linear combinations to reduce signal spreading, and classifying pixels as foreground or background based on these factors.
The method effectively reduces signal spreading, enhancing edge detection and improving the accuracy of foreground-background classification in ToF images, thereby improving the quality of 3D imaging.
Smart Images

Figure 0007536800000026 
Figure 0007536800000030 
Figure 0007536800000034
Abstract
Description
[Background technology]
[0001] Driven by advances in optical sensor technology, digital imaging continues to expand into new application areas and device implementations. One example is low-cost 3D imaging using cameras that operate according to the optical time-of-flight (ToF) principle. In such devices, the distance to a point on the surface being imaged is calculated based on the length of the time interval during which light emitted by the camera travels out to that point and then back to the camera. An optical ToF camera measures this interval for many points on the surface, thereby assembling a 3D image whose depth coordinates are proportional to the time interval. Summary of the Invention
[0002] An example is disclosed for correcting a digital image to mitigate the effects of signal spread between pixels of the digital image. For a target pixel j of the digital image, a set of signal values and a set of signal amplitudes are received, each corresponding to a set of kernel pixels i that surround and include the target pixel j. For each kernel pixel i, a weighting factor is calculated based on the signal amplitude of that kernel pixel i and the signal amplitude of the target pixel j. A linear combination of the signal values corresponding to the set of kernel pixels i is calculated, and the signal value of each pixel i is weighted by the weighting factor corresponding to that pixel i. The linear combination is stored in a volatile memory of the electronic device as a corrected signal value of the target pixel j.
[0003] This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter. The claimed subject matter is not limited to implementations that solve any or all of the disadvantages noted in any part of the disclosure. [Brief description of the drawings]
[0004] [Figure 1] 1 illustrates aspects of an exemplary electronic device having an integrated or peripheral digital camera. [Diagram 2] 1 illustrates an embodiment of an exemplary digital camera. [Diagram 3] 3 and 4 show aspects of an exemplary optical sensor array of a digital camera illustrating two different sources of signal spread in state-of-the-art digital imaging. [Figure 4] 3 and 4 show aspects of an exemplary optical sensor array of a digital camera illustrating two different sources of signal spread in state-of-the-art digital imaging. [Diagram 5] 1 shows an active brightness map of the surface of a test object acquired using an optical ToF camera. [Figure 6A] 6A, 6B, and 6C show edge detection results obtained using three different variants of one exemplary signal spread correction algorithm. [Figure 6B] 6A, 6B, and 6C show edge detection results obtained using three different variants of one exemplary signal spread correction algorithm. [Figure 6C] 6A, 6B, and 6C show edge detection results obtained using three different variants of one exemplary signal spread correction algorithm. [Figure 7A] 7A and 7B show edge detection results obtained with three different variants of another exemplary signal spread correction algorithm. [Figure 7B] 7A and 7B show edge detection results obtained with three different variants of another exemplary signal spread correction algorithm. [Figure 8] 13 shows the results of signal spread correction applied to an active luminance map of a test object acquired with an optical ToF camera. [Figure 9] 13 shows the results of signal spread correction applied to an active luminance map of a test object acquired with an optical ToF camera. [Figure 10]13 shows a comparison of corrected and uncorrected active luminance maps of another test object acquired using an optical ToF camera. [Figure 11] 1 shows a series of overlaid plots of signal values derived from radial distance maps of a test object acquired using an optical ToF camera. [Figure 12] 12 shows a series of overlaid plots of signal values derived from the active luminance map of the test subject of FIG. 11 . [Figure 13] 12 shows two sets of histograms of pixel values obtained by processing the radial distance map of FIG. [Figure 14] 1 illustrates an exemplary method for segmenting a digital image into foreground and background classes. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0005] In digital imaging, each element of a camera's sensor array is mapped to a distinct location on the surface being imaged. However, various non-idealities can interfere with the mapping and cause a sensor element to erroneously respond to image content from multiple locations. When a given sensor element responds to image content mapped to a nearby sensor element, the error manifests itself as a "diffusion" of signal from one sensor element to another. In some sensor array configurations, charge carrier diffusion between sensor elements contributes to this undesirable effect.
[0006] Examples herein relate to digital image corrections that can be applied to image data that undergo signal diffusion. The corrections are applicable to various types of digital images, particularly those created during the acquisition of 3D images by optical ToF cameras. In such examples, signal diffusion increases the uncertainty of depth coordinates in regions such as the edges of foreground objects, where the depth gradient is typically large. This presents a problem for downstream classification tasks, where foreground objects should be differentiated from the deeper background.
[0007] In the context of optical ToF imaging, the corrections herein may be applied to raw image captures received directly from a sensor array, 3D images constructed based on the raw image captures, and / or various intermediate images involved in the 3D image construction. The correction algorithms herein may be computationally efficient and capable of rapid execution on portable, handheld, and wearable electronic devices that have built-in or peripheral digital cameras.
[0008] The above-introduced features will now be further described by way of example and with reference to the figures listed above. Components, process steps, and other elements that may be substantially the same in one or more of the figures are coordinately identified and described with minimal repetition. It should be noted, however, that coordinately identified elements may also differ to some extent. It should also be noted that the figures are schematic and generally not drawn to scale. Rather, the various drawing scales, aspect ratios, and numbers of components shown in the figures may be intentionally distorted to more easily view certain features or relationships.
[0009] 1 shows four different example embodiments of an electronic device 10 having an integrated or peripheral digital camera 12. Device 10A is a smartphone that includes a world-facing camera 12A. Device 10B is a personal computer that includes a webcam 12B. Device 10C is a video game system that includes a peripheral 3D camera 12C. Device 10D is a virtual reality headset that includes a world-facing 3D camera 12D. The correction methods disclosed herein may be applicable to the output of these and other types of digital cameras in the context of these and other devices.
[0010] 2 illustrates an embodiment of an exemplary digital camera 12E in one implementation. The digital camera 12E includes a sensor array 14E including a plurality of sensor elements 16, a controller 18E, and an objective lens system 20. The objective lens system is configured to focus an image of at least one surface 22E of a subject 24E onto the sensor array. The controller is configured to collect and process data from the various sensor elements, thereby constructing a digital image of the subject. The digital image is represented by pixels (X,Y) j A value S is provided for each of the set j The X,Y location of each pixel of the digital image is mapped to an associated element 16 of the sensor array 14E and, via the objective lens system 20, to a corresponding associated locus 26 of the surface 22E. In some implementations, the mapping of image pixels to sensor elements may be a 1:1 mapping, although other mappings may be used as well, such as 1:4, 4:1, etc., among others. In some implementations, the digital camera 12E may be configured to acquire a time-resolved sequence of digital images of the object 24E - i.e., a video.
[0011] Pixel(X,Y) j S j The dimensionality of the values is not particularly limited. In some examples, S j is the pixel (X,Y) j It may be a real or integer scalar that specifies the brightness of the j For example, computes the pixel (X,Y) using scalar component values for the red, green, and blue color channels. j It may be a vector of real or integer values that specify the colors of S. j is a complex value
number
[0012] As mentioned above, digital images acquired by digital cameras may exhibit signal spreading. Signal spreading may be more pronounced in areas of the digital image where the signal gradient is large - such as edges of bright objects or foreground objects in 3D images. Figures 3 and 4 show exemplary sources of signal spreading in state-of-the-art digital imaging.
[0013] First, FIG. 3 illustrates an embodiment of an exemplary optical sensor array 14F having a wavelength filter element 28 disposed on each sensor element 16. In this simplified view, wavelength filter elements 28A, 28B, and 28C can transmit green, red, and blue light, respectively. In the sensor array 14F, adjacent sensor elements 16 are separated via shallow trench isolation (STI). STI provides effective electrical isolation for charge carriers generated close to the light-receiving surface 30 of the semiconductor epilayer 32. For example, if a photoelectron is created a short distance below the gate 34 of a given sensor element, the photoelectron will most likely be captured within that sensor element. This scenario is illustrated for sensor element 16A, where the short-dashed and dot-dashed lines represent shorter wavelength light (e.g., blue and green) that is strongly absorbed by silicon. However, undesirable crosstalk may result due to charge carriers formed deep in the epilayer. That scenario is illustrated in sensor element 16B, where the long dashed lines 35 represent longer wavelength light (e.g., red or near infrared) that is not absorbed very strongly by silicon. At depths of up to a few micrometers from the gate, the electric field strength is relatively low, which allows the photoelectrons to diffuse to and be collected by neighboring sensor elements.
[0014] 4 illustrates another source of signal spreading in digital imaging, so-called "optical crosstalk." In this figure, an optical sensor array 14G includes a microlens array 36, with individual microlens elements 38 positioned in registry with each sensor element 16. If the microlenses are not well matched to the chief ray angle of the light from the object, high angle image content may be directed toward adjacent sensor elements rather than the sensor element to which it is mapped. In this undesirable scenario, the signal from the mapped sensor element will appear to spread into the adjacent sensor elements.
[0015] 5 shows an "active-brightness" or near-infrared (NIR) reflectance map 40 of a test object surface 22H acquired using a CW-ToF camera. The effect of signal diffusion is clearly evident along the edges 42 of the imaged test object.
[0016] To provide further context for the signal diffusion correction presented herein, reference will now be made again to Figure 2 and a particular embodiment of CW-ToF imaging will be described, however, it will be understood that the exemplary methods disclosed herein may be applied to other types of digital imaging as well.
[0017] The digital camera 12E of FIG. 2 is a CW-ToF camera configured to resolve radial distances Z to a plurality of points j on the surface 22E of the object 24E. To perform phase-based ToF imaging, the CW-ToF camera 12E includes a modulated light emitter 44 and a sensor array 14E having a modulated electronic shutter 46. The light emitter may be, for example, a near-infrared light-emitting diode (LED) or laser, and the sensor array may be a high-resolution array of complementary metal-oxide semiconductor (CMOS) sensor elements 16. Set behind an objective lens system 20 and a wavelength filter 48, the sensor array is configured to image light from the light emitter that reflects off the surface 22E back to the camera. Other optical ToF cameras may include different optical light emitter and / or sensor array variants - for example, a charge-coupled device (CCD) sensor array or a microlens objective lens array.
[0018] The electronic shutter 46 may refer to a control voltage bias that is applied simultaneously to specific electrode structures of various sensor elements 16 of the sensor array 14E. In some examples, the electrode structures that receive the control voltage bias may include a current collector that, depending on the level of the voltage bias, causes photoelectrons created in the sensor element to drift toward the current collector and be measured as a current. In some examples, the electrode structures that receive the control voltage bias may include a gate that, depending on the level of the voltage bias, encourages the photoelectrons to drift toward the current collector.
[0019] The controller 18E of the CW-ToF camera 12E includes a modulation control engine 50 configured to modulate the light emitters 44 and synchronously modulate the electronic shutters 46 of the sensor array 14E. In some examples, the light emitters and electronic shutters are modulated at one or more predetermined frequencies, and a predetermined angular phase offset φ′ controls the retardance of the electronic shutter modulation relative to the light emitter modulation. In some examples, “modulation” as used herein refers to a sinusoidal or digitized quasi-sinusoidal waveform that simplifies the analysis. However, this feature is not strictly necessary, since modulation with other periodic waveforms may be used instead, and such waveforms are reducible to a sum of sine waves according to Fourier principles.
[0020] In some implementations, the sensor array 14E images the component of the reflected light that lags the emitter modulation by each of a series of predetermined phase offsets φ′. The shutter acquisition engine 52 of the controller 18E captures the resulting signal values S from each sensor element 16. j A single digital image captured in this manner is called a "raw shutter." A raw shutter is a set of coordinates (X,Y) provided for each sensor element that specify the location of that sensor element within the sensor array. j The real intensity value S specific to φ' associated with j By capturing three or more successive raw shutters with three or more different phase offsets φ', it is possible to construct a "phase image" that reveals the actual phase delay φ of the light returned to each sensor element. The phase image is assigned to each sensor element j and has coordinates (X,Y) that specify the position of that sensor element within the sensor array. j φ j In some implementations, each signal value S j is a complex number
number
number
[0021] In implementations where the phase-independent reflectance of the object is also of interest, a given phase image is calculated for each complex signal value S j by its modulus, or by the square of its modulus. Images of that kind are referred to herein as "active luminance" images.
[0022] Using data from a single phase image or a set of component raw shutters, we estimate the radial distance Z between the depth camera and the surface point imaged at each sensor element j. j It is possible to conditionally estimate
number
[0023] The above solution is j is unique when the entire range of N is less than or equal to half the distance traveled by light in one modulation period, c / (2f), in which case N is a constant. Otherwise the solution is underdetermined and periodic. In particular, surface points at depths differing by any integer multiple of c / (2f) are observed with the same phase lag φ. Depth image data that is resolved only to that extent - for example, data from a single phase image or corresponding raw shutter triplet - is said to be "aliased" or "wrapped".
[0024] To resolve depths in the range greater than c / (2f), it is possible to calculate additional phase images using raw shutters acquired at different modulation frequencies. In some instances, three frequencies may be used, in others, two frequencies are sufficient. The combined input from all of the raw shutters (nine in the three frequency case, six in the two frequency case) is calculated for each Z j It is sufficient to uniquely determine the depth estimates for the same object and image frames. Redundant depth imaging of the same object and image frames to provide aperiodic depth estimates is called "de-aliasing" or "unwrapping" and this function is performed in the de-aliasing engine 54 of the controller 18E. The unwrapped depth image, or "radial-distance map", is provided for each pixel and includes coordinates (X,Y) that specify the pixel location. j The radial distance value Z associated with j The vector can be represented as a numeric array having the following structure:
[0025] In some implementations, pixels of the unwrapped depth image may be classified into one or more segments according to a single-layer or multi-layer (i.e., hierarchical) classification scheme. The segmentation engine 56 of the controller 18E may be configured to perform the classification. In some examples, the pixels may be classified as foreground or background. In some examples, pixels classified as foreground may be further classified as a human object. In some examples, pixels classified as a human object may be further classified as "subject head", "subject hand", etc. The classified digital image is provided for each pixel and includes coordinates (X,Y) specifying the pixel location. j The signal value S associated with j and class value C j The vector can be represented as a numeric array having the following structure:
[0026] Optionally, in video implementations, model fitting may be applied to track the frame-to-frame movement of the classified depth image segments. In examples where the depth imaged subject includes a human, the classified depth image segments corresponding to the hands may be segmented from the rest of the subject. In depth video applications, the hand segments may then be tracked through a sequence of depth image frames and / or fitted to a kinematic model. The tracked hand segments may be used, for example, as input for a virtual reality video game or as gesture input to control a computer. Tracking may be performed within the tracking engine 58 of the controller 18E. Of course, the approaches herein are extended to various other segmentation and tracking tasks that may be performed on the output of a phase-based CW-ToF camera.
[0027] In the above process pipeline, signal diffusion with origins as shown in Figures 3 and 4 can corrupt the raw shutter and can propagate up to the phase, active intensity, and radial distance maps. Signal diffusion in any component image affecting phase discrimination can be particularly problematic for classification tasks where foreground pixels are to be distinguished from the deeper background. In this scenario, one goal is to accurately identify edges between foreground objects and the surrounding background. However, it is at edges that the largest phase-affected signal gradients are expected, and it is exactly at these points that charge carrier diffusion is most likely to corrupt the acquired image. Therefore, we now describe examples of digital image corrections that can be applied to various types of diffusion-corrupted digital images - for example, images formed at any stage of the above pipeline.
[0028] As mentioned above, image data typically includes an array of pixels j, with associated with each pixel a real or complex signal value S that may be corrupted due to signal diffusion or other noise. jIn many instances, the process of de-corrupting the raw image data involves the generation of a corrupted signal value S j to the corresponding corrected signal value S j ' is substituted for each corrected S j ' is the corruption signal value S from pixel i=j and from the neighboring pixels i≠j. i The set of pixels that forms the basis of the linear combination is called the "kernel". Symbolically,
number
[0029] With this context in mind, let S(i,k) be the complex-valued disruptive signal value for pixel i and modulation frequency k, where i∈{1,2,...,I} and k∈{1,2,...,K}. In this formula, the integer I corresponds to the total number of pixels in the kernel surrounding the pixel of interest, pixel j. The integer K corresponds to the total number of modulation frequencies used in the analysis. To obtain the diffusion correction, a signed metric is defined, which can be further used to classify pixel j as foreground or background. Among the various metrics that could potentially be used for this purpose, the one presented here has been chosen because it provides a reliable signal correction and can be implemented using the computational resources typically available in handheld devices.
[0030] Generally speaking, the different metrics defined herein are distinguished from one another according to the form of the normalized coefficients ξ'(i) appearing in equation (3). In the following example, three different coefficient variants α, β, and γ are defined.
[0031] The weighting coefficient α corresponding to each kernel pixel i varies as the ratio of the squared norm of the signal value of that kernel pixel i to the squared norm of the signal value of a given (i.e., target) pixel j. In other words, each coefficient α invokes the difference between the squared norm of the central pixel j and the squared norm of every other i in the kernel, which is normalized by dividing by the squared norm of pixel j as follows:
number
[0032] The weighting factor β corresponding to each kernel pixel i varies as the ratio of the squared norm of the signal value of that kernel pixel i to the sum of the squared norms of the signal values of all kernel pixels. Thus, α and β are defined similarly, but β is the average of the squared norms per frequency, instead of the square of the norm of pixel j,
number
number
[0033] The weighting coefficient γ corresponding to each kernel pixel i varies as the Euclidean distance between the signal value of that kernel pixel i and the signal value of a given pixel. More specifically, it is defined as
number
number
number
[0034] For ease of explanation, any of the coefficients α, β, and γ will again be generically referred to as ξ. An edge may be indicated when either the value or the sum of squares of ξ(i,k) divided by the square of the number of pixels in the kernel exceeds a threshold. For example, an edge may be indicated when
number
[0035] Figures 6A, 6B, and 6C show exemplary edge detection results obtained using the above metrics. For these data, edge detection was applied to images of a standard scene acquired using a ToF imaging camera operated at its highest modulation frequency. The results shown in Figure 6A were applied with coefficient α for edge detection, and the results shown in Figures 6B and 6C were applied with coefficients β and γ, respectively.
[0036] The above metric further allows classification of pixels as foreground or background: if the point is located on an edge, the positive and negative numbers are used as class elements, i.e. foreground and background.
[0037] Applying the above formula to any given kernel gives I p A set of positive coefficients and I n This results in a set of negative coefficients. The average distance of the ratios allows for the classification of pixel j as background or foreground. D p (k) and D n Let (k) be the average positive and negative distances, respectively, defined as follows:
number
[0038] Operationally, D p (k)>D n In the case of (k), D p The coefficients in (k) are set to zero, and D p (k) <D n In the case of (k), the opposite is true.
number
[0039] Finally, the new coefficients {ξ n,p (i,k)} to normalize {ξ' n,p (i,k)}, which can then be used to compute a de-noised complex signal S′.
number
[0040] Further solutions may be obtained if information from K different modulation frequencies is simultaneously available. As will be shown below, the quality of the correction may be superior in this scenario because only one set of coefficients {ξ'(i)} is calculated, which reduces the unwrapping error relative to solutions in which a different set of coefficients is calculated for each modulation frequency index.
[0041] In these examples, the coefficients α and β are defined by analogy to the frequency-specific definitions above. The coefficients are calculated using only the average of the squared norm of the signal, thereby removing phase information from the coefficients. The resulting signal value (here "active luminance") is therefore independent of the modulation frequency. Further noise reduction is achieved by averaging the values obtained at each modulation frequency.
[0042] The weighting coefficient α corresponding to each kernel pixel i varies as the ratio of the sum of the squared norms of the signal values of that kernel pixel i to the sum of the squared norms of the signal values of a given (i.e., target) pixel j, where each sum is calculated across multiple modulation frequencies. In other words, each coefficient α results in the difference between the squared norm of the central pixel and the squared norm of every other i in the kernel, normalized by dividing by the squared norm of pixel j as follows:
number
[0043] The weighting coefficient β corresponding to each kernel pixel i varies as the ratio of the sum of the squared norms of the signal values of that kernel pixel i to the compound sum of the squared norms of the signal values of all kernel pixels, where the sum and compound sum are calculated across multiple modulation frequencies. Again, α and β are defined similarly, but β is expressed as:
number
number
[0044] Again, ξ denotes a signed weighting factor in this analysis. An edge may be indicated when either the value or the sum of squares of ξ(i) divided by the square of the number of pixels in the kernel exceeds a threshold,
number
[0045] 7A and 7B show exemplary edge detection results obtained using the above metric. Again, edge detection was applied to images of a standard scene acquired using a ToF imaging camera. The results shown in FIG. 7A were subjected to the coefficient α for edge detection, and the results shown in FIG. 7B were subjected to the coefficient β.
[0046] Applying the above formula to a given kernel gives I p A set of positive coefficients and I n This results in a set of negative coefficients. The average distance of the ratios allows for the classification of pixel j as background or foreground. D p and D n Let be the average positive and negative distances, respectively, defined as follows:
number
[0047] Operationally, D p >D nIn the case of D p The coefficients from are zeroed out and D p <D n In the case of , the opposite is true.
number
[0048] Finally, the new coefficients {ξ n,p (i)} is normalized to {ξ' n,p (i)}, which can then be used to compute the denoised complex signal S'.
number
[0049] FIG. 8 shows the results of signal spread correction applied to active luminance maps of test objects acquired by a CW-ToF camera using three modulation frequencies. The map of panel 60 was processed using state-of-the-art denoising without spread correction. Here, the edge 42B of the foreground surface 22B is spread. The map of panel 62 was processed using one of the per-frequency signal spread corrections of Eqs. 4-13. Here, the borders are reduced to 1 or 2 pixels. FIG. 9 provides a similar comparison of the map of panel 64 to the map of panel 66, which was processed using one of the K-frequency signal spread corrections of Eqs. 14-22. In this case, the edges are much sharper.
[0050] FIG. 10 is a comparison of corrected and uncorrected active brightness maps of another test object acquired with a CW-ToF camera using three modulation frequencies. Panel 68 shows a map with no noise removal or correction applied. The map in panel 70 was processed with one of the per-frequency signal spread corrections of Equations 4-13, and the map in panel 72 was processed with one of the K-frequency signal spread corrections of Equations 14-22. This comparison shows that signal spread correction is achieved with little or no loss of detail.
[0051] Each of the overlaid plots in FIG. 11 corresponds to the same path traced through a radial distance map of a test object acquired by a CW-ToF camera using three different modulation frequencies, where the test object includes a slanted edge 74 where signal spreading is expected. Plot 76A is traced through an uncorrected radial distance map. Plot 78A is traced through a corresponding radial distance map to which a state-of-the-art denoising algorithm has been applied. Both of these plots show flying pixels 80, and both show the effect of signal spreading at the edge 74. Plot 82A is traced through a corresponding radial distance map processed with one of the per-frequency signal spreading corrections of Equations 4-13, and plot 84A is traced through a corresponding radial distance map processed with one of the K-frequency signal spreading corrections of Equations 14-22. Plots 82A and 84A overlap almost perfectly in this example, so only one solid line is shown. Edge 74 is much sharper in plots 82A and 84A relative to plots 76A and 78A, demonstrating the effectiveness of the signal spread correction and its ability to suppress flying pixels.
[0052] Figure 12 provides a similar comparison in plots traced through an active luminance map corresponding to the radial distance map of Figure 11. A comparison of plots 82B and 84B reveals that K-frequency correction can reduce the depth of artifacts in the corrected active luminance image relative to per-frequency correction (e.g., artifact 86).
[0053] FIG. 13 shows two sets of histograms of pixel values obtained by processing the same radial distance map used in FIG. 11. The linear histogram in panel 88 shows the number of pixels with that radial distance as a function of radial distance Z, and the equivalent logarithmic histogram in panel 90 shows the logarithm of the number of pixels with that radial distance as a function of radial distance Z. The plots are as described for FIG. 11. The test objects acquired in the radial distance map are simple objects with depth values ranging from about 2000 to 4000 mm from the camera. Ideally, all of the radial distances Z fall within this range. However, the histogram of the uncorrected radial distance map shown at 92 shows significant density at deeper and shallower depth values. This density is the result of errors in the anti-aliasing or phase unwrapping process (as described above with reference to equation (2)). Based on histogram 94, state-of-the-art de-noising correction does not completely suppress the anti-aliasing errors. However, most of the anti-aliasing error is suppressed by both the per-frequency correction and the K-frequency correction, as shown by histograms 96 and 98, respectively. As shown by these histograms, both the number of false bands and the radial offset are reduced. Better suppression of the unwrapping artifacts is an advantage for typical classification tasks based on CW-ToF imaging.
[0054] In some implementations, the diffusion correction described above may be performed on the phase image as a function of phase image denoising. In other implementations, the diffusion correction may be performed on one or more raw shutters that contribute to the phase image. In still other implementations, the diffusion correction may be performed on the unwrapped radial distance or active intensity map. For both active intensity and radial distance, the assignment of a given pixel to a foreground versus background class is based on the minimum Euclidean distance for positive and negative values of the pixel value. In particular, values are assigned to the class that is closer as determined by the minimum distance.
[0055] 14 illustrates an exemplary method 100 for segmenting a digital image into foreground and background classes. The method can be applied, for example, to radial distance and active brightness maps of objects acquired using a CW-ToF camera.
[0056] At 102 of the method 100, a set of signal values is received for a kernel of pixels i surrounding and including a given pixel j of the digital image. At 104, a set of corresponding signal amplitudes is calculated based on the set of signal values for the kernel pixels i. At 106, for each kernel pixel i, a signed weighting factor is calculated based on the signal amplitude of that kernel pixel i and the signal amplitude of the given pixel j. At 108, a linear combination of the signal values corresponding to the set of kernel pixels i is calculated and stored. In this linear combination, or normalized sum, the signal value of each pixel i is weighted by the weighting factor corresponding to that pixel i. The result is stored in a volatile memory of the electronic device as the corrected signal value of the given pixel j. Thus, the method 100 can be employed to correct a digital image to reverse the effects of signal diffusion between pixels of the digital image. In other implementations, this aspect may be achieved as described at 108, independent of pixel classification and / or edge detection.
[0057] In some CW-ToF implementations, each of the above features from method 100 may be performed consecutively on data acquired at a particular modulation frequency, as described in Equations 4-13. In other words, a set of signal values and a set of signal amplitudes may be acquired at a first modulation frequency, optionally resulting in a first linear combination usable as a corrected signal value specific to the first modulation frequency. Further, for a given pixel j, a second and third set of signal values and a second and third set of signal amplitudes acquired at respective second and third modulation frequencies may be received, and for each kernel pixel i, second and third weighting factors may be calculated based on the respective second and third sets of signal amplitudes. The second and third linear combinations of signal values specific to the respective second and third modulation frequencies may be calculated and stored from the respective second and third sets of signal values.
[0058] In other CW-ToF implementations, each of the above features from method 100 may be implemented according to the K-frequency approach of Equations 14-22. In other words, a set of signal values and a set of signal amplitudes may be acquired at multiple modulation frequencies, optionally resulting in a first linear combination that is stored as a corrected signal value for the first modulation frequency. Further, second and third linear combinations of the signal values for respective second and third modulation frequencies may be calculated and stored, with the signal value for each pixel i being weighted by the same weighting factor as in the first linear combination.
[0059] At 110, the sum of the weighting coefficients is compared to a predetermined threshold. If the sum exceeds the predetermined threshold, an indication that the given pixel j is located at the edge of the object captured in the digital image is stored in a volatile memory. At 112, the given pixel j is classified into a foreground or background class in the volatile memory of the electronic device based on the sign of each weighting coefficient.
[0060] In some implementations, the method 100 may be performed by a depth imaging controller 18 configured to receive and process depth image data from a CW-ToF camera. In some examples, the depth imaging controller and the CW-ToF camera may be integrated together in the same device. In other examples, the CW-ToF camera may be a peripheral to a device that includes the depth imaging controller. The depth imaging controller may be located in virtually any electronic device, such as a personal computer, a gaming system, a laptop or tablet computer, a smartphone, a still camera, a video camera, or a virtual reality headset.
[0061] Thus, the methods and processes described herein may be coupled to the computing systems of one or more computing devices, and such methods and processes may be implemented as application programs or services, application programming interfaces (APIs), libraries, and / or other computer program products.
[0062] 2, a schematic representation of computing system 18 is shown in the form of a controller 18E, which may be configured to provide any or all of the computer functions described herein. Computing system 18 may take the form of at least one personal computer, a workstation, a network-accessible server computer, a tablet computer, a mobile communication device (e.g., a smartphone), and / or other computing device.
[0063] Computing system 18 includes a logic system 114 and a memory system 116. Computing system 18 may optionally include a display system, an input system, a communication system, and / or other systems not shown in FIG.
[0064] The logic system 114 includes one or more physical devices configured to execute instructions. For example, the logic system may be configured to execute instructions that are part of at least one operating system (OS), application, service, and / or other programmatic structure. The logic system may include at least one hardware processor (e.g., a microprocessor, central processor, central processing unit (CPU), and / or graphics processing unit (GPU)) configured to execute software instructions. Additionally or alternatively, the logic system may include at least one hardware or firmware device configured to execute hardware or firmware instructions. The processor of the logic system may be single-core or multi-core, and the instructions executed therein may be configured for sequential, parallel, and / or distributed processing. Individual components of the logic system may optionally be distributed among two or more separate devices, which may be remotely located and / or configured for cooperative processing. Aspects of the logic system may be virtualized and executed by remotely accessible networked computing devices arranged in a cloud computing configuration.
[0065] The memory system 116 includes at least one physical device configured to temporarily and / or permanently hold computer information such as data and instructions executable by the logic system 114. When the memory system includes more than one device, the devices may be collocated or may be located remotely. The memory system 116 may include at least one volatile, non-volatile, dynamic, static, read / write, read-only, random access, sequential access, position addressable, file addressable, and / or content addressable computer memory device. The memory system 116 may include at least one removable and / or embedded computer memory device. When the logic system executes instructions, the state of the memory system 116 may be changed, for example, to hold different data.
[0066] Aspects of logic system 114 and memory system 116 may be integrated together into one or more hardware logic components, which may include, for example, at least one program- or application-specific integrated circuit (PASIC / ASIC), program- or application-specific standard product (PSSP / ASSP), system-on-chip (SOC), or complex programmable logic device (CPLD).
[0067] The logic system 114 and the memory system 116 may cooperate to instantiate one or more logic machines or engines. As used herein, the terms "machine" and "engine" each collectively refer to a combination of cooperating hardware, firmware, software, instructions, and / or any other components that provide a computer function. In other words, machines and engines are not abstract ideas, but always have a tangible form. A machine or engine may be instantiated by a single computing device, or a machine or engine may include two or more subcomponents instantiated by two or more different computing devices. In some implementations, a machine or engine includes a local component (e.g., a software application executed by a computer processor) that cooperates with a remote component (e.g., a cloud computing service provided by a network of one or more server computers). The software and / or other instructions that give a particular machine or engine its functionality may optionally be stored as one or more non-executable modules in one or more computer memory devices.
[0068] When included, a display system can be used to present a visual representation of the data maintained by the memory system 116. The visual representation can take the form of a graphical user interface (GUI) in some examples. The display system may include one or more display devices utilizing virtually any type of technology. In some implementations, the display system may include one or more virtual reality, augmented reality, or mixed reality displays.
[0069] When included, the input system may include or interface with one or more input devices. The input devices may include sensor devices or user input devices. Examples of user input devices include a keyboard, a mouse, or a touch screen.
[0070] When included, the communications system may be configured to communicatively couple computing system 18 with one or more other computing systems. The communications system may include wired and / or wireless communication devices compatible with one or more different communications protocols. The communications system may be configured for communication over a personal area network, a local area network, and / or a wide area network.
[0071] In further summary, one aspect of the disclosure is directed to a computing device configured to correct a digital image to reverse the effects of signal spread between pixels of the digital image. The computing device includes a logic system and a memory system operatively coupled to the logic system. The memory system holds instructions that cause the logic system to: receive, for a target pixel j of the digital image, a set of signal values and a set of signal amplitudes, each corresponding to a set of kernel pixels i surrounding and including the target pixel j; calculate, for each kernel pixel i, a weighting factor based on the signal amplitude of that kernel pixel i and the signal amplitude of the target pixel j; calculate a linear combination of the signal values corresponding to the set of kernel pixels i, where the signal value of each pixel i is weighted by the weighting factor corresponding to that pixel i; and store the linear combination in a volatile memory of the computing device as a corrected signal value for the target pixel j.
[0072] In some implementations, the set of signal values and the set of signal amplitudes are obtained at a first modulation frequency, the linear combination is a first linear combination, and the corrected signal values are specific to the first modulation frequency, and the instructions cause the logic system to: receive, for the target pixel j, second and third sets of signal values and second and third sets of signal amplitudes obtained at respective second and third modulation frequencies; calculate, for each kernel pixel i, second and third weighting coefficients based on the respective second and third sets of signal amplitudes; calculate and store second and third linear combinations of signal values from the respective second and third sets of signal values, the second and third linear combinations being specific to the respective second and third modulation frequencies; In some implementations, the weighting coefficient corresponding to each kernel pixel i varies as a ratio of the squared norm of the signal values of that kernel pixel i to the squared norm of the signal values of the target pixel j. In some implementations, the weighting coefficient corresponding to each kernel pixel i varies as a ratio of the squared norm of the signal value of the kernel pixel i to a sum of the squared norm of the signal values of all kernel pixels. In some implementations, the weighting coefficient corresponding to each kernel pixel i varies as a Euclidean distance between the signal value of the kernel pixel i and the signal value of the target pixel. In some implementations, the set of signal values and the set of signal amplitudes are obtained at multiple modulation frequencies, the linear combination is a first linear combination stored as a corrected signal value of a first modulation frequency, and the instructions cause the logic system to calculate and store second and third linear combinations of the signal values of respective second and third modulation frequencies, the signal value of each pixel i being weighted by the same weighting coefficient as in the first linear combination. In some implementations, the weighting coefficient corresponding to each kernel pixel i varies as a ratio of the sum of the squared norm of the signal values of the kernel pixel i to a sum of the squared norm of the signal values of the target pixel j, each sum being calculated over multiple modulation frequencies.In some implementations, the weighting coefficient corresponding to each kernel pixel i varies as a ratio of the sum of the squared norm of the signal values of that kernel pixel i to a composite sum of the squared norm of the signal values of all kernel pixels, the sum and the composite sum being calculated across multiple modulation frequencies. In some implementations, the instructions cause the logic system to compare the sum of the weighting coefficients to a predefined threshold, and if the sum exceeds the predefined threshold, store in the volatile memory an indication that the target pixel j is located at an edge of an object captured in the digital image. In some implementations, each weighting coefficient is a signed weighting coefficient, and the instructions cause the logic system to classify the target pixel j into a foreground or background class in the volatile memory of the electronic device based on the sign of each weighting coefficient. In some implementations, the digital image comprises an active intensity map or a radial distance map acquired by an optical time-of-flight camera. In some implementations, the digital image comprises a raw shutter or phase image acquired by an optical time-of-flight camera.
[0073] Another aspect of the disclosure is directed to a method for segmenting a digital image into foreground and background classes, the method being implemented in a computing device operatively coupled to a camera, comprising the steps of receiving, for a target pixel j of the digital image, a set of signal values and a set of signal amplitudes each corresponding to a set of kernel pixels i surrounding and including the target pixel j, calculating for each kernel pixel i a signed weighting coefficient based on the signal amplitude of that kernel pixel i and the signal amplitude of the target pixel j, and classifying the target pixel j into a foreground or background class in a volatile memory of an electronic device based on the sign of each signed weighting coefficient.
[0074] In some implementations, the method further includes comparing the sum of the weighting coefficients to a predetermined threshold and, if the sum exceeds the predetermined threshold, storing in the volatile memory an indication that the target pixel j is located at an edge of an object captured in the digital image. In some implementations, the digital image includes a radial distance map. In some implementations, the digital image includes an active intensity map and calculating the weighting coefficients includes determining a minimum Euclidean distance and the method further includes calculating a linear combination of signal values corresponding to the set of kernel pixels i, where the signal value of each pixel i is weighted by the weighting coefficient corresponding to that pixel i.
[0075] Another aspect of the disclosure is directed to a method of correcting a digital image to reverse the effects of signal spreading between sensor elements of a sensor array, the method being implemented in a computing device operatively coupled to a digital camera having an array of optical sensor elements, comprising the steps of receiving, for a target sensor element j of the array, a set of signal values and a set of signal amplitudes, each corresponding to a set of kernel sensor elements i surrounding and including the target sensor element j, calculating, for each kernel sensor element i, a weighting factor based on the signal amplitude of that kernel sensor element i and the signal amplitude of the target sensor element j, calculating a linear combination of the signal values corresponding to the set of kernel sensor elements i, where the signal value of each sensor element i is weighted by the weighting factor corresponding to that sensor element i, and storing the linear combination in a volatile memory of the computing device as a corrected signal value for the target pixel j.
[0076] In some implementations, the method further includes comparing the sum of the weighting coefficients to a predetermined threshold and storing an indication that the target pixel j is located at an edge of an imaged object if the sum exceeds the predetermined threshold. In some implementations, each weighting coefficient is a signed weighting coefficient and the method further includes classifying the target pixel j into a foreground or background class based on a sign of each weighting coefficient. In some implementations, the digital camera includes a modulated near-infrared emitter and the array of optical sensor elements includes a modulated electronic shutter, and the modulation of the electronic shutter is synchronized to the modulation of the near-infrared emitter.
[0077] It will be understood that the configurations and / or approaches described herein are exemplary in nature, and that these specific embodiments or examples should not be considered in a limiting sense, as many variations are possible. The specific routines or methods described herein may represent one or more of any number of processing strategies. As such, the various operations shown and / or described may be performed in the sequence shown and / or described, in other sequences, in parallel, or omitted. Similarly, the order of the processing described above may be altered.
[0078] The subject matter of the present disclosure includes all novel and non-obvious combinations and subcombinations of the various process, system and configurations, and other features, functions, operations, and / or properties disclosed herein, and any and all equivalents thereof. The following notes are provided regarding the above embodiment. [Appendix 1] 1. A computing device configured to correct a digital image to reverse the effects of signal spread between pixels of the digital image, comprising: A logical system; a memory system operatively coupled to the logic system; The memory system includes: receiving, for a target pixel j of the digital image, a set of signal values and a set of signal amplitudes each corresponding to a set of kernel pixels i surrounding and including the target pixel j; For each kernel pixel i, calculate a weighting factor based on the signal amplitude of the kernel pixel i and the signal amplitude of the target pixel j; calculating a linear combination of the signal values corresponding to the set of kernel pixels i, the signal value of each pixel i being weighted by a weighting coefficient corresponding to that pixel i; storing the linear combination in a volatile memory of the computing device as a corrected signal value for the target pixel j. A computing device that holds instructions that cause it to [Appendix 2] the set of signal values and the set of signal amplitudes are obtained at a first modulation frequency, the linear combination is a first linear combination, the corrected signal values are specific to the first modulation frequency, and the instructions are to the logic system receiving second and third sets of signal values and second and third sets of signal amplitudes acquired at respective second and third modulation frequencies for the target pixel j; calculating, for each kernel pixel i, second and third weighting factors based on said second and third sets of signal amplitudes, respectively; Calculating and storing second and third linear combinations of signal values from the second and third sets of signal values, respectively, the second and third linear combinations being specific to the respective second and third modulation frequencies. 2. The computing device of claim 1, [Appendix 3] 3. The computing device of claim 2, wherein a weighting coefficient corresponding to each kernel pixel i varies as a ratio of a squared norm of the signal value of that kernel pixel i to a squared norm of the signal value of the target pixel j. [Appendix 4] 3. The computing device of claim 2, wherein a weighting coefficient corresponding to each kernel pixel i varies as a ratio of the squared norm of the signal value of that kernel pixel i to the sum of the squared norms of the signal values of all of the kernel pixels. [Appendix 5] 3. The computing device of claim 2, wherein a weighting coefficient corresponding to each kernel pixel i varies as a Euclidean distance between the signal value of that kernel pixel i and the signal value of the target pixel. [Appendix 6] The set of signal values and the set of signal amplitudes are obtained at a plurality of modulation frequencies, the linear combination being a first linear combination stored as a corrected signal value for a first modulation frequency, and the instructions to the logic system include: Calculating and storing second and third linear combinations of the signal values of the second and third modulation frequencies respectively, the signal values of each pixel i being weighted by the same weighting coefficients as in the first linear combination. 2. The computing device of claim 1, [Appendix 7] 7. The computing device of claim 6, wherein a weighting coefficient corresponding to each kernel pixel i varies as a ratio of a sum of squared norms of signal values of that kernel pixel i to a sum of squared norms of signal values of the target pixels j, each sum calculated across multiple modulation frequencies. [Appendix 8] 7. The computing device of claim 6, wherein a weighting coefficient corresponding to each kernel pixel i varies as a ratio of a sum of the squared norm of the signal values of that kernel pixel i to a composite sum of the squared norms of the signal values of all kernel pixels, the sum and the composite sum being calculated across a plurality of modulation frequencies. [Appendix 9] 2. The computing device of claim 1, wherein the instructions cause the logic system to compare the sum of the weighting coefficients to a predetermined threshold, and if the sum exceeds the predetermined threshold, store in the volatile memory an indication that the target pixel j is located at an edge of an object captured in the digital image. [Appendix 10] 2. The computing device of claim 1, wherein each weighting coefficient is a signed weighting coefficient, and the instructions cause the logic system to classify the target pixel j into a foreground or background class in the volatile memory of the electronic device based on the sign of each weighting coefficient. [Appendix 11] 2. The computing device of claim 1, wherein the digital image includes an active brightness map or a radial distance map acquired by an optical time-of-flight camera. [Appendix 12] 2. The computing device of claim 1, wherein the digital image comprises a raw shutter or phase image acquired by an optical time-of-flight camera. [Appendix 13] 1. A method for segmenting a digital image into foreground and background classes, implemented in a computing device operatively coupled to a camera, comprising: receiving, for a target pixel j of the digital image, a set of signal values and a set of signal amplitudes each corresponding to a set of kernel pixels i surrounding and including the target pixel j; calculating, for each kernel pixel i, a signed weighting factor based on the signal amplitude of the kernel pixel i and the signal amplitude of the target pixel j; classifying the target pixel j into a foreground or background class in a volatile memory of an electronic device based on the sign of each signed weighting coefficient; The method includes: [Appendix 14] 14. The method of claim 13, further comprising the steps of comparing the sum of the weighting coefficients to a predetermined threshold, and if the sum exceeds the predetermined threshold, storing in the volatile memory an indication that the target pixel j is located at an edge of an object captured in the digital image. [Appendix 15] 14. The method of claim 13, wherein the digital image includes a radial distance map.
Claims
1. 1. A computing device configured to correct a digital image to reverse the effects of signal spread between pixels of the digital image, comprising: A logical system; a memory system operatively coupled to the logic system; The memory system includes: receiving, for a target pixel j of the digital image, a first set of signal values and a first set of signal amplitudes, each corresponding to a set of kernel pixels i surrounding and including the target pixel j, the first set of signal values and the first set of signal amplitudes being obtained at a first modulation frequency; Calculate, for each kernel pixel i, a first weighting factor based on the signal amplitude of the kernel pixel i and the signal amplitude of the target pixel j; calculating a first linear combination of signal values corresponding to the set of kernel pixels i, the signal value of each pixel i being weighted by the first weighting coefficient corresponding to that pixel i; storing the first linear combination in a memory of the computing device as a first corrected signal value for the target pixel j; receiving a second set of signal values and a second set of signal amplitudes acquired at a second modulation frequency for the target pixel j; for each kernel pixel i, calculate a second weighting factor based at least on the second set of signal amplitudes; Calculating and storing a second linear combination of signal values from the second set of signal values, the second linear combination being specific to the second modulation frequency. Holds an order to each weighting coefficient being a signed weighting coefficient, the instructions causing the logic system to classify the target pixel j into a foreground or background class in the memory of the computing device based on the sign of each weighting coefficient. Computing device.
2. The instructions are receiving a third set of signal values and a third set of signal amplitudes acquired at a third modulation frequency for the target pixel j; Calculate, for each kernel pixel i, a third weighting factor based on the third set of signal amplitudes; Calculating and storing a third linear combination of signal values from the third set of signal values, the third linear combination being characteristic of the third modulation frequency. The computing device of claim 1 , further comprising:
3. 2. The computing device of claim 1, wherein the first weighting coefficient corresponding to each kernel pixel i varies as a ratio of a squared norm of a signal value of that kernel pixel i to a squared norm of a signal value of the target pixel j.
4. 2. The computing device of claim 1, wherein the first weighting coefficient corresponding to each kernel pixel i varies as a ratio of a squared norm of the signal value of that kernel pixel i to a sum of the squared norms of the signal values of all kernel pixels.
5. The computing device of claim 1 , wherein the first weighting factor corresponding to each kernel pixel i varies as a Euclidean distance between a signal value of that kernel pixel i and a signal value of the target pixel j.
6. 2. The computing device of claim 1, wherein the instructions cause the logic system to compare a sum of weighting coefficients to a predetermined threshold and, if the sum exceeds the predetermined threshold, store in the memory an indication that the target pixel j is located at an edge of an object captured in the digital image.
7. The computing device of claim 1 , wherein the digital image comprises an active brightness map or a radial distance map acquired by an optical time-of-flight camera.
8. The computing device of claim 1 , wherein the digital images comprise raw shutter or phase images acquired by an optical time-of-flight camera.
9. 1. A computing device configured to correct a digital image to reverse the effects of signal spread between pixels of the digital image, comprising: A logical system; a memory system operatively coupled to the logic system; The memory system includes: receiving, for a target pixel j of the digital image, a set of signal values and a set of signal amplitudes each corresponding to a set of kernel pixels i surrounding and including the target pixel j, the set of signal values and the set of signal amplitudes being obtained at a plurality of modulation frequencies; For each kernel pixel i, calculate a weighting factor based on the signal amplitude of that kernel pixel i and the signal amplitude of the target pixel j; calculating a first linear combination of signal values corresponding to the set of kernel pixels i, the signal value of each pixel i being weighted by the weighting coefficient corresponding to that pixel i; storing the first linear combination in a memory of the computing device as a corrected signal value for the target pixel j at a first modulation frequency; Calculate and store a second linear combination of the signal values at a second modulation frequency, the signal values for each pixel i being weighted by the same weighting coefficients as in the first linear combination. Holds an order to A computing device, wherein each weighting coefficient is a signed weighting coefficient, and the instructions cause the logic system to classify the target pixel j into a foreground or background class in the memory of the computing device based on the sign of each weighting coefficient.
10. 10. The computing device of claim 9, wherein the weighting coefficient corresponding to each kernel pixel i varies as a ratio of a sum of squared norms of signal values of that kernel pixel i to a sum of squared norms of signal values of the target pixels j, each sum calculated across the multiple modulation frequencies.
11. 10. The computing device of claim 9, wherein the weighting coefficient corresponding to each kernel pixel i varies as a ratio of a sum of the squared norms of the signal values of that kernel pixel i to a composite sum of the squared norms of the signal values of all kernel pixels, the sum and the composite sum being calculated across the multiple modulation frequencies.
12. 1. A method of correcting a digital image to reverse an effect of signal spread between pixels of the digital image, implemented in a computing device operatively coupled to a camera, the method comprising: receiving, for a target pixel j of the digital image, a set of signal values and a set of signal amplitudes each corresponding to a set of kernel pixels i surrounding and including the target pixel j; calculating, for each kernel pixel i, a signed weighting factor based on the signal amplitude of that kernel pixel i and the signal amplitude of the target pixel j; computing a linear combination of signal values corresponding to the set of kernel pixels i, where the signal value of each pixel i is weighted by the signed weighting coefficient corresponding to that pixel i; storing the linear combination in a memory of the computing device as a corrected signal value for the target pixel j; classifying the target pixel j into a foreground or background class based on the sign of each signed weighting coefficient; The method includes:
Citation Information
Patent Citations
Measuring method, and measuring device
JP2014104913A
Digital photographing apparatus and method of operating the same
US20170150067A1
Charge diffusion crosstalk reduction for image sensors
US7561194B1
System and method for automated table game activity recognition
WO2017197452A1
