Image processing apparatus, training apparatus, image processing method, training method, and program

The image processing device addresses the challenge of region-specific noise reduction and super-resolution by integrating image processing units based on region maps, achieving tailored image quality for different areas.

JP2024119265APending Publication Date: 2024-09-03CANON KK
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023026043
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-22
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Existing image processing technologies struggle to perform noise reduction and super-resolution processing with different characteristics for specific regions of an image, such as emphasizing character visibility in one area and image quality in another, and lack the ability to apply these processes selectively to different areas.

Method used

An image processing device that includes feature extraction, region map estimation, and image estimation units to integrate images with different characteristics based on a region map, allowing for noise reduction and super-resolution processing tailored to specific areas of an image.

Benefits of technology

Enables image processing to achieve desired quality for each region, optimizing noise reduction and super-resolution based on area-specific needs, enhancing character visibility and image quality independently.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024119265000001
    Figure 2024119265000001
Patent Text Reader

Abstract

To provide an image processing apparatus which can apply image processing so as to obtain desired image quality for each area of an image.SOLUTION: An image processing apparatus includes: feature extraction means which extracts an intermediate feature from an input image; map estimation means which estimates an area map from the intermediate feature; first image estimation means which estimates a first image from the intermediate feature; second image estimation means which estimates a second image from the intermediate feature; output means which outputs an output image obtained by, based on the area map, merging the first image and the second image. The second image estimation means is trained to obtain desired image quality at a particular area based on the area map in the second image.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

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

[0002] There is a technology called regional noise reduction processing, which reduces noise contained in an input image and performs noise reduction processing for each subject region of the image. Patent Document 1 discloses regional noise reduction processing that divides an image into multiple subject regions based on distance information of the subject, and changes the strength and number of executions of a preset low-pass filter process based on the spatial frequency of each subject.

[0003] In recent years, noise reduction processing that applies deep learning technology has been proposed. Hereinafter, convolutional neural network will also be referred to as "CNN." Non-Patent Document 1 discloses a technology for performing noise reduction processing using a noise reduction CNN that performs noise reduction processing, a semantic region segmentation CNN that performs semantic region segmentation, and an image classification CNN that performs image classification. In Non-Patent Document 1, a noise reduction CNN is trained using a trained semantic region segmentation CNN and a trained image classification CNN, and noise reduction processing that improves the accuracy of semantic region segmentation and image classification is learned.

[0004] Non-Patent Document 2 discloses a CNN that simultaneously performs noise reduction and semantic region segmentation on brain tomographic images acquired by magnetic resonance imaging (MRI). This CNN consists of two modules: one that performs semantic region segmentation on the input image, and the other that performs noise reduction, and performs noise reduction using features from the intermediate layer in the semantic region segmentation. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] JP 2010-147660 A [Non-patent literature]

[0006] [Non-Patent Document 1] Ding Liu,Bihan Wen,Xianming Liu,Zhangyang Wang,Thomas S.Huang,“When Image Denoising Meets High-Level Vision Tasks:A Deep Learning Approach”,arXiv1706.04284,2017 [Non-Patent Document 2] Zhiwen Fan, Liyan Sun, Xinghao Ding, Yue Huang, Congbo Cai, John Paisley, “A Segmentation-aware Deep Fusion Network for Compressed Sensing MRI”, arXiv:1804.01210, 2018 Summary of the Invention [Problem to be solved by the invention]

[0007] There are cases where it is desirable to simultaneously realize image processing such as noise reduction processing and super-resolution processing with different characteristics for each region of an image. For example, there are cases where it is desirable to perform noise reduction processing that emphasizes visibility on characters and people present in an image, and perform noise reduction processing that emphasizes image quality on other regions. In other cases, there are cases where it is desirable to perform noise reduction processing on characters and people so as to improve the accuracy of character classification and person detection in order to perform image recognition processing on the characters and people, and perform noise reduction processing that emphasizes image quality on other regions.

[0008] In Patent Document 1, noise reduction processing is performed by changing the processing contents of low-pass filter processing within preset parameters related to low-pass filter processing for each subject region, and there are limitations to the noise reduction processing performed for each region.

[0009] In Non-Patent Document 1, the noise-reduced image from the noise-reduced CNN is input to another network that performs a high-level recognition task, and the noise-reduced CNN is trained using the loss of that task and the loss for noise reduction. This allows the CNN to learn a noise reduction process that improves the accuracy of the high-level recognition task. If semantic region segmentation is selected as the high-level recognition task, a noise reduction process that improves the category classification accuracy for each region can be learned. However, in the method of Non-Patent Document 1, it is not possible to set an area to which noise reduction processes with different characteristics are applied, and the noise reduction process that improves the category classification accuracy is applied to the entire image. In addition, in the method of Non-Patent Document 2, it is not possible to set an area to which noise reduction processes with different characteristics are applied, and the noise reduction process with the same characteristics is applied to the entire image.

[0010] The present invention has been made in view of the above circumstances, and has an object to provide an image processing device that can perform image processing to obtain a desired image quality for each area of ​​an image. [Means for solving the problem]

[0011] The image processing device of the present invention comprises a feature extraction means for extracting intermediate features from an input image, a map estimation means for estimating a region map from the intermediate features, a first image estimation means for estimating a first image from the intermediate features, a second image estimation means for estimating a second image from the intermediate features, and an output means for outputting an output image that integrates the first image and the second image based on the region map, wherein the second image estimation means learns so that a specific region in the second image based on the region map will have a predetermined image quality. Effect of the Invention

[0012] According to the present invention, it is possible to perform image processing for each area of ​​an image so as to obtain a desired image quality. [Brief description of the drawings]

[0013] [Figure 1] FIG. 2 is a diagram illustrating a noiseless image and a noisy image. [Diagram 2] FIG. 2 is a diagram illustrating an example of a hardware configuration of an image processing apparatus. [Diagram 3] FIG. 2 is a diagram illustrating an example of a functional configuration of an image processing device. [Figure 4] 11 is a flowchart illustrating an example of a process at runtime. [Diagram 5] FIG. 2 is a diagram illustrating an example of a functional configuration of a learning device. [Figure 6] 13 is a flowchart showing an example of a process during learning. [Figure 7] FIG. 2 is a diagram illustrating a configuration of a neural network. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. Note that the configurations shown in the embodiments described below are merely examples, and the present invention is not limited to the configurations shown in the drawings.

[0015] <Embodiment 1> In this embodiment, an example of noise reduction processing is described in which an image before it is degraded by noise (hereinafter also referred to as a noiseless image or an undegraded image) is estimated from an image degraded by noise (hereinafter also referred to as a noisy image or a degraded image).

[0016] FIG. 1(a) is a diagram showing an example of a noiseless image before it is degraded by noise. A ship floating on the ocean is shown in a noiseless image 101 shown as an example in FIG. 1(a). In FIG. 1(a), 102 and 103 are regions of characters written on the hull, and 104 is a region other than the character region. FIG. 1(b) is a diagram showing an example of a noisy image 105 of the same scene as the noiseless image 101 shown in FIG. 1(a), but in which degradation due to noise has occurred. In FIG. 1(b), 106 and 107 are regions of characters written on the hull, which are located at the same positions as the regions 102 and 103 in FIG. 1(a), respectively, and 108 is a region other than the character region.

[0017] The noise is assumed to be generated in the process of converting photons detected by a sensor into a digital signal, but is not limited to this and may be other noises. Noise sources include photon shot noise, readout noise, dark current noise, quantization error, etc., and these are assumed to be modeled. In other words, it is assumed that a noisy image (e.g., image 105 shown in FIG. 1(b)) can be generated by artificially generating noise using a noise model and adding it to a noiseless image (e.g., image 101 shown in FIG. 1(a)).

[0018] Noise reduction processing is basically processing for reconstructing a noiseless image such as image 101 shown in Fig. 1(a) from a noisy image such as image 105 shown in Fig. 1(a). In the noise reduction processing of this embodiment, for character regions in an image, reconstruction is performed with emphasis on the visibility of characters rather than image quality, and for regions other than the character regions in the image, reconstruction is performed with emphasis on image quality. That is, in this embodiment, noise reduction processing that emphasizes the visibility of characters is realized for character regions in an image, and noise reduction processing that emphasizes image quality with different characteristics from that for character regions is realized for regions other than the character regions in the image.

[0019] 2 is a block diagram showing an example of the hardware configuration of an image processing device in this embodiment. The image processing device 200 has a CPU 201, a memory 202, a storage unit 203, an input unit 204, a display unit 205, a communication unit 206, and a system bus 207. The CPU 201, the memory 202, the storage unit 203, the input unit 204, the display unit 205, and the communication unit 206 are connected to each other so as to be able to communicate with each other via the system bus 207. Note that the image processing device 200 may further have other configurations.

