DATA PROCESSING METHOD FOR RAPIDLY SUPPRESSING HIGH-FREQUENCY BACKGROUND NOISE IN A DIGITIZED IMAGE
20230153953 · 2023-05-18
Inventors
Cpc classification
International classification
G06T3/40
PHYSICS
Abstract
A data processing method for rapidly suppressing background high frequency noise in a digitized image. The data processing method includes configuring a graphical processing unit to perform a first amplification process, a pixel binning process or a first interpolation process, a first low-pass filtering process, a second interpolation process, a first subtraction process, a second low-pass filtering process, a second amplification process, and a second subtraction process on an input image, so as to subtract a subtraction mask from the input image and generate a noise-suppressed output image.
Claims
1. A data processing method for rapidly suppressing background high-frequency noise in a digitized image, the data processing method comprising configuring a graphical processing unit or a central processing unit to execute following steps: obtaining an input image, wherein the input image has a first width and a first height, and includes a plurality of pixels or data points; performing a first amplification process on the input image to multiply the input image by a first amplification factor, and generate a first amplified image; performing a pixel binning process or a first interpolation process on the first amplified image to resize the first amplified image by a reduction factor to generate a first resized image that has a second width lower than the first width by the reduction factor and a second height lower than the first height by the reduction factor; performing a first low-pass filtering process on the first resized image to obtain a first blurred image; performing a second interpolation process on the first blurred image to upscale the first blurred image from the second width and the second height to obtain a second resized image having the first width and first height; performing a first subtraction process on the second resized image and the first amplified image to subtract the first amplified image from the second resized image, so as to generate a first subtracted image; performing a second low-pass filtering process on the first subtracted image to obtain a second blurred image; performing a second amplification process on the second blurred image to multiply the second blurred image by a second amplification factor, and generate a subtraction mask having the first width and first height; and performing a second subtraction process on the input image and the subtraction mask to subtract the subtraction mask from the input image to generate an output image.
2. The data processing method according to claim 1, wherein the first amplification process is represented by a following equation:
g(r, c)=α×f(r, c); wherein f(r, c) is the input image, g(r, c) is the first amplified image, r represents one of positions of the pixels or the data points on a vertical axis, c represents one of positions of the pixels or the data points on a horizontal axis, and α is the first amplification factor.
3. The data processing method according to claim 2, wherein 1.0<α≤5.0.
4. The data processing method according to claim 1 or 2, wherein the pixel binning process or the first interpolation process is expressed by a following operation:
5. The data processing method according to claim 1 or 2, wherein the reduction factor is 3.
6. The data processing method according to claim 1 or 4, wherein the first low-pass filtering process involves a first Gaussian blur operation performing a convolution expressed by a following equation:
L(r′, c′)=G.sub.g1×g2 .Math.g.sup.D(r′, c′); wherein L(r′, c′) represents the first blurred image, G.sub.g1×g2 represents a Gaussian kernel, g1×g2 represents a first kernel size, and .Math. represents a convolution operation.
7. The data processing method according to claim 6, wherein the first kernel size is 29×29.
8. The data processing method according to claim 1 or 6, wherein the second interpolation process is represented by a following operation:
9. The data processing method according to claim 1 or 2, wherein the first subtraction process, the second low-pass filtering process, the second amplification process, and the second subtraction process are expressed by a following equation:
F(r, c)=f(r, c)−β×[G.sub.M×M .Math.(L.sup.U(r, c)−g(r, c))]; wherein, F(r, c) represents the output image, β is the second amplification factor, and the second low-pass filtering process involves a second Gaussian blur operation performing a convolution with a Gaussian kernel G.sub.M×M having a second kernel size M×M.
10. The data processing method according to claim 9, wherein 1.0<β≤10.0 and M=2k+1 following 1≤k≤3.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The described embodiments may be better understood by reference to the following description and the accompanying drawings, in which:
[0013]
[0014]
[0015]
[0016]
[0017]
[0018]
[0019]
DETAILED DESCRIPTION OF THE EXEMPLARY EMBODIMENTS
[0020] The present disclosure is more particularly described in the following examples that are intended as illustrative only since numerous modifications and variations therein will be apparent to those skilled in the art. Like numbers in the drawings indicate like components throughout the views. As used in the description herein and throughout the claims that follow, unless the context clearly dictates otherwise, the meaning of “a”, “an”, and “the” includes plural reference, and the meaning of “in” includes “in” and “on”. Titles or subtitles can be used herein for the convenience of a reader, which shall have no influence on the scope of the present disclosure.
[0021] The terms used herein generally have their ordinary meanings in the art. In the case of conflict, the present document, including any definitions given herein, will prevail. The same thing can be expressed in more than one way. Alternative language and synonyms can be used for any term(s) discussed herein, and no special significance is to be placed upon whether a term is elaborated or discussed herein. A recital of one or more synonyms does not exclude the use of other synonyms. The use of examples anywhere in this specification including examples of any terms is illustrative only, and in no way limits the scope and meaning of the present disclosure or of any exemplified term. Likewise, the present disclosure is not limited to various embodiments given herein. Numbering terms such as “first”, “second” or “third” can be used to describe various components, signals or the like, which are for distinguishing one component/signal from another one only, and are not intended to, nor should be construed to impose any substantive limitations on the components, signals or the like.
[0022] A high-frequency noisy background is a typical issue in the process of digitization of an analog signal which often degrades the signal-to-noise ratio (SNR). In the contexts of processing speed, effective bandwidth, and real-time applicability, the prior hardware- and software-based relevant techniques might not be adequate for ultra-fast-retrieving of especially a weak-intensity signal of interest contaminated by a strong noisy background. The present disclosure provides a data processing method for rapidly yet efficiently suppressing background high frequency noise in a digitized image.
[0023]
[0024] The storage device can be any storage device that can be used to store data, such as, but not limited to, random access memory (RAM), read only memory (ROM), flash memory, hard disk drive or other storage device that can be used to store data.
[0025] The computing device can be implemented by, for example, a database, a general processor, an image processor, a computer, a server, or other unique hardware devices with specific logic circuits or equipment with specific functions, such as a unique hardware that integrates programming codes and processor/chips. In more detail, the data processing method can be realized by using a computer program. The computer program can be stored in a non-transitory computer-readable recording medium, such as read-only memory, flash memory, floppy disk, hard disk, optical disk, Flash drives, magnetic tapes, network-accessible databases, or computer-readable recording media with the same functions can be easily thought of by those skilled in the art.
[0026] Reference is made to
[0027] Step S10: obtaining an input image INPUT.
[0028] The input image INPUT has a first width and a first height, and includes a plurality of pixels or a plurality of data points. In addition, it should be noted that the input image INPUT must be an image that has not been processed by any type of low-pass filter, so as to avoid the high-frequency noise intensities of the original input image INPUT from being distributed to its darker neighbors that causes an inability to generate an effective subtraction-mask in the subsequent steps.
[0029] Reference is made to
[0030] Step S11: performing a first amplification process on the input image INPUT to multiply the input image by a first amplification factor, and generating a first amplified image AMP1. This step is to boost weak-intensity information in the input image INPUT, preferably close to saturation.
[0031] The first amplification process can be represented by the following equation (1):
g(r, c)=α×f(r, c) equation (1);
[0032] where f(r, c) is the input image, g(r, c) is the first amplified image, r represents one of positions of the pixels or the data points on a vertical axis, c represents one of positions of the pixels or the data points on a horizontal axis, and α is the first amplification factor. Ideally, the first amplification factor can be chosen as inverse of minimum intensity of interest multiplied by 255.0 for an 8-bit data set. In a preferred embodiment of the present disclosure, a range of the first amplification factor α can be 1.0<α≤5.0.
[0033] Step S12: performing a pixel binning process or a first interpolation process on the first amplified image AMP1 to resize the first amplified image AMP1 by a reduction factor to generate a first resized image RESIZE1 that has a second width and a second height.
[0034] Here, the first interpolation process can be used to reduce a size of the first amplified image AMP1.
[0035] The pixel binning process or the first interpolation process can be expressed by the following operation (2):
[0036] Where R and C respectively represent the first height and the first width, R′ and C′ respectively represent the second height and the second width, and g.sup.D(r′, c′) is the first resized image, and r′ and c′ respectively represent one of the positions of a vertical axis and one of the positions of a horizontal axis of a plurality of pixels or a plurality of data points of the first resized image.
[0037] For example, the first enhanced image AMP1 can be applied with the pixel binning process or first interpolation process with the reduction factor of 3, and the obtained first resized image RESIZE1 is substantially a smooth layer of the first amplified image AMP1.
[0038] Step S13: performing a first low-pass filtering process or a first Gaussian blur process on the first resized image by performing a convolution operation on the first resized image RESIZE1 while using a Gaussian kernel with a first kernel size to obtain a first blurred image BLUR1.
[0039] The first Gaussian blur process can be expressed by the following equation (3):
L(r′, c′)=G.sub.g1×g2 .Math.g.sup.D(r′, c′) equation (3);
[0040] Where L(r′, c′) represents the first blurred image, G.sub.g1×g2 represents a Gaussian kernel, g1×g2 represents the first kernel size, and .Math. represents a convolution operation.
[0041] Gaussian blur is essentially a low-pass filter, which is widely used in the art of image processing, and is usually used to reduce image noise and reduce the level of detail.
[0042] It should be noted that, in order to obtain the smooth layer of the first amplified image AMP1, the first amplified image AMP1 is first reduced by 3 times, and a Gaussian kernel with a first kernel size of, for example, 29×29 is used to perform the first Gaussian blur process. To obtain a similar smooth layer without the pixel binning process or the first interpolation process, a larger Gaussian kernel is required, however, the larger Gaussian kernel is relatively expensive for a moderate to large-sized data set. In the embodiment of the present disclosure, a reduced smoothness of the smooth layer can be helpful to better preserve useful high-frequency information in some applications.
[0043] Step S14: performing a second interpolation process on the first blurred image BLUR1 to upscale the first blurred image BLUR1 from the second width and the second height (R′×C′) to obtain a second resized image RESIZE2 having the first width and first height (R×C).
[0044] The second interpolation process is represented by the following operation (4):
[0045] Where L.sup.U(r , c) is the second resized image RESIZE2.
[0046] Similarly, the second interpolation process can be used to enlarge a size of the first blurred image BLUR1.
[0047] Step S15: performing a first subtraction process on the second resized image RESIZE2 and the first amplified image AMP1 to subtract the first amplified image AMP1 from the second resized image RESIZE2, so as to generate a first subtracted image SUB1.
[0048] Reference can be further made to
[0049] Step S16: performing a second low-pass filtering process or a second Gaussian blur process on the first subtracted image SUB1 by performing a convolution operation on the first subtracted image SUB1 while using a Gaussian kernel with a second kernel size to obtain a second blurred image BLUR2.
[0050] For example, a Gaussian kernel with a second kernel size of M×M (M can be 3, for example) can be used to perform Gaussian blurring on the first subtracted image SUB1 to redistribute non-zero intensities, the purpose of which is to make locations corresponding to the noise (since the neighbors of which are still non-zeros) in the first subtracted image SUB1 to be changed to non-zero values.
[0051] Step S17: performing a second amplification process on the second blurred image BLUR2 to multiply the second blurred image BLUR2 by a second amplification factor, and generate a subtraction mask MASK having the first width and first height. For example, the second amplification factor can be 2.0 to strengthen the non-zero values so as to obtain strong enough pixels (data points) corresponding to noisy-background regions.
[0052] Further reference can be made to
[0053] Step S18: performing a second subtraction process on the input image INPUT and the subtraction mask MASK to subtract the subtraction mask MASK from the input image INPUT to generate an output image SUB2.
[0054] The first subtraction process, the second low-pass filtering process or the second Gaussian blur process, the second amplification process, and the second subtraction process are expressed by the following equation:
F(r, c)=f(r, c)−β×[G.sub.M×M .Math.(L.sup.U(r, c)−g(r, c))] equation (5);
[0055] where F(r, c) represents the output image, β is the second amplification factor, G.sub.M×M is a Gaussian kernel, and M×M is the second kernel size. In a preferred embodiment of the present invention, a range of the second amplification factor is 1.0<β≤10.0, and a range of the second kernel size can be defined by M, where M=2k+1 following 1≤k≤3.
[0056] It should be noted that M must be an odd number greater than 1. For higher noise contamination, a higher value of M can be helpful for suppressing high-frequency noise. Further, depending on noise contamination level, a higher value of the second amplification factor (β) can be employed.
[0057] Further reference can be made to
[0058] Further reference can be made to
[0059] In addition, to assess the processing speed, one embodiment of the present disclosure further performs the data processing method of the present disclosure on i7-9800X CPU and two CUDA-enabled GPUs which are Quadro P1000 and Quadro RTX 8000 with CUDA core numbers of 640 and 4608, respectively.
[0060]
[0061] Furthermore, it can be seen from
Beneficial Effects of the Embodiments
[0062] In conclusion, the data processing method for rapidly suppressing background high-frequency noise in the digitized image provided by the present disclosure has the following advantages:
[0063] 1. It can be used for ultra-high-speed noise suppression up to sub-half-millisecond level without any additional hardware.
[0064] 2. Different from the traditional blur-based denoising algorithms, there is least effect on a resolution of an original image.
[0065] 3. In a case where a noise intensity is comparable to or stronger than a target signal intensity, the information of the target signal can be restored with ultra-high-speed processing.
[0066] The foregoing description of the exemplary embodiments of the disclosure has been presented only for the purposes of illustration and description and is not intended to be exhaustive or to limit the disclosure to the precise forms disclosed. Many modifications and variations are possible in light of the above teaching.
[0067] The embodiments were chosen and described in order to explain the principles of the disclosure and their practical application so as to enable others skilled in the art to utilize the disclosure and various embodiments and with various modifications as are suited to the particular use contemplated. Alternative embodiments will become apparent to those skilled in the art to which the present disclosure pertains without departing from its spirit and scope.