Image processing device, image processing method, and program

The image processing device addresses the challenge of noise and afterimages in low-light images by using a combination of temporal and spatial noise removal techniques, ensuring improved image quality without unwanted side effects.

WO2024214381A1PCT designated stage expired Publication Date: 2024-10-17KONICA MINOLTA INC
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2024/004990
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-12
Filing Date
2024-02-14
Publication Date
2024-10-17

AI Technical Summary

Technical Problem

Conventional image processing methods for time-series images in low-light environments often introduce noise and cause side effects like afterimages when improving image quality by removing temporal noise, especially in areas with movement.

Method used

An image processing device that performs temporal noise removal by comparing pixel values between frames and outputs the processed value if the difference is below a threshold, while using spatial noise removal to smooth pixel values within frames and outputting the original value if the difference exceeds the threshold, thus avoiding afterimages.

Benefits of technology

This approach enhances image quality by reducing noise levels effectively while minimizing side effects such as afterimages, especially in moving areas, by selectively applying temporal and spatial noise removal techniques.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2024004990_17102024_PF_FP_ABST
    Figure JP2024004990_17102024_PF_FP_ABST
Patent Text Reader

Abstract

The objective of the present invention is to improve image quality while avoiding side effects caused by removal of time noise. The image processing device processes each of a plurality of frames constituting a time-series image, as a target frame. The image processing device performs time noise removal processing for each pixel on the basis of the target frame and a frame previous to the target frame, and generates an image (first processed image) after the time noise removal processing of the target frame. The image processing device performs spatial noise removal processing with respect to the target frame, and generates an image (second processed image) after the spatial noise removal processing of the target frame. For each pixel of the target frame, if an absolute value of a difference between a pixel value of the image after the time noise removal processing and a pixel value of the image after the spatial noise removal processing is equal to or less than a predetermined value, the image processing device outputs the pixel value of the image after the time noise removal processing, and if the absolute value of the difference is larger than the predetermined value, the image processing device outputs the pixel value of the target frame.
Need to check novelty before this filing date? Find Prior Art

Description

Image processing device, image processing method and program

[0001] The present invention relates to an image processing device, an image processing method, and a program.

[0002] In the past, time-series images (moving images) obtained by continuous shooting have been widely used. However, when images are shot under extremely low-light conditions, there is a risk of a lot of noise appearing in the images.

[0003] To reduce noise, for example, a video processing device has been proposed that estimates the motion between a frame of interest among multiple frames that make up a moving image and the frames before and after it (see Patent Document 1). This device detects pixel-by-pixel motion vectors from temporally consecutive frames, determines the boundary between a foreground object and the background, and reduces noise.

[0004] JP 2014-158083 A

[0005] However, when temporal noise is removed by averaging 30 to 40 frames in order to improve image quality, the image quality of static areas (e.g., background) improves, but there is a problem in that side effects such as afterimages occur in moving areas.

[0006] The present invention has been made in consideration of the above-mentioned problems in the prior art, and an object of the present invention is to improve image quality while avoiding side effects caused by removing temporal noise.

[0007] In order to solve the above problem, the invention described in claim 1 is an image processing device that processes each of a plurality of frames that constitute a time-series image as a target frame, and includes a first processing unit that performs temporal noise removal processing for each pixel based on the target frame and a frame that precedes the target frame, and generates a first processed image for the target frame; a second processing unit that performs spatial noise removal processing on the target frame and generates a second processed image for the target frame; and an output value determination unit that, for each pixel of the target frame, outputs the pixel value of the first processed image if the absolute value of the difference between the pixel value of the first processed image and the pixel value of the second processed image is less than or equal to a predetermined value, and outputs the pixel value of the target frame if the absolute value of the difference is greater than the predetermined value.

[0008] The invention described in claim 2 is an image processing device described in claim 1, in which the first processing unit uses the first processed image generated for the frame one frame before the target frame for the temporal noise removal processing in the target frame.

[0009] In accordance with a third aspect of the present invention, in the image processing device of the first aspect, the first processing unit takes an average of the target frame and a predetermined number of frames prior to the target frame.

[0010] In accordance with a fourth aspect of the present invention, in the image processing device of the first aspect, the second processing unit calculates, for each pixel of the target frame, an average of the pixel and its surrounding pixels.

[0011] The invention described in claim 5 is an image processing device described in claim 4, wherein the second processing unit is provided with a line memory that stores pixel values ​​for a predetermined number of lines of the target frame, and the range of the surrounding pixels in a direction parallel to the line is wider than the range of the surrounding pixels in a direction perpendicular to the line.

[0012] In the invention described in claim 6, in the image processing device described in claim 1, the time series image is a Bayer image, and for each pixel of the target frame, the second processing unit takes the average of the pixel and surrounding pixels of the same color as the pixel.

[0013] In accordance with a seventh aspect of the present invention, in the image processing device according to any one of the first to sixth aspects, the pixel values ​​of the time-series images are density values ​​that represent the density of the images.

[0014] In an eighth aspect of the present invention, in the image processing device according to any one of the first to sixth aspects, the pixel values ​​of the time-series images are numerical values ​​representing distances.