[0020] The CPU (Central Processing Unit) 201 is responsible for the overall control of the image processing device 200. The CPU 201 controls the operation of each functional unit connected via, for example, a system bus 207. The memory 202 stores programs and various data used by the CPU 201 for processing. The memory 202 also functions as a main memory, a work area, and the like for the CPU 201. The CPU 201 executes processing based on the programs stored in the memory 202 to realize functions and processing of the image processing device described later. Note that the functions and processing of the image processing device described later may be realized using a processor other than the CPU. For example, a GPU (Graphics Processing Unit) may be used instead of the CPU.

[0021] The storage unit 203 stores, for example, various data required when the CPU 201 performs processing related to a program. The storage unit 203 also stores, for example, various data obtained by the CPU 201 performing processing related to a program. The storage unit 203 may store the programs and various data used by the CPU 201 for processing. The input unit 204 has an operation member such as a mouse or a button, and inputs user operations to the image processing device 200. The display unit 205 has a display member such as a liquid crystal display, and displays the results of processing by the CPU 201. The communication unit 206 connects the image processing device 200 to a network and controls communication with other devices. The hardware configurations of a learning device described later and image processing devices and learning devices in other embodiments are similar to the hardware configuration of the image processing device shown in FIG.

[0022] Fig. 3(a) is a block diagram showing an example of a functional configuration of an image processing device in embodiment 1. Fig. 3(a) shows an example of a functional configuration for performing processing at runtime of the image processing device in embodiment 1. Here, runtime refers to the execution of noise reduction processing on an image. The image processing device 300 has an acquisition unit 301, a feature extraction unit 302, a map estimation unit 303, a first image estimation unit 304, a second image estimation unit 305, an integration unit 306, and an output control unit 307. The functions of each of these blocks will be described with reference to Fig. 4(a) etc.

[0023] FIG. 4A is a flowchart showing an example of a process (noise reduction process) during runtime of the image processing device according to the first embodiment. In step S401, the acquisition unit 301 acquires image data of an input image. The image data acquired by the acquisition unit 301 is image data of a noisy image to be subjected to noise reduction processing. The image data may be an image having three channels of RGB, or may be a grayscale or hyperspectral image. In addition, data other than an image may be added to the input data. For example, in the following document A, a noise level map is estimated from a noisy image in the previous stage, and the noisy image and the estimated noise level map are linked and input to a noise reduction network in the subsequent stage to reconstruct a noise-reduced image. As in this example, information other than an image may be input in association with the noisy image.

[0024] Literature A: Shi Guo, Zifei Yan, Kai Zhang, Wangmeng Zuo, Lei Zhang, “Toward Convolutional Blind Denoising of Real Photographs”, CVPR2019, 2019

[0025] In step S402, the feature extraction unit 302 extracts intermediate features from the image data acquired in step S401. The processes in steps S402 to S406 in the flowchart in Fig. 4(a) can be realized by one neural network, for example, as shown in Fig. 7(a). In Fig. 7(a), 701 is a part that handles the process corresponding to the intermediate feature extraction in step S402, and performs hierarchical encoding and decoding on an input image 702 using a convolutional layer, a pooling layer, etc., to generate intermediate features 703.

[0026] In step S403, the map estimation unit 303 estimates a region map from the intermediate features extracted in step S402 using a trained model obtained by a training process described later. The region map is a map indicating whether the region is one that emphasizes image quality (emphasis on noise reduction processing with emphasis on image quality) or one that emphasizes character visibility (emphasis on noise reduction processing with emphasis on character visibility). In this embodiment, the region map is a map indicating a specific region in the image to be processed that emphasizes character visibility, that is, a map of a character region. This map is assumed to be a one-channel map having the same vertical and horizontal sizes as the input image. In addition, each pixel of the map is assumed to take a real value from 0 to 1, and the closer the value is to 1, the higher the likelihood of the pixel being a character. That is, in this embodiment, a region close to 1 is treated as a region that emphasizes character visibility, and a region close to 0 is treated as a region that emphasizes image quality. In FIG. 7(a), 704 is the region map. This region map 704 is assumed to be estimated in a convolutional layer from the intermediate features 703, and further multiplied by a sigmoid activation function. However, the intermediate features for estimating the region map 704 are not limited to 703. For example, it may be the output of the first convolutional layer of 701, or the output of a layer near the middle. In addition, the number of convolutional layers for estimating the region map 704 is not limited, and it may be estimated via a multi-layer network composed of any number of convolutional layers, activation layers, etc.

[0027] In step S404, the first image estimation unit 304 estimates the first image from the intermediate features extracted in step S402 using a trained model obtained by a training process described later. In this embodiment, the first image refers to an image with emphasis on image quality that is reconstructed as a noise reduction process with emphasis on image quality. The first image (image with emphasis on image quality) is an image that has the same vertical and horizontal sizes as the input image and the same number of channels. In FIG. 7(a), 705 is the first image. This first image 705 is estimated from the intermediate features 703 in a convolution layer. However, the intermediate features for estimating the first image 705 are not limited to 703, and may be intermediate features at any location of 701, similar to the region map 704. In addition, the number of convolution layers for estimating the first image 705 is not limited, and may be estimated via a multi-layer neural network composed of any number of convolution layers, activation layers, etc.

[0028] In step S405, the second image estimation unit 305 estimates the second image from the intermediate features extracted in step S402 using a trained model obtained by a training process described later. In this embodiment, the second image refers to an image with emphasis on character visibility that is reconstructed as a noise reduction process with emphasis on character visibility. The second image (image with emphasis on character visibility) is also an image with the same vertical and horizontal sizes and the same number of channels as the input image. In FIG. 7(a), 706 is the second image. This second image 706 is estimated from the intermediate features 703 in a convolution layer, similar to the first image 705. However, the intermediate features for estimating the second image 706 are not limited to 703, and may be intermediate features at any location of 701, similar to the region map 704 and the first image 705. In addition, the number of convolution layers for estimating the second image 706 is not limited, and may be estimated via a multi-layer neural network composed of any number of convolution layers, activation layers, etc.

[0029] In step S406, the integration unit 306 generates and outputs a final output image (an image subjected to noise reduction processing) based on the estimation results in steps S403, S404, and S405. The integration unit 306 is an example of an output means. The integration unit 306 uses the area map estimated in step S403, the first image estimated in step S404, and the second image estimated in step S405, and integrates the first image and the second image based on the area map to generate an output image. At this time, the integration unit 306 integrates the first image by increasing (strongly contributing) the ratio of pixel information of the first image for areas where image quality is important, and by increasing (strongly contributing) the ratio of pixel information of the second image for areas where character visibility is important.

[0030] Each pixel in the region map takes a real value between 0 and 1, and regions close to 1 are regions where text visibility is important. If the region map is map2, the first image is img1, and the second image is img2, the integrated image img final can be generated by the following calculation: That is, an integrated image (output image) can be generated by integrating the first image and the second image for each pixel at a ratio according to the value indicated by the region map.

[0031]

number

[0032] Here, the region map map2 may be binarized using a predetermined threshold value, for example, to take a real value of 0 or 1. In this case, an integrated image is generated in which the region where the region map value is 0, i.e., the region where emphasis is placed on image quality, is the first image, and the region where the region map value is 1, i.e., the region where emphasis is placed on character visibility, is the second image.

[0033] Also, the integrated image img finalRegarding the above, conversion to an appropriate scale or data type is performed as appropriate. For example, consider a case where each pixel of the input image 702, first image 705, and second image 706 in the neural network shown in Fig. 7(a) has been trained to take a real value between 0 and 1, and the original images for training are of unsigned 8-bit integer type. In this case, to convert to an unsigned 8-bit image format, the value of each pixel of the integrated image is multiplied by 255 and cast to an unsigned 8-bit integer type (data type conversion).

[0034] In step S407, the output control unit 307 performs control to output each generated image to an output device. In this step S407, the output image (integrated image) generated in step S406 may be drawn on a display device such as a display, and the data generated in the processing up to step S407 may be visualized. Furthermore, if there is no need to display immediately, the processing of step S407 may not be performed, and each generated image, etc. may be appropriately stored in a storage device, etc., and output when it is to be displayed.

[0035] For example, the area map estimated and generated in step S403 indicates a specific area in the image that prioritizes the visibility of characters. This area that prioritizes the visibility of characters is an area that is integrated by increasing the ratio of pixel information of the second image (i.e., the image with emphasis on the visibility of characters) in the generation of the integrated image. When drawing on a display device, this area map may be displayed superimposed on the integrated image. Specifically, display control may be performed in which the edge of the specific area is extracted from the area map and the edge is superimposed on the integrated image in an appropriate color such as red, or display control may be performed in which the area of ​​the area map whose value is close to 1 is colored blue or red. By displaying the specific area that prioritizes the visibility of characters in this way, the user can easily understand which area the image estimation with emphasis on the visibility of characters has been performed. In addition, the area map, the first image, and the second image may be displayed separately, and the subject position of the visual target, the image with emphasis on image quality, and the image with emphasis on visibility may be displayed at a glance. The above is the process during runtime of the image processing device in the first embodiment.

