Image processing device, image processing method, and image processing program
Patent Information
- Application Number
- JP2025501947
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Filing Date
- 2023-02-20
- Publication Date
- 2024-08-29
AI Technical Summary
Existing methods for correcting sparse reflection intensity data from LiDAR sensors, such as those used in autonomous driving and topographical surveys, face challenges in achieving high accuracy due to the limited density of the data, especially when applying techniques like supervised learning, which require extensive correct answer data and incur high costs.
An image processing device and method utilizing unsupervised learning to accurately correct missing reflection intensity data by integrating a reflection intensity distribution, a mask, and RGB or luminance components, employing a reflection intensity correction model that convolves defective and non-defective image areas to generate a corrected reflection intensity distribution, thereby improving data density and accuracy.
The proposed solution enables accurate correction of missing reflection intensity data through unsupervised learning, enhancing the density and quality of LiDAR sensor data, which is crucial for applications like depth completion and super resolution, without the need for extensive training data or high computational costs.
Abstract
Description
Image processing device, image processing method, and image processing program
[0001] The disclosed technology relates to an image processing device, an image processing method, and an image processing program.
[0002] For example, LiDAR (Light Detection and Ranging) sensors are widely used as devices for acquiring accurate distance information in autonomous driving, topographical surveys, urban measurement, and the like. In recent years, the usefulness of the intensity of reflected light from a laser (hereinafter simply referred to as "reflection intensity"), which is obtained as a by-product of distance measurement using a LiDAR sensor, has begun to be recognized. However, reflection intensity has a lower density (i.e., is highly sparse) than general camera images, limiting its use.
[0003] There has been much research focused on improving the density of LiDAR sensors, addressing tasks such as depth completion and superresolution. However, many depth completion models, for example, require the preparation of large amounts of sufficiently high-density ground truth data when using supervised learning, which incurs enormous costs. For this reason, unsupervised learning and self-supervised learning models have been attracting attention in recent years. For example, Non-Patent Document 1 describes a technique for correcting partial defects in stereo depth images using unsupervised learning.
[0004] Yinda Zhang and Thomas Funkhouser,"Deep depth completion of a single rgb-d image.", In CVPR, pages 175-185, 2018. 4
[0005] However, if the technique described in Non-Patent Document 1 is applied as is to the reflection intensity, it may not be possible to correct the reflection intensity with high accuracy.
[0006] The disclosed technology has been made in consideration of the above points, and aims to provide an image processing device, an image processing method, and an image processing program that can accurately correct missing reflection intensity through unsupervised learning.
[0007] A first aspect of the present disclosure is an image processing device comprising: a first acquisition unit that acquires a reflection intensity distribution obtained by measuring reflected light from a surface of an object, a mask for the reflection intensity distribution, and an image including RGB components or luminance components corresponding to the reflection intensity distribution; and a first estimation unit that estimates a corrected reflection intensity distribution, which is a reflection intensity distribution in which missing portions of the reflection intensity distribution are corrected, based on the reflection intensity distribution, the mask, and the image.
[0008] A second aspect of the present disclosure is an image processing method in which an image processing device acquires a reflection intensity distribution obtained by measuring reflected light from a surface of an object, a mask for the reflection intensity distribution, and an image including RGB components or luminance components corresponding to the reflection intensity distribution, and estimates a corrected reflection intensity distribution, which is a reflection intensity distribution in which missing portions of the reflection intensity distribution have been corrected, based on the reflection intensity distribution, the mask, and the image.
[0009] A third aspect of the present disclosure is an image processing program that causes a computer to execute a process of acquiring a reflection intensity distribution obtained by measuring reflected light from a surface of an object, a mask for the reflection intensity distribution, and an image including RGB components or luminance components corresponding to the reflection intensity distribution, and estimating a corrected reflection intensity distribution, which is a reflection intensity distribution in which missing portions of the reflection intensity distribution have been corrected, based on the reflection intensity distribution, the mask, and the image.
[0010] The disclosed technology has the advantage of being able to accurately correct missing reflection intensities through unsupervised learning.
[0011] 1 is a block diagram showing an example of a hardware configuration of an image processing device according to a first embodiment. FIG. 2 is a block diagram showing an example of a functional configuration of an image processing device according to the first embodiment. FIG. 3 is a diagram showing an example of input and output of a reflection intensity correction model according to the first embodiment. FIG. 4 is a diagram explaining unsupervised learning of a reflection intensity correction model according to the first embodiment. FIG. 5 is a diagram showing a model structure according to a comparative example. FIG. 6 is a diagram showing an example of a model structure according to the first embodiment. FIG. 7 is a flowchart showing an example of the flow of a corrected reflection intensity estimation process by an image processing program according to the first embodiment. FIG. 8 is a flowchart showing an example of the flow of a corrected reflection intensity learning process by an image processing program according to the first embodiment. FIG. 9 is a block diagram showing an example of a functional configuration of an image processing device according to a second embodiment. FIG. 10 is a diagram showing an example of input and output of an eigenimage decomposition model according to the second embodiment. FIG. 11 is a diagram showing an example of a detailed configuration of an eigenimage decomposition model according to the second embodiment. FIG. 12 is a diagram explaining an effect obtained by adding a depth distribution D according to a fourth embodiment. FIG. 13 is a diagram showing an example of input and output of a reflection intensity correction model according to the fourth embodiment. FIG. 14 is a diagram explaining unsupervised learning of a reflection intensity correction model according to the fourth embodiment.
[0012] An example of an embodiment of the disclosed technology will be described below with reference to the drawings. Note that in each drawing, the same or equivalent components and parts are given the same reference numerals. Also, the dimensional proportions in the drawings are exaggerated for the convenience of explanation and may differ from the actual proportions.
[0013] The image processing device according to the present embodiment provides certain improvements over conventional techniques for correcting missing portions of a reflection intensity distribution using machine learning, and represents an advancement in the field of correcting missing portions of a reflection intensity distribution using machine learning.
[0014] The image processing device of this embodiment enables accurate correction of the reflection intensity distribution through unsupervised learning that takes images into account in order to improve the density of reflection intensity measured by a sensor that can measure actual reflection intensity values, such as a LiDAR sensor.
[0015] As an example, a LiDAR sensor irradiates an object with laser light and measures the distance between the object based on the time it takes for the reflected light to be received or the phase change between the emitted light and the received light. A LiDAR sensor measures the three-dimensional shape (three-dimensional coordinates) of an object by arranging multiple laser light emitters vertically and horizontally scanning (rotating) each emitter. The LiDAR sensor can also measure the reflection intensity at each position on the object surface using the light intensity ratio between the emitted light and the received light. Because the reflection intensity measured by this LiDAR sensor is the light intensity ratio between the emitted light and the received light, it is not affected by ambient light.
[0016] Here, "reflection intensity" refers to the actual reflection intensity (e.g., a value corresponding to the light intensity ratio between the emitted light and the received light of the laser light) measured by a sensor capable of measuring the actual reflection intensity, such as a LiDAR sensor. Also, "reflection intensity distribution" refers to the distribution of the actual reflection intensity at each position on the object surface, measured by a sensor capable of measuring the actual reflection intensity, such as a LiDAR sensor.
[0017] First Embodiment FIG. 1 is a block diagram showing an example of the hardware configuration of an image processing apparatus 10 according to a first embodiment.
[0018] 1, the image processing device 10 includes a CPU (Central Processing Unit) 11, a ROM (Read Only Memory) 12, a RAM (Random Access Memory) 13, a storage 14, an input unit 15, a display unit 16, and a communication interface (I / F) 17. Each component is connected to each other via a bus 18 so as to be able to communicate with each other.
[0019] The CPU 11 is a central processing unit that executes various programs and controls each component. That is, the CPU 11 reads programs from the ROM 12 or the storage 14 and executes the programs using the RAM 13 as a work area. The CPU 11 controls the above components and performs various arithmetic processing in accordance with the programs stored in the ROM 12 or the storage 14. In this embodiment, the ROM 12 or the storage 14 stores an image processing program for estimating and learning the corrected reflection intensity distribution. Note that, instead of the CPU, for example, a GPU (Graphics Processing Unit) may be used.
[0020] The ROM 12 stores various programs and various data. The RAM 13 temporarily stores programs or data as a working area. The storage 14 is configured with an HDD (Hard Disk Drive) or an SSD (Solid State Drive) and stores various programs including the operating system and various data.
[0021] The input unit 15 includes a pointing device such as a mouse and a keyboard, and is used to input various information to the device itself.
[0022] The display unit 16 is, for example, a liquid crystal display, and displays various information. The display unit 16 may be a touch panel type and function as the input unit 15.
[0023] The communication interface 17 is an interface for communicating with other devices, such as a camera and a LiDAR sensor, using a wired communication standard such as Ethernet (registered trademark) or FDDI (Fiber Distributed Data Interface), or a wireless communication standard such as 4G, 5G, or Wi-Fi (registered trademark).
[0024] The image processing apparatus 10 according to this embodiment is implemented as a general-purpose computer such as a server computer or a personal computer (PC).
[0025] Next, the functional configuration of the image processing device 10 will be described with reference to FIG.
[0026] FIG. 2 is a block diagram showing an example of the functional configuration of the image processing apparatus 10 according to the first embodiment.
[0027] 2, the image processing device 10 includes, as functional components, a first acquisition unit 101, a first estimation unit 102, and a first learning unit 103. Each functional component is realized by the CPU 11 reading out an image processing program stored in the ROM 12 or the storage 14, expanding it in the RAM 13, and executing it.
[0028] The storage 14 stores a reflection intensity correction model 141 obtained through machine learning by the first learning unit 103.
[0029] The first acquisition unit 101 acquires a reflection intensity distribution L obtained by measuring reflected light from the surface of an object, a mask M for the reflection intensity distribution L, and an image I including RGB components or luminance components corresponding to the reflection intensity distribution L. The reflection intensity distribution L is measured, for example, by a LiDAR sensor as described above. The mask M is a mask in which 1 is input to pixels where the reflection intensity distribution L exists and 0 is input to pixels where the reflection intensity distribution L does not exist. Generally, the resolution of a LiDAR sensor is lower than the resolution of a camera, and it is not always possible to project reflection intensities corresponding to all pixels in the image I. For this reason, such a mask M is provided. The image I is, for example, an image captured by an imaging device such as a digital still camera, and includes RGB components or luminance components corresponding to the reflection intensity distribution L. Note that the reflection intensity distribution L and the image I are obtained by measuring and capturing an image of the same object, respectively.
[0030] The first estimating unit 102 estimates a corrected reflection intensity distribution Lc, which is a reflection intensity distribution obtained by correcting missing portions of the reflection intensity distribution L, based on the reflection intensity distribution L, mask M, and image I acquired by the first acquiring unit 101. Specifically, the first estimating unit 102 estimates the corrected reflection intensity distribution Lc using a reflection intensity correction model 141.
[0031] FIG. 3 is a diagram showing an example of input and output of the reflection intensity correction model 141 according to the first embodiment.
[0032] As shown in FIG. 3 , the reflection intensity correction model 141 is a trained model that has been machine-learned in advance to receive the reflection intensity distribution L, mask M, and image I as input and output the corrected reflection intensity distribution Lc and corrected image Ic. That is, by convolving the reflection intensity distribution L with defects and the image I without defects together, the corrected reflection intensity distribution Lc and corrected image Ic are obtained while incorporating edge information of the defective region. The input reflection intensity distribution L, mask M, and image I are represented, for example, as a noise map, which is noise of the same size as image I. The corrected image Ic is an image obtained by correcting image I. In this case, the first estimation unit 102 estimates the corrected reflection intensity distribution Lc and corrected image Ic using the reflection intensity correction model 141.
[0033] The first learning unit 103 is an example of a learning unit, and generates a reflection intensity correction model 141 through unsupervised learning using a loss function.
[0034] Here, as a comparative example, the loss function loss that does not take image I into consideration is shown in Equation (1). Note that E(a, b) is a function related to the difference between a and b, such as mean squared error (MSE), root mean squared error (RMSE), and mean absolute error (MAE). z indicates noise (noise map) of the same size as image I, and f θ (z) indicates the output of the learning model (the subscript θ is a parameter of the learning model) with noise z as input, that is, the corrected reflection intensity distribution Lc. M indicates the mask M, and L indicates the reflection intensity distribution L. θ (z)×M (the product for each pixel, not the cross product) indicates the result of masking the corrected reflection intensity distribution Lc with the mask M. L×M indicates the result of masking the reflection intensity distribution L with the mask M.
[0035] (1)
[0036] Learning is performed to minimize the loss function loss shown in the above formula (1). In this case, it is possible to fill in areas where no values are entered in the reflection intensity distribution L, but the corrected reflection intensity distribution Lc will be blurred in sparse areas. For this reason, in this embodiment, image I is simultaneously learned, and the reflection intensity distribution L is corrected (densified) so that it does not contradict the brightness and edges of image I.
[0037] FIG. 4 is a diagram illustrating unsupervised learning of the reflection intensity correction model 141 according to the first embodiment.
[0038] As shown in FIG. 4 , the first learning unit 103 performs unsupervised learning to minimize a loss function loss, which includes the difference between the result of masking the measured reflection intensity distribution L with a mask M and the result of masking the estimated corrected reflection intensity distribution Lc with the mask M, and the difference between the RGB components or luminance components of the captured image I and the RGB components or luminance components of the estimated corrected image Ic, to generate a reflection intensity correction model 141. As the reflection intensity correction model 141, for example, a VAE (Variational Autoencoder)-based unsupervised learning model is applied. Note that in the case of the reflection intensity distribution L, the mask M is a mask in which 1 is input to pixels in which the reflection intensity distribution L exists and 0 is input to pixels in which the reflection intensity distribution L does not exist. Also, in the case of the corrected reflection intensity distribution Lc, the mask M is a mask in which 1 is input to pixels in which the corrected reflection intensity distribution Lc exists and 0 is input to pixels in which the corrected reflection intensity distribution Lc does not exist. In the case of an image I including RGB components, the loss function loss is expressed by, for example, equation (2).
[0039] (2)
[0040] Note that z represents noise (noise map) of the same size as the image I, and f θ (z) L f denotes the output of the learning model with noise z as input, that is, the corrected reflection intensity distribution Lc. M denotes the mask M, and L denotes the reflection intensity distribution L. θ (z) L ×M indicates the result of masking the corrected reflection intensity distribution Lc with the mask M. L × M indicates the result of masking the reflection intensity distribution L with the mask M. On the other hand, λ indicates a weighting coefficient, and f θ (z) i denotes the output of the learning model with noise z as input, i.e., the corrected image Ic, and I i indicates each channel component of image I. Here, three channels of RGB are used, but one channel of luminance only may be used. By taking image I into consideration in the loss function loss shown in equation (2) above, it is possible to accurately correct missing parts of the reflection intensity distribution L.
[0041] Fig. 5 is a diagram showing a model structure according to a comparative example, and Fig. 6 is a diagram showing an example of a model structure according to the first embodiment.
[0042] The model structure shown in Figure 5 is a structure that uses an encoder and a decoder and does not consider an image as an input. In the comparative example of Figure 5, only the reflection intensity distribution, i.e., a one-channel noise map, is input. On the other hand, the model structure shown in Figure 6 is also a structure that uses an encoder and a decoder and considers an image as an input. In other words, one channel of the reflection intensity component is added to three channels of RGB to form a four-channel noise map.
[0043] Next, the operation of the image processing device 10 according to the first embodiment will be described with reference to FIGS.
[0044] 7 is a flowchart showing an example of the flow of corrected reflection intensity estimation processing using an image processing program according to embodiment 1. The corrected reflection intensity estimation processing using an image processing program is realized by CPU 11 of image processing device 10 writing the image processing program stored in ROM 12 or storage 14 to RAM 13 and executing it.
[0045] In step S101 of FIG. 7, the CPU 11 acquires a reflection intensity distribution L obtained by measuring reflected light from the surface of an object, a mask M for the reflection intensity distribution L, and an image I containing RGB components or luminance components corresponding to the reflection intensity distribution L.
[0046] In step S102, the CPU 11 uses the reflection intensity correction model 141 to estimate a corrected reflection intensity distribution Lc obtained by correcting the missing portions of the reflection intensity distribution L and a corrected image Ic obtained by correcting the image I from the reflection intensity distribution L, mask M, and image I acquired in step S101, and then ends the corrected reflection intensity estimation process using this image processing program.
[0047] 8 is a flowchart showing an example of the flow of corrected reflection intensity learning processing using the image processing program according to embodiment 1. The corrected reflection intensity learning processing using the image processing program is realized by CPU 11 of image processing device 10 writing the image processing program stored in ROM 12 or storage 14 to RAM 13 and executing it.
[0048] In step S111 of FIG. 8, the CPU 11 acquires, as learning data, a reflection intensity distribution L obtained by measuring reflected light from the surface of an object, a mask M for the reflection intensity distribution L, and an image I containing RGB components or luminance components corresponding to the reflection intensity distribution L.
[0049] In step S112, the CPU 11 acquires, as learning data, the corrected reflection intensity distribution Lc obtained by estimation using the corrected reflection intensity estimation process, a mask M for the corrected reflection intensity distribution Lc, and the corrected image Ic obtained by estimation using the corrected reflection intensity estimation process.
[0050] In step S113, the CPU 11 performs unsupervised learning to minimize a loss function loss that includes the difference between the result of masking the reflection intensity distribution L with the mask M and the result of masking the corrected reflection intensity distribution Lc with the mask M, and the difference between the RGB components or luminance components of the image I and the RGB components or luminance components of the corrected image Ic, and generates the reflection intensity correction model 141.
[0051] In step S114, the CPU 11 stores the reflection intensity correction model 141 generated in step S113 in, for example, the storage 14, and ends the corrected reflection intensity learning process according to this image processing program.
[0052] As described above, according to this embodiment, a corrected reflection intensity distribution in which missing portions of the reflection intensity distribution are corrected is estimated using a reflection intensity correction model generated by unsupervised learning using a reflection intensity distribution, a mask, and an image including RGB components or luminance components. This makes it possible to accurately correct the missing reflection intensity.
[0053] Second Embodiment In a second embodiment, a form will be described in which the corrected reflection intensity distribution obtained in the first embodiment is used to perform eigenimage decomposition processing.
[0054] The second embodiment relates to an intrinsic image decomposition technique for estimating a reflectance component (albedo) that is independent of illuminating light and a shade component (shade) that is dependent on illuminating light for a captured image obtained by photographing an object (i.e., for decomposing a captured image into a reflectance component and a shade component).
[0055] Conventionally, particularly with respect to the reflectance component, it has been difficult to distinguish between a shadow caused by an object and a pattern formed on the surface of the object, and it has been difficult to prepare training data, resulting in insufficient estimation accuracy. Therefore, in each embodiment, the reflectance component and the shading component in the captured image are estimated with high accuracy by using the reflection intensity measured by a sensor capable of measuring the actual measurement value of the reflection intensity, such as a LiDAR sensor.
[0056] However, if the density of the reflection intensity distribution used is low (high sparseness), it may not be possible to accurately estimate the reflectance components and shading components. Therefore, by using the corrected reflection intensity distribution estimated in the first embodiment, i.e., a reflection intensity distribution with increased density, it is possible to improve the estimation performance of the reflectance components and shading components.
[0057] FIG. 9 is a block diagram showing an example of the functional configuration of an image processing apparatus 10A according to the second embodiment.
[0058] 9, the image processing device 10A includes, as functional components, a first acquisition unit 101, a first estimation unit 102, a first learning unit 103, and further includes a second acquisition unit 104, a second estimation unit 105, and a second learning unit 106. Each functional component is realized by the CPU 11 reading out an image processing program stored in the ROM 12 or the storage 14, and expanding and executing the program in the RAM 13. Hereinafter, components that are the same as those described in the first embodiment above will be assigned the same reference numerals, and repeated description thereof will be omitted.
[0059] The storage 14 stores an eigenimage decomposition model 142 obtained through machine learning by the second learning unit 106 .
[0060] The second acquisition unit 104 acquires a captured image Ip obtained by photographing an object and the corrected reflection intensity distribution Lc estimated by the first estimating unit 102. The captured image Ip is captured by an imaging device such as a digital still camera. The captured image Ip is an image obtained by photographing the object that is the target of estimation using the corrected reflection intensity distribution Lc.
[0061] The second estimating unit 105 estimates at least one of a reflectance component R that is independent of illumination light in the captured image Ip and a shading component S that is dependent on illumination light in the captured image Ip, based on the captured image Ip and the corrected reflection intensity distribution Lc. That is, the second estimating unit 105 estimates at least one of the reflectance component R and the shading component S for each pixel of the captured image Ip. Specifically, the second estimating unit 105 estimates at least one of the reflectance component R and the shading component S using the intrinsic image decomposition model 142.
[0062] FIG. 10 is a diagram illustrating an example of input and output of the eigenimage decomposition model 142 according to the second embodiment.
[0063] 10 , the intrinsic image decomposition model 142 is a trained model that receives the captured image Ip and the corrected reflection intensity distribution Lc as input and outputs a reflectance component R and a shading component S. The second estimation unit 105 inputs the captured image Ip and the corrected reflection intensity distribution Lc acquired by the second acquisition unit 104 into the intrinsic image decomposition model 142, thereby obtaining the reflectance component R and the shading component S of the captured image Ic.
[0064] FIG. 11 is a diagram showing a detailed configuration example of the eigenimage decomposition model 142 according to the second embodiment.
[0065] As shown in FIG. 11, the eigenimage decomposition model 142 includes an encoder E that encodes the reflectance components R into a domain-independent latent space. c R and an encoder E that encodes the reflectance components R into a domain-dependent latent space. p R and a decoder D that decodes the two encoder outputs into reflectance components R. R Furthermore, the intrinsic image decomposition model 142 includes an encoder E that encodes the combined captured image Ip and corrected reflection intensity distribution Lc into a domain-independent latent space. c I and an encoder E that encodes the combined image Ip and corrected reflection intensity distribution Lc into a domain-dependent latent space. p I and encoder E c I and encoder E p I A decoder D decodes the output of the captured image Ip and the corrected reflection intensity distribution Lc. I Furthermore, the intrinsic image decomposition model 142 includes an encoder E that encodes the shadow component S into a domain-independent latent space. c S and an encoder E that encodes the shadow component S into a domain-dependent latent space. p S and a decoder D that decodes the two encoder outputs into a shadow component S. S Includes:
[0066] The second estimation unit 105 outputs the combined captured image Ip and corrected reflection intensity distribution Lc to the encoder E c I and encoder E p I and encoder E c I Output of encoder E p R The output of the decoder D R , an estimation result R' of the reflectance component R of the captured image Ip is obtained. p R The output of the encoder E p I The second estimation unit 105 is obtained by mapping the output of the encoder E c I Output of encoder E p S The output of the decoder D S , an estimation result S' of the shadow component S of the photographed image Ip is obtained. p S The output of the encoder E p I is obtained by mapping the output of
[0067] Preferably, the intrinsic image decomposition model 142 is trained by unsupervised learning using training images, a training corrected reflectance intensity distribution, a training reflectance image consisting of reflectance components, and a training shade image consisting of shade components. Here, the training images, training reflectance images, and training shade images may be independent of one another. In other words, the images from which the training reflectance images and training shade images are estimated do not necessarily have to match, and they do not have to match the training images. The training images and the training corrected reflectance intensity distribution are obtained by photographing and estimating the same object, respectively.
[0068] For example, a VAE-based unsupervised learning model can be applied as the eigenimage decomposition model 142, but is not particularly limited thereto. For example, the eigenimage decomposition model 142 may be based on a deep neural network (DNN). Alternatively, supervised learning may be performed using a plurality of training data sets including combinations of training images, corrected training reflectance intensity distributions, training reflectance images, and training shadow images. In this case, the combinations of training images, corrected training reflectance intensity distributions, training reflectance images, and training shadow images are formed using training reflectance images and training shadow images that are correct solutions for pairs of training images and corrected training reflectance intensity distributions obtained by photographing and estimating the same object.
[0069] 11, the intrinsic image decomposition model 142 is described as combining the captured image Ip and the corrected reflection intensity distribution Lc before encoding, but the present invention is not limited to this. The captured image Ip and the corrected reflection intensity distribution Lc may be combined after encoding or during encoding.
[0070] The second estimation unit 105 may perform control to display at least one of the reflectance component R and the shadow component S in the captured image Ip obtained as described above as an image on the display unit 16 .
[0071] The second learning unit 106 trains the intrinsic image decomposition model 142 using a loss function that includes at least one of the difference between the result of masking the estimated reflectance component R according to the corrected reflection intensity distribution Lc and the result of masking the corrected reflection intensity distribution Lc according to the corrected reflection intensity distribution Lc, and the difference between the result of masking the estimated shadow component S according to the corrected reflection intensity distribution Lc and the result of masking the ratio between the captured image Ip and the corrected reflection intensity distribution Lc according to the corrected reflection intensity distribution Lc.
[0072] For example, the second learning unit 106 may add a term Tr1 relating to the reflectance component R below as a term of the loss function.
[0073] Tr1=λr×g(M×h(R), M×(Lc×α+β))
[0074] Here, λr is a weight related to the estimation error of the reflectance component R. g(a, b) is a function related to the difference between a and b, such as the mean square error (MSE), root mean square error (RMSE), and mean absolute error (MAE). h(a) is a function that grayscales a. α and β are parameters for aligning the scale and bias of the corrected reflection intensity distribution Lc obtained by a LiDAR sensor or the like with the reflectance component R, and may be updated during the learning process.
[0075] M×h(R) is the result of masking the grayscaled reflectance component R according to the corrected reflection intensity distribution Lc. M×(Lc×α+β) is the result of masking the corrected reflection intensity distribution Lc corrected by the parameters α and β according to the corrected reflection intensity distribution Lc.
[0076] Furthermore, for example, the second learning unit 106 may add a term Ts1 relating to the following shadow component S as a term of the loss function.
[0077] Ts1=λs×g(M×S, M×Iv / (Lc×γ+δ))
[0078] Here, λs is a weight related to the estimation error of the shadow component S. Iv is the pixel value (brightness value) of the captured image Ip. γ and δ are parameters for aligning the scale, bias, etc. of the corrected reflection intensity distribution Lc obtained by a LiDAR sensor or the like with the pixel values Iv of the captured image Ip, and may be updated during the learning process. M×S is the result of masking the shadow component S according to the corrected reflection intensity distribution Lc. M×Iv / (Lc×γ+δ) is the result of masking the ratio between the pixel values Iv of the captured image Ip and the corrected reflection intensity distribution Lc corrected by the parameters γ and δ according to the corrected reflection intensity distribution Lc.
[0079] The second learning unit 106 may perform self-supervised learning on the eigenimage decomposition model 142 .
[0080] As described above, according to this embodiment, by using the corrected reflection intensity distribution, it is possible to accurately estimate at least one of the reflectance component and the shading component in an image.
[0081] Third Embodiment In a third embodiment, a mode in which a loss function that takes into account the flatness of an image is added will be described.
[0082] The hardware configuration and functional configuration of the image processing device 10B according to the third embodiment are similar to the hardware configuration (FIG. 1) and functional configuration (FIG. 2) of the image processing device 10 according to the first embodiment.
[0083] The first learning unit 103 according to this embodiment further improves the effect of image I by explicitly adding image I to the loss function loss and minimizing the loss function loss. To make the corrected reflection intensity distribution Lc flat in areas where image I is flat, the first learning unit 103 defines and adds a loss function loss expressed by the following equation (3) using the corrected reflection intensity distribution Lc and image I. Note that ∇ represents a gradient vector.
[0084] (3)
[0085] Furthermore, when there is an edge in image I, the corrected reflection intensity distribution Lc is often also an edge, so the loss function loss expressed by the following equation (4) or (5) may be defined using the corrected reflection intensity distribution Lc and the channel component I of image I.
[0086] (4)
[0087] (5)
[0088] As described above, according to this embodiment, the flatness of the image is taken into consideration, so that the effect of the image can be further improved.
[0089] Fourth Embodiment In a fourth embodiment, a form will be described in which a depth distribution on the surface of an object is further added and a corrected reflection intensity distribution is estimated.
[0090] The hardware configuration and functional configuration of an image processing apparatus 10C according to the fourth embodiment are similar to the hardware configuration (FIG. 1) and functional configuration (FIG. 2) of the image processing apparatus 10 according to the first embodiment.
[0091] The first acquisition unit 101 according to this embodiment acquires a depth distribution D on the surface of the object in addition to the reflection intensity distribution L, the mask M, and the image I. The depth distribution D can be obtained from three-dimensional coordinates measured by a LiDAR sensor, for example.
[0092] The first estimating unit 102 according to this embodiment estimates the corrected reflection intensity distribution Lc based on the reflection intensity distribution L, the mask M, the image I, and the depth distribution D acquired by the first acquiring unit 101 .
[0093] FIG. 12 is a diagram illustrating the effect obtained by adding the depth distribution D according to the fourth embodiment.
[0094] For example, as shown in Figure 12, introducing depth distribution D is effective when materials of different materials but the same color are lined up one behind the other. When only image I is considered, the colors are the same, so it is not possible to determine which material's reflection intensity distribution should be used for the boundary portion (edge), resulting in a blurred output for the boundary portion. Therefore, by introducing depth distribution D, information about the boundary portion can be obtained from the depth, making the boundary portion clearer and allowing for accurate correction of missing portions of reflection intensity distribution L.
[0095] FIG. 13 is a diagram showing an example of input and output of the reflection intensity correction model 141 according to the fourth embodiment.
[0096] 13 , the reflection intensity correction model 141 is a trained model that has been machine-learned in advance to receive the reflection intensity distribution L, mask M, image I, and depth distribution D as input, and output the corrected reflection intensity distribution Lc, corrected image Ic, and corrected depth distribution Dc. The input reflection intensity distribution L, mask M, image I, and depth distribution D are represented, for example, as a noise map that is noise of the same size as the image I. The corrected depth distribution Dc is a depth distribution in which missing portions of the depth distribution D have been corrected. In this case, the first estimation unit 102 uses the reflection intensity correction model 141 to estimate the corrected reflection intensity distribution Lc, corrected image Ic, and corrected depth distribution Dc.
[0097] FIG. 14 is a diagram illustrating unsupervised learning of a reflection intensity correction model 141 according to the fourth embodiment.
[0098] 14 , the first learning unit 103 according to the present embodiment performs unsupervised learning to minimize a loss function loss that includes the difference between the result of masking the measured reflection intensity distribution L with a mask M and the result of masking the estimated corrected reflection intensity distribution Lc with the mask M, the difference between the RGB components or luminance components of the captured image I and the RGB components or luminance components of the estimated corrected image Ic, and the difference between the measured depth distribution D and the estimated corrected depth distribution Dc, thereby generating a reflection intensity correction model 141. As such a reflection intensity correction model 141, for example, a VAE-based unsupervised learning model is applied.
[0099] Furthermore, the first learning unit 103 according to this embodiment may explicitly add a depth distribution D to the loss function loss and minimize the loss function loss to further improve the effect of the depth distribution D. In order to make the corrected reflection intensity distribution Lc flat in areas where the depth distribution D is flat, the first learning unit 103 defines and adds a loss function loss expressed by the following equation (6) using the corrected reflection intensity distribution Lc and the depth distribution D.
[0100] (6) Furthermore, when there is an edge in the depth distribution D, the corrected reflection intensity distribution Lc is often also an edge. Therefore, the corrected reflection intensity distribution Lc and the depth distribution D may be used to define a loss function loss expressed by the following equation (7) or (8).
[0101] (7)
[0102] (8)
[0103] As described above, according to this embodiment, a corrected reflection intensity distribution in which missing portions of the reflection intensity distribution are corrected is estimated using a reflection intensity correction model generated by unsupervised learning using the reflection intensity distribution, a mask, an image, and a depth distribution. This allows the missing reflection intensity to be corrected with high accuracy.
[0104] Furthermore, since the flatness of the depth distribution is taken into consideration, the effect of the image can be further improved.
[0105] Fifth Embodiment In a fifth embodiment, an embodiment in which an anisotropic diffusion tensor is added to the loss function will be described.
[0106] The hardware configuration and functional configuration of an image processing device 10D according to the fifth embodiment are similar to the hardware configuration (FIG. 1) and functional configuration (FIG. 2) of the image processing device 10 according to the first embodiment.
[0107] The loss function loss according to this embodiment is the anisotropic diffusion tensor T expressed using anisotropic weights β and γ of the gradient G of the image I. 1/2 (See, for example, Reference 1).
[0108] <Reference 1> Ferstl, D., Reinbacher, C., Ranftl, R., Ruther, M., & Bischof, H. (2013). Image guided depth upsampling using anisotropic total generalized variation. In Proceedings of the IEEE international conference on computer vision (pp. 993-1000).
[0109] For the loss function loss, we calculate the anisotropic weights β and γ of the gradient G of the image I containing the RGB components. 1/2 By introducing the anisotropic diffusion tensor T, it is possible to reflect the edge information of the image I and correct the missing parts of the reflection intensity distribution L with higher accuracy. 1/2 is expressed by the following equation (9) using the image I and weights β and γ.
[0110] (9)
[0111] Note that n indicates the normal vector, and n T denotes the transpose of the normal vector n. ⊥ denotes the orthogonal complement of normal vector n, and n ⊥T is the orthogonal complement of n ⊥ The anisotropic diffusion tensor T 1/2 By adding a loss function loss shown in the following equation (10) using the above, a corrected reflection intensity distribution Lc that reflects the edge information of image I can be obtained. By changing the weights β and γ, the smoothing effect changes and noise is further reduced.
[0112] (10)
[0113] As described above, according to this embodiment, by introducing the anisotropic diffusion tensor, it is possible to reflect edge information of the image and correct missing parts of the reflection intensity distribution with even higher accuracy.
[0114] The image processing performed by the CPU after reading the program in the above embodiment may be performed by various processors other than the CPU. Examples of such processors include a PLD (Programmable Logic Device) such as an FPGA (Field-Programmable Gate Array), whose circuit configuration can be changed after manufacture, and a dedicated electrical circuit, such as an ASIC (Application Specific Integrated Circuit), which is a processor having a circuit configuration specifically designed to perform specific processing. Furthermore, the image processing may be performed by one of these various processors, or by a combination of two or more processors of the same or different types (e.g., multiple FPGAs, or a combination of a CPU and an FPGA). Furthermore, the hardware structure of these various processors is, more specifically, an electrical circuit that combines circuit elements such as semiconductor elements.
[0115] In the above embodiment, the image processing program is described as being pre-stored (also referred to as "installed") in a ROM or storage, but this is not limiting. The image processing program may be provided in a form stored on a non-transitory storage medium such as a CD-ROM (Compact Disk Read Only Memory), a DVD-ROM (Digital Versatile Disk Read Only Memory), or a USB (Universal Serial Bus) memory. The image processing program may also be downloaded from an external device via a network.
[0116] All publications, patent applications, and technical standards mentioned in this specification are herein incorporated by reference to the same extent as if each individual publication, patent application, or technical standard was specifically and individually indicated to be incorporated by reference.
[0117] The following additional notes are provided regarding the above-described embodiments.
[0118] (Supplementary Item 1) An image processing device including: a memory; and at least one processor connected to the memory, wherein the processor is configured to acquire a reflection intensity distribution obtained by measuring reflected light from a surface of an object, a mask for the reflection intensity distribution, and an image including RGB components or luminance components corresponding to the reflection intensity distribution, and to estimate a corrected reflection intensity distribution, which is a reflection intensity distribution in which missing portions of the reflection intensity distribution are corrected, based on the reflection intensity distribution, the mask, and the image.
[0119] (Supplementary Item 2) A non-transitory storage medium storing a program executable by a computer to perform image processing, wherein the image processing acquires a reflection intensity distribution obtained by measuring reflected light from a surface of an object, a mask for the reflection intensity distribution, and an image including RGB components or luminance components corresponding to the reflection intensity distribution, and estimates a corrected reflection intensity distribution, which is a reflection intensity distribution in which missing portions of the reflection intensity distribution are corrected, based on the reflection intensity distribution, the mask, and the image.
[0120] 10, 10A to 10D Image processing device 11 CPU 12 ROM 13 RAM 14 Storage 15 Input unit 16 Display unit 17 Communication I / F 18 Bus 101 First acquisition unit 102 First estimation unit 103 First learning unit 104 Second acquisition unit 105 Second estimation unit 106 Second learning unit 141 Reflection intensity correction model 142 Eigenimage decomposition model
Claims
1. An image processing device comprising: a first acquisition unit that acquires a reflection intensity distribution obtained by measuring reflected light from a surface of an object, a mask for the reflection intensity distribution, and an image including RGB components or luminance components corresponding to the reflection intensity distribution; and a first estimation unit that estimates a corrected reflection intensity distribution, which is a reflection intensity distribution in which missing portions of the reflection intensity distribution are corrected, based on the reflection intensity distribution, the mask, and the image.
2. The image processing device described in claim 1, wherein the first estimation unit estimates the corrected reflection intensity distribution using a reflection intensity correction model that has been machine-trained in advance to input the reflection intensity distribution, the mask, and the image, and output the corrected reflection intensity distribution.
3. The image processing device according to claim 2, further comprising a learning unit that generates the reflection intensity correction model by performing unsupervised learning so as to minimize a loss function including a difference between a result of masking a measured reflection intensity distribution and a result of masking a corrected reflection intensity distribution obtained by estimation, and a difference between an RGB component or a luminance component of an image obtained by photographing and an RGB component or a luminance component of a corrected image obtained by estimation.
4. The image processing device according to claim 1, further comprising: a second acquisition unit that acquires a captured image obtained by photographing the object and the corrected reflection intensity distribution; and a second estimation unit that estimates at least one of a reflectance component in the captured image that is independent of the illumination light and a shading component in the captured image that is dependent on the illumination light, based on the captured image and the corrected reflection intensity distribution.
5. The image processing device described in claim 1, wherein the first acquisition unit acquires a depth distribution on the surface of the object, and the first estimation unit estimates the corrected reflection intensity distribution based on the reflection intensity distribution, the mask, the image, and the depth distribution.
6. The image processing device according to claim 3, wherein the loss function further includes an anisotropic diffusion tensor represented using anisotropic weighting of the gradient of the image.
7. An image processing method in which an image processing device acquires a reflection intensity distribution obtained by measuring reflected light from a surface of an object, a mask for the reflection intensity distribution, and an image including RGB components or luminance components corresponding to the reflection intensity distribution, and estimates a corrected reflection intensity distribution, which is a reflection intensity distribution in which missing portions of the reflection intensity distribution have been corrected, based on the reflection intensity distribution, the mask, and the image.
8. An image processing program for causing a computer to execute a process of acquiring a reflection intensity distribution obtained by measuring reflected light from the surface of an object, a mask for said reflection intensity distribution, and an image including RGB components or luminance components corresponding to said reflection intensity distribution, and estimating a corrected reflection intensity distribution, which is a reflection intensity distribution in which missing portions of said reflection intensity distribution are corrected, based on said reflection intensity distribution, said mask, and said image.
Citation Information
Patent Citations
A dataset generation method for self-supervised learning of scene point cloud completion based on panoramic images
CN113808261B
Deep learning method of augmented reality somatosensory game machine
CN114461058A
Depth image completion method and device, equipment and storage medium
CN115205361A
Image creation device and computer program
JP2016197381A
Signal restoration apparatus, signal restoration method, signal restoration program, model learning method, and model learning program
JP2019159914A