[0015] The invention described in claim 9 is an image processing method for processing each of a plurality of frames that constitute a time-series image as a target frame, and includes: a first processing step for performing temporal noise removal processing for each pixel based on the target frame and a frame that precedes the target frame, and generating a first processed image for the target frame; a second processing step for performing spatial noise removal processing on the target frame, and generating a second processed image for the target frame; and an output value determination step for, for each pixel of the target frame, outputting the pixel value of the first processed image if the absolute value of the difference between the pixel value of the first processed image and the pixel value of the second processed image is less than or equal to a predetermined value, and outputting the pixel value of the target frame if the absolute value of the difference is greater than the predetermined value.

[0016] The invention described in claim 10 is a program for causing a computer of an image processing device that processes each of a plurality of frames that constitute a time-series image as a target frame to function as a first processing unit that performs temporal noise removal processing for each pixel based on the target frame and a frame that precedes the target frame, and generates a first processed image for the target frame; a second processing unit that performs spatial noise removal processing on the target frame, and generates a second processed image for the target frame; and an output value determination unit that, for each pixel of the target frame, outputs the pixel value of the first processed image if the absolute value of the difference between the pixel value of the first processed image and the pixel value of the second processed image is less than a predetermined value, and outputs the pixel value of the target frame if the absolute value of the difference is greater than the predetermined value.

[0017] According to the present invention, it is possible to improve image quality while avoiding side effects caused by removing temporal noise.

[0018] 1 is a block diagram showing a configuration of an image processing system according to an embodiment of the present invention; FIG. 2 is a flowchart showing image processing executed in an image processing device; FIG. 3 is a graph showing a function param(diff) used in temporal noise removal processing; FIG. 4 is a diagram showing the results of performing temporal noise removal processing on time-series image data with no motion; FIG. 5 is a diagram showing a target pixel; FIG. 6 is a graph showing temporal changes in input pixel values ​​of a target pixel and output pixel values ​​after temporal noise removal processing; FIG. 7 is a diagram showing the standard deviation of input pixel values ​​of a target pixel and output pixel values ​​after temporal noise removal processing; FIG. 8 is a diagram showing the results of performing temporal noise removal processing on time-series image data with motion; FIG. 9 is an example of a spatial filter used in spatial noise removal processing; FIG. 10 is a diagram showing the results of performing spatial noise removal processing on time-series image data with no motion; FIG. 11 is a graph showing temporal changes in input pixel values ​​of a target pixel and output pixel values ​​after spatial noise removal processing; FIG. 12 is a diagram showing the standard deviation of input pixel values ​​of a target pixel and output pixel values ​​after spatial noise removal processing; FIG. 13 is a diagram showing the results of performing spatial noise removal processing on time-series image data with motion; 1 is a graph showing temporal changes in input pixel value and output pixel value of a target pixel. FIG. 2 is a diagram showing the standard deviation of input pixel value and output pixel value of a target pixel. FIG. 3 is a diagram showing an image and an output image after performing temporal noise removal processing on time-series image data with motion. FIG. 4 is a diagram showing a target pixel in temporal noise removal processing of Modified Example 1. FIG. 5 is a graph showing temporal changes in input pixel value of a target pixel, average value of the past 30 frames, and average value of the past 40 frames. FIG. 6 is a diagram showing the input pixel value of a target pixel, average value of the past 30 frames, and standard deviation of the average value of the past 40 frames. FIG. 7 is a graph showing the function param(diff) used in temporal noise removal processing of Modified Example 2. FIG. 8 is an example of a spatial filter used in spatial noise removal processing of Modified Example 3. FIG. 9 is an example of a Bayer array in Modified Example 4. FIG. 10 is an example of a spatial filter for a Bayer image. FIG. 11 is a diagram showing input images and output images in the form of Bayer images when time-series image data with no motion is targeted.1A and 1B are diagrams showing input and output images in the form of Bayer images when time-series image data with motion is targeted, FIG. 1C are diagrams showing input and output images in color when time-series image data with no motion is targeted, and FIG. 1D are diagrams showing input and output images in color when time-series image data with motion is targeted.

[0019] Hereinafter, embodiments of the present invention will be described with reference to the drawings, but the scope of the present invention is not limited to the following embodiments and illustrated examples.

[0020] 1 is a block diagram showing the configuration of an image processing system 100. The image processing system 100 includes a camera 10 and an image processing device 20. Note that the image processing device 20 may also include the camera 10.

[0021] The camera 10 captures images of a subject continuously over time to generate time-series images. The time-series images are made up of a plurality of frames. The camera 10 includes a lens 11, a filter 12, an image sensor 13, and a signal processor 14.

[0022] The lens 11 forms an image of the subject on the image sensor 13. The filter 12 is a primary color filter corresponding to each of R (red), G (green), and B (blue). Of the light that has passed through the lens 11, the filter 12 passes light of specific wavelengths corresponding to each of RGB. The image sensor 13 is a two-dimensional image sensor. The image sensor 13 receives the light that has passed through the filter 12 and outputs a signal corresponding to the intensity of the received light. The signal processing unit 14 converts the analog signal output from the image sensor 13 into a digital signal and performs known signal processing on the converted digital signal.