[0036] Next, a learning device that performs learning related to the above-mentioned noise reduction processing will be described. As described above, the hardware configuration of the learning device is the same as the hardware configuration of the image processing device shown in FIG.

[0037] Fig. 5(a) is a block diagram showing an example of the functional configuration of the learning device in embodiment 1. The learning device 500 includes a learning data storage unit 501, an embedding unit 502, a degradation processing unit 503, a feature extraction unit 504, a map estimation unit 505, a first image estimation unit 506, and a second image estimation unit 507. The learning device 500 also includes a map loss calculation unit 508, a first image loss calculation unit 509, a second image loss calculation unit 510, and a parameter update unit 511. The functions of each of these blocks will be described with reference to Fig. 6(a) etc.

[0038] FIG. 6(a) is a flowchart showing an example of processing during learning by the learning device in the first embodiment. In step S601, each functional unit of the learning device 500 performs settings related to learning. In this embodiment, the feature extraction unit 504, the map estimation unit 505, the first image estimation unit 506, and the second image estimation unit 507 are realized by the neural network shown in FIG. 7(a), and an example of learning of the neural network will be described. When learning a neural network model from scratch, the initial values ​​of the parameters of each layer of the model are set. On the other hand, when additionally learning learned parameters, the learned parameters are set. In addition, hyperparameters related to learning are set. In this embodiment, learning is performed by the stochastic gradient descent method. Therefore, for example, a mini-batch size, a learning coefficient, and parameters of a solver of the stochastic gradient descent method are set as hyperparameters.

[0039] The loop L601 in the flowchart of Fig. 6(a) is a loop related to the iteration of the stochastic gradient descent method. The number of loops N may be a preset value. Also, the loop process may be terminated when the calculated loss falls below a certain value.

[0040] In step S602, the embedding unit 502 acquires learning data from the learning data storage unit 501. The learning data storage unit 501 stores image data of a noiseless image, which is an image with extremely little noise, and the embedding unit 502 acquires the image data of the noiseless image stored in the learning data storage unit 501 as learning data. The image data here is image data of an image (e.g., an RGB image, a grayscale image, a hyperspectral image, etc.) that matches the target of the noise reduction process. In addition, it is preferable that the noiseless image is an image with as few characters as possible for reasons that will be described later. In this step S602, noiseless images are acquired for the mini-batch size set in step S601.

[0041] In step S603, the embedding unit 502 performs a process of embedding the visual target to be learned in the noiseless image acquired in step S602. In this embodiment, the visual target is a character because noise reduction processing that places importance on the visibility of the character is performed. The embedding unit 502 embeds the character in an appropriate place in the noiseless image, and further generates a character area map indicating the area of ​​the embedded character.

[0042] The number, position, type, font, font size, color, etc. of characters to be embedded may be selected randomly. At that time, adjustments such as reducing overlap between characters are made as appropriate. The character area map generated in step S603 is a map with two values, 1 for character areas and 0 for areas other than character areas. The character area may be a circumscribing rectangle of the character, or a shape that matches the shape of the character. Thereafter, the embedded character and character position information (i.e., coordinate information of the circumscribing rectangle of the character) are treated as character GT, and the character area map is used as area GT in subsequent processing. GT is an abbreviation for Ground Truth and represents the correct answer value.

[0043] In this way, since characters are artificially embedded in an image and information on the embedded characters is used as training data, it is desirable that the noiseless image stored in the learning data storage unit 501 is an image that does not contain characters as much as possible. If an image originally contains characters, the characters will have no training data, and even if the position of the characters is correctly detected by the map estimation unit 505, it will be treated as a false detection and normal learning will not be possible. However, if such cases are few in number, the impact on learning is limited, so it is acceptable for the image to contain a small amount of characters. In addition, a method in which the GT (position and type) of the characters is manually annotated for an image including a character area, or a method in which the GT is automatically generated by applying a recognition process such as OCR, can be used. In this case, the processing of step S603 may be avoided by creating a character GT in advance and storing it in the learning data storage unit 501 in association with the image.

[0044] In step S604, the degradation processor 503 performs degradation processing on the image and adds noise to the noiseless image with embedded text. As described above, the noise is assumed to be generated in the process of converting photons detected by the sensor into a digital signal, and the noise is assumed to be modeled. The degradation processor 503 generates noise from a noise model and adds it to the noiseless image to artificially generate a noisy image.

[0045] In step S605, the feature extraction unit 504 extracts intermediate features from the image data to which noise has been added in step S604. In step S606, the map estimation unit 505 estimates a region map from the intermediate features extracted in step S605. In step S607, the first image estimation unit 506 estimates a first image from the intermediate features extracted in step S605. In step S608, the second image estimation unit 507 estimates a second image from the intermediate features extracted in step S605. The processes of steps S605 to S608 are implemented by the neural network shown in Fig. 7(a) in the same manner as the processes at runtime described above. The processes of steps S605 to S608 are similar to the processes of steps S402 to S405 in the processes at runtime shown in Fig. 4(a) described above, respectively, and therefore will not be described in detail.

[0046] In step S609, the map loss calculation unit 508, the first image loss calculation unit 509, and the second image loss calculation unit 510 calculate a loss for model learning. The loss is generally an index showing the performance of the model, and is calculated using a loss function based on the inference result inferred by the model and the GT. An appropriate loss function is selected depending on the task of the model to calculate the loss. The map loss calculation unit 508, the first image loss calculation unit 509, and the second image loss calculation unit 510 are examples of loss calculation means.

[0047] The map loss calculation unit 508 calculates the region map loss, which is a loss for training the map estimation unit 505. Each pixel of the region map estimated by the map estimation unit 505 is a real value ranging from 0 to 1, and the closer the value is to 1, the more important the region is in terms of the visibility of characters. For example, the loss function for the binary classification problem is used as the loss function, since the closer the value is to 1, the more important the region is in terms of the visibility of characters. An example of the loss function for the binary classification problem is the logistic sigmoid function, but is not limited to this. For example, when the area of ​​the region that emphasizes the visibility of characters is significantly smaller than the area of ​​the region that emphasizes the image quality, Focal Loss may be used as the loss function in consideration of the imbalance. In the calculation of the region map loss, the GT uses the region GT generated in step S603. In this embodiment, the neural network shown in FIG. 7(a) is used as a model for performing the noise reduction process, but here, the map loss calculation unit 508 calculates the loss between the region map 704 and the region GT.

[0048] The first image loss calculation unit 509 calculates the first image loss, which is a loss for training the first image estimation unit 506. As described above, the first image is an image that prioritizes image quality, and the area that prioritizes image quality is in an exclusive relationship with the area that prioritizes character visibility. The first image loss calculation unit 509 calculates the first image loss by performing the following two-stage calculation.

[0049] In the first step, the first image loss calculation unit 509 calculates the loss for learning image reconstruction for each pixel. As the loss function, the loss used in the regression problem (L2 loss or L1 loss) is used, and as the GT, the noiseless image acquired in step S602 is used. In the neural network model shown in FIG. 7(a), the first image loss calculation unit 509 calculates the loss between the first image 705 and the noiseless image.

[0050] In the second step, the first image loss calculation unit 509 masks the loss calculated for each pixel using the region GT. The region GT is a map in which the value of pixels corresponding to the region in which the visibility of characters is important is set to 1. The region GT is referred to as map2. GT , the mask used is map1 GT The first image loss calculation unit 509 calculates map1 GT is generated by the following formula: map1 GT =1-map2 GT

[0051] The first image loss calculation unit 509 calculates the loss of pixels corresponding to the area in which image quality is important from the loss of each pixel calculated in the first step as a mask map1. GT Then, the first image loss calculation unit 509 accumulates the loss for each pixel using the mask map1. GT and calculates the loss only in the area where image quality is emphasized by dividing the accumulated loss (the sum of losses of pixels corresponding to the area where image quality is emphasized) by the number of elements. In this way, first image loss calculation unit 509 calculates the first image loss in the area where image quality is emphasized.

[0052] The second image loss calculation unit 510 calculates the second image loss, which is a loss for training the second image estimation unit 507. As described above, the second image is an image that prioritizes character visibility. The second image loss uses two losses: a reconstruction loss for training image reconstruction and a character classification loss.

[0053] The reconstruction loss is calculated in two steps, similar to the first image loss. In the first step, the second image loss calculation unit 510 uses the loss used in the regression problem and the noiseless image acquired in step S602 as GT to calculate the loss for each pixel. In the second step, the second image loss calculation unit 510 masks the loss calculated for each pixel using the region GT. The mask is map2, which is the region GT. GT That is, the second image loss calculation unit 510 calculates the loss of pixels corresponding to the region in which the visibility of characters is important by using the mask map2. GT Then, the second image loss calculation unit 510 collects and accumulates the accumulated loss using the mask map2 GT The reconstruction loss of the region where the visibility of the characters is important is calculated by dividing by the number of elements whose value is 1 in

