Method and device for reducing noise of image
By using motion detectors and weight setting units in image processing, dynamically adjusting weights, and combining the weighted sum of the current image and previous images, the motion blur problem of noise processing in the image is solved, and efficient noise reduction and storage optimization are achieved.
Patent Information
- Application Number
- CN201811080014.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-09-17
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2038-09-17
AI Technical Summary
When reducing noise in images using existing technology, it is difficult to handle both temporal noise and spatial noise, especially in the motion domain, where there is a problem of motion blur.
A device and method are designed, including a motion detector, a weight setting unit and a noise reduction unit, to reduce temporal noise by detecting motion in images, dynamically adjusting weights, and combining the weighted summation of the current image and previous images, and Store and reconstruct weights to reduce storage requirements.
Effectively reduce the noise in the image, reduce motion blur, improve the noise reduction effect, while saving storage capacity and improving the accuracy of noise reduction.
Smart Images

Figure CN110120015B_ABST
Abstract
Description
[0001] This application claims the priority benefit of Korean Patent Application No. 10-2018-0014170 filed on February 5, 2018, in the Korean Intellectual Property Office, the disclosure of which is incorporated herein in its entirety by reference. Technical Field
[0002] Methods and apparatuses consistent with exemplary embodiments of the present inventive concept relate to reducing noise in an image. Background Art
[0003] According to the prior art techniques for reducing temporal-spatial noise, temporal noise reduction and spatial noise reduction are distinguished from each other, with a higher weight being applied to temporal noise in a domain without motion, and a higher weight being applied to spatial noise in a domain with motion. Summary of the invention
[0004] Exemplary embodiments of the present inventive concept provide an apparatus and method for reducing noise in an image, which can improve the noise reduction effect and reduce motion blur.
[0005] Various aspects of the inventive concept will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the embodiments.
[0006] According to an exemplary embodiment, a device for reducing noise of an image is provided, and the device may include: a motion detector configured to detect motion from a current image; a weight setting unit configured to set the weight of the current image based on the motion and the weight of a previous image; and a noise reduction unit configured to apply the weight of the current image to the current image to reduce the temporal noise of the current image.
[0007] The weight setting unit may be configured to set the weight of the current image to an average of the first weight of the current image and the weight of the previous image to apply to the current image when the first weight corresponding to the motion of the current image is less than the weight of the previous image.
[0008] The weight setting unit may be configured to set the weight of the current image to be unchanged to be applied to the current image when the first weight of the current image corresponding to the motion is equal to or greater than the weight of the previous image.
[0009] The weight setting unit may also be configured to set the weight of the current image to an average of the first weight of the current image and the weight of the previous image to apply to the current image when the first weight of the current image is less than the weight of the previous image.
[0010] The noise reduction unit may be configured to generate an output image which is a weighted sum of the current image and the previous image by using a weight of the current image and a weight of the previous image set based on the motion.
[0011] The weight setting unit may be configured to set the weight value of the current image higher when the amount of motion or level of motion of the current image is greater than that of the previous image than when the amount of motion or level of motion of the current image is less than that of the previous image.
[0012] The device may further include: a memory configured to store a weight of the current image for reducing the temporal noise of the next image. Here, the weight setting unit may be configured to: reduce the bits required to store the weight of the current image, store the weight of the current image in the memory, and reconstruct the bits of the weight of the current image read from the memory to use the weight of the current image.
[0013] The motion detector may be configured to detect motion from a plurality of pixels arranged at predetermined intervals in a current image, and the weight setting unit may be configured to set weights to the plurality of pixels in which motion is detected based on the motion and the weight of a previous image, and to set a weight set to one of two pixels among the plurality of pixels to pixels arranged between the two pixels.
[0014] The weight setting unit may be configured to match the one weight to a group including one of the two pixels and a pixel between the two pixels, and store the one weight in a memory.
[0015] The weight setting unit may be configured to set weights to partial pixels of pixels forming a current image where motion is detected based on the weights of the motion and the previous image, and to set a weight set to one pixel in the partial pixels to pixels in the current image that are not included in the partial pixels.
[0016] According to an example embodiment, a method for reducing noise of an image is provided, the method may include: detecting motion from a current image; setting a weight of the current image based on the motion and weights of previous images; and applying the weight of the current image to the current image to reduce temporal noise of the current image.
[0017] The step of setting the weight of the current image may include: when a first weight corresponding to the motion of the current image is less than the weight of the previous image, setting the weight of the current image to an average of the first weight of the current image and the weight of the previous image to apply to the current image.
[0018] The step of setting the weight of the current image may include setting the weight of the current image unchanged to be applied to the current image when a first weight of the current image corresponding to the motion of the current image is equal to or greater than a weight of a previous image.
[0019] The step of setting the weight of the current image may further include: when the first weight of the current image is less than the weight of the previous image, setting the weight of the current image to an average of the first weight of the current image and the weight of the previous image to apply to the current image.
[0020] The reducing of the temporal noise may include generating an output image which is a weighted sum of the current image and the previous image by using a weight of the current image set based on the motion and the weight of the previous image.
[0021] The step of setting the weight of the current image may also include: when the amount of motion or level of motion of the current image is greater than the amount of motion or level of motion of the previous image, setting the weight of the current image to be higher than when the amount of motion or level of motion of the current image is less than the amount of motion or level of motion of the previous image.
[0022] The step of detecting motion may include: detecting motion from a plurality of pixels arranged at predetermined intervals in a current image, and the step of setting weights may include: setting weights to the plurality of pixels in which motion is detected based on the motion and the weights of a previous image; and setting a weight set to one of two pixels among the plurality of pixels to pixels arranged between the two pixels.
[0023] The method may further include matching the one weight to a group including one of the two pixels and pixels between the two pixels, and storing the one weight in a memory.
[0024] The method may further include: storing the weight of the current image in a memory after reducing bits of the weight of the current image for reducing temporal noise of a next image; and reconstructing the bits of the weight of the current image read from the memory.
[0025] According to an example embodiment, a non-transitory computer-readable recording medium includes a program for executing a method of noise reduction. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] These and / or other aspects will become clear and more readily understood through the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:
[0027] Figure 1 is a schematic diagram of an apparatus for reducing temporal noise in an image according to an embodiment;
[0028] Figure 2 is a diagram showing an example of a method of detecting motion according to an embodiment;
[0029] Figure 3 is a diagram showing an example of a graph as a lookup table according to an embodiment;
[0030] Figure 4 is a diagram showing an example of detecting motion according to an embodiment;
[0031] Figure 5 is a diagram showing convergence of output values of pixels with respect to the number of images to which weights calculated according to an embodiment are applied;
[0032] Figure 6 and Figure 7 is a diagram illustrating a method of reducing temporal noise in an image according to an embodiment;
[0033] Figure 8 is a diagram of a temporal-spatial noise reduction apparatus to which the temporal noise reduction apparatus is applied according to an embodiment. DETAILED DESCRIPTION
[0034] All embodiments described herein illustrate the principles of the inventive concept by way of example, rather than limiting the inventive concept. In this regard, these embodiments may have different forms and should not be construed as being limited to the descriptions set forth herein. Therefore, the embodiments are described below with reference to the accompanying drawings only to explain the various aspects of the inventive concept. As used herein, the term "and / or" includes any and all combinations of one or more related listed items. In the specification, when it is considered that a specific detailed description of the prior art may unnecessarily obscure the essence of the present disclosure, these detailed descriptions may be omitted.
[0035] According to an exemplary embodiment, at least one of the components, elements, modules or units (collectively referred to as "components" in this paragraph) represented by the boxes in the accompanying drawings can be implemented as various numbers of hardware, software and / or firmware structures that perform the above-mentioned various functions. For example, at least one of these components can use a direct circuit structure that can perform various functions through the control of one or more microprocessors or other control devices, such as a memory, a processor, a logic circuit, a lookup table, etc. In addition, at least one of these components can be specifically implemented by a part of a module, a program or a code, which contains one or more executable instructions for performing specific logical functions and is executed by one or more microprocessors or other control devices. In addition, at least one of these components may include or may be implemented by a processor, a microprocessor, etc. such as a central processing unit (CPU) that performs various functions. Two or more of these components can be combined into a single component, and the single component performs all operations or functions of the combined two or more components. In addition, at least part of the functions of at least one of these components can be performed by another of these components. In addition, although the bus is not shown in the above block diagram, the communication between the components can be performed by the bus. The functional aspects of the above exemplary embodiments can be implemented in algorithms executed on one or more processors. Furthermore, the components represented by blocks or processing steps may employ any number of existing techniques for electronics configuration, signal processing and / or control, data processing and the like.
[0036] It will be understood that the terms "first", "second", etc. may be used herein to describe various components, but these components should not be limited by these terms. These components are only used to distinguish one component from another component. For example, according to various embodiments, a first component may represent a second component, and vice versa, without departing from the scope of the present disclosure.
[0037] The terms used herein are only used to describe specific embodiments and are not intended to limit the inventive concept. Unless the context has a clearly different meaning, the expression used in the singular includes the expression in the plural. It will also be understood that when the terms "comprise" and / or "comprising" are used in this specification, it indicates the presence of the elements, steps, operations and / or devices described, but does not exclude the presence or addition of one or more other elements, steps, operations and / or devices.
[0038] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art to which the present disclosure belongs. It will also be understood that unless clearly and specifically defined, terms defined in general dictionaries should not be interpreted as idealized or overly formal.
[0039] Figure 1 is a schematic diagram of an apparatus for reducing temporal noise in an image according to an embodiment.
[0040] Reference Figure 1 , an apparatus for reducing temporal noise of an image (hereinafter, referred to as “temporal noise reduction apparatus”) 100 may include a motion detector 101, a weight setting unit 103, a lookup table (LUT) 105, a noise reduction unit 107, and a storage device 109.
[0041] The temporal noise reduction device 100 may be implemented in a processor, which may be implemented by any number of hardware and / or software components configured to perform a particular function. For example, the processor may represent a data processing device built into hardware and include physical structural circuits for executing functions represented as codes or commands included in a program. Examples of data processing devices built into hardware include microprocessors, CPUs, processor cores, multiprocessors, application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), etc., but the scope of the inventive concept is not limited thereto.
[0042] The motion detector 101 calculates the motion level in units of pixels from the image input in units of frames, and calculates and outputs a detection value MDV indicating the motion level. Hereinafter, for convenience of description, the image currently input to be analyzed (hereinafter, referred to as a "current image") IN n The description is given as an example.
[0043] The motion detector 101 can be based on the current image IN n With the current image IN n The difference between the previous image and the previous image is used to detect the current image IN n Here, the previous image is the previous output image OUT with reduced temporal noise. n-1 .
[0044] In an embodiment, the motion detector 101 may calculate a value SAD(i) for each pixel. The value SAD(i) is the current image IN in a local window WIN having a size of N×M. n With the previous image OUT n-1 The current pixel is the middle pixel among the pixels covered by the local window WIN, and the current pixel is the pixel whose value will be calculated.
[0045] Figure 2 The current image IN used to calculate the value SAD(i) is shown n and previous image OUT n-1The motion detector 101 may calculate the value SAD(i) by using the center pixel in the local window WIN as the current pixel. The motion detector 101 may calculate the motion level based on the value SAD(i), and may calculate the motion detection value MDV indicating the motion level.
[0046] The weight setting unit 103 may set a first weight W corresponding to the motion detection value MDV of a pixel from which motion is detected by using the LUT 105. The following equation 1 represents setting the first weight W of a pixel at a position (i, j) by a function using the motion detection value MDV as a variable.
[0047] W(i,j)=f(MDV)……(1)
[0048] The first weight W may vary according to the exercise level. That is, when the exercise level increases, the first weight W may be set larger. The rate of change of the first weight W may be proportional to the rate of change of the exercise level.
[0049] The LUT 105 may be a table or a graph indicating a relationship between a motion detection value MDV according to a pixel-based motion detection result and a first weight W. The LUT 105 may be stored in a storage unit such as a memory.
[0050] Figure 3 A graph as an example of a LUT according to an embodiment is shown. Figure 3 In the curve graph of , the X-axis represents the motion detection value MDV according to the result of detecting motion based on pixels, and the Y-axis represents the first weight W.
[0051] The first weight W has a value between a lower limit and an upper limit, and the first weight W approaches the upper limit when the exercise level increases, and approaches the lower limit when the exercise level decreases.
[0052] The motion detection value MDV equal to or less than the motion minimum value MDV_A is set to have the minimum weight (lower limit), and the motion detection value MDV equal to or greater than the motion maximum value MDV_B may be set to have the maximum weight (upper limit). The motion detection value between the motion minimum value MDV_A and the motion maximum value MDV_B may be set to have a first weight W between the lower limit and the upper limit of the weight.
[0053] Figure 3 A one-dimensional graph having a motion minimum value MDV_A and a motion maximum value MDV_B as reference values is shown, but the embodiment is not limited thereto. For example, a plurality of reference values for the motion detection value may be set, and a LUT having different graphs such as one-dimensional, two-dimensional, etc. among the plurality of reference values may be generated.
[0054] In one embodiment, there may be a plurality of LUTs representing a first weight for a motion detection value according to brightness and / or sensor gain. In this case, a component for detecting brightness and / or detecting sensor gain is additionally set, and the weight setting unit 103 may set the first weight after selecting the LUT according to the result of detecting brightness and / or sensor gain.
[0055] The weight setting unit 103 can use the previous image IN n-1 The weight of the current image IN is set n The first weight W n The weight setting unit 103 can set the current image IN n The second weight W new,n , where by using the previous image IN n-1 The second weight W is set new,n-1 Adjust the current image IN n The first weight W n To get the current image IN n The second weight W new,n The weight setting unit 103 can set the current image IN n The first weight W n With the previous image IN n-1 The second weight W new,n-1 Make a comparison.
[0056]
[0057] As shown in equation (2) above, in the current image IN n The first weight W n Smaller than the previous image IN n-1 The second weight W new,n-1 When the weight setting unit 103 can n The first weight W n and the previous image IN n-1 The second weight W new,n-1 The average value is set to the current image IN n The second weight W new,n In the current image IN n The first weight W n Equal to or greater than the previous image IN n-1 The second weight W new,n-1 When the weight setting unit 103 can n The first weight W n Set as current image IN n The second weight W new,n .
[0058] In the current image INn The first weight W n Smaller than the previous image IN n-1 The second weight W new,n-1 , indicating that there was motion in the past. n The first weight W n Equal to or greater than the previous image IN n-1 The second weight W new,n-1 , it can be determined that a new movement has occurred.
[0059] The weight setting unit 103 can n The second weight W new,n Stored in the storage device 109.
[0060] The noise reduction unit 107 can use the current image IN n The second weight W new,n To reduce the current image IN n time noise.
[0061] OUT n =Wnew, n×IN n +(1-Wnew,n)×OUT n-1 ……(3)
[0062] As shown in the above equation (3), the noise reduction unit 107 can use the current image IN n The second weight W new,n Execute the current image IN n and the previous output image OUT n-1 The temporal noise is reduced by weighted summation of the current image IN n The output image OUT obtained by reducing temporal noise n may be stored in the storage device 109 .
[0063] The storage device 109 can store the current image IN n The temporal noise of the output image OUT is reduced n and the second weight W new,n . Current image IN n The output image OUT n Can be used as next image IN n+1 Previous image of .
[0064] According to an embodiment, only the second weight W that accumulates motion information of previous images new,n is stored in the storage device 109, therefore, there is no need to store motion information of all past images, and the storage capacity of the storage device 109 can be saved.
[0065] The storage device 109 may include a storage device for storing the output image OUT n The first memory and the second memory storing the weight W new,n The first memory and the second memory may be separate memories, or may be a partitioned memory. The second weight W new,n It can be stored after matching to the corresponding pixels.
[0066] The first memory may be a frame memory. The first memory may store image data of 8 bits per pixel.
[0067] In one embodiment, the second memory may store a second weight W of predetermined bits. new,n For example, the second weight W new,n It can be stored in the second memory with 8 bits per pixel. In another embodiment, the second weight W new,n The bits of are transformed to reduce, therefore, as shown in Equation 4, the second weight W having fewer bits (eg, 4 bits) than 8 bits new,n can be stored in the second memory. In Equation 4, 8 is added to the second weight W for rounding purposes for bit conversion from an 8-bit second weight to a 4-bit second weight. new,n .
[0068] W new,n (i,j),4 bits = (W new,n +8) / 16……(4)
[0069] According to the above-described embodiment, motion detection and setting of the first weight and the second weight are performed for each of all pixels in an image.
[0070] In another embodiment, the motion detector 101 may calculate the motion detection value for only some pixels in the image (eg, some pixels with a predetermined interval). In this case, the number of pixels for detecting motion is reduced, thereby reducing the amount of calculation and the calculation time.
[0071] Figure 4 is a diagram showing an example of detecting motion according to an embodiment. Figure 4 , in the current image IN n When the resolution of the image sensor is 9×9 pixels, the motion detector 101 may detect motion only from pixels arranged at predetermined intervals (eg, the first pixel P1 , the fifth pixel P5 , and the ninth pixel P9 ).
[0072] The weight setting unit 103 calculates a first weight for the pixels P1, P5, P9, ... detecting motion in the current image, compares the first weight with the second weight set for the corresponding pixel in the previous image, and adjusts the first weight calculated in the current image to the second weight. The weight setting unit 103 may set a second weight for the pixels arranged between the pixels P1, P5, P9, ... detecting motion, wherein the second weight is a second weight of one of the two pixels located before and after the inserted pixel. For example, the second weight set for the first pixel P1 is applied to the second pixel P2 to the fourth pixel P4 between the pixel P1 and the pixel P5, and the second weight set for the fifth pixel P5 may be applied to the sixth pixel P6 to the eighth pixel P8 between the pixel P5 and the pixel P9.
[0073] The noise reduction unit 107 can use the current image IN n The second weight W new,n Execute the current image IN n and the previous output image OUT n-1 The temporal noise is reduced by weighted summation.
[0074] The storage device 109 can store the current image IN n The temporal noise of the output image OUT is reduced n and the second weight W new,n Here, an 8-bit second weight for a group unit including a predetermined number of consecutive pixels may be stored in the second memory. For example, a second weight may be stored after being matched to a group including the first pixel P1 to the fourth pixel P4, and a second weight may be stored after being matched to a group including the fifth pixel P5 to the eighth pixel P8. Here, the second weight W new,n The bits can be transformed to reduce, and the second weight W new,n It can be stored with fewer bits than 8 bits (for example, 4 bits).
[0075] According to an embodiment, the second weight W stored in the memory may be reduced new,n The number and / or the second weight W can be reduced new,n bits to save the overall memory capacity.
[0076] In addition, the motion detector 101 can read the previous image IN from the first memory of the storage device 109. n-1 The temporal noise of the output image OUT is reduced n-1 To detect the current image IN n Movement in.
[0077] The weight setting unit 103 can read the previous image IN from the second memory of the storage device 109. n-1The second weight W new,n-1 To set the current image IN n The second weight W new,n Here, in the current image IN n The second weight W new,n When the bits are reduced, the weight setting unit 103 can reconstruct the second weight W new,n bits, as shown in Equation 5. In this equation, 8 is added for rounding purposes for the bit conversion from the 4-bit second weight to the 8-bit second weight.
[0078] W new,n (i,j)=f(MDVn,{(W new,n-1 ,4 bits)×16+8})……(5)
[0079] Therefore, the accuracy of reducing temporal noise can be improved while saving memory capacity.
[0080] Motion blur may occur when reducing temporal noise in an image with motion. Therefore, when there is motion, the weight may be set close to 1 to increase the weight of the current image, and when there is no motion, the weight is set close to 0 to reflect the previous image more. That is, when there is motion, to prevent motion blur, noise is reduced by mainly using the current image, and when there is no motion, the original signal may be reconstructed by increasing the weight of the previous image to be greater than the weight of the current image.
[0081] Ideally, when there is motion, only the current image may be used when the first weight is 1, and then motion blur is not generated. However, because it is difficult to perfectly detect motion, even when there is motion, the first weight generally has a value close to 1, but is not necessarily 1. In this case, information about the previous image is substantially reflected, and therefore, motion blur is generated.
[0082] According to an embodiment, in order to reduce motion blur generated when information about a previous image is used in reducing temporal noise, an optimal weight is newly defined to reduce the motion blur.
[0083] It will be assumed that motion occurs and there is no further motion. That is, in the 0th image the brightness of any pixel is 100, in the first image motion occurs and the brightness of the pixel is 10, and there is no further motion. In this case, after the first image, the true value of the output value from the pixel is 10.
[0084] Here, the first weight W calculated for a series of images is based on the difference between the current image and the previous image. n W1 = 0.9, W2 = 0.1, W3 = 0.1, ..., the second weight W new,n Wnew,1 =0.9,W new,2 =0.5,W new,3 =0.3, ... That is, when n is 2, a second weight greater than 0.1 is applied, and as n increases, the second weight gradually decreases to a value close to 0.1.
[0085] Figure 5 is a diagram showing convergence of pixel output values with respect to the number of images to which weights calculated according to an embodiment are applied.
[0086] exist Figure 5 Middle, curve Figure 1 is a graph indicating the true value of the pixel output value. Figure 2 When the first weight W n The convergence curve of the output value from the pixel when applied to Equation 3, curve Figure 3 When the second weight W new,n Convergence graph of the output values from a pixel when applied to Equation 3.
[0087] Reference Figure 5 , until the pixel output value converges to 11 or less, that is, the error range about 10 (that is, the true value) is 10%, on the curve Figure 2 Twenty-two (22) images are required, and in the curve Figure 3 Only twelve (12) images are needed. In addition, until the output value of the pixel converges to 12 or less, that is, the error range about the true value is 20%, the curve Figure 3 Only five (5) images are required.
[0088] That is, according to an embodiment, even when there is recent motion when there is no motion in the current image, a weight greater than the weight when there is no motion is applied to increase the convergence speed to the true value of the pixel, that is, the number of images required to converge to the true value of the pixel can be reduced, and motion blur can be reduced.
[0089] Figure 6 and Figure 7 is a diagram illustrating a method of reducing temporal noise in an image according to an embodiment. Figure 6 and Figure 7 The method of reducing the temporal noise of an image shown in FIG. 1 may be performed by the temporal noise reducing apparatus 100. Hereinafter, descriptions about the above-described elements will be omitted.
[0090] The temporal noise reduction apparatus 100 may detect motion from the input current image in units of pixels (S11). The temporal noise reduction apparatus 100 may detect motion from each of all pixels in the current image, or detect motion from only some pixels arranged at predetermined intervals.
[0091] The temporal noise reduction apparatus 100 may detect motion information about the current image based on the difference between the current image and the previous image. Here, the previous image may be an image in which temporal noise is reduced. In the local area, the motion information may be an average value of the difference between the current image and the previous image.
[0092] The temporal noise reduction apparatus 100 may set a first weight W for reducing temporal noise in the current image for pixels where motion is detected. n (S13). The first weight may vary according to the motion level. That is, when the motion level increases, the first weight may be set to be larger. The rate of change of the first weight may be proportional to the rate of change of the motion level. The temporal noise reduction device 100 may use a LUT that displays the relationship between the motion level and the first weight.
[0093] The temporal noise reduction apparatus 100 may adjust the first weight W of the current image based on the weight of the previous image. n To determine the second weight W new,n (S15). To achieve this, the first weight W of the current pixel in the current image can be n and the second weight W of the corresponding pixel in the previous image new,n-1 Compare (S151). The first weight W of the current pixel in the current image n is smaller than the second weight W of the corresponding pixel in the previous image new,n-1 When (S153), the first weight W of the current pixel in the current image n and the second weight W of the corresponding pixel in the previous image new,n-1 The average value between can be set as the second weight W of the current image new,n (S155). A first weight W of the current pixel in the current image n A second weight W equal to or greater than the corresponding pixel in the previous image new,n-1 When (S153), the first weight W of the current pixel in the current image n can be set as the second weight W of the current pixel in the current image new,n (S157).
[0094] In one embodiment, when motion is detected from all pixels in the current image, the first weight W n and the second weight W new,n In another embodiment, when motion is detected only from some pixels (pixels arranged at predetermined intervals) in the current image, the first weight W may be set only for the pixels where motion is detected. n With the second weight W new,nIn this case, the second weight W set for one of the two pixels where motion is detected is new,n The same may be set for a pixel arranged between two pixels where motion is detected.
[0095] The second weight W new,n Stored in the storage device. In one embodiment, the second weight W new,n After matching the corresponding pixel, it can be stored in the storage device. In another embodiment, the second weight W of the same value new,n A predetermined number of pixels may be matched and stored in a storage device. In another embodiment, the second weight W new,n The bits may be transformed to have reduced bits and then stored.
[0096] The temporal noise reduction apparatus 100 may reduce the temporal noise by using the second weight W of the current image. new,n The temporal noise reduction device 100 can reduce the temporal noise of the current image by setting the second weight W new,n Applied to the current image, and the weight (1-W new,n ) is applied to the previous output image OUT n-1 , and then reduce the temporal noise by performing a weighted sum of the current image and the previous image. new,n When the bits of the image are reduced and stored, the temporal noise reducing apparatus 100 may reconstruct the bits. An output image obtained by reducing the temporal noise from the current image may be stored in a storage device.
[0097] Figure 8 is a diagram of a temporal-spatial noise reduction apparatus to which the temporal noise reduction apparatus is applied according to an embodiment.
[0098] Reference Figure 8 , the temporal-spatial noise reduction apparatus 10 may include a temporal noise reduction unit 20 and a spatial noise reduction unit 30 .
[0099] A video image (or a moving image) is input to the temporal-spatial noise reducing apparatus 10 in units of frames.
[0100] The temporal noise reduction unit 20 may remove temporal noise based on motion information about the current image and the previous image. The above-described temporal noise reduction apparatus 100 may be used as the temporal noise reduction unit 20. The temporal noise reduction unit 20 may set a first weight for reducing the temporal noise of the current image based on a difference between the current image and the previous image in which the temporal noise is reduced, and may set a second weight for the current image by comparing the first weight of the current image with the second weight of the previous image. The temporal noise reduction unit 20 may generate and output a first output image OUT by reducing the temporal noise of the current image using the second weight of the current image.tn .
[0101] The spatial noise reduction unit 30 may generate and output a second output image OUT sn , wherein the first output image OUT is reduced based on the temporal noise tn Similarity and / or motion information of pixels around the current pixel in the first output image OUT tn Reduce the spatial noise to obtain the second output image OUT sn .
[0102] That is, according to an embodiment, the history related to the motion information of a plurality of past images is not necessary, but the past motion information can be reflected in the reduction of temporal noise by using the second weight of the immediate previous image. Therefore, motion blur can be reduced while saving the capacity of the storage unit.
[0103] The image or video obtained by the image sensor has various noises generated from the sensor and / or circuit. According to an embodiment, the noise is reduced by correlation between images. The embodiment can be applied to various devices, such as surveillance cameras including visual cameras, thermal imaging cameras, special cameras, etc., which obtain images or videos, wireless communication devices, personal digital assistants (PDAs), laptop computers, desktop computers, camcorders, digital cameras, closed-circuit televisions (CCTVs), digital recording equipment, digital network televisions, portable phones, mobile phones, satellite phones, camera phones, two-way communication devices, etc.
[0104] The time-space noise reduction device and method according to the embodiment can be implemented as a computer-readable code in a non-temporary computer-readable recording medium. A computer-readable recording medium is any data storage device that can store a program or data that can be read by a computer system thereafter. Examples of computer-readable recording media include read-only memory (ROM), random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc. Computer-readable recording media can also be distributed on networked computer systems to store and execute computer-readable codes in a distributed manner. In addition, the functional programs, codes, and code segments used to implement the embodiments can be easily interpreted by programming technicians in the field to which the embodiments belong.
[0105] According to an embodiment, the temporal noise reduction effect may be improved by reducing motion blur.
[0106] It should be understood that the embodiments described herein should be considered in a descriptive sense only and not for purposes of limitation. Descriptions of features or aspects in each embodiment should typically be considered as available for other similar features or aspects in other embodiments.
[0107] Although one or more embodiments have been described with reference to the drawings, it will be understood by those skilled in the art that various changes in form and details may be made without departing from the spirit and scope of the inventive concept as defined by the claims.
Claims
1. A device for reducing noise of an image, the device comprising: a motion detector configured to detect motion from a current image; A weight setting unit, configured to: when a first weight corresponding to the motion of the current image is less than a weight of the previous image, set the weight of the current image to an average of the first weight and the weight of the previous image; a denoising unit configured to apply an average of the first weight and the weight of a previous image to a current image to reduce temporal noise of the current image, The weight setting unit is further configured to: when the first weight corresponding to the motion of the current image is equal to or greater than the weight of the previous image, set the weight of the current image to be unchanged so that the noise reduction unit applies the unchanged weight to the current image, The first weight of each pixel of the current image is obtained by using a lookup table in which the first weight of each pixel of the current image is set by using a detection value detected according to motion of each pixel of the current image as a variable.
2. The device according to claim 1, wherein: The noise reduction unit is configured to generate an output image by using an average of the first weight and the weight of the previous image, the output image being a weighted sum of the current image and the previous image.
3. The device of claim 2, wherein: The weight setting unit is configured to set the weight of the current image higher when the amount of motion or level of motion of the current image is greater than that of the previous image than when the amount of motion or level of motion of the current image is less than that of the previous image.
4. The apparatus of claim 1, further comprising: a memory configured to store a first weight for reducing temporal noise of a next image and an average of weights of previous images; The weight setting unit is configured to: reduce bits required to store the average value, store the average value in a memory, and reconstruct bits of the average value read from the memory to use the average value.
5. The device of claim 1, wherein: The motion detector is configured to detect motion from a plurality of pixels arranged at predetermined intervals in a current image, and the weight setting unit is configured to set weights to the plurality of pixels from which the motion is detected based on the detected motion and the weight of a previous image, and to set a weight set to one of two pixels among the plurality of pixels to a pixel arranged between the two pixels.
6. The device of claim 5, wherein: The weight setting unit is configured to match the one weight to a group including one of the two pixels and a pixel between the two pixels, and store the one weight in a memory.
7. A method for reducing noise in an image, the method comprising: Detect motion from the current image; When a first weight corresponding to the motion of the current image is less than a weight of the previous image, setting the weight of the current image to an average of the first weight and the weight of the previous image; applying the first weight and the average of the weights of the previous image to the current image to reduce the temporal noise of the current image, The step of setting the weight of the current image includes: when a first weight corresponding to the motion of the current image is equal to or greater than a weight of a previous image, setting the weight of the current image to be unchanged so as to apply the unchanged weight of the current image to the current image to reduce the temporal noise of the current image, The first weight of each pixel of the current image is obtained by using a lookup table in which the first weight of each pixel of the current image is set by using a detection value detected according to motion of each pixel of the current image as a variable.
8. The method of claim 7, wherein: The step of reducing the temporal noise includes generating an output image by using an average of the first weight and the weight of the previous image, the output image being a weighted sum of the current image and the previous image.
9. The method of claim 8, wherein: The step of setting the weight of the current image also includes: when the amount of motion or level of motion of the current image is greater than the amount of motion or level of motion of the previous image, setting the weight of the current image to be higher than when the amount of motion or level of motion of the current image is less than the amount of motion or level of motion of the previous image.
10. The method of claim 7, wherein: The step of detecting motion includes: detecting motion from a plurality of pixels arranged at predetermined intervals in the current image, The step of setting the weight of the current image includes: setting weights to a plurality of pixels from which motion is detected based on the detected motion and weights of a previous image; A weight set to one of two pixels among the plurality of pixels is set to the pixel arranged between the two pixels.
11. The method of claim 10, further comprising: The one weight is matched to a group including one of the two pixels and pixels between the two pixels, and the one weight is stored in a memory.
12. The method of claim 7, further comprising: After reducing bits of an average of a first weight for reducing temporal noise of a next image and a weight of a previous image, storing the average in a memory; The bits of the average value read from memory are reconstructed.
13. The method of claim 7, further comprising: By using the equation W new,n (i,j),4 bits = (W new,n +8) / 16 After reducing the 8 bits of the weight set for the current image to 4 bits, the weight set for the current image is stored in the memory; By using the equation W new,n (i,j)=f(MDVn,{(W new,n-1 ,4 bits)×16+8}) reconstructs the 8 bits of the weights set for the current image from the 4 bits read from the memory, Among them, W new,n (i, j), 4 bits represent the first weight represented by 4 bits of the pixel at position (i, j) in the current image, W new,n +8 represents the weight of the current image, which is represented by 8 bits. Among them, W new,n (i, j) represents the weight of the pixel at position (i, j) of the current image reconstructed by 8 bits, W new,n-1 , 4 bits represent the set weight represented by 4 bits of the previous image read from the memory, MDVn represents the detection value according to the result of motion detection, and f(x) represents a predetermined function indicating the relationship between the first weight and the detection value.
Citation Information
Patent Citations
Capacitive wordline boosting
KR1020180014170A
Image processing apparatus, image processing method, and program
CN102201113A
Method And Apparatus For Reducing Noise Of Image
CN104980626A
