Speckle noise level estimation method, system and structured light projection system
By converting multiplicative speckle noise into an additive noise model and analyzing the eigenvalues of image blocks, the problem of high computational resource consumption and inaccurate estimation in the existing technology is solved, and efficient and accurate estimation and removal of speckle noise is achieved. , retaining image detail information.
Patent Information
- Application Number
- CN202410674750.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-05-29
AI Technical Summary
Existing technologies suffer from the problems of high computational resource consumption, inaccurate estimation, and over-smoothing of images when estimating and removing speckle noise, especially in the case of texture-rich images and low noise levels.
By converting the multiplicative speckle noise into an additive noise model, performing homomorphic transformation, and analyzing the eigenvalues of the image blocks, the statistical properties of the eigenvalues are used to separate the signal and noise subspaces and estimate the speckle noise level.
It reduces the consumption of computing resources, improves the accuracy of estimation and processing efficiency, avoids excessive smoothing, retains important details and edge information of the image, and is suitable for complex texture images.
Smart Images

Figure CN118279176B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and in particular to a speckle noise level estimation method and system and a structured light projection system. Background Art
[0002] The structured light projection system based on micro-electromechanical system (MEMS) micro-mirrors has many advantages, including no need for focusing, small size, and high brightness. Therefore, it has attracted much attention in the field of 3D reconstruction and provides a new direction for building highly integrated small 3D measurement systems. However, one of the main bottlenecks in the development of this technology is the problem of speckle noise pollution. Speckle noise is a kind of interference caused by the coherence of coherent sources. It will produce random bright and dark spots during the imaging process, which seriously affects the imaging quality. Unlike the common Gaussian additive noise, speckle noise is a multiplicative noise that multiplies the image content instead of simply superimposing it. Therefore, it becomes more difficult to recover useful information from images contaminated by speckle noise, and it is also difficult to obtain high-quality images in the process of removing speckles.
[0003] In response to the speckle noise problem, one research direction is to use filtering algorithms to remove speckle noise. This method is mainly performed in the processing stage after image acquisition. According to the known noise level, the filtering algorithm can be divided into non-blind denoising and blind denoising. In practical applications, due to the unknown noise level, blind denoising methods are more commonly used. Blind denoising methods estimate the degree of noise pollution from noisy images, and can adaptively adjust denoising parameters to make the algorithm suitable for different image contents and noise levels, thereby achieving effective denoising. However, the key to blind denoising is to accurately estimate the noise level. At present, there are some methods for estimating the speckle noise level, such as wavelet transform, CNN noise separation model and deep residual learning. However, the wavelet transform method usually only uses the high-frequency components in the highest layer to estimate the noise, which is easy to overestimate the noise level for images with rich textures, resulting in large errors; while the CNN noise separation model and deep residual learning method require a large number of training samples and have certain requirements on computing resources.
[0004] In addition, the estimation of speckle noise level based on singular value decomposition (SVD) is a method that uses the correlation between the tail of the singular value and the noise. The significant feature of singular value decomposition is that it statistically represents image details in subspaces of decreasing importance, while the influence of noise remains unchanged in all subspaces. This method estimates the noise level of the original image by performing singular value decomposition on the entire noisy image and obtaining a linear relationship between the noise level and the minimum singular value tail mean by artificially adding noise.
[0005] However, there are some disadvantages in estimating speckle noise based on SVD decomposition. First, the entire structured light image needs to be decomposed twice by SVD. In practical applications, when the image matrix is large, it will consume a lot of computing resources and time, making it difficult to achieve real-time performance. Second, for images with low noise levels, the noise is usually only related to the smaller singular values of the image matrix. Using an empirical relationship with a fixed singular value tail length to estimate the noise level will affect the accuracy of the estimation, resulting in over-smoothing of the structured light image when removing speckle, and losing important details and edge information in the image.
[0006] Therefore, there is a need to improve the estimation method of speckle noise level in image processing. Summary of the invention
[0007] The object of the present invention is to provide a speckle noise level estimation method, system and structured light projection system which can effectively reduce computing resources and accurately estimate the speckle noise level in various image samples.
[0008] In order to achieve the above object, the present invention provides a speckle noise level estimation method for image processing, which comprises:
[0009] Acquire a first digital image of an image to be processed, wherein the first digital image describes the image to be processed based on a multiplicative speckle noise model;
[0010] Performing homomorphic transformation on the matrix formed by the first digital image to obtain a second digital image, wherein the second digital image describes the image to be processed based on an additive speckle noise model;
[0011] dividing the second digital image into a plurality of image blocks;
[0012] Calculating a set of characteristic values of a data set composed of all the image blocks based on a preset statistical algorithm, wherein the characteristic values in the set of characteristic values represent the direction and intensity of change of data between the sub-image modules;
[0013] According to the size of each eigenvalue in the eigenvalue set, the eigenvalue set is divided into two groups, namely a first set and a second set, wherein any eigenvalue in the first set is greater than any eigenvalue in the second set, and the eigenvalues in the second set are statistically symmetrically distributed;
[0014] The speckle noise level of the image to be processed is estimated according to the average of several characteristic values in the second set.
[0015] Preferably, the pixel sizes of each of the image blocks are equal.
[0016] Preferably, the method for calculating the eigenvalue set includes:
[0017] The covariance matrix of the data set composed of all the image blocks is calculated based on the following formula: ,
[0018] ,
[0019] ,
[0020] Wherein, n is the number of the image blocks, represents a one-dimensional vector composed of all pixel values in the i-th image block;
[0021] right Perform eigenvalue decomposition to obtain the set of eigenvalues.
[0022] Preferably, the method for generating the second set includes:
[0023] Sorting all the calculated eigenvalues according to the sizes of the eigenvalues to generate the eigenvalue set;
[0024] According to the preset grouping parameters, a number of the feature values are taken from the feature value set to generate a set to be confirmed;
[0025] Determine whether the multiple characteristic values in the current set to be confirmed are statistically symmetrically distributed. If so, define the set to be confirmed as the second set. If not, modify the grouping parameters to reduce the number of characteristic values in the set to be confirmed, and make the judgment again.
[0026] Preferably, when the mean and the median of the eigenvalues in the second set are the same, it is determined that the eigenvalues in the second set are statistically consistent with a symmetric distribution.
[0027] Preferably, the speckle noise level of the image to be processed is estimated according to the following formula: ,
[0028] ,
[0029] in, is the mean of the eigenvalues in the second set.
[0030] The present invention also provides a structured light projection system, which includes a projection light source and an image processor, wherein the image processor calculates the speckle noise level of the acquired structured light image based on the speckle noise level estimation method as described above.
[0031] The present invention also provides a speckle noise level estimation system, which comprises:
[0032] one or more processors;
[0033] Memory;
[0034] and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the programs comprising instructions for executing the speckle noise level estimation method as described above.
[0035] The present invention also provides a computer-readable storage medium, which includes a computer program. The computer program can be executed by a processor to implement the speckle noise level estimation method as described above.
[0036] Compared with the prior art, the estimation method provided by the above technical solution of the present invention converts the multiplicative speckle noise into a homomorphic transformation of an additive noise model, analyzes the eigenvalues of the image block, and obtains the eigenvalues corresponding to the noise subspace based on a statistical method, thereby estimating the speckle noise level based on the eigenvalues. It can be seen that the image block analysis method enables the processor to perform parallel operations, reduce the consumption of computing resources, and improve efficiency, and excludes outliers based on the processing of eigenvalues, so that high or low levels of speckle noise can be accurately estimated, and is suitable for complex texture images. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 Flow chart of the estimation method in an embodiment of the present invention.
[0038] Figure 2 The figure is a flow chart of grouping feature values in an embodiment of the present invention. DETAILED DESCRIPTION
[0039] In order to explain the technical content, structural features, achieved objectives and effects of the present invention in detail, the following is a detailed description in conjunction with the implementation methods and the accompanying drawings.
[0040] This embodiment discloses a speckle noise level estimation method for image processing. For example, the estimated noise level is combined with a speckle removal method such as NLM (Non-Local Means, non-local mean denoising algorithm) and BM3D (Block-Matching and 3D Filtering, an image denoising algorithm combining block matching and three-dimensional filtering) to perform adaptive blind denoising on a MEMS (micro-electromechanical system) structured light projection image.
[0041] like Figure 1 , the estimation method in this embodiment includes the following steps:
[0042] S1: Acquire a first digital image of an image to be processed, wherein the first digital image describes the image to be processed based on a multiplicative speckle noise model.
[0043] S2: performing homomorphic transformation on the matrix formed by the first digital image to obtain a second digital image, wherein the second digital image describes the image to be processed based on an additive speckle noise model.
[0044] S3: Divide the second digital image into a plurality of image blocks.
[0045] S4: Calculating a set of characteristic values of a data set composed of all the image blocks based on a preset statistical algorithm, wherein the characteristic values in the set of characteristic values represent a direction and intensity of change of data between the sub-image modules.
[0046] S5: According to the size of each eigenvalue in the eigenvalue set, the eigenvalue set is divided into two groups, namely a first set and a second set, wherein any eigenvalue in the first set is greater than any eigenvalue in the second set, and the eigenvalues in the second set are statistically symmetrically distributed. Since larger eigenvalues correspond to the main signal part of the image, and smaller eigenvalues are more likely to be related to noise. Therefore, the first set corresponds to the signal subspace of the image to be processed, and the second set corresponds to the noise subspace of the image to be processed.
[0047] Since the eigenvalues in the signal subspace reflect the important change direction of the image content, and the eigenvalues in the noise subspace reflect the noise part of the image, by analyzing the distribution of the eigenvalues, it is possible to distinguish between the image content and the noise, thereby achieving effective noise evaluation and processing.
[0048] S6: Estimate the speckle noise level of the image to be processed according to the mean value of the plurality of characteristic values in the second set.
[0049] In this embodiment, the first digital image is multiplicative speckle noise model data, so the first digital image containing noise pollution The mathematical model is as follows:
[0050] ,
[0051] in is the original image, is speckle noise. In image processing, the image to be processed can be represented as a matrix. By performing a logarithmic transformation on the noisy image matrix, the noise term is converted into additive noise, and we can get:
[0052] ,
[0053] make , , , then the mathematical model of the second digital image is as follows:
[0054] .
[0055] Thus, the multiplicative speckle noise in the image to be processed is transformed into additive speckle noise to facilitate subsequent calculation and processing.
[0056] In this embodiment, firstly, the multiplicative speckle noise model is converted into an additive noise model by performing homomorphic transformation on the first digital image, which helps to simplify the analysis and processing of noise characteristics.
[0057] The second digital image is divided into a plurality of image blocks, and the eigenvalue set of the data set composed of all the image blocks is calculated based on a preset statistical algorithm. Such a method can better capture the local noise characteristics of the image, improve the accuracy of noise estimation, and also help parallel processing of the computing processor, greatly improving processing efficiency. Each image block is processed as a data vector, and the whole constitutes a large data matrix, which lays the foundation for the subsequent eigenvalue calculation.
[0058] The symmetrical distribution characteristics of the eigenvalues are used to distinguish the noise-related eigenvalues, so as to estimate the speckle noise level more accurately.
[0059] Secondly, compared with the method that requires two SVD decompositions, the estimation method disclosed in this embodiment reduces the amount of calculation for complex decomposition of large image matrices through homomorphic transformation and eigenvalue calculation, thereby improving calculation efficiency.
[0060] Processing image blocks instead of the entire image can reduce the consumption of computing resources and help achieve real-time processing.
[0061] Furthermore, the above evaluation method can estimate images with low noise levels more accurately, so in the process of removing speckle noise, over-smoothing of the image can be avoided, thereby better preserving important details and edge information of the image.
[0062] In addition, the above method uses the statistical characteristics of the eigenvalue set to estimate noise, which can reduce the problem of noise overestimation caused by rich image texture and enhance the robustness of the method.
[0063] In general, the speckle noise level estimation method has significant advantages in improving the accuracy of noise estimation, reducing computational complexity, maintaining image quality, and enhancing the applicability and robustness of the method. It helps to promote the application of MEMS-based structured light projection systems in the field of 3D reconstruction and provides important support for the development of miniaturized and highly integrated 3D measurement systems.
[0064] On the other hand, when the second data image is segmented, the pixel sizes of each image block are equal. For example, the size of each image block is d×d, and when the image size is M×N, n=(M-d+1)×(N-d+1) image blocks can be decomposed, and each image block has a total of c=d 2 elements.
[0065] On the other hand, the method for calculating the eigenvalue set includes:
[0066] The covariance matrix of the data set composed of all the image blocks is calculated based on the following formula: ,
[0067] ,
[0068] ,
[0069] Wherein, n is the number of the image blocks, represents a one-dimensional vector composed of all pixel values in the i-th image block;
[0070] right Perform eigenvalue decomposition to obtain the set of eigenvalues , is the i-th eigenvalue.
[0071] In this embodiment, the covariance matrix statistically describes the variation relationship of pixel values between image blocks, and reflects the variability and correlation within the image blocks and between the image blocks.
[0072] Based on this, Figure 2 , the method for generating the second set comprises the following steps:
[0073] S50: Sort all the calculated eigenvalues according to the size of the eigenvalues to generate the eigenvalue set. , sorted from large to small: λ1≥ λ2≥ … ≥ λ c .
[0074] S51: According to the preset grouping parameters, a number of the feature values are taken from the feature value set to generate a set to be confirmed. Divided into two groups, each of which is a larger set of eigenvalues and a smaller set of eigenvalues , that is, the set to be confirmed is , set the initial value of the grouping parameter m to 1.
[0075] S52: Determine whether the plurality of characteristic values in the current set to be confirmed are statistically consistent with a symmetrical distribution. If yes, proceed to S53; if no, proceed to S54.
[0076] S53: Define the to-be-confirmed set as the second set.
[0077] S54: modify the grouping parameters to reduce the number of the characteristic values in the to-be-confirmed set, for example, set m=m+1, and then return to step S51.
[0078] Specifically, when the mean and the median of the eigenvalues in the second set are the same, it is determined that the eigenvalues in the second set statistically conform to a symmetric distribution.
[0079] On the other hand, the speckle noise level of the image to be processed is estimated according to the following formula: ,
[0080] ,
[0081] in, is the mean of the eigenvalues in the second set.
[0082] In another preferred embodiment of the present invention, a structured light projection system is further disclosed, which includes a projection light source and an image processor, wherein the image processor calculates the speckle noise level of the acquired structured light image based on the speckle noise level estimation method as described above.
[0083] The present invention also discloses a speckle noise level estimation system, which includes one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the programs include instructions for executing the speckle noise level estimation method as described above. The processor may be a general-purpose central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), or one or more integrated circuits, which are used to execute relevant programs to implement the functions required to be executed by the modules in the speckle noise level estimation system of the embodiment of the present application, or to execute the speckle noise level estimation method of the method embodiment of the present application.
[0084] The present invention also discloses a computer-readable storage medium, which includes a computer program, and the computer program can be executed by a processor to complete the speckle noise level estimation method as described above. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available media. The available medium can be a read-only memory (ROM), or a random access memory (RAM), or a magnetic medium, such as a floppy disk, a hard disk, a tape, a magnetic disk, or an optical medium, such as a digital versatile disc (DVD), or a semiconductor medium, such as a solid state disk (SSD).
[0085] The embodiment of the present application also discloses a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device performs the above-mentioned speckle noise level estimation method.
[0086] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of rights of the present invention. Therefore, equivalent changes made according to the scope of the patent application of the present invention are still within the scope covered by the present invention.
Claims
1. A method for estimating speckle noise level for image processing, characterized in that: include: Acquire a first digital image of an image to be processed, wherein the first digital image describes the image to be processed based on a multiplicative speckle noise model; Performing homomorphic transformation on the matrix formed by the first digital image to obtain a second digital image, wherein the second digital image describes the image to be processed based on an additive speckle noise model; dividing the second digital image into a plurality of image blocks; Calculating a set of eigenvalues of a data set composed of all the image blocks based on a preset statistical algorithm, wherein the eigenvalues in the set of eigenvalues represent a direction and intensity of change of data between the image blocks; According to the size of each eigenvalue in the eigenvalue set, the eigenvalue set is divided into two groups, namely a first set and a second set, wherein any eigenvalue in the first set is greater than any eigenvalue in the second set, and the eigenvalues in the second set are statistically symmetrically distributed; estimating the speckle noise level of the image to be processed according to the mean of a plurality of the characteristic values in the second set; The calculation method of the eigenvalue set includes: The covariance matrix of the data set composed of all the image blocks is calculated based on the following formula: , Wherein, n is the number of the image blocks, represents a one-dimensional vector composed of all pixel values in the i-th image block; right Perform eigenvalue decomposition to obtain the set of eigenvalues; The method for generating the second set includes: Sorting all the calculated eigenvalues according to the sizes of the eigenvalues to generate the eigenvalue set; According to the preset grouping parameters, a number of the feature values are taken from the feature value set to generate a set to be confirmed; Determine whether the multiple characteristic values in the current set to be confirmed are statistically symmetrically distributed. If so, define the set to be confirmed as the second set. If not, modify the grouping parameters to reduce the number of characteristic values in the set to be confirmed, and make the judgment again.
2. The speckle noise level estimation method according to claim 1, characterized in that: The pixel sizes of each of the image blocks are equal.
3. The speckle noise level estimation method according to claim 1, characterized in that: When the mean and the median of the eigenvalues in the second set are the same, it is determined that the eigenvalues in the second set statistically conform to the symmetric distribution.
4. The speckle noise level estimation method according to claim 1, characterized in that: The speckle noise level of the image to be processed is estimated according to the following formula: , in, is the mean of the eigenvalues in the second set.
5. A structured light projection system, characterized in that: The invention comprises a projection light source and an image processor, wherein the image processor calculates the speckle noise level of the acquired structured light image based on the speckle noise level estimation method according to any one of claims 1 to 4.
6. A speckle noise level estimation system, characterized in that: include: one or more processors; Memory; and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the programs comprising instructions for executing the speckle noise level estimation method according to any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: The method comprises a computer program, wherein the computer program can be executed by a processor to implement the speckle noise level estimation method according to any one of claims 1 to 4.