[0023] The image processing device 20 processes each of the multiple frames constituting the time-series image as a target frame. The pixel values ​​of the time-series image are density values ​​(luminance values) that represent the density of the image. The image processing device 20 is a personal computer, a mobile device, a smartphone, a tablet terminal, or the like. The image processing device 20 includes a control unit 21, an operation unit 22, a display unit 23, a communication unit 24, a storage unit 25, and an image processing unit 26.

[0024] The control unit 21 includes a CPU (Central Processing Unit), a RAM (Random Access Memory), etc. The CPU reads out various programs stored in the storage unit 25, loads them into the RAM, executes various processes in accordance with the loaded programs, and centrally controls the operations of each unit of the image processing device 20.

[0025] The operation unit 22 accepts operations by the user and outputs control signals corresponding to the operations to the control unit 21. The operation unit 22 includes a keyboard, a pointing device, a touch panel, etc. The keyboard includes cursor keys, letter and number input keys, various function keys, etc. The pointing device is, for example, a mouse. The touch panel is layered on the surface of the display unit 23 and detects the position coordinates of a point touched by the user.

[0026] The display unit 23 is an LCD (Liquid Crystal Display), an organic EL display, etc. The display unit 23 displays a screen or the like according to an image signal output from the control unit 21.

[0027] The communication unit 24 is a communication interface that communicates with the camera 10. The communication unit 24 receives image data of time-series images from the camera 10.

[0028] The storage unit 25 is configured by a non-volatile memory, a hard disk, etc. The storage unit 25 stores various programs executed by the CPU of the control unit 21, parameters required for executing the programs, etc.

[0029] The image processing unit 26 performs image processing on image data of the time-series images acquired from the camera 10. The image processing unit 26 includes a temporal noise removal unit 27, a spatial noise removal unit 28, and an output value determination unit 29. The temporal noise removal unit 27, the spatial noise removal unit 28, and the output value determination unit 29 are realized by the CPU of the control unit 21 executing programs corresponding to each unit. Note that some or all of the functions of the temporal noise removal unit 27, the spatial noise removal unit 28, and the output value determination unit 29 may be realized by processing using a hardware circuit such as an FPGA (Field Programmable Gate Array).

[0030] The temporal noise removal unit 27 (first processing unit) performs temporal noise removal processing for each pixel based on the target frame and frames preceding the target frame, and generates a post-temporal noise removal image (first processed image) for the target frame. The temporal noise removal processing is processing for removing noise from an input image by smoothing pixel values ​​in the time direction for a time-series image. For example, the temporal noise removal unit 27 uses the post-temporal noise removal image generated for the frame immediately preceding the target frame for the temporal noise removal processing for the target frame.

[0031] The spatial noise removal unit 28 (second processing unit) performs spatial noise removal processing on the target frame to generate a spatial noise removed image (second processed image) for the target frame. The spatial noise removal processing is a process of removing noise from the input image by smoothing pixel values ​​within the same frame of the time-series image. For example, the spatial noise removal processing is a process of taking the average of each pixel of the target frame and its surrounding pixels. The range of surrounding pixels can be changed as appropriate depending on the spatial filter used for the spatial noise removal processing. Note that the spatial noise removal unit 28 may take the average by changing the weighting for each pixel (weighted average).

[0032] The output value determination unit 29 calculates the absolute value of the difference between the pixel value of the image after temporal noise removal processing (first processed image) and the pixel value of the image after spatial noise removal processing (second processed image) for each pixel of the target frame. If the absolute value of this difference is equal to or less than a predetermined value, the output value determination unit 29 outputs the pixel value of the image after temporal noise removal processing. If the absolute value of this difference is greater than the predetermined value, the output value determination unit 29 outputs the pixel value of the target frame.

[0033] [Operation of Image Processing Device] Figure 2 is a flowchart showing image processing executed by the image processing device 20. This processing is performed for each of the multiple frames constituting the time-series image as a target frame. In this embodiment, the input pixel values ​​and output pixel values ​​in the image processing are both 12 bits long (0 to 4095). The frame rate is also assumed to be 30 fps.

[0034] First, the temporal noise removal unit 27 performs a temporal noise removal process on the target frame (step A1). The temporal noise removal unit 27 performs the following process for each pixel in the image: n The output pixel value of the current frame after the temporal noise removal process is set as T n , the output pixel value after the temporal noise removal process of the previous frame is T n-1 The temporal noise removal unit 27 removes the output pixel value T n-1 The memory may be provided in the time noise removal unit 27 or the storage unit 25.

[0035] As shown in equation (1), the input pixel value I n and the output pixel value T after the temporal noise removal process of the previous frame n-1 The absolute value of the difference between the two is shifted 4 bits to the right and is defined as diff. diff can take a value from 0 to 255.

[0036] The bit shift is a process for changing the range (width) that diff can take. Even after the bit shift, diff remains the same as the input pixel value I of the current frame. nand the output pixel value T after the temporal noise removal process of the previous frame n-1 It still indicates the magnitude of the absolute value of the difference between

[0037] 3 shows the function param(diff) of diff. When diff is equal to or smaller than a threshold th, param(diff) is max , diff is set to 0 when it is greater than a threshold value th. For example, th=140, param max = 0.95.

[0038] Output pixel value T of the current frame after temporal noise removal processing n is calculated by the formula (2).