[0054] Next, we will explain character classification loss. An image of drawn characters is input, and a neural network that classifies the type of character is trained in advance. This neural network is called a character classification model. The size of this input image is a predetermined width and height, and the color is grayscale, making it a one-channel image. Note that the trained character classification model used here is used as a fixed model without being trained during this training process.

[0055] The second image loss calculation unit 510 cuts out a second image corresponding to a character region from the second image estimated in step S608, using the position information of the embedded character (for example, coordinate information of the circumscribing rectangle of the character) generated in step S603. Next, the second image loss calculation unit 510 resizes the cut-out image to the input image size of the character classification model, and further converts it to grayscale. If the second image is originally a grayscale image, the conversion to grayscale here is not necessary. The second image loss calculation unit 510 inputs the resized and grayscale converted image to the character classification model, and calculates the character classification loss based on the character classification result inferred by the character classification model and the information of the embedded character generated in step S603. The loss function used here may be any loss function for a multi-class classification problem, and an example of the loss for a multi-class classification problem is softmax cross entropy loss.

[0056] The second image loss calculation unit 510 mixes the reconstruction loss and the character classification loss for the second image calculated in this way with an appropriate weight. Since the visibility of the characters is emphasized here, it is preferable to increase the weight of the character classification loss. In this way, the second image loss calculation unit 510 calculates the second image loss in the area where the second image is emphasized.

[0057] Through the above process, the region map loss, the first image loss, and the second image loss are calculated, and these three losses are mixed to obtain the final loss. The weights for mixing the three losses may be fixed, or may be dynamically changed so that the relative magnitudes of the three losses are constant.

[0058] In step S610, the parameter update unit 511 updates the parameters of the neural network model. In the case of the neural network shown in Fig. 7(a) used in this embodiment, the parameter update unit 511 determines the amount of update of the parameters of each layer by the backpropagation learning method based on the loss calculated in step S609, and updates the parameters. The above is the processing during learning in embodiment 1. Through these processing, parameters for the feature extraction unit 302, the region map estimation unit 303, the first image estimation unit 304, the second image estimation unit 305, and the like, which are used during runtime of the image processing device 300, are learned.

[0059] The image processing device 300 in the first embodiment estimates a second image by the second image estimation unit 305 that has been trained so that a specific region based on the region map will have the desired image quality with emphasis on character visibility. Then, the image processing device 300 outputs an integrated image (output image) obtained by integrating, based on the region map, a first image with emphasis on image quality reconstructed with emphasis on image quality as noise reduction processing and a second image with emphasis on character visibility reconstructed with emphasis on character visibility as noise reduction processing. This makes it possible to perform suitable noise reduction processing for the region in the noisy image that emphasizes image quality and the region in the noisy image that emphasizes visibility, respectively, and image processing that provides the desired image quality according to the target to be emphasized can be performed for each region of the image.

[0060] In addition, by learning noise reduction processing that prioritizes image quality and noise reduction processing that prioritizes character visibility, it is possible to perform noise reduction processing optimized for noisy images, thereby achieving more appropriate noise reduction processing for each region.

[0061] <Modification 1 of the First Embodiment> In the above-described first embodiment, the image processing device 300 integrates the first image and the second image, but the present embodiment is not limited to this. For example, the first image, the second image, and the area map may be output without being integrated. An example of the runtime processing of the image processing device in this case is shown in FIG. 4(b). FIG. 4(b) is a flowchart showing another example of the runtime processing (noise reduction processing) of the image processing device in the first embodiment.

[0062] In step S421, the acquisition unit 301 acquires image data of a noisy image to be subjected to noise reduction processing. In step S422, the feature extraction unit 302 extracts intermediate features from the image data acquired in step S421. In step S423, the map estimation unit 303 uses the trained model to estimate a region map from the intermediate features extracted in step S422.

[0063] In step S424, the first image estimation unit 304 estimates a first image from the intermediate features extracted in step S422, using the trained model. In step S425, the second image estimation unit 305 estimates a second image from the intermediate features extracted in step S422, using the trained model. The processing in steps S421 to S425 is similar to the processing in steps S401 to S405 in the runtime processing shown in FIG. 4(a) described above, and therefore a detailed description thereof will be omitted.

[0064] In step S426, the output control unit 307 performs processing for controlling the output of the generated first image, second image, and area map, processing for superimposing and displaying the area map on the first image and second image, etc. Note that the first image, second image, and area map may be used in another system without performing the output processing in step S426.

[0065] <Modification 2 of the First Embodiment> In the above-described first embodiment, the image processing device 300 generates the first image and the second image at an intermediate stage, but the present embodiment is not limited to this. For example, an integrated image may be generated without generating the first image and the second image. An example of the process at runtime of the image processing device in this case is shown in FIG. 4(c). FIG. 4(c) is a flowchart showing another example of the process at runtime (noise reduction process) of the image processing device in the first embodiment.

[0066] In step S441, the acquisition unit 301 acquires image data of a noisy image to be subjected to noise reduction processing. In step S442, the feature extraction unit 302 extracts intermediate features from the image data acquired in step S441. In step S443, the map estimation unit 303 uses the trained model to estimate a region map from the intermediate features extracted in step S442. The processing in steps S441 to S443 is similar to the processing in steps S401 to S403 in the runtime processing shown in FIG. 4(a) described above, and therefore a detailed description thereof will be omitted.

[0067] In step S444, the image estimation unit performs convolution using a different kernel for each region based on the region map generated in step S443, and estimates an integrated image from the intermediate features extracted in step S442. The estimation of the integrated image in step S444 will be described with reference to Fig. 7(b). Fig. 7(b) is a diagram showing an example of a neural network assumed in this modified example 2.

[0068] In Fig. 7(b), 721 is an input image to be processed, and 722 is intermediate features generated from the input image 721. The neural network shown in Fig. 7(b) has a convolution layer 723 that performs convolution with a different kernel for each region, and convolves the intermediate features 722 to generate an integrated image 724. The convolution layer 723 that performs convolution using a different kernel for each region will be described below.

[0069] In FIG. 7(b), 725 is a region map similar to the region map 704 shown in FIG. 7(a). Also, 726 is a convolution kernel for generating a first image to be reconstructed with emphasis on image quality, and 727 is a convolution kernel for generating a second image to be reconstructed with emphasis on character visibility. The convolution layer 723 mixes the kernel 726 and the kernel 727 with the region map 725 as the mixing ratio for each location, and performs a convolution operation using the mixed kernel. The mixed kernel w(i,j) at position (i,j) in the image is generated by the following operation. π(i,j) is the value of the region map at position (i,j), w1 is the kernel of the convolution layer that generates the first image, and w2 is the kernel of the convolution layer that generates the second image.

[0070]

number

[0071] Here, the value π(i,j) of the region map at position (i,j) is the score (a real value between 0 and 1) of the region that prioritizes character visibility. Therefore, the value (1-π(i,j)) represents the score of the region that prioritizes image quality. Using the kernels that differ for each location thus generated, the image estimation unit generates an integrated image 724.

[0072] In step S445, the output control unit 307 performs processing such as controlling the output of the generated integrated image. The output control unit 307 may also perform processing such as superimposing and displaying a region map on the generated integrated image. Note that the integrated image and the region map may be used in another system without performing the output processing in step S445.

[0073] <Modification 3 of the First Embodiment> In the above-mentioned embodiment 1, an example of application to noise reduction processing has been described, but the present invention is not limited to noise reduction processing, and can also be applied to other image quality improvement processing. For example, super-resolution processing is a processing for estimating an output image with a resolution increased by 4 times or 8 times the resolution of an input image, and the present invention can also be applied to this.

[0074] In the super-resolution process, a super-resolution process that emphasizes the visibility of characters, etc., apart from image quality, can be considered. By applying the above-mentioned embodiment to the super-resolution process, it is possible to realize a super-resolution process by region that emphasizes image quality and character visibility for each region. In this case, the map estimation unit, the first image estimation unit, and the second image estimation unit of the image processing device 300 estimate a region map, a first image, and a second image with a resolution of a predetermined magnification with respect to the resolution of the input image, respectively. As for the processing of each unit of the image processing device 300 other than the above, processing is performed according to the output resolution. In addition, in the learning process, the degradation processing unit 503 of the learning device performs subsampling (reducing) processing of the image to reduce the resolution of the image. By doing as described above, it is possible to realize a super-resolution process by region that switches between a super-resolution process that emphasizes character visibility, etc., and a super-resolution process that emphasizes image quality for each region.

