The disclosed embodiments relate generally to digital image signal processing and more particularly, but not exclusively, to image denoising.
With the development of faster and higher resolution image sensors, the modern camera becomes ever more versatile and powerful. For example, the charge-coupled device (CCD) and complementary metal-oxide-semiconductor (CMOS) image sensors, which are pixel based, are used extensively in the modern digital image system.
This is the general area that embodiments of the invention are intended to address.
Described herein are systems and methods that can support an image processing device. The image processing device operates to obtain a first set of characterization values, which represents a first group of pixels that are associated with a denoising pixel in an image. Also, the image processing device can obtain a second set of characterization values, which represents a second group of pixels that are associated with a denoising reference pixel. Furthermore, the image processing device operates to use the first set of characterization values and the second set of characterization values to determine a similarity between the denoising pixel and the denoising reference pixel. Then, the image processing device can calculate a denoised value for the denoising pixel based on the determined similarity between the denoising pixel and the denoising reference pixel. Other objects and features of the present invention will become apparent by a review of the specification, claims, and appended figures.
The novel features of the invention are set forth with particularity in the appended claims. A better understanding of the features and advantages of the present invention will be obtained by reference to the following detailed description that sets forth illustrative embodiments, in which the principles of the invention are utilized, and the accompanying drawings briefly described herein.
The invention is illustrated, by way of example and not by way of limitation, in the figures of the accompanying drawings in which like references indicate similar elements. It should be noted that references to “an” or “one” or “some” embodiment(s) in this disclosure are not necessarily to the same embodiment, and such references mean at least one.
The description of the invention as following uses an RGB image format as example for a digital image format. It will be apparent to those skilled in the art that other types of digital image formats can be used without limitation.
The image collecting process can use image sensors for collecting various image information. For example, a color filter array (CFA), or a color filter mosaic (CFM) may be placed over the CCD and CMOS image sensors. The CFA or CFM involves a mosaic of tiny color filters, which are prone to introducing noise into the captured image.
In accordance with various embodiments of the present invention, an image process can perform various denoising operations on the captured images. The denoising operations can be either pixel-based or patch-based. The pixel-based denoising method, such as a bilateral filter method, is easy to implement, e.g. using the application-specific integrated circuit (ASIC). On the other hand, the patch-based denoising method, such as a non-local means algorithm, can be used for obtaining a digital image with better quality.
For example, the non-local means algorithm can be applied on a digital image (I) with noise (e.g., v={v (i)|i ϵI}), such as a denoising pixel (i) in the digital image (I). The value for the denoised image pixel, NL[v](i), can be determined based on the weighted contribution by all other pixels in the image (I), using the following equation.
The weight function w(i,j) for a denoising reference pixel (j) can satisfy the following weight conditions.
Furthermore, the weight function w(i,j) for a denoising reference pixel (j) can be determined based on the similarity between the denoising pixel (i) and the denoising reference pixel (j).
For example, the similarity can be defined as the distance between two vectors, v() and v(), whereas is a multi-dimensional vector that represents a neighborhood block that is associated with (such as surrounding) the denoising pixel (i) and is a multi-dimensional vector that represents a neighborhood block that is associated with the denoising reference pixel (j).
Thus, the weight function w(i,j) for the denoising reference pixel (j) can be determined using the following equation.
Whereas, Z(i) is the normalization constant, which can be defined using the following equation.
In accordance with various embodiments of the present invention, the filter window 110 includes a plurality of denoising reference pixels (e.g. the pixel 102), which can be used for denoising the pixel 101.
When the filter window (Ωi) 110 is used for denoising a pixel (i) 101 in a digital image with noise (v={v(i)|iϵI}), the value of the denoised image pixel, (NL[v](i)), for the denoising pixel (i) 101 can be determined using the following equation.
The weight function w(i,j) can be determined based on the similarity 120 between the denoising pixel (i) 101 and a denoising reference pixel (j) 102 in the filter window (Ωi) 110.
For example, the similarity 120 can be defined as the distance between two vectors, v() and v(), whereas is a multi-dimensional vector that represents a neighborhood block 111 surrounding the denoising pixel (i) 101 and is a multi-dimensional vector that represents a neighborhood block 112 surrounding the denoising reference pixel (j) 102.
In order to simplify the computation process, the weight function w(i,j) can be determined based on the rectilinear distance (i.e. the L1 distance), using the following equation.
Whereas, Z(i) is the normalization constant, which can be defined using the following equation.
In the example as shown in
In accordance with various embodiments of the present invention, the system can further reduce the computation cost for denoising a pixel 101 in an image by taking advantage of a neighborhood block dimensionality reduction feature.
As shown in
The weight function, w(i,j), which depends on the similarity between the denoising pixel (i) 101 and a denoising reference pixel (j) 102, can be defined as the distance between two characterization vectors, Pi and Pj, using the following equation.
Whereas, Z(i) is the normalization constant, which can be defined using the following equation.
In the case of an RGB image, both the characterization vectors (Pi and Pj) may include four (4) color components. It may take seven (4+3) operations for the imaging process 100 to determine the similarity between the denoising pixel (i) 101 and a denoising reference pixel (j) 102. Thus, it may take three hundred forty-three (7×7×7) operations to calculate the denoised value for the denoising pixel (i) 101 using the filter window (Ωi) 110, which is a seven-by-seven (7×7) block.
Thus, by taking advantage of the neighborhood block dimensionality reduction feature, the system can significantly reduce the computation cost for determining the similarity between the denoising pixel (i) 101 and a denoising reference pixel (j) 102, and thereby reduces the computation cost for calculating the denoised value for the denoising pixel (i) 101 using the filter window (Ωi) 110.
In accordance with various embodiments of the present invention, the denoising pixel 201 in the RGB image 200 may have different colors. In the example as shown in
As shown in
The neighborhood blocks can be in different sizes. For example, the neighborhood blocks 211 and 212 are both three-by-three (3×3) blocks, while the neighborhood blocks 221 and 222 are both five-by-five (5×5) blocks. Also, the neighborhood block 222 may include pixels that are outside of the filter window 210.
Additionally, the neighborhood blocks may be in different geometry shapes, such as a polygon, a circle, an ellipse, or other regular shapes such as a cube, or a sphere. Also, the neighborhood blocks may be in various irregular shapes.
In accordance with various embodiments of the present invention, the characterization vector 302 can include various color components that correspond to the different colors in a color model used by the image.
For example, when the image is an RGB image, the characterization vector 302 can include a component (
P=[
T
Additionally, the characterization vector can include a grayscale component (
P=[
T
In accordance with various embodiments of the present invention, different approaches can be employed for determining the various color components in the characterization vector 302.
For example, a color component in the characterization vector 302 can be determined based on the value for the color, which is associated with the center pixel 310 in the neighborhood block 301.
Furthermore, a non-selective averaging method can be used for determining a color component in the characterization vector 302.
The non-selective averaging method can be used for determining a color component in the characterization vector 302, when a set of pixels in the neighborhood block 301, having a color associated with the color component, constitute only one direction (e.g. 313 or 314) through the center pixel 310 of the neighborhood block 301.
Also, the non-selective averaging method can be used for determining a color component in the characterization vector 302, when a set of pixels in the neighborhood block 301, having a color associated with the color component, are substantially isotropic in the neighborhood block 301.
Additionally, a selective averaging method can be used for determining a color component in the characterization vector 302, when a set of pixels in the neighborhood pixel block 301, having a color associated with the color component, constitute multiple directions (e.g. 311-312) in the neighborhood block.
In accordance with various embodiments of the present invention, the imaging process 300 can support the selective averaging method based on the directional judgment. For example, the selective averaging method, which is gradient-based, can apply the averaging calculation on a subset of the pixels, having a color associated with the color component. Here, the subset of the pixels can be associated with the direction (311 or 312) with the minimum gradient in the neighborhood pixel block 301.
At step 401, the imaging process 400 can calculate the gradients for the pixels with same color along different directions in a neighborhood block. At step 402, the imaging process 400 can compare the gradients for different directions to obtain the maximum gradient (e.g. grad_max) and the minimum gradient (e.g. grad_min).
At step 403, the imaging process 400 can compare the difference between the maximum gradient and the minimum gradient (i.e., |grad_max-grad_min|) with a threshold (e.g., TH).
At step 404, if the difference between the maximum gradient and the minimum gradient is less or equal to the threshold (i.e., |grad_max-grad_min|<=TH), the imaging process 400 can use a non-selective averaging method to calculate the average value for the pixels along multiple directions.
Otherwise, (i.e., if |grad_max-grad_min|>TH), at step 405, the imaging process 400 can select the pixels along the direction with the minimum gradient. Then, at step 406, the imaging process 400 can calculate the average value for the pixels along the selected direction (i.e., the pixels along the direction with the minimum gradient).
The characterization vector 602 can include various color components, such as a component associated with the red color (
As shown in
Additionally, the blue color pixels (B1, B3, B7 and B9) in the neighborhood block 601 constitute multiple directions through the center pixel (R5) 610. As shown in
In order to determine the component associated with the blue color (
If |grad_max-grad_min|>TH, the imaging process 600 can use the selective averaging method for determining the component associated with the blue color (
Otherwise, if |grad_max-grad_min|<=TH, the imaging process 600 can use the non-selective averaging method for determining the component associated with the blue color (
Also as shown in
In order to determine the component associated with the green color (
If |grad_max-grad_min|>TH, the imaging process 600 can use the selective averaging method for determining the component associated with the blue color (
Otherwise, if |grad_max-grad_min|<=TH, the imaging process 600 can use the non-selective averaging method for determining the component associated with the green color (
Thus, the characterization vector 602 can be represented using the following equation.
P=[
T
Additionally, the characterization vector 602 may include a component associated with the grayscale (
=(
As shown in the above, the grayscale component (
Thus, the characterization vector 602 can be represented using the following equation.
P=[
T
The characterization vector 702 can include different components, such as a component associated with the red color (
As shown in
Furthermore, the blue color pixels (B2 and B8) constitute a single direction 713 in the neighborhood block 701. Thus, the component associated with the blue color (
Additionally, the red color pixels (R4 and R6) constitute a single direction 714 in the neighborhood block 701. Thus, the component associated with the red color (
Thus, the characterization vector 702 can be represented using the following equation.
P=[
T
Additionally, the characterization vector 702 may include a component associated with the grayscale (
=(
As shown in the above, the grayscale component (
As shown in
If |grad_max-grad_min|>TH, the imaging process 700 can use the selective averaging method for determining the contribution by the green color component (
Otherwise, if |grad_max-grad_min|<=TH, the imaging process 700 can use the non-selective averaging method for determining the contribution by the green color component (
Accordingly, the characterization vector 702 can be represented using the following equation.
P=[
T
For example, the pixels (Gb1, B2, Gb3, R6, and Gb9) may locate on the light color side, while the pixels (R4, Gr5, Gb7, and B8) locates on the dark color side. Thus, the gradient along the direction 811, which involves the green pixels (Gb1 and Gb9) locating on the same side of the edge line 810, should be less than the gradient along the direction 812, which involves the green pixels (Gb3 and Gb7) locating on the opposite sides of the edge line 810.
Using the selective averaging method, the green color contribution to the grayscale (
On the other hand, the component associated with the green color (
As a result, the imaging process 800 can avoid smoothing out the green color center pixel (Gr5), which ensures that the edge line 810 is preserved, during the denoising operation.
The characterization vector 902 can include various color components, such as a component associated with the red color (
As shown in
Additionally, the red color pixels (R1, R3, R7 and R9) in the neighborhood block 901 constitute multiple directions through the center pixel (B5) 910. As shown in
In order to determine the component associated with the red color (
If |grad_max-grad_min|>TH, the imaging process 900 can use the selective averaging method for determining the component associated with the red color (
Otherwise, if |grad_max-grad_min|<=TH, the imaging process 900 can use the non-selective averaging method for determining the component associated with the red color (
Also as shown in
In order to determine the component associated with the green color (
If |grad_max-grad_min|>TH, the imaging process 900 can use the selective averaging method for determining the component associated with the green color (
Otherwise, if |grad_max-grad_min|<=TH, the imaging process 900 can use the non-selective averaging method for determining the component associated with the green color (
Thus, the characterization vector 902 can be represented as in the following.
P=[
T
Additionally, the characterization vector 902 may include a component associated with the grayscale (
=(
As shown in the above, the grayscale component (
Thus, the characterization vector 602 can be represented using the following equation.
P=[
T
The characterization vector 1002 can include different components, such as a component associated with the red color (
As shown in
Furthermore, the red color pixels (R2 and R8) constitute a single direction 1013 in the neighborhood block 1001. Thus, the component associated with the red color (
Additionally, the blue color pixels (B4 and B6) constitute a single direction 1014 in the neighborhood block 1001. Thus, the component associated with the blue color (
Thus, the characterization vector 1002 can be represented using the following equation.
P=[
T
Additionally, the characterization vector 1002 may include a component associated with the grayscale (
=(
As shown in the above, the grayscale component (
As shown in
If |grad_max-grad_min|>TH, the imaging process 1000 can use the selective averaging method for determining the contribution by the green color component (
Otherwise, if |grad_max-grad_min|<=TH, the imaging process 1000 can use the non-selective averaging method for determining the contribution by the green color component (
Accordingly, the characterization vector 1002 can be represented using the following equation.
P=[
T
As a result, the imaging process 1000 can avoid smoothing out the green color center pixel (Gb5) and can preserve a edge line during the denoising operation.
Many features of the present invention can be performed in, using, or with the assistance of hardware, software, firmware, or combinations thereof. Consequently, features of the present invention may be implemented using a processing system (e.g., including one or more processors). Exemplary processors can include, without limitation, one or more general purpose microprocessors (for example, single or multi-core processors), application-specific integrated circuits, application-specific instruction-set processors, graphics processing units, physics processing units, digital signal processing units, coprocessors, network processing units, audio processing units, encryption processing units, and the like.
Features of the present invention can be implemented in, using, or with the assistance of a computer program product which is a storage medium (media) or computer readable medium (media) having instructions stored thereon/in which can be used to program a processing system to perform any of the features presented herein. The storage medium can include, but is not limited to, any type of disk including floppy disks, optical discs, DVD, CD-ROMs, microdrive, and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data.
Stored on any one of the machine readable medium (media), features of the present invention can be incorporated in software and/or firmware for controlling the hardware of a processing system, and for enabling a processing system to interact with other mechanism utilizing the results of the present invention. Such software or firmware may include, but is not limited to, application code, device drivers, operating systems and execution environments/containers.
Features of the invention may also be implemented in hardware using, for example, hardware components such as application specific integrated circuits (ASICs) and field-programmable gate array (FPGA) devices. Implementation of the hardware state machine so as to perform the functions described herein will be apparent to persons skilled in the relevant art.
Additionally, the present invention may be conveniently implemented using one or more conventional general purpose or specialized digital computer, computing device, machine, or microprocessor, including one or more processors, memory and/or computer readable storage media programmed according to the teachings of the present disclosure. Appropriate software coding can readily be prepared by skilled programmers based on the teachings of the present disclosure, as will be apparent to those skilled in the software art.
While various embodiments of the present invention have been described above, it should be understood that they have been presented by way of example, and not limitation. It will be apparent to persons skilled in the relevant art that various changes in form and detail can be made therein without departing from the spirit and scope of the invention.
The present invention has been described above with the aid of functional building blocks illustrating the performance of specified functions and relationships thereof. The boundaries of these functional building blocks have often been arbitrarily defined herein for the convenience of the description. Alternate boundaries can be defined so long as the specified functions and relationships thereof are appropriately performed. Any such alternate boundaries are thus within the scope and spirit of the invention.
The foregoing description of the present invention has been provided for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise forms disclosed. The breadth and scope of the present invention should not be limited by any of the above-described exemplary embodiments. Many modifications and variations will be apparent to the practitioner skilled in the art. The modifications and variations include any relevant combination of the disclosed features. The embodiments were chosen and described in order to best explain the principles of the invention and its practical application, thereby enabling others skilled in the art to understand the invention for various embodiments and with various modifications that are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the following claims and their equivalence.
This application is a continuation application of U.S. application Ser. No. 15/619,121, filed Jun. 9, 2017, which is a continuation application of U.S. application Ser. No. 15/349,773, filed Nov. 11, 2016, which is a continuation application of International Application No. PCT/CN2015/079093, filed on May 15, 2015, the entire contents of each are hereby incorporated by reference in their entireties.
Number | Date | Country | |
---|---|---|---|
Parent | 15619121 | Jun 2017 | US |
Child | 16015436 | US | |
Parent | 15349773 | Nov 2016 | US |
Child | 15619121 | US | |
Parent | PCT/CN2015/079093 | May 2015 | US |
Child | 15349773 | US |