[0039] The temporal noise removal unit 27 removes the output pixel value T n-1 and the input pixel value of the current frame I n and are weighted and added to obtain the output pixel value T n param(diff) corresponds to weighting of past frames in the temporal noise removal process. As shown in FIG. 3, when diff is equal to or smaller than the threshold th, param(diff) is max It is. max The closer to 1, the stronger the weighting of past outputs. max The closer to 1, the same effect as averaging frames over a longer period of time can be obtained. On the other hand, when diff is greater than the threshold value th, this corresponds to a large change in luminance due to the influence of a moving object, etc. In this case, the input pixel value I of the current frame n By outputting the image as is, unnecessary afterimages are avoided.

[0040] Fig. 4 shows the results of performing temporal noise removal processing on stationary time-series image data. Stationary time-series image data does not include any moving objects as subjects. Fig. 4 shows input images of frames 0, 30, and 60, as well as images after performing temporal noise removal processing on each input image. As shown in Fig. 4, noise has been removed from frames 30 and 60 by the temporal noise removal processing.

[0041] For each frame of motionless time-series image data, the upper left pixel is set as the target pixel 31 as shown in Fig. 5A. n and the output pixel value T after the time noise removal process. n 5B, the horizontal axis represents the frame number and the vertical axis represents the pixel value. The frame number corresponds to the passage of time. FIG. 5C shows the input pixel value I in frames 50 to 149 shown in FIG. 5B. n and the output pixel value T after the time noise removal process. n The figure shows the standard deviation of the frames where the pixel values ​​settle to a certain extent (frames 50 to 149 in this example), and by calculating the standard deviation, it is possible to determine the noise level (variation in pixel values). The temporal noise removal process (see formulas (1), (2), and Figure 3) changes the standard deviation of the pixel values ​​from "362.3" before processing to "54.3" after processing. In other words, it can be seen that the noise level has improved as a result of the temporal noise removal process.

[0042] However, when temporal noise removal processing is performed on images with motion, problems occur. Fig. 6 shows the results of performing temporal noise removal processing on time-series image data with motion. The time-series image data with motion includes a moving object as a subject. Fig. 6 shows input images of frames 0, 30, and 60, and images after performing temporal noise removal processing on each input image. As shown in Fig. 6, afterimages appear in frames 30 and 60 due to the temporal noise removal processing.

[0043] 2, in parallel with the temporal noise removal process (step A1), the spatial noise removal unit 28 performs spatial noise removal process on the target frame (step A2). The spatial noise removal unit 28 creates a noise-removed image by averaging the pixel values ​​of the pixel of interest and the pixels surrounding the pixel of interest.

[0044] An example of a spatial filter is shown in Figure 7. The weighting coefficient at each position in the filter is W(i, j). The input pixel value at the pixel position (x, y) of the current frame (target frame) is expressed as I n (x, y). The output pixel value S after spatial noise removal processing at pixel position (x, y) n (x, y) is calculated by equation (3). Here, 49 (7×7) pixel values ​​are averaged.

[0045] Hereinafter, the output pixel value S after the spatial noise removal process will be referred to as n For (x, y), omit the pixel position (x, y) and simply use S n The input pixel value I n For (x, y), the pixel position (x, y) is omitted and simply expressed as I n It may also be written as:

[0046] Fig. 8 shows the results of spatial noise removal processing on motionless time-series image data, showing input images of frames 0, 30, and 60, as well as images after spatial noise removal processing has been performed on each input image.

[0047] For each frame of motionless time-series image data, the upper left pixel is set as the target pixel 31 as shown in Fig. 9A. n and the output pixel value S after spatial noise removal processing. n 9B, the horizontal axis represents the frame number, and the vertical axis represents the pixel value. n and the output pixel value S after spatial noise removal processing nThe spatial noise removal process (Equation (3), see FIG. 7 ) changes the standard deviation of pixel values ​​from "362.3" before the process to "50.7" after the process. It can be seen that the noise level (standard deviation) in the image after the spatial noise removal process is improved to the same extent as in the image after the temporal noise removal process (see FIG. 5C ).

[0048] In the next step, the output value determination unit 29 compares the results of processing using the time filter with the results of processing using the spatial filter. Therefore, it is desirable that the spatial filter used in the spatial noise reduction process reduces image noise to approximately the same level as or even better than the time filter. By increasing the size of the spatial filter and the number of pixels used for smoothing, adjustments can be made to further reduce noise.

[0049] Fig. 10 shows the results of spatial noise removal processing on time-series image data containing motion. Fig. 10 shows input images of frames 0, 30, and 60, as well as images after spatial noise removal processing has been performed on each input image.

[0050] 8 and 10, spatial noise reduction reduces noise but blurs edges. However, the image after spatial noise reduction is used only to determine whether or not there is an afterimage in the image after temporal noise reduction, and therefore does not affect image quality.

[0051] 2 , after steps A1 and A2, the output value determination unit 29 performs an output value determination process for the target frame (step A3). The output value determination unit 29 determines an output value for the target frame based on the image after the temporal noise removal process for the target frame and the image after the spatial noise removal process for the target frame.