[0075] <Embodiment 2> In the above-described first embodiment, a region-specific noise reduction process has been described in which two types of noise reduction are switched for each region: noise reduction with emphasis on image quality that aims to faithfully reproduce an image before deterioration, and noise reduction that emphasizes improving character visibility over reproducibility. The region-specific noise reduction process disclosed in the present invention can also be switched to perform noise reduction processing for visibility other than character visibility.

[0076] In the second embodiment, an example of noise reduction processing in which a noise reduction processing that emphasizes image quality, a noise reduction processing that emphasizes character visibility, and a noise reduction processing that emphasizes object visibility, which have different characteristics, are switched for each region, will be described. The noise reduction processing that emphasizes object visibility aims to improve the object detection accuracy. Here, object detection has a function of detecting objects of multiple categories. For example, a dataset called MS-COCO is a dataset used for object detection tasks in which object region masks and object category labels are assigned for 80 categories of objects such as people and cars. The object visibility-oriented noise reduction processing aims to perform noise reduction processing that improves the object detector score by taking the score of an object detector trained with this dataset as the score of object visibility.

[0077] As described above, the hardware configuration of the image processing device in the second embodiment is similar to the hardware configuration of the image processing device in the first embodiment shown in FIG. Fig. 3(b) is a block diagram showing an example of a functional configuration of an image processing device in embodiment 2. Fig. 3(b) shows an example of a functional configuration for performing processing at runtime of the image processing device in embodiment 2. The image processing device 500 has an acquisition unit 321, a feature extraction unit 322, a map estimation unit 323, a first image estimation unit 324, a second image estimation unit 325, a third image estimation unit 326, an integration unit 327, and an output control unit 328. The functions of each of these blocks will be described with reference to Fig. 4(d) and the like.

[0078] FIG. 4D is a flowchart showing an example of a process (noise reduction process) during runtime of the image processing device according to the second embodiment. In step S461, the acquisition unit 321 acquires image data of a noisy image that is to be subjected to noise reduction processing. In step S462, the feature extraction unit 322 extracts intermediate features from the image data acquired in step S461. The processes in steps S461 and S462 are similar to the processes in steps S401 and S402 in the runtime process shown in FIG. 4(a) in the first embodiment, and therefore a detailed description thereof will be omitted.

[0079] In step S463, the map estimation unit 323 estimates a region map from the intermediate features extracted in step S462, using a trained model obtained by a learning process described later. In this embodiment, the map estimation unit 323 estimates a first region map indicating a region where emphasis is placed on character visibility, and a second region map indicating a region where emphasis is placed on object visibility.

[0080] The first region map showing the region where character visibility is emphasized is a map showing the character region similar to that of the first embodiment. The second region map showing the region where object visibility is emphasized is a map showing the region where the detection target of the object detector exists. The shape of the region may be an object region mask such as that of the MS-COCO dataset, or may be a circumscribing rectangle of the object. In addition, the object detector is assumed to be capable of detecting objects of multiple categories. Therefore, the second region map may have channels for the number of categories of the object detector, or may group any multiple categories to have channels for the number of groups, or may integrate all categories into one channel.

[0081] As described above, in this embodiment, the map estimation unit 323 generates, as area maps, a first area map indicating an area in which character visibility is emphasized and a second area map indicating an area in which object visibility is emphasized. The first area map and the second area map are not assumed to have an exclusive relationship. However, depending on the target to be selected as an area to be subjected to area-specific noise reduction processing, an exclusive relationship may be assumed. For example, when an area of ​​vegetation and an area of ​​man-made objects are each treated as an object to be subjected to area-specific noise reduction processing, the two area maps may be in an exclusive relationship.

[0082] In step S464, the first image estimation unit 324 estimates a first image from the intermediate features extracted in step S462, using a trained model obtained by a training process described later. The first image is an image with emphasis on image quality that is reconstructed with emphasis on image quality. In step S465, the second image estimation unit 325 estimates a second image from the intermediate features extracted in step S462, using a trained model obtained by a training process described later. The second image is a character visibility-oriented image reconstructed with emphasis on character visibility. The processes in steps S464 and S465 are similar to the processes in steps S404 and S405 in the runtime process shown in FIG. 4(a) in the first embodiment, and therefore a detailed description thereof will be omitted.

[0083] In step S466, the third image estimation unit 326 estimates a third image from the intermediate features extracted in step S462, using a trained model obtained by a learning process described later. The third image is an object visibility-oriented image reconstructed with emphasis on object visibility. The third image (object visibility-oriented image) also has the same vertical and horizontal sizes and the same number of channels as the input image. The third image is estimated in a convolutional layer from the extracted intermediate features, similar to the first and second images.

[0084] In step S467, integrating unit 327 generates and outputs a noise-reduced image to be output based on the estimation results in steps S463, S464, S465, and S466. Using the first region map, second region map, first image, second image, and third image estimated in steps S463 to S466, integrating each image based on the region maps to generate an output image.

[0085] In this embodiment, there are two area maps, a first area map for a character area and a second area map for an object area, and the two are not mutually exclusive. In this case, for example, the integrated image img final can be generated by the following calculation:

[0086]

number

[0087] Here, img1 is the first image, img2 is the second image, and img3 is the third image. Furthermore, map2 is the first region map for the character region, and map3 is the second region map for the object region. If the second region map for the object region is one channel, map3 is the region map for that one channel. Furthermore, if the second region map for the object region is multiple channels, map3 is a one-channel map obtained by taking the sum in the channel direction. However, map3 is multiplied by a softmax function, and the sum in the channel direction is a value between 0 and 1. Furthermore, (map2|map3) is the OR region of map2 and map3, and (1-(map2|map3)) indicates an image quality-oriented region.

[0088] In step S468, the output control unit 328 performs control to output each generated image to an output device (display device). In this step S468, the output image (integrated image) generated in step S466 may be drawn on a display device such as a display, and the data generated in the processing up to step S468 may be visualized. Note that the output image and the area map may be used in another system without performing the output processing in step S468.

[0089] For example, the output control unit 328 may draw the output image (integrated image) on the display device, and may also control the output of the area map (first area map, second area map) estimated in step S463. In this embodiment, the number of channels of the second area map related to the object area is assumed to be multiple. For example, when the second area map has one channel, the outline of the area estimated based on the map of one channel may be displayed as an area where the visibility of the object is emphasized. Also, for example, when the second area map has multiple grouped channels or a channel for each category, it is possible to display the information of the group or category together. When the second area map has a channel for each category, it is possible to designate a specific color for a person (Person) or a car (Car) to draw the outline of the area, or to write the category name near the outline. The above is the process during runtime of the image processing device in the second embodiment.

[0090] Next, a learning device that performs learning related to the above-mentioned noise reduction processing will be described. Note that the hardware configuration of the learning device in the second embodiment is the same as the hardware configuration of the image processing device in the first embodiment shown in FIG.

[0091] Fig. 5(b) is a block diagram showing an example of a functional configuration of a learning device in embodiment 2. The learning device 520 includes a learning data storage unit 521, an embedding unit 522, a degradation processing unit 523, a feature extraction unit 524, a map estimation unit 525, a first image estimation unit 526, a second image estimation unit 527, and a third image estimation unit 528. The learning device 520 also includes a map loss calculation unit 529, a first image loss calculation unit 530, a second image loss calculation unit 531, a third image loss calculation unit 532, and a parameter update unit 533. The functions of each of these blocks will be described with reference to Fig. 6(b) and the like.

[0092] FIG. 6(b) is a flowchart showing an example of processing during learning by the learning device in the second embodiment. In step S621, each functional unit of the learning device 520 performs settings related to learning. In this embodiment, it is assumed that the feature extraction unit 524, the map estimation unit 525, the first image estimation unit 526, the second image estimation unit 527, and the third image estimation unit 528 are realized by a neural network as shown in Fig. 7(a) as in the first embodiment. In this step S621, the initial values ​​or learned parameters of the parameters of each layer of the model are set, hyperparameters related to learning are set, and the like.

[0093] The loop L621 in the flowchart of Fig. 6(b) is a loop related to the iteration of the stochastic gradient descent method. The number of loops N may be a preset value. Also, the loop process may be terminated when the calculated loss falls below a certain value.

[0094] In step S622, the embedding unit 522 acquires one mini-batch of learning data to be used in the learning loop L621 from the learning data storage unit 521. The learning data is composed of a noiseless image and GT data of a detection target object, and the GT data of the detection target object is composed of region information and a category label of the target object. The region information is teacher data for training the map estimation unit 525, and is information indicating a region mask or a circumscribing rectangle that conforms to the shape of the target object. The category label is a label for identifying the type of the target object, such as a person or a car.