[0052] Comparing the image after temporal noise removal processing shown in Figure 4 with the image after spatial noise removal processing shown in Figure 8 reveals the following. In areas where pixel values ​​would be approximately uniform if there was no movement or noise, the image after temporal noise removal processing and the image after spatial noise removal processing have approximately the same pixel values. Therefore, the difference between the pixel values ​​of the image after temporal noise removal processing and the image after spatial noise removal processing is used as a criterion for determining whether side effects caused by the removal of temporal noise have occurred.

[0053] The output value determination process will now be described with reference to Fig. 11. First, the output value determination unit 29 sets a pixel to be processed for the target frame (step A11).

[0054] Next, the output value determination unit 29 calculates the absolute value of the difference between the image after the temporal noise removal process and the image after the spatial noise removal process for the pixel to be processed (step A12).

[0055] As shown in equation (4), the output value determination unit 29 determines the output pixel value T n and the output pixel value S after spatial noise removal processing n The absolute value of the difference between is shifted 4 bits to the right and is defined as diff2. diff2 can take a value from 0 to 255.

[0056] The bit shift is a process for changing the range (width) that diff2 can take. Even after the bit shift, diff2 remains the same as the output pixel value T n and the output pixel value S after spatial noise removal processing n It still indicates the magnitude of the absolute value of the difference between

[0057] Next, the output value determination unit 29 determines whether or not diff2 for the pixel to be processed is equal to or smaller than a threshold value th2 (step A13).

[0058] The input pixel value of the target frame is I n , the output pixel value of the target frame is O n Then, the output pixel value O n is calculated by the formula (5). For example, th2=12.

[0059] Specifically, for the pixel to be processed, if diff2 is equal to or smaller than the threshold value th2 (step A13; YES), the output value determination unit 29 determines the output pixel value T n is the output pixel value O n That is, the output value determination unit 29 outputs the pixel values ​​of the image after the temporal noise removal process (step A14), thereby removing the temporal noise.

[0060] For the pixel to be processed, if diff2 is greater than the threshold value th2 (step A13; NO), the output value determination unit 29 determines the input pixel value I n is the output pixel value O n That is, the output value determination unit 29 outputs the pixel value of the pixel to be processed in the target frame as is (step A15). If diff2 is greater than the threshold th2, the output value determination unit 29 determines that an afterimage exists in the image after the temporal noise removal process, and sets the input pixel value I n By outputting the image as is, afterimages are prevented.

[0061] After step A14 or step A15, the output value determination unit 29 determines whether processing has been completed for all pixels in the target frame (step A16). If there are pixels in the target frame for which processing has not been completed (step A16; NO), the processing returns to step A11. The output value determination unit 29 repeats the processing for another pixel. If processing has been completed for all pixels in the target frame in step A16 (step A16; YES), the output value determination processing ends.

[0062] Returning to FIG. 2 , the image processing is completed. Processing of the time-series images progresses as image processing is performed for each frame. The control unit 21 causes the display unit 23 to display the images for which image processing has been performed. For example, the control unit 21 causes the display unit 23 to display the time-series images for which image processing has been performed as a moving image. The control unit 21 may also cause the display unit 23 to display the time-series images for which image processing has been performed on a frame-by-frame basis.

[0063] 12 shows an image obtained by performing temporal noise removal processing on motionless time-series image data, and the final output image. The output image is an image in which the pixel value of the image after temporal noise removal processing or the input pixel value of the target frame is selected for each pixel in the output value determination processing.

[0064] For time-series image data without motion, the upper left pixel of each frame image is set as the target pixel 31 as shown in Fig. 13A. n and the output pixel value O that is finally output by image processing. n 13B, the horizontal axis represents the frame number, and the vertical axis represents the pixel value. FIG. 13C shows the input pixel value I n and the standard deviation of the output pixel value O n The image processing results in a change in the standard deviation of pixel values ​​from "362.3" before processing to "54.3" after processing. In other words, it can be seen that the noise level has improved.

[0065] Fig. 14 shows an image after performing temporal noise removal processing on time-series image data containing motion, and the final output image. As shown in Fig. 12 and Fig. 14, the image processing removes temporal noise from the output image while avoiding the occurrence of afterimages.

[0066] As described above, according to this embodiment, the output value determination unit 29 of the image processing device 20 calculates, for each pixel in a target frame, the absolute value of the difference between the pixel value of the image after temporal noise removal processing and the pixel value of the image after spatial noise removal processing. If the absolute value of the difference is equal to or less than a predetermined value, the output value determination unit 29 outputs the pixel value of the image after temporal noise removal processing. On the other hand, if the absolute value of the difference is greater than the predetermined value, the output value determination unit 29 outputs the pixel value of the target frame. In other words, for pixels whose absolute value of the difference is greater than the predetermined value, the output value determination unit 29 determines that an afterimage will occur due to the temporal noise removal processing and adopts the input pixel value. Therefore, the image processing device 20 can improve image quality while avoiding side effects caused by temporal noise removal. The image processing device 20 can perform high-performance correction with a simple configuration.

[0067] Furthermore, the temporal noise removal unit 27 uses the image after the temporal noise removal process generated for the frame immediately before the target frame for the temporal noise removal process of the target frame, as shown in formula (2). This allows the temporal noise removal unit 27 to output an image equivalent to the average of multiple frames going back in time.

[0068] Furthermore, the spatial noise removal unit 28 can take the average of each pixel of the target frame and its surrounding pixels, as shown in equation (3). This allows the spatial noise removal unit 28 to smooth pixel values ​​within the same frame and remove noise.

[0069] Furthermore, it is possible to improve the image quality while avoiding side effects caused by removing time noise with respect to density values ​​that represent the density of an image.

[0070] [Modification 1] Next, Modification 1 will be described, focusing on the differences from the above embodiment. The image processing system 100 in Modification 1 differs from the above embodiment in the method of temporal noise removal processing. In the image processing (see FIG. 2) executed by the image processing device 20, the processing other than the temporal noise removal processing is the same as in the above embodiment.

[0071] The temporal noise removal unit 27 of the image processing device 20 performs temporal noise removal processing on each of the multiple frames that make up the time-series image. The temporal noise removal processing is processing that takes the average of a target frame and a predetermined number of frames prior to the target frame. The temporal noise removal unit 27 may take the average by changing the weighting for each frame (weighted average). In the first modification, both the input pixel value and the output pixel value in the image processing are 12 bits long (0 to 4095).

[0072] The temporal noise removal unit 27 performs the following process for each pixel in the image: n The output pixel value of the current frame after the temporal noise removal process is set as T n , the output pixel value after the temporal noise removal process of the previous frame is T n-1 The temporal noise removal unit 27 removes the output pixel value T n-1 is kept in memory.

[0073] As shown in equation (6), the input pixel value I n and the output pixel value T after the temporal noise removal process of the previous frame n-1 The absolute value of the difference between is shifted 4 bits to the right and is defined as diff3. diff3 can take a value from 0 to 255.

[0074] The bit shift is a process for changing the range (width) that diff3 can take. Even after the bit shift, diff3 remains the same as the input pixel value I n and the output pixel value T after the temporal noise removal process of the previous frame n-1 It still indicates the magnitude of the absolute value of the difference between

[0075] Output pixel value T of the current frame after temporal noise removal processing n is calculated by equation (7) depending on whether diff3 is equal to or smaller than a threshold value th3. For example, th3=140.

[0076] If diff3 is equal to or smaller than the threshold value th3, the temporal noise removal unit 27 outputs the average value of pixel values ​​of the past 40 frames. Note that the number of frames used to calculate the average is not limited to 40 and can be changed as appropriate. If diff3 is greater than the threshold value th3, the temporal noise removal unit 27 outputs the average value of the input pixel value I n is output as is.

[0077] For each frame of motionless time-series image data, the upper left pixel is set as the target pixel 31 as shown in Fig. 15A. n 15B shows the time change of the average value of the past 30 frames and the average value of the past 40 frames. In FIG. 15B, the horizontal axis is the frame number and the vertical axis is the pixel value. FIG. 15C shows the time change of the input pixel value I n 5C shows the standard deviation of the output pixel values ​​obtained by taking the average of the past 40 frames, the standard deviation of the average of the past 30 frames, and the standard deviation of the average of the past 40 frames. The standard deviation of the output pixel values ​​obtained by taking the average of the past 40 frames as temporal noise removal processing is "51.8". This is close to the standard deviation of the output pixel values ​​obtained by the temporal noise removal processing in the above embodiment, "54.3" (see FIG. 5C).

[0078] According to the first modification, the temporal noise removal unit 27 takes the average of the target frame and a predetermined number of frames past the target frame, thereby smoothing pixel values ​​in the time direction and removing temporal noise through simple calculations.

[0079] [Variation 2] Next, Variation 2 will be described, focusing on the differences from the above embodiment. The image processing system 100 in Variation 2 differs from the above embodiment in the method of temporal noise removal processing. In the image processing performed by the image processing device 20 (see FIG. 2), the processing other than the temporal noise removal processing is the same as in the above embodiment. In Variation 2, both the input pixel values ​​and output pixel values ​​in the image processing are 12 bits long (0 to 4095).

[0080] In the second modification, the output pixel value T nThe formulas (1) and (2) used to calculate are the same as those in the above embodiment. In the second modification, the function param(diff) shown in FIG. 16 is used instead of the function param(diff) shown in FIG. 3. The function param(diff) shown in FIG. 16 is used when diff is equal to or smaller than the threshold value th4. max , diff is 0 when it is greater than the threshold th5. When diff is greater than the threshold th4 and equal to or less than the threshold th5, param(diff) is 0 when it is greater than the threshold th4 and equal to or less than the threshold th5. max ) and the point (th5,0). For example, th4 = 130, th5 = 150, param max = 0.95.

[0081] According to the second modification, by providing two thresholds th4 and th5 in param(diff) used in the temporal noise removal process, the temporal noise removal level changes smoothly.

[0082] [Modification 3] Next, Modification 3 will be described, focusing on the differences from the above embodiment. The image processing system 100 in Modification 3 differs from the above embodiment in the method of spatial noise removal processing. In the image processing (see FIG. 2) executed by the image processing device 20, the processing other than spatial noise removal processing is the same as in the above embodiment.