[0095] In step S623, the embedding unit 522 performs a process of embedding a visibility-oriented target in the noiseless image acquired in step S622. In this embodiment, the visibility-oriented target is a character and an object, and the object is assumed to be captured as a subject in the noiseless image in advance. Therefore, in step S623, the embedding unit 522 embeds a character in the noiseless image as in the first embodiment. Details of the character embedding process are the same as in the first embodiment. Note that in this embodiment, the embedding unit 522 embeds only a character in step 623, but an object may be embedded. In this case, the region information and the category label related to the object embedded in the noiseless image may be linked to the noiseless image as GT data.

[0096] In step S624, the degradation processor 523 performs degradation processing of the image, and adds noise to the noiseless image in which the visibility-oriented object is embedded in step S623. The processing in step S624 is similar to the processing in step S604 in the processing during learning shown in Fig. 6(a) in the first embodiment, and therefore a detailed description thereof will be omitted.

[0097] In step S625, the feature extraction unit 524 extracts intermediate features from the image data to which noise has been added in step S624. The process of step S625 is similar to step S462 in the process at runtime of the image processing device in embodiment 2. That is, the process of step S625 is similar to the process of step S402 in the process at runtime shown in FIG. 4(a) in embodiment 1, and therefore a detailed description thereof will be omitted.

[0098] In step S626, the map estimation unit 525 estimates a region map from the intermediate features extracted in step S625. In this embodiment, the map estimation unit 525 estimates a first region map related to character visibility and a second region map related to object visibility as the region map. The process of this step S626 is similar to the process of step S463 in the process at runtime shown in FIG. 4(d) described above, and therefore a detailed description thereof will be omitted.

[0099] In step S627, the first image estimation unit 526 estimates a first image from the intermediate features extracted in step S625. In step S628, the second image estimation unit 527 estimates a second image from the intermediate features extracted in step S625. In step S629, the third image estimation unit 528 estimates a third image from the intermediate features extracted in step S625. The processes of steps S627 and S628 are similar to the processes of steps S464 and S465 in the runtime processing of the image processing device in embodiment 2. That is, the processes of steps S627 and S628 are similar to the processes of steps S404 and S405 in the runtime processing shown in Fig. 4(a) in embodiment 1, so detailed explanations are omitted. Also, the process of step S629 is similar to the process of step S466 in the runtime processing of the image processing device in embodiment 2, so detailed explanations are omitted.

[0100] In step S630, the map loss calculation unit 529, the first image loss calculation unit 530, the second image loss calculation unit 531, and the third image loss calculation unit 532 calculate each loss for training the model.

[0101] Map loss calculation unit 529 calculates region map loss, which is a loss for training map estimation unit 525. In this embodiment, map loss calculation unit 529 calculates region map loss for character regions and region map loss for object regions. The calculation of region map loss for character regions is the same as in embodiment 1. The region map loss for object regions is calculated according to the second region map for the object region estimated by map estimation unit 525.

[0102] When the map estimation unit 525 estimates an object region map of only one channel, the map loss calculation unit 529 generates a region map GT of one channel using the GT data of the detection target object acquired in step S622. Then, the map loss calculation unit 529 calculates the region map loss of the object region using the generated region map GT. Also, when the map estimation unit 525 estimates an object region map of multiple channels, the map loss calculation unit 529 generates a region map GT of the desired multiple channels using the GT data of the detection target object, and calculates the region map loss using the generated region map. The loss function may be selected based on the number of channels of the region map, etc. For the object region map of multiple channels, the multi-class cross entropy loss is selected as an example.

[0103] The calculation of the first image loss by the first image loss calculation unit 530 for training the first image estimation unit 526, and the calculation of the second image loss by the second image loss calculation unit 531 for training the second image estimation unit 527 are the same as in embodiment 1, so descriptions are omitted.

[0104] In addition, the third image loss calculation unit 532 calculates a loss related to object visibility, which is a loss for training the third image estimation unit 528. Here, the third image generated by the third image estimation unit 528 is multiplied by a trained object detector to calculate a loss related to object detection. Specifically, the third image loss calculation unit 532 acquires the output of the object detector (a bounding rectangle and a score for each category) and evaluates the IOU (Intersection over Union) between the bounding rectangle of the output and the bounding rectangle of the GT. If the IOU between the bounding rectangle of the output and the bounding rectangle of the GT is equal to or greater than a certain value, the third image loss calculation unit 532 obtains a score for each category. The score for each category is a one-dimensional vector having elements for the number of categories, and the sum of the elements of the vector is 1. The GT is a vector of elements for the number of categories, with the correct category being 1 and the other categories being 0. The third image loss calculation unit 532 calculates a loss using an appropriate loss function based on the vector of the output score and the vector of the GT. One example of the loss function is multi-class cross entropy loss.

[0105] The losses calculated by the map loss calculation unit 529, the first image loss calculation unit 530, the second image loss calculation unit 531, and the third image loss calculation unit 532 are mixed to obtain a final loss. A fixed value may be used as the weight for mixing the losses, or the weight may be dynamically changed so that the relative magnitude of the losses is constant.

[0106] In step S631, the parameter update unit 533 updates the parameters of the neural network model. The parameter update unit 533 determines the amount of update of the parameters of each layer by the backpropagation learning method based on the loss calculated in step S630, and updates the parameters. The above is the process during learning in embodiment 2. Through these processes, parameters for the feature extraction unit 322, the map estimation unit 323, the first image estimation unit 324, the second image estimation unit 325, the third image estimation unit 326, and the like, which are used during runtime of the image processing device 320, are learned.

[0107] The image processing device 300 in the second embodiment estimates a second image by a second image estimation unit 325 that has been trained so that a region that prioritizes character visibility based on the region map will have a desired image quality that prioritizes character visibility. Also, a third image is estimated by a third image estimation unit 326 that has been trained so that a region that prioritizes object visibility based on the region map will have a desired image quality that prioritizes object visibility. Then, the image processing device 300 outputs an integrated image (output image) in which the first image that prioritizes image quality, the second image that prioritizes character visibility, and the third image that prioritizes object visibility, which are reconstructed respectively, are integrated based on the region map. This makes it possible to perform suitable noise reduction processing for the image quality-important region, the character visibility-important region, and the object visibility-important region in the noisy image, respectively, and image processing that provides a desired image quality according to the object to be emphasized can be performed for each region of the image.

[0108] In addition, by learning noise reduction processing that prioritizes image quality, character visibility, and object visibility, it is possible to perform noise reduction processing optimized for noisy images, thereby achieving more appropriate noise reduction processing for each region.

[0109] <Modification of the second embodiment> In the above-mentioned second embodiment, a model (image estimation unit) for noise reduction processing is learned separately for an area that prioritizes character visibility and an area that prioritizes object visibility, and a noise-reduced image is generated separately for the two areas. Both character visibility and object visibility may be simply treated as one object visibility, and area-specific noise reduction processing may be performed using two models, a noise reduction model that prioritizes image quality and a noise reduction model that prioritizes object visibility. In this case, the functional configuration of the image processing device is the same as that of the image processing device 300 shown in FIG. 3(a), and the functional configuration of the learning device is the same as that of the learning device 500 shown in FIG. 5(a).

[0110] In the process of the image processing device 300 during runtime, the second image estimation unit 305 reconstructs the image with an emphasis on object visibility to generate a noise-reduced image. In the process of the learning device 500 during learning, the second image loss calculation unit 510 calculates the loss based on the second image estimated by the second image estimation unit 507, and learns. The second image loss calculation unit 510 integrates the character classification loss and the object detection loss to obtain the second image loss. The map loss calculation unit 508 calculates the loss by taking the OR region of the character region and the object region as GT. The parameter update unit 511 integrates the calculated region map loss, the first image loss, and the second image loss, and updates the parameters. Note that the weights when integrating the losses are set appropriately.

[0111] By implementing the process in this manner, it becomes possible to perform noise reduction processing that prioritizes image quality and noise reduction processing that prioritizes object visibility, which combines character visibility and object visibility, for each region.

[0112] <Embodiment 3> In the above-mentioned first and second embodiments, the noise reduction process for still images has been described, but it is not limited to still images and can also be applied to moving images. In the third embodiment, an example of applying area-specific noise reduction process, which performs noise reduction process that prioritizes image quality for each area and noise reduction process that prioritizes character visibility, to a moving image will be described.

[0113] The configuration of the image processing device in this embodiment and the flow of processing during runtime of the image processing device are the same as those in embodiment 1. Below, differences between embodiment 3 and the above-mentioned embodiment 1 will be described. Note that since learning in this embodiment can be performed in the same manner as in embodiment 1, a description thereof will be omitted.

[0114] 7(c) is a diagram showing an example of a neural network assumed in embodiment 3. In this embodiment, a sequence of still images arranged in chronological order is treated as a video. These still images are hereinafter referred to as frames.