[0083] The spatial noise removal unit 28 of the image processing device 20 is configured with a hardware circuit such as an FPGA. The spatial noise removal unit 28 includes a line memory that stores pixel values ​​for a predetermined number of lines of a target frame. Here, the direction of the lines in the image is assumed to be the horizontal direction. As part of the spatial noise removal process, the spatial noise removal unit 28 averages, for each pixel of the target frame, the pixel and its surrounding pixels. The range of surrounding pixels in the direction parallel to the line (horizontal direction) is wider than the range of surrounding pixels in the direction perpendicular to the line (vertical direction). In other words, the number of pixels in the horizontal direction of the spatial filter is greater than the number of pixels in the vertical direction.

[0084] FIG. 17 shows an example of a spatial filter (11×3) used in the spatial noise removal process of Modification 3. Modification 3 uses a horizontally long spatial filter. The weighting coefficient at each position in the filter is W(i, j). The input pixel value at the pixel position (x, y) of the current frame (target frame) is expressed as I n (x, y). The output pixel value S after spatial noise removal processing at pixel position (x, y) n (x, y) is calculated by equation (8). Here, 33 (11×3) pixel values ​​are averaged.

[0085] According to Modification 3, the spatial filter used in the spatial noise removal process has a larger number of pixels in the horizontal direction than in the vertical direction. This makes it possible to reduce the number of lines for which data is stored in the line memory when the spatial noise removal unit 28 is implemented using an FPGA or the like, thereby reducing the capacity of the line memory.

[0086] Although a spatial filter of 11×3 (33 pixels) is used in the third modification, a spatial filter of a size close to the 7×7 (49 pixels) shown in Fig. 7 may also be used. For example, the spatial filter may be 15×3 (45 pixels).

[0087] [Modification 4] Next, Modification 4 will be described, focusing on the differences from the above embodiment. In the image processing system 100 of Modification 4, the images of each frame constituting a time-series image are Bayer images. Furthermore, the image processing system 100 of Modification 4 differs from the above embodiment in the method of spatial noise removal processing. In the image processing (see FIG. 2) executed by the image processing device 20, the processing other than spatial noise removal processing is the same as in the above embodiment.

[0088] The spatial noise removal unit 28 of the image processing device 20 performs spatial noise removal processing on each of the multiple frames constituting the time-series image. The spatial noise removal processing is a process of taking the average of each pixel of the target frame, which is a Bayer image, and the surrounding pixels of the same color as the pixel.

[0089] In order for the image sensor 13 to obtain a color image, an R (red), G (green), or B (blue) filter 12 is arranged at each pixel. A Bayer image is an image that contains the luminance values ​​output from each image sensor 13 (sensor) as they are. In other words, each pixel of a Bayer image contains only one of R, G, or B information.

[0090] Fig. 18A shows an example of a Bayer array. Fig. 18B shows an example of a spatial filter for a Bayer image. The weighting coefficient at each position in the filter is W(i, j). The input pixel value at the pixel position (x, y) of the current frame (target frame) is expressed as I n (x, y). The output pixel value S after spatial noise removal processing at pixel position (x, y) n (x, y) is calculated by equation (9).

[0091] In a Bayer image, pixel values ​​of the same color (R, G, or B) appear every two pixels in both the vertical and horizontal directions. Therefore, by using the spatial filter shown in Fig. 18B, it is possible to extract only information of the same color and remove spatial noise.

[0092] 19 and 20 show examples of input images and output images for each input image displayed as Bayer images. The output image is the final image output as a result of image processing performed on the input image. In the Bayer image state, pixel values ​​corresponding to different colors (R, G, or B) are displayed for each pixel. FIG. 19 shows an example in which stationary time-series image data is targeted. FIG. 20 shows an example in which moving time-series image data is targeted.

[0093] Figures 21 and 22 show colorized versions of the input and output images shown in Figures 19 and 20, respectively. Colorization involves interpolating colors not present in each pixel from neighboring pixels and representing each pixel using a combination of RGB (demosaicing). Colorization of a Bayer image can sometimes result in false colors, but image processing can suppress these false colors. In Figure 22, moving pixels are output without undergoing temporal noise removal processing, thereby avoiding the side effects of removing temporal noise. Note that the drawings are shown in monochrome because color cannot be expressed in the figures.

[0094] According to the fourth modification, the spatial noise removal unit 28 performs spatial noise removal processing by averaging, for each pixel of the Bayer image, the pixel and surrounding pixels of the same color as the pixel. The spatial noise removal unit 28 takes the average of pixels of the same color among R, G, and B, and therefore can remove spatial noise for each color of R, G, and B.

[0095] [Variation 5] Next, Variation 5 will be described, focusing on the differences from the above embodiment. In the above embodiment and Variations 1 to 4, cases where pixel values ​​correspond to density values ​​have been described, but in the image processing system 100 of Variation 5, pixel values ​​of time-series images are numerical values ​​representing distance. In Variation 5, pixel values ​​of image data processed by the image processing device 20 indicate the distance to the object corresponding to each pixel.

[0096] Assume that the camera 10 is a twin-lens stereo camera. In this case, the control unit 21 of the image processing device 20 calculates the parallax for an object in two images captured by the two cameras, and calculates the distance from the camera 10 to the object. For example, the control unit 21 calculates the parallax and calculates the distance value using the method described in Japanese Patent Application Laid-Open No. 2012-109788.

[0097] Note that the signal processing unit 14 of the camera 10 may calculate the distance from the camera 10 to the object instead of the control unit 21 of the image processing device 20. Alternatively, the control unit 21 of the image processing device 20 may acquire an image in which the pixel values ​​are distance values ​​obtained by scanning with a laser.

[0098] The processing after acquiring an image in which the distance values ​​are used as pixel values ​​is the same as the image processing in the above embodiment (see FIG. 2).

[0099] According to the fifth modification, it is possible to improve the image quality of an image in which pixel values ​​are distance values ​​while avoiding side effects caused by removing time noise.

[0100] The above-described embodiments and modifications are merely examples of the image processing device, image processing method, and program according to the present invention, and the present invention is not limited to these. The detailed configuration and operation of each part constituting the device may be modified as appropriate without departing from the spirit of the present invention.

[0101] For example, the characteristic processes in the above-described embodiment and each modification may be combined. Furthermore, the pixel values ​​of the time-series images are not limited to density values ​​and distance values, and may be values ​​having other meanings.

[0102] Furthermore, when the temporal noise removal unit 27 generates an image after the temporal noise removal process for the target frame, it may use a frame temporally subsequent to the target frame in addition to the target frame and a frame earlier than the target frame.

[0103] The computer-readable medium for storing the program for executing each process is not limited to the above examples, and a portable recording medium such as a CD-ROM may also be used. Furthermore, a carrier wave may be used as a medium for providing program data via a communication line.

[0104] The image processing device, image processing method, and program according to the present invention can be used in the technical field of image processing for moving images.

[0105] REFERENCE SIGNS LIST 10 camera 11 lens 12 filter 13 imaging element 14 signal processing unit 20 image processing device 21 control unit 22 operation unit 23 display unit 24 communication unit 25 storage unit 26 image processing unit 27 time noise removal unit 28 spatial noise removal unit 29 output value determination unit 100 image processing system

Claims

1. An image processing device that processes each of a plurality of frames constituting a time-series image as a target frame, comprising: a first processing unit that performs temporal noise removal processing for each pixel based on the target frame and a frame earlier than the target frame, and generates a first processed image for the target frame; a second processing unit that performs spatial noise removal processing on the target frame, and generates a second processed image for the target frame; and an output value determination unit that outputs the pixel value of the first processed image for each pixel of the target frame if the absolute value of the difference between the pixel value of the first processed image and the pixel value of the second processed image is equal to or less than a predetermined value, and outputs the pixel value of the target frame if the absolute value of the difference is greater than the predetermined value.

2. An image processing device as described in claim 1, wherein the first processing unit uses the first processed image generated for the frame immediately preceding the target frame for the temporal noise removal processing in the target frame.

3. The image processing device according to claim 1, wherein the first processing unit takes an average of the target frame and a predetermined number of frames prior to the target frame.

4. The image processing device according to claim 1, wherein the second processing unit calculates, for each pixel of the target frame, an average of that pixel and its surrounding pixels.

5. The image processing device of claim 4, wherein the second processing unit is provided with a line memory for storing pixel values ​​for a predetermined number of lines of the target frame, and the range of the surrounding pixels in a direction parallel to the lines is wider than the range of the surrounding pixels in a direction perpendicular to the lines.

6. The image processing device according to claim 1, wherein the time-series images are Bayer images, and the second processing unit calculates, for each pixel of the target frame, an average of the pixel and surrounding pixels of the same color as the pixel.

7. An image processing device according to any one of claims 1 to 6, wherein pixel values ​​of the time-series images are density values ​​representing the density of the images.

8. An image processing device according to any one of claims 1 to 6, wherein pixel values ​​of the time-series images are numerical values ​​representing distance.

9. An image processing method for processing each of a plurality of frames constituting a time-series image as a target frame, comprising: a first processing step for performing temporal noise removal processing for each pixel based on the target frame and a frame earlier than the target frame to generate a first processed image for the target frame; a second processing step for performing spatial noise removal processing on the target frame to generate a second processed image for the target frame; and an output value determination step for, for each pixel of the target frame, outputting the pixel value of the first processed image if the absolute value of the difference between the pixel value of the first processed image and the pixel value of the second processed image is equal to or less than a predetermined value, and outputting the pixel value of the target frame if the absolute value of the difference is greater than the predetermined value.

10. A program for causing a computer of an image processing device, which processes each of a plurality of frames constituting a time-series image as a target frame, to function as: a first processing unit that performs temporal noise removal processing for each pixel based on the target frame and a frame earlier than the target frame, and generates a first processed image for the target frame; a second processing unit that performs spatial noise removal processing on the target frame, and generates a second processed image for the target frame; and an output value determination unit that outputs the pixel value of the first processed image for each pixel of the target frame if the absolute value of the difference between the pixel value of the first processed image and the pixel value of the second processed image is equal to or less than a predetermined value, and outputs the pixel value of the target frame if the absolute value of the difference is greater than the predetermined value.

Citation Information

Patent Citations

  • Image processing device and parallax information generation device

    JP2012109788A

  • Video processing device, video processing method, broadcast reception device, video imaging device, video storage device, and program

    JP2014158083A

  • Noise reduction circuit

    JP1997312788A

  • Method for removing noises from digital images

    JP2005229491A

  • Video Denoising System Based on Noise Correlation

    US20180061015A1