[0115] In FIG. 7(c), 741 is a neural network with a UNet structure that receives multiple frames degraded by noise as input and performs noise reduction processing on the multiple frames. In this embodiment, noise reduction processing is performed on a video by continuously processing chunks of multiple frames in a time series. In addition, 742 is an input consisting of multiple frames, and 743 is an intermediate feature generated from the input 742. The input 742 is assumed to be a three-dimensional tensor linked in the channel direction. For example, if one frame has three channels of RGB and five frames are treated as one chunk, the input 742 has 15 channels (3 channels x 5 frames).

[0116] In FIG. 7(c), 744 is a region map corresponding in time to each frame of the input 742. When the input 742 is for five frames, the region map 744 is output as a five-channel tensor for five frames, with one channel region map representing a character region. 745 is an output of a noise-reduced image (first image) reconstructed with emphasis on image quality corresponding in time to each frame of the input 742, and 746 is an output of a noise-reduced image (second image) reconstructed with emphasis on visibility of characters corresponding in time to each frame of the input. Each of the noise-reduced image output 745 and the noise-reduced image output 746 is output as a 15-channel tensor, the same as the input 742, for five frames of the input 742.

[0117] That is, the neural network 741 is a 5-frame input, 5-frame output, hourglass-shaped neural network in terms of time. The above is an example of a neural network in this embodiment.

[0118] Next, the flow of processing during runtime of the image processing device in embodiment 3 will be described with reference to the flowchart shown in Fig. 4(a). When noise reduction processing is applied to a moving image, the processing of this flowchart is performed multiple times until the end of the frames of the moving image.

[0119] In step S401, the acquisition unit 301 acquires a chunk of an input image consisting of multiple frames. For example, when the size of the chunk is 5, in the first processing of the flowchart, the acquisition unit 301 acquires a total of 5 frames from the 0th frame to the 4th frame in order as input image data. In the second and subsequent processing, the acquisition unit 301 predetermines the stride from the 1st to the 5th frames, and acquires the chunk of the input image based on the determined stride. For example, in the second processing, the acquisition unit 301 acquires a total of 5 frames from the 1st to the 6th frames as input image data if the stride is 1, and acquires a total of 5 frames from the 5th to the 9th frames as input image data if the stride is 5. Therefore, when the stride is 1 to 4, overlap occurs in the frames to be processed when the processing shown in the flowchart is executed multiple times. The processing result of the overlapped frames will be described later.

[0120] In the following explanation, it is assumed that the chunk size is 5. In step S402, the feature extraction unit 302 extracts intermediate features from the image data acquired in step S401. The process of extracting the intermediate features is similar to that in the first embodiment, and therefore a description thereof will be omitted.

[0121] In step S403, the map estimation unit 303 estimates a region map corresponding to the input frame. If the input frames are five frames from the 0th frame to the 4th frame, the map estimation unit 303 estimates the region map of the corresponding five frames. Here, if the stride in step S401 is set to 1 to 4, overlap occurs in the frames to be processed. Regarding the overlap that occurs, the map estimation unit 303 integrates the region maps corresponding to the same input frame that were previously estimated by averaging, etc., and combines the region maps corresponding to the same input frame into one. Details of the other processes are the same as those in step S403 in the first embodiment.

[0122] As for the process of estimating the first image in step S404 and the process of estimating the second image in step S405, the first image and the second image of five frames corresponding to the input frame are estimated in the same manner as the process in step S403. Also, as with the estimation of the region map, if the frames to be processed overlap, they are integrated into one frame. Other details of the process are the same as the processes in steps S404 and S405 in the first embodiment.

[0123] In step S406, the integration unit 306 integrates the area map, the first image, and the second image for each input frame estimated as described above. Integration for one frame is similar to the process in step S406 in the first embodiment, and the process is executed for the number of frames.

[0124] In step S407, the output control unit 307 controls the output of the generated integrated image and area map to the output device. The processing for one frame is the same as the processing in step S407 in the first embodiment, and is executed for the number of frames. At that time, the display image is drawn so as to be easily visible to the user, for example, in accordance with the frame rate of the video.

[0125] According to the third embodiment, by executing the above-mentioned processing, the regional noise reduction processing described in the first embodiment can be extended to moving images. Here, an hourglass-type neural network with 5 frame input and 5 frame output has been described as an example, but this is not limiting and a recurrent neural network, etc. may also be used. Even in this case, basically, each process in the flowchart shown in Figure 4(a) should be applied to the video.

[0126] (Another embodiment of the present invention) The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiment is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) for implementing one or more of the functions.

[0127] It should be noted that the above-mentioned embodiments are merely examples of the implementation of the present invention, and the technical scope of the present invention should not be interpreted as being limited by these embodiments. In other words, the present invention can be implemented in various forms without departing from its technical concept or main features.

[0128] The disclosure of the present embodiment includes the following configurations, methods, etc. (Configuration 1) A feature extraction means for extracting intermediate features from an input image; a map estimation means for estimating a region map from the intermediate features; a first image estimation means for estimating a first image from the intermediate features; a second image estimation means for estimating a second image from the intermediate features; an output means for outputting an output image obtained by integrating the first image and the second image based on the region map; The image processing device according to claim 1, wherein the second image estimation means learns so that a specific area in the second image based on the area map will have a predetermined image quality. (Configuration 2) the first image estimation means estimates the first image by applying a first image processing to the input image; 2. The image processing device according to claim 1, wherein the second image estimation means estimates the second image by applying a second image process having characteristics different from those of the first image process to the input image. (Configuration 3) 3. The image processing device according to configuration 2, wherein the area map is a map indicating whether the area is one in which emphasis is placed on the first image processing or one in which emphasis is placed on the second image processing. (Configuration 4) The image processing device according to configuration 3, wherein the output means outputs the output image obtained by integrating the first image and the second image at a ratio corresponding to the value indicated by the region map for each pixel. (Configuration 5) The image processing device according to configuration 3, wherein the output means outputs the output image generated using the first image in an area in the area map where the first image processing is emphasized, and using the second image in an area in the area map where the second image processing is emphasized. (Configuration 6) 6. The image processing device according to any one of configurations 2 to 5, wherein the first image processing and the second image processing are noise reduction processing. (Configuration 7) 7. The image processing device according to configuration 6, wherein the first image is an image that has been subjected to noise reduction processing with emphasis on image quality. (Configuration 8) 8. The image processing device according to configuration 6 or 7, wherein the second image is an image that has been subjected to noise reduction processing with an emphasis on visibility. (Configuration 9) 9. The image processing device according to configuration 8, wherein the visibility is at least one of visibility of a character and visibility of an object. (Configuration 10) 10. The image processing device according to any one of configurations 6 to 9, wherein the input image is an image degraded by noise. (Configuration 11) 6. The image processing device according to any one of configurations 2 to 5, wherein the first image processing and the second image processing are super-resolution processing. (Configuration 12) 12. The image processing device according to configuration 11, wherein the first image is an image that has been subjected to super-resolution processing with emphasis on image quality. (Configuration 13) 13. The image processing device according to configuration 11 or 12, wherein the second image is an image that has been subjected to super-resolution processing with an emphasis on visibility. (Configuration 14) The input image is composed of a plurality of images that are consecutive in time, the region maps are a plurality of region maps corresponding to the plurality of input images; the first images are a plurality of first images corresponding to the plurality of input images; 14. The image processing device according to any one of configurations 1 to 13, wherein the second images are a plurality of second images corresponding to the plurality of input images. (Configuration 15) a third image estimation means for estimating a third image from the intermediate features; the output means outputs an output image obtained by integrating the first image, the second image, and the third image based on the region map; 2. The image processing device according to configuration 1, wherein the third image estimation means learns so that a specific area based on the area map in the third image will have a predetermined image quality. (Configuration 16) the second image is an image that has been subjected to image processing with emphasis on the visibility of the first object, 16. The image processing device according to configuration 15, wherein the third image is an image processed with emphasis on visibility of a second object different from the first object. (Configuration 17) a degradation processing means for performing degradation processing on an input image; A feature extraction means for extracting intermediate features from the input image that has been subjected to degradation processing; a map estimation means for estimating a region map from the intermediate features; a first image estimation means for estimating a first image from the intermediate features; a second image estimation means for estimating a second image from the intermediate features; a loss calculation means for calculating a region map loss for the region map, a first image loss for the first image, and a second image loss for the second image based on the estimated region map, the first image, and the second image; and an update means for updating parameters of the feature extraction means, the map estimation means, the first image estimation means, and the second image estimation means based on the loss calculated by the loss calculation means. (Configuration 18) the first image estimation means estimates the first image by applying a first image processing to the input image that has been subjected to degradation processing; The learning device described in configuration 17, wherein the second image estimation means estimates the second image by applying a second image processing having characteristics different from the first image processing to the input image that has been degraded. (Configuration 19) The learning device according to configuration 17 or 18, characterized in that the loss calculation means calculates the first image loss in an area that emphasizes the first image, and calculates the second image loss in an area that emphasizes the second image, based on the area map. (Method 1) A feature extraction step of extracting intermediate features from the input image; a map estimation step of estimating a region map from the intermediate features; a first image estimation step of estimating a first image from the intermediate features; a second image estimation step of estimating a second image from the intermediate features; and outputting an output image obtained by integrating the first image and the second image based on the region map, An image processing method characterized in that, in the second image estimation process, a model that has been trained so that a specific area in the second image based on the area map will have a predetermined image quality is used. (Method 2) a degradation processing step of performing degradation processing on the input image; a feature extraction step of extracting intermediate features from the degraded input image; a map estimation step of estimating a region map from the intermediate features; a first image estimation step of estimating a first image from the intermediate features; a second image estimation step of estimating a second image from the intermediate features; a loss calculation step of calculating a region map loss for the region map, a first image loss for the first image, and a second image loss for the second image based on the estimated region map, the first image, and the second image; and an updating step of updating parameters of models used in the feature extraction step, the map estimation step, the first image estimation step, and the second image estimation step, based on the loss calculated in the loss calculation step. (Program 1) The computer of the image processing device a feature extraction step of extracting intermediate features from the input image; a map estimation step of estimating a region map from the intermediate features; a first image estimation step of estimating a first image from the intermediate features; a second image estimation step of estimating a second image from the intermediate features using a model trained so that a specific region based on the region map in the second image has a predetermined image quality; and an output step of outputting an output image in which the first image and the second image are integrated based on the region map. (Program 2) The learning device computer a degradation processing step of performing degradation processing on the input image; a feature extraction step of extracting intermediate features from the degraded input image; a map estimation step of estimating a region map from the intermediate features; a first image estimation step of estimating a first image from the intermediate features; a second image estimation step of estimating a second image from the intermediate features; a loss calculation step of calculating a region map loss for the region map, a first image loss for the first image, and a second image loss for the second image based on the estimated region map, the first image, and the second image; a program for executing an updating step of updating parameters of models used in the feature extraction step, the map estimation step, the first image estimation step, and the second image estimation step, based on the loss calculated in the loss calculation step. [Explanation of symbols]

[0129] 300, 320: Learning processing device 301, 321: Acquisition unit 302, 322: Feature extraction unit 303, 323: Map estimation unit 304, 324: First image estimation unit 305, 325: Second image estimation unit 306, 327: Integration unit 307, 328: Output control unit 326: Third image estimation unit 500, 520: Learning device 501, 521: Learning data storage unit 502, 522: Embedding unit 503, 523: Degradation processing unit 504, 524: Feature extraction unit 505, 525: Map estimation unit 506, 526: First image estimation unit 507, 527: Second image estimation unit 508, 529: Map loss calculation unit 509, 530: First image loss calculation unit 510, 531: second image loss calculation unit 511, 533: parameter update unit 528: third image estimation unit 532: third image loss calculation unit

Claims

1. A feature extraction means for extracting intermediate features from an input image; a map estimation means for estimating a region map from the intermediate features; a first image estimation means for estimating a first image from the intermediate features; a second image estimation means for estimating a second image from the intermediate features; an output unit that outputs an output image obtained by integrating the first image and the second image based on the region map; The image processing device according to claim 1, wherein the second image estimation means learns so that a specific area in the second image based on the area map will have a predetermined image quality.

2. the first image estimation means estimates the first image by applying a first image processing to the input image; 2 . The image processing apparatus according to claim 1 , wherein the second image estimation means estimates the second image by applying, to the input image, a second image process having characteristics different from those of the first image process.

3. 3. The image processing apparatus according to claim 2, wherein the area map is a map indicating whether the area is one in which emphasis is placed on the first image processing or one in which emphasis is placed on the second image processing.

4. 4. The image processing apparatus according to claim 3, wherein the output means outputs the output image obtained by integrating the first image and the second image at a ratio according to the value indicated by the region map for each pixel.

5. The image processing device according to claim 3, characterized in that the output means outputs the output image generated using the first image in an area in the area map where the first image processing is emphasized, and using the second image in an area in the area map where the second image processing is emphasized.

6. 3. The image processing apparatus according to claim 2, wherein the first image processing and the second image processing are noise reduction processing.

7. 7. The image processing apparatus according to claim 6, wherein the first image is an image that has been subjected to noise reduction processing with emphasis on image quality.

8. 7. The image processing apparatus according to claim 6, wherein the second image is an image that has been subjected to noise reduction processing with an emphasis on visibility.

9. 9. The image processing apparatus according to claim 8, wherein the visibility is at least one of visibility of a character and visibility of an object.

10. 7. The image processing apparatus according to claim 6, wherein the input image is an image degraded by noise.

11. The image processing apparatus according to claim 2 , wherein the first image processing and the second image processing are super-resolution processing.

12. The image processing device according to claim 11 , wherein the first image is an image that has been subjected to super-resolution processing with emphasis on image quality.

13. The image processing device according to claim 11 , wherein the second image is an image that has been subjected to super-resolution processing with an emphasis on visibility.

14. The input image is composed of a plurality of images that are consecutive in time, the region maps are a plurality of region maps corresponding to the plurality of input images; the first images are a plurality of first images corresponding to the plurality of input images; The image processing apparatus according to claim 1 , wherein the second image is a plurality of second images corresponding to the plurality of input images.

15. a third image estimation means for estimating a third image from the intermediate features; the output means outputs an output image obtained by integrating the first image, the second image, and the third image based on the region map; 2 . The image processing apparatus according to claim 1 , wherein the third image estimation means learns so that the specific area in the third image based on the area map has a predetermined image quality.

16. the second image is an image that has been subjected to image processing with emphasis on visibility of the first object, 16. The image processing apparatus according to claim 15, wherein the third image is an image that has been subjected to image processing with emphasis on visibility of a second object different from the first object.

17. a degradation processing means for performing degradation processing on an input image; A feature extraction means for extracting intermediate features from the input image that has been subjected to degradation processing; a map estimation means for estimating a region map from the intermediate features; a first image estimation means for estimating a first image from the intermediate features; a second image estimation means for estimating a second image from the intermediate features; a loss calculation means for calculating a region map loss for the region map, a first image loss for the first image, and a second image loss for the second image based on the estimated region map, the first image, and the second image; and an update means for updating parameters of the feature extraction means, the map estimation means, the first image estimation means, and the second image estimation means based on the loss calculated by the loss calculation means.

18. the first image estimation means estimates the first image by applying a first image processing to the input image that has been subjected to degradation processing; The learning device according to claim 17, characterized in that the second image estimation means estimates the second image by applying a second image processing having characteristics different from the first image processing to the input image that has been subjected to degradation processing.

19. The learning device according to claim 17, characterized in that the loss calculation means calculates the first image loss in an area that emphasizes the first image, and calculates the second image loss in an area that emphasizes the second image, based on the area map.

20. A feature extraction step of extracting intermediate features from the input image; a map estimation step of estimating a region map from the intermediate features; a first image estimation step of estimating a first image from the intermediate features; a second image estimation step of estimating a second image from the intermediate features; and outputting an output image obtained by integrating the first image and the second image based on the region map. An image processing method characterized in that, in the second image estimation step, a model that has been trained so that a specific area based on the area map in the second image has a predetermined image quality is used.

21. a degradation processing step of performing degradation processing on the input image; a feature extraction step of extracting intermediate features from the degraded input image; a map estimation step of estimating a region map from the intermediate features; a first image estimation step of estimating a first image from the intermediate features; a second image estimation step of estimating a second image from the intermediate features; a loss calculation step of calculating a region map loss for the region map, a first image loss for the first image, and a second image loss for the second image based on the estimated region map, the first image, and the second image; and an updating step of updating parameters of models used in the feature extraction step, the map estimation step, the first image estimation step, and the second image estimation step, based on the loss calculated in the loss calculation step.

22. The computer of the image processing device a feature extraction step of extracting intermediate features from the input image; a map estimation step of estimating a region map from the intermediate features; a first image estimation step of estimating a first image from the intermediate features; a second image estimation step of estimating a second image from the intermediate features using a model trained so that a specific region based on the region map in the second image has a predetermined image quality; and an output step of outputting an output image in which the first image and the second image are integrated based on the region map.

23. The learning device computer a degradation processing step of performing degradation processing on the input image; a feature extraction step of extracting intermediate features from the degraded input image; a map estimation step of estimating a region map from the intermediate features; a first image estimation step of estimating a first image from the intermediate features; a second image estimation step of estimating a second image from the intermediate features; a loss calculation step of calculating a region map loss for the region map, a first image loss for the first image, and a second image loss for the second image based on the estimated region map, the first image, and the second image; a program for executing an updating step of updating parameters of models used in the feature extraction step, the map estimation step, the first image estimation step, and the second image estimation step, based on the loss calculated in the loss calculation step.

Citation Information

Patent Citations

  • Image processor, electronic camera and image processing program

    JP2010147660A