WO2020187042A1 - Image processing method, device and apparatus, and computer readable medium - Google Patents

Image processing method, device and apparatus, and computer readable medium Download PDF

Info

Publication number
WO2020187042A1
WO2020187042A1 PCT/CN2020/077983 CN2020077983W WO2020187042A1 WO 2020187042 A1 WO2020187042 A1 WO 2020187042A1 CN 2020077983 W CN2020077983 W CN 2020077983W WO 2020187042 A1 WO2020187042 A1 WO 2020187042A1
Authority
WO
WIPO (PCT)
Prior art keywords
image feature
image
compensated
size
sampled
Prior art date
Application number
PCT/CN2020/077983
Other languages
French (fr)
Chinese (zh)
Inventor
那彦波
刘瀚文
朱丹
Original Assignee
京东方科技集团股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 京东方科技集团股份有限公司 filed Critical 京东方科技集团股份有限公司
Publication of WO2020187042A1 publication Critical patent/WO2020187042A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/20Processor architectures; Processor configuration, e.g. pipelining
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks

Definitions

  • the present disclosure relates to the field of image processing, and in particular to a method, device, device, and computer-readable medium for image processing.
  • the present disclosure provides a new image processing method, which can realize the processing of multiple image features of different sizes without using a recursive structure.
  • an image processing method including: receiving an input image, processing the input image to determine a first image feature of a first size, a second image feature of a second size, and a third image feature. Size of the third image feature, wherein the first size is smaller than the second size, and the second size is smaller than the third size; the first image feature is used to compensate the second image feature to Generating a compensated second image feature of a second size; using the compensated second image feature to compensate the third image feature to generate a compensated third image feature of a third size; and based on the The compensated second image feature or the compensated third image feature determines an output image.
  • using the first image feature to compensate the second image feature to generate a compensated second image feature of the second size includes: down-sampling the second image feature to Obtain the down-sampled second image feature of the first size; perform a de-superposition operation on the down-sampled second image feature and the first image feature to generate the first compensated image feature of the first size;
  • the compensation image feature is up-sampled to obtain the up-sampled first compensation image feature of the second size; the up-sampled first compensation image feature and the second image feature are superimposed to generate the second size The second image feature after compensation.
  • performing a de-superimposition operation on the down-sampled second image feature and the first image feature includes: performing a subtraction on the down-sampled second image feature and corresponding elements in the first image feature Operation; or perform a convolution operation on the combination of the down-sampled second image feature and the first image feature.
  • performing an overlay operation on the up-sampled first compensated image feature and the second image feature includes: performing the up-sampled first compensated image feature and corresponding elements in the second image feature Addition operation.
  • using the compensated second image feature to compensate the third image feature to generate the compensated third image feature includes: down-sampling the third image feature to obtain The down-sampled third image feature of the second size; performing a de-superimposition operation on the down-sampled third image feature and the compensated second image feature to generate a second compensated image feature of the second size;
  • the second compensated image feature is up-sampled to obtain an up-sampled second compensated image feature of a third size; an overlay operation is performed on the third image feature and the up-sampled second compensated image feature to generate The compensated third image feature of the third size.
  • determining the output image based on the compensated second image feature or the compensated third image feature includes: down-sampling the compensated second image feature to obtain the first size The down-sampling of the compensated second image feature; the down-sampling of the compensated second image feature and the first image feature to perform a de-superimposition operation to generate a third compensated image feature of the first size; Up-sampling the third compensated image feature to obtain an up-sampled third compensated image feature of a second size; executes on the compensated second image feature and the up-sampled third compensated image feature Superimposing operation to generate a further compensated second image feature of the second size; down-sampling the compensated third image feature to obtain the down-sampled compensated third image feature of the second size; The down-sampled compensated third image feature and the further compensated second image feature perform a de-overlapping operation to generate a fourth compensated image feature of the second size; up-sampling the fourth compensated image feature, To obtain the up-
  • processing the input image to determine a first image feature of a first size, a second image feature of a second size, and a third image feature of a third size associated with the input image includes : Determine a first input image of a first size, a second input image of a second size, and a third input image of a third size according to the input image, respectively, for the first input image, the second input image and Processing the third input image to determine a first image feature of a first size, a first input image feature of a second size, and a second input image feature of a third size; up-sampling the first image feature, And perform an overlay operation on the first input image feature and the up-sampled first image feature to obtain a second image feature of a second size; up-sampling the second image feature, and the up-sampled The second image feature and the second input image feature perform an overlapping operation to obtain a third image feature of a third size.
  • the input image has a first size
  • determining the first input image of the first size, the second input image of the second size, and the third input image of the third size according to the input image includes: The input image is determined to be the first input image of the first size; the first input image of the first size is up-sampled to generate the second input image of the second size; the second input image of the second size is up-sampled To generate a third input image of a third size.
  • determining the output image based on the compensated second image feature or the compensated third image feature includes: using the first image feature to compensate the compensated second image feature , To generate a further compensated second image feature; use the further compensated second image feature to compensate the compensated third image feature to generate a further compensated third image feature; and based on the further compensation The second image feature or the further compensated third image feature generates an output image.
  • using the first image feature to compensate the compensated second image feature to generate a further compensated second image feature includes: down-sampling the compensated second image feature , To obtain the down-sampled and compensated second image feature of the first size; perform a de-superposition operation on the down-sampled, compensated second image feature and the first image feature to generate the first size of the first image feature Three compensated image features; up-sampling the third compensated image feature to obtain the up-sampled third compensated image feature of the second size; the up-sampled third compensated image feature and the compensated first The two image features are superimposed to generate a second image feature of the second size that is further compensated.
  • using the further compensated second image feature to compensate the compensated third image feature to generate the further compensated third image feature includes: compensating the compensated third image feature Down-sampling is performed to obtain the down-sampled compensated third image feature of the second size; the down-sampling compensated third image feature and the further compensated second image feature are de-superposed to Generate a fourth compensated image feature of the second size; up-sample the fourth compensated image feature to obtain an up-sampled fourth compensated image feature of the third size; compare the compensated third image feature and The up-sampled fourth compensated image feature performs a superposition operation to generate a further compensated third image feature of a third size.
  • the second size is M times the first size
  • the third size is M times the second size
  • M is an integer greater than one.
  • an image processing device including: a receiving module configured to receive an input image; an image feature processing module configured to process the input image to determine a first image of a first size Feature, a second image feature of a second size, and a third image feature of a third size, wherein the first size is smaller than the second size, and the second size is smaller than the third size; an image feature compensation module, It includes: a first compensation unit configured to compensate the second image feature using the first image feature of the first size to generate a compensated second image feature of the second size; and a second compensation unit, Configured to use the compensated second image feature to compensate the third image feature to generate a compensated third image feature of a third size; and an output module configured to be based on the compensated second The image feature or the compensated third image feature determines the output image.
  • the first compensation unit is further configured to: use a down-sampling sub-unit to down-sample the second image feature to obtain a down-sampled second image feature of the first size;
  • the sub-unit performs a de-superimposition operation on the down-sampled second image feature and the first image feature of the first size to generate the first compensated image feature of the first size;
  • the up-sampling sub-unit is used to perform the de-superposition operation on the first compensated image feature
  • Up-sampling is performed to obtain the up-sampled first compensated image feature of the second size;
  • the overlay subunit is used to perform an overlay operation on the up-sampled first compensated image feature and the second image feature to generate a second The size of the compensated second image feature.
  • the de-overlap subunit is further configured to: perform a subtraction operation on the down-sampled second image feature and the corresponding element in the first image feature of the first size; or perform a subtraction operation on the down-sampled The combination of the second image feature and the first image feature of the first size performs a convolution operation.
  • the superimposing subunit is further configured to perform an addition operation on corresponding elements in the up-sampled first compensated image feature and the second image feature.
  • the second compensation unit is further configured to: use a down-sampling subunit to down-sample the third image feature to obtain a down-sampled third image feature of the second size;
  • the sub-unit performs a de-superimposition operation on the down-sampled third image feature and the compensated second image feature to generate a second compensated image feature of the second size; using an up-sampling sub-unit to perform a de-overlapping operation on the second compensated image
  • the feature is up-sampled to obtain the up-sampled second compensated image feature of the third size;
  • the overlay subunit is used to perform the overlay operation on the third image feature and the up-sampled second compensated image feature to generate a third The third image feature after size compensation.
  • the output module is further configured to: use a downsampling subunit to downsample the compensated second image feature to obtain a downsampled compensated second image feature of the first size
  • use the up-sampling sub-unit to The third compensated image feature is up-sampled to obtain the up-sampled third compensated image feature of the second size
  • the superimposed subunit is used to perform the up-sampling on the compensated second image feature and the up-sampled third compensated image
  • the feature performs a superposition operation to generate a further compensated second image feature of the second size
  • the down-sampling subunit is used to down-sample the compensated third image feature to obtain the down-sampled compensated second size
  • the third image feature using the de-overlap subunit to perform a de-overlap
  • the image feature processing module is further configured to determine a first input image of a first size, a second input image of a second size, and a third input image of a third size according to the input image, respectively
  • the first input image, the second input image, and the third input image are processed to determine a first image feature of a first size, a first input image feature of a second size, and a second input image of a third size.
  • Input image features up-sampling the first image feature, and performing an overlay operation on the first input image feature and the up-sampled first image feature to obtain a second image feature of a second size;
  • the second image feature is up-sampled, and the up-sampled second image feature and the second input image feature are superimposed to obtain a third image feature of a third size.
  • the input image has a second size
  • determining the first input image of the first size, the second input image of the second size, and the third input image of the third size according to the input image includes: The input image of the second size is down-sampled to generate a first input image of the first size; the input image is determined as a second input image of the second size; the input image of the second size is up-sampled To generate a third input image of a third size.
  • the image processing device includes a cascaded N-level image feature compensation module, wherein the i+1 level image feature compensation module is configured to compensate the i-th level image feature using the first image feature of the first size
  • the compensated second image feature generated by the module is compensated to obtain a further compensated second image feature
  • the compensated third image feature generated by the i-th level image feature is compensated by the further compensated second image feature
  • the output module is further configured to: based on the compensated image feature generated by the Nth level image feature compensation unit
  • the second image feature or the compensated third image feature generated by the Nth level image feature compensation unit determines the output image.
  • the i+1-th level image feature compensation module is further configured to: down-sample the compensated second image feature to obtain the down-sampled compensated second image feature of the first size Image features; performing a de-superimposition operation on the down-sampled compensated second image feature and the first image feature to generate a third compensated image feature of the first size; up-sampling the third compensated image feature , To obtain the up-sampled third compensated image feature of the second size; perform a superposition operation on the up-sampled third compensated image feature and the compensated second image feature to generate a further compensated image of the second size The second image feature.
  • the i+1th level image feature compensation module is further configured to: down-sample the compensated third image feature to obtain the down-sampled compensated third image feature of the second size Image features; performing a de-overlapping operation on the down-sampled compensated third image feature and the further compensated second image feature to generate a fourth compensated image feature of the second size; on the fourth compensated image feature Up-sampling is performed to obtain the up-sampled fourth compensated image feature of the third size; the superimposed operation is performed on the compensated third image feature and the up-sampled fourth compensated image feature to generate the third size Third image feature for further compensation.
  • the second size is M times the first size
  • the third size is M times the second size
  • M is an integer greater than one.
  • an image processing device including a processor and a memory, wherein instructions are stored in the memory, and when the instructions are executed by the processor, the processor executes the Image processing method.
  • a computer-readable storage medium having instructions stored thereon, which, when executed by a processor, cause the processor to execute the image processing method described above.
  • the processing of multiple image features of different sizes of the input image can be achieved without recursion, thereby reducing Memory consumption during image processing.
  • the image features of lower resolution are always used to compensate for the image features of higher resolution, the image information of higher resolution will not affect the image information of lower resolution. This may affect the parameter optimization process of the image processing method and improve the image quality of the final output image.
  • Fig. 1 shows a schematic flowchart of an image processing method according to an embodiment of the present disclosure
  • Figure 2 shows a schematic diagram of the principle of generating super-resolution images using the back projection method
  • Fig. 3 shows a schematic block diagram of an image processing device according to an embodiment of the present disclosure
  • Fig. 4 shows a schematic block diagram of another image processing apparatus according to an embodiment of the present disclosure
  • Fig. 5 shows an example of an image feature processing module according to an embodiment of the present disclosure
  • FIG. 6 shows an exemplary network structure of an image processing apparatus according to an embodiment of the present disclosure
  • Fig. 7 shows a schematic structural diagram of an image feature compensation unit according to an embodiment of the present disclosure
  • FIG. 8A shows a schematic diagram of the working principle of the superposition subunit according to the present disclosure
  • FIG. 8B shows a schematic diagram of the working principle of the de-superimposition subunit according to the present disclosure.
  • FIG. 9 shows an architecture diagram of a computing device according to an embodiment of the present disclosure.
  • a convolutional network for image processing can use images as input and output, where the convolutional network can include at least one convolutional layer. And the convolutional layer included in the convolutional network is used to process the image features associated with the input image. After the parameters in the convolutional network are determined through training, the convolutional network can be used to implement image processing. For example, a trained convolutional network can be used to generate a super-resolution image based on the input image or perform deblurring, denoising, coloring, and dehazing on the input image. The original high-resolution clear image can be used to implement the training of the convolutional network.
  • Fig. 1 shows a schematic flowchart 100 of an image processing method according to an embodiment of the present disclosure.
  • step S102 an input image can be received.
  • the received input image may be processed to determine a first image feature having a first size, a second image feature having a second size, and a third image feature having a third size associated with the input image.
  • Image feature wherein the first size is smaller than the second size, and the second size is smaller than the third size.
  • the image size mentioned here may be a size in pixels. In this case, the larger the size of the image or image feature means the higher its resolution.
  • the second size is M times the first size
  • the third size is M times the second size
  • M may be an integer greater than 1.
  • M can be equal to 2, 3, 4, etc.
  • the third size is twice the second size to describe the principle involved in the present disclosure.
  • the size of the first image feature is 16*16
  • the size of the second image feature is 32*32
  • the size of the third image feature is 64*64. It can be understood that M is not limited to being an integer, and can also be implemented as any number greater than 1.
  • other input images different in size from the input image may be generated based on the received input image to obtain image features of other sizes required in the subsequent image processing process. For example, by up-sampling or down-sampling, a first input image with a first size, a second input image with a second size, and a third input image with a third size can be determined from the input image.
  • the technical solution provided in the present disclosure does not limit the size of the input image, and the input image can be processed in the manner of up-sampling and down-sampling to meet the input requirements of the image processing device provided in the present disclosure.
  • a first image feature having a first size, a second image feature having a second size, and a third image feature having a third size may be determined based on the first input image, the second input image, and the third input image. Image characteristics.
  • the "image feature” refers to the output result of processing the image using a trained analysis network.
  • the analysis network can be implemented as a convolutional network.
  • the image features obtained by convolving the image can represent higher-order information in the image, such as semantic information in the image.
  • the first image feature of the first size can be used to compensate the second image feature and the third image feature of higher resolution.
  • a first input image having a first size, a second input image having a second size, and a third input image having a third size may be determined according to the input image.
  • the input image can be determined as the first input image, and the input image can be upsampled once to generate a second input image with the second size, and the input image can be upsampled twice To generate a third input image with a third size.
  • the input image may be determined as the second input image, and the input image may be down-sampled once to generate a first input image with the first size, and the input image may be up-sampled once To generate a third input image with a third size.
  • the input image can be determined as the third input image, and the input image can be down-sampled once to generate a second input image with the second size. Down-sampling to generate and have a first input image of the first size.
  • the technical solution provided in the present disclosure does not limit the size of the input image, and the input image can be processed in the manner of up-sampling and down-sampling to meet the input requirements of the image processing device provided in the present disclosure.
  • the first input image, the second input image, and the third input image are respectively processed to determine a first image feature having a first size, a first input image feature having a second size, and a third input image.
  • the size of the second input image feature is determined.
  • the first image feature may be up-sampled, and the first input image feature and the up-sampled first image feature may be superimposed to obtain a second image feature of a second size.
  • the second image feature may be up-sampled, and the up-sampled second image feature and the second input image feature may be superimposed to obtain a third image feature.
  • the first image feature may be used to compensate the second image feature to generate a compensated second image feature of the second size.
  • Fig. 2 shows a schematic diagram of the principle of generating a super-resolution image using the back projection method.
  • the block 210 with an up arrow indicates an up-sampling operation
  • the block 220 with a down arrow indicates a down-sampling operation.
  • the circle 230 including the plus sign represents the superimposition operation
  • the circle 240 including the plus sign with the minus sign represents the de-superimposition operation.
  • the low-resolution image LR may be up-sampled by the up-sampling unit 210 to increase the size of the low-resolution image LR.
  • the quality of a high-resolution image obtained by only one upsampling is not high.
  • high-resolution images can be compensated by back projection.
  • the down-sampling unit 220 may be used to down-sample the high-resolution image generated by upsampling the low-resolution image LR once, and the de-overlapping unit 240 may be used to determine the difference between the down-sampled high-resolution image and the original low-resolution image.
  • the difference image between images such a difference image can be used to represent the difference between the high-resolution image and the original low-resolution image.
  • the difference image determined in this way can be used to compensate for the high-resolution image.
  • the above-mentioned difference image can be up-sampled to the same size as the high-resolution image, and the up-sampled difference image can be superimposed with the high-resolution image to generate a high-resolution image that is closer to the content information of the original low-resolution image.
  • Resolution image can be up-sampled to the same size as the high-resolution image, and the up-sampled difference image can be superimposed with the high-resolution image to generate a high-resolution image that is closer to the content information of the original low-resolution image.
  • the down-sampling subunit may be used to down-sample the second image feature to obtain the down-sampled second image feature of the first size.
  • the de-superimposition subunit may be used to perform a de-superimposition operation on the down-sampled second image feature and the first image feature to generate the first compensated image feature of the first size.
  • an up-sampling subunit may be used to up-sample the first compensated image feature to obtain the up-sampled first compensated image feature of the second size.
  • the superimposing subunit may be used to perform a superimposing operation on the up-sampled first compensated image feature and the second image feature to generate a compensated second image feature of the second size.
  • the de-superimposition subunit may be used to generate difference information between two image features, and it may be configured to perform a subtraction operation on the down-sampled second image feature and corresponding elements in the first image feature.
  • the de-superimposition subunit may be configured to perform a convolution operation on the combination of the down-sampled second image feature and the first image feature, that is, use the trained convolution layer to generate the down-sampled second image feature and the first image
  • the difference between the features to achieve the above-mentioned de-overlay operation.
  • the superimposition subunit can be used to superimpose information between two image features.
  • it can be configured to perform a convolution operation on the first compensated image feature and the second image feature after upsampling, or it can be configured to upsample
  • the corresponding elements in the latter first compensated image feature and the second image feature perform an addition operation to implement the above-mentioned superimposition operation.
  • the compensated second image feature may be used to compensate the third image feature of the third size to generate the third image feature after compensation of the third size.
  • step S908 may further include: using a down-sampling subunit to down-sample the third image feature to obtain a down-sampled third image feature of the second size. Then, the de-superimposition subunit may be used to perform a de-superimposition operation on the down-sampled third image feature and the compensated second image feature to generate a second compensated image feature of the second size. Further, the up-sampling subunit may be used to up-sample the second compensated image feature to obtain the up-sampled second compensated image feature of the third size. Further, the superimposing subunit may be used to perform a superimposing operation on the third image feature and the up-sampled second compensated image feature to generate a third-sized compensated third image feature.
  • the de-superimposition subunit may be configured to perform a subtraction operation on corresponding elements in the down-sampled third image feature and the compensated second image feature.
  • the value of the element in the second image feature after compensation can be used to subtract the value of the corresponding element in the third image feature after downsampling.
  • the de-overlap subunit may be configured to perform a convolution operation on the combination of the down-sampled third image feature and the compensated second image feature, that is, use the trained convolution layer to down-sample The combination of the latter third image feature and the compensated second image feature is convolved to generate the difference between the down-sampled third image feature and the compensated second image feature.
  • the down-sampled second image feature and the first image feature can be spliced together to form a feature with a larger size.
  • a new image feature with the same size as the down-sampled second image feature and the first image feature can be obtained.
  • the new image feature obtained by convolution using the above method can represent the difference between the down-sampled second image feature and the first image feature.
  • the superimposition subunit can be used to superimpose information between two image features, for example, it can be configured to perform a convolution operation on the third image feature and the up-sampled second compensated image feature or to perform a convolution operation on the third image feature and up-sampling
  • the corresponding element in the latter second compensated image feature performs an addition operation.
  • the output image may be determined based on the compensated second image feature or the compensated third image feature.
  • a synthesis network may be used to synthesize the compensated second image features output in step S906, so as to generate an output image with a second size. Therefore, the image processing method provided by the present disclosure can process an input image of a first size to generate a 2x magnified output image, and can also process an input image of a second size to generate an image-enhanced output with a constant size. image.
  • a synthesis network may be used to synthesize the compensated third image feature output in step S908, so as to generate an output image with a third size.
  • the input image of the first size can be processed to generate a 4 times magnified output image
  • the input image of the second size can also be processed to generate a 2 times magnified output image
  • the input image of the third size can be processed to generate an image-enhanced output image of the same size. Since the image processing method provided by the present disclosure can process multiple image features of different sizes, those skilled in the art can select output image features of different sizes as needed to obtain the final output image.
  • the first image feature may be used to compensate the compensated second image feature to generate a further compensated second image feature.
  • the further compensated second image feature may be used to compensate the compensated third image feature to generate a further compensated third image feature.
  • an output image may be generated based on the further compensated second image feature or the further compensated third image feature.
  • using the first image feature to compensate the compensated second image feature to generate a further compensated second image feature may include: downloading the compensated second image feature Sampling to obtain the down-sampled compensated second image feature of the first size. Then, a de-superimposition operation may be performed on the down-sampled compensated second image feature and the first image feature to generate a third compensated image feature of the first size. Further, the third compensated image feature may be up-sampled to obtain the up-sampled third compensated image feature of the second size. Further, a superposition operation is performed on the up-sampled third compensated image feature and the compensated second image feature of the second size to generate a further compensated second image feature of the second size.
  • Using the further compensated second image feature to compensate the compensated third image feature to generate the further compensated third image feature may include: down-sampling the compensated second image feature to Obtain the down-sampled compensated second image feature of the first size. Then, a de-superimposition operation may be performed on the down-sampled compensated second image feature and the first image feature to generate a third compensated image feature of the first size. Then, the third compensated image feature may be up-sampled to obtain the up-sampled third compensated image feature of the second size. Further, a superposition operation may be performed on the up-sampled third compensated image feature and the compensated second image feature of the second size to generate a further compensated second image feature of the second size.
  • the image feature compensation module can be used to compensate two or more high-resolution image features without using a complex recursive structure.
  • the image feature compensation module can be used to compensate two or more high-resolution image features without using a complex recursive structure.
  • by sequentially compensating image features of different sizes in the order of resolution from low to high it can be ensured that only low-resolution information is transferred to high-resolution image features, and high-resolution information will not be Transfer to low-resolution image features, thereby reducing the complexity of image processing methods.
  • Fig. 3 shows a schematic block diagram of an image processing device according to an embodiment of the present disclosure.
  • the image processing apparatus 300 may include a receiving module 310, an image feature processing module 320, an image feature compensation module 330, and an output module 340.
  • the receiving module 310 may be configured to receive input images.
  • pictures stored in the database can be retrieved as input images.
  • an image can be collected as an input image by an image collection device (for example, a camera, a video camera), etc.
  • the image feature processing module 320 may be configured to process the input image received by the receiving module 310 to determine a first image feature having a first size, a second image feature having a second size, and a first image feature associated with the input image.
  • a three-size third image feature wherein the first size is smaller than the second size, and the second size is smaller than the third size.
  • the second size is M times the first size
  • the third size is M times the second size
  • M is an integer greater than one.
  • the receiving module 310 may generate other input images of different sizes based on the received input image, thereby generating image features of different sizes required in the subsequent image processing process.
  • the received input image may be up-sampled or down-sampled to obtain a first input image of a first size, a second input image of a second size, and a third input image of a third size.
  • a first image feature having a first size, a second image feature having a second size, and a third image feature having a third size may be determined based on the first input image, the second input image, and the third input image. Image characteristics.
  • the image feature compensation module 330 may be configured to use the first image feature of the first size to compensate the second image feature and the third image feature of higher resolution. As shown in FIG. 3, the image feature compensation module 330 may include a first compensation unit 331 and a second compensation unit 332.
  • the first compensation unit 331 may be configured to use the first image feature to compensate the second image feature to generate a compensated second image feature of the second size.
  • the second compensation unit 332 may be configured to use the compensated second image feature to compensate the third image feature to generate a compensated third image feature of a third size.
  • the first compensation unit 331 and the second compensation unit 332 may be implemented as the same structure.
  • the first compensation unit 331 and the second compensation unit 332 may use the principle of back-projection to perform the compensation operation.
  • the image feature compensation module 330 shown in FIG. 3 only includes two compensation units, that is, the image feature compensation module shown in FIG. 3 can compensate two different sizes of larger image features. However, the content of the present disclosure does not stop there. It is understandable that those skilled in the art can set more levels of compensation units in the image feature compensation module according to actual conditions, so that image features of more sizes can be compensated.
  • the first compensation unit 331 may be further configured to: use a down-sampling subunit to down-sample the second image feature to obtain the down-sampled second image feature of the first size;
  • the sub-unit performs a de-superposition operation on the down-sampled second image feature and the first image feature to generate the first compensated image feature of the first size;
  • the up-sampling sub-unit is used to up-sample the first compensated image feature to obtain The first compensated image feature after upsampling of the second size; and the superposition operation is performed on the upsampled first compensated image feature and the second image feature by the superimposing subunit to generate the compensated first image feature of the second size 2.
  • the de-superimposition subunit can be used to generate difference information between two image features, and it can be configured to perform a subtraction operation on the down-sampled second image feature and corresponding elements in the first image feature; or configured as a pair
  • the combination of the down-sampled second image feature and the first image feature performs a convolution operation, that is, the trained convolution layer is used to generate the difference between the down-sampled second image feature and the first image feature.
  • the down-sampled second image feature and the first image feature can be spliced together to form a feature with a larger size.
  • a new image feature with the same size as the down-sampled second image feature and the first image feature can be obtained.
  • the new image feature obtained by convolution using the above method can represent the difference between the down-sampled second image feature and the first image feature.
  • the superimposition subunit can be used to superimpose information between two image features. For example, it can be configured to perform a convolution operation on the first compensated image feature and the second image feature after upsampling, or it can be configured to upsample The corresponding elements in the latter first compensated image feature and the second image feature perform an addition operation.
  • the second compensation unit 332 may be configured to use a down-sampling sub-unit to down-sample the third image feature to obtain a down-sampled third image feature of the second size;
  • the third image feature and the compensated second image feature perform a de-overlapping operation to generate a second compensated image feature of a second size;
  • the second compensated image feature is upsampled by an upsampling subunit to obtain the first A three-size up-sampled second compensated image feature; and using an overlay subunit to perform an overlay operation on the third image feature and the up-sampled second compensated image feature to generate a third-size compensated third Image characteristics.
  • the de-overlap subunit may be configured to perform a subtraction operation on corresponding elements in the down-sampled third image feature and the compensated second image feature.
  • the value of the element in the second image feature after compensation can be used to subtract the value of the corresponding element in the third image feature after downsampling.
  • the de-overlap subunit may be configured to perform a convolution operation on the combination of the down-sampled third image feature and the compensated second image feature, that is, use the trained convolutional layer to generate down-samples The difference between the post-third image feature and the compensated second image feature.
  • the superimposition subunit can be used to superimpose information between two image features, for example, it can be configured to perform a convolution operation on the third image feature and the up-sampled second compensated image feature or to perform a convolution operation on the third image feature and up-sampling
  • the corresponding element in the latter second compensated image feature performs an addition operation.
  • the output module 340 may be configured to determine an output image based on the compensated second image feature or the compensated third image feature.
  • a synthesis network may be used to synthesize the compensated second image features output by the image feature compensation module 330, so as to generate an output image with a second size. Therefore, the image processing method provided by the present disclosure can process an input image of a first size to generate a 2x magnified output image, and can also process an input image of a second size to generate an image-enhanced output with a constant size. image.
  • a synthesis network may be used to synthesize the compensated third image feature output by the image feature compensation module 330, so as to generate an output image with a third size.
  • the image processing device can process an input image of a first size to generate a 4 times magnified output image, and can also process an input image of a second size to generate a 2 times magnified output image.
  • the input image of the third size can be processed to generate an image-enhanced output image of the same size. Since the image processing method provided by the present disclosure can process multiple image features of different sizes, those skilled in the art can select output image features of different sizes as needed to obtain the final output image.
  • the synthesis network can be implemented as a convolutional network.
  • the synthesis network can be used to synthesize image features into images.
  • the image processing method provided by the present disclosure can perform processing of super-resolution, image enhancement, deblurring, denoising, dehazing, and coloring on the input image.
  • the input image may be a low-resolution image with a first size.
  • the input image can be up-sampled to the second size and the third size by up-sampling the input image at least once.
  • the input image features of the first size, the second size and the third size can be analyzed, and the input image features of the second size and the third size can be compared by using the input image features of the first size.
  • Perform compensation processing to obtain the compensated second-size and third-size image features, and use the compensated second-size or third-size image features to synthesize to obtain a second-size or third-size super-resolution image .
  • the input image may be a high-resolution image with a third size.
  • the input image can be down-sampled into the first size and the second size by down-sampling the input image at least once.
  • the input image features of the first size, the second size, and the third size are obtained through analysis, and the input image features of the second size and the third size are analyzed by using the input image features of the first size.
  • the compensation process can obtain the image features of the second size and the third size after compensation.
  • an enhanced image of the third size can be synthesized. If the input image is of the second size, the compensated image feature of the second size may be used to synthesize to obtain an enhanced image of the second size.
  • the image feature compensation module can be used to compensate two or more image features with different resolutions without using a complex recursive structure.
  • the image feature compensation module can be used to compensate two or more image features with different resolutions without using a complex recursive structure.
  • by sequentially compensating image features of different sizes in the order of resolution from low to high it can be ensured that only low-resolution information is transferred to high-resolution image features, and high-resolution information will not be Transfer to low-resolution image features, thereby reducing the complexity of the image processing device.
  • the image processing device 400 may include a receiving module 410, an image feature processing module 420, N image feature compensation modules 430-1 to 430-N cascaded, and an output module 440.
  • the receiving module 410, the image feature processing module 420, and the output module 440 can be implemented as the receiving module 310, the image feature processing module 320, and the output module 340 shown in FIG. 3, and details are not described herein again.
  • Each of the cascaded N image feature compensation modules 430-1 to 430-N may be implemented as the image feature compensation module 330 shown in FIG. 3.
  • each image feature compensation module can use the first image feature of the first size to compensate the image feature larger than the first size.
  • the first image feature of the first size can be used to compensate the second image feature of the second size and the third image feature of the third size. Then, the compensated second image feature and the compensated third image feature output by the i-th level image feature compensation module can be input to the i+1 level image feature compensation module.
  • the second image feature input to the i+1 level image feature compensation module is the compensated second image feature output by the i level image feature compensation module
  • the third image feature input to the i+1 level image feature compensation module Is the compensated third image feature output by the i-th level image feature compensation module. Therefore, the i+1 level image feature compensation module may be configured to use the first image feature to compensate the compensated second image feature generated by the i level image feature compensation module to obtain a further compensated second image feature
  • the further compensated second image feature is used to compensate the compensated third image feature generated by the i-th level image feature compensation module to obtain the further compensated third image feature.
  • using the first image feature to compensate the compensated second image feature to generate a further compensated second image feature may include: downloading the compensated second image feature Sampling to obtain the down-sampled compensated second image feature of the first size. Then, a de-superimposition operation may be performed on the down-sampled compensated second image feature and the first image feature to generate a third compensated image feature of the first size. Further, the third compensated image feature may be up-sampled to obtain the up-sampled third compensated image feature of the second size. Further, a superposition operation is performed on the up-sampled third compensated image feature and the compensated second image feature of the second size to generate a further compensated second image feature of the second size.
  • Using the further compensated second image feature to compensate the compensated third image feature to generate the further compensated third image feature may include down-sampling the compensated second image feature to obtain The compensated second image feature after downsampling of the first size. Then, a de-superimposition operation may be performed on the down-sampled compensated second image feature and the first image feature to generate a third compensated image feature of the first size. Then, the third compensated image feature may be up-sampled to obtain the up-sampled third compensated image feature of the second size. Further, a superposition operation may be performed on the up-sampled third compensated image feature and the compensated second image feature of the second size to generate a further compensated second image feature of the second size.
  • the output module 440 may be configured to be based on the compensated second image feature generated by the Nth level image feature compensation unit and the compensated first image feature generated by the Nth level image feature compensation unit.
  • Three image features determine the output image.
  • the output module 440 may use a synthesis network to synthesize the compensated second image feature generated by the Nth level image feature compensation unit into a second size output image, or use a synthesis network to synthesize the compensation generated by the Nth level image feature compensation unit The latter third image feature is synthesized into an output image of the third size.
  • the high-resolution image features can be compensated multiple times by the multi-level feature compensation unit, so that images with better quality can be output.
  • Fig. 5 shows an example of an image feature processing module according to an embodiment of the present disclosure.
  • the image feature processing module 520 may include analysis networks 521-1, 521-2, and 521-3, and a first image feature processing unit 522, a second image feature processing unit 523, and a third image feature processing unit 524 .
  • the image feature processing module 520 may be used to process the received input image.
  • the first image feature corresponding to the first input image may be determined based on the first input image of the first size, the second input image of the second size, and the third input image of the third size determined by the input module , The second input image feature corresponding to the second input image and the third input image feature corresponding to the third input image.
  • the analysis networks 521-1, 521-2, 521-3 can be used to process the first input image, the second input image, and the third input image, respectively, to obtain the first image feature corresponding to the first input image and the corresponding The first input image feature in the second input image and the third input image feature corresponding to the third input image.
  • the first image feature processing unit 522, the second image feature processing unit 523, and the third image feature processing unit 524 can be used to perform processing on the first input image feature, the second input image feature, and the third input image feature. Process to determine the first image feature, the second image feature, and the third image feature.
  • the first image feature processing unit 522 may be configured to up-sample the first image feature, and output the up-sampled first image feature to the second image feature processing unit. Further, the first image feature processing unit 522 may also be configured to output the first image feature to an image feature compensation module connected to the image feature processing module 520.
  • the second image feature processing unit 523 may be configured to perform a superposition operation on the second input image feature and the up-sampled first image feature to obtain a second image feature of a second size. Further, the second image feature processing unit 523 may also be configured to output the second image feature to the image feature compensation module connected to the image feature processing module 520 and the third image feature processing unit 524.
  • the third image feature processing unit 524 may be configured to up-sample the second image feature, and perform an overlay operation on the up-sampled second image feature and the third input image feature to obtain the third image feature. Further, the third image feature processing unit 524 may also be configured to output the third image feature to the image feature compensation module connected to the image feature processing module 520.
  • Fig. 6 shows an exemplary network structure of an image processing apparatus according to an embodiment of the present disclosure.
  • the image processing device 600 may include an input module (not shown), an image feature processing module 620, cascaded three-level image feature compensation modules 630-1, 630-2, and 630-3, and an output module 640.
  • the image feature processing module 620 may include an up-sampling sub-unit 611.
  • the image feature processing module 620 may further include a downsampling subunit (not shown). Up-sampling and down-sampling the input image using the up-sampling sub-unit and the down-sampling sub-unit, the first input image of the first size, the second input image of the second size, and the third input of the third size can be determined based on the input image image.
  • the image feature processing module 620 may further include analysis networks 621-1, 621-2, 621-3 for processing the first input image, the second input image, and the third input image, respectively.
  • the image feature processing module 620 may further include a first image feature processing unit 622, a second image feature processing unit 623, and a third image feature processing unit 624.
  • the image feature processing module 620 may be configured to process the first input image, the second input image, and the third input image to determine the first image feature, the second image feature, and the third image feature.
  • the image feature processing module 620 may be implemented in the form of the image feature processing module 520, which will not be repeated here.
  • the cascaded three-level image feature compensation modules 630-1, 630-2, and 630-3 may be the same.
  • the following takes the image feature compensation module 630-1 as an example to explain the principle of the present disclosure.
  • the image feature compensation module 630-1 may be formed by a plurality of image feature compensation units 631. Although the image feature compensation module 630-1 in FIG. 6 includes only three image feature compensation units, those skilled in the art can understand that the image feature compensation module may include more or less images in accordance with the principles of the present disclosure.
  • the feature compensation unit for example, two image feature compensation units or more than four image feature compensation units.
  • Fig. 7 shows a schematic structural diagram of an image feature compensation unit according to an embodiment of the present disclosure.
  • the image feature processing unit 631 may include 3 input terminals, 3 output terminals, and up-sampling sub-unit 710, superimposing sub-unit 720, down-sampling sub-unit 730, and de-superimposing unit 740.
  • the image feature processing unit can perform the following operations: use the upsampling subunit 710 to perform upsampling on input 1; use the superposition subunit 720 to perform superposition operations on the upsampled input 1 and input 2; use downsampling
  • the sub-unit 730 performs down-sampling on the input 3; and the de-superimposing unit 740 performs a de-superimposing operation on the down-sampled input 3 and the image features output by the superimposing sub-unit.
  • the upsampling sub-unit 710 may be implemented as a convolutional network including a normalization layer and a strided convolution layer.
  • the down-sampling subunit 730 may be implemented as a convolutional network including a normalization layer and a transposed convolutional layer (strided transposed convolution).
  • the upsampling subunit 710 may also be implemented as conventional upsampling, such as linear interpolation, bicubic interpolation, Lanczos interpolation, and so on.
  • the superimposition subunit 720 may be implemented as a convolutional network including a convolutional layer. For example, two image features to be superimposed can be combined into a feature with a larger size and input into a superposition subunit in the form of a convolutional network for processing.
  • the output of the convolutional network is configured to have the same image feature size as the image feature size to be superimposed.
  • the trained convolutional network can output the result of image information superimposed with two image features.
  • the superimposing subunit 720 may also be configured to directly add the values of the corresponding elements of the two image features to be superimposed, so as to realize the information superimposition of the two image features. For example, FIG.
  • FIG. 8A shows a schematic diagram of the working principle of the superposition subunit according to the present disclosure.
  • the image feature 810 and the image feature 820 can be combined into a feature with a larger size and input into a convolutional network.
  • the convolutional network can output the superimposed image feature 830.
  • the de-superimposition sub-unit 740 may be implemented as a convolutional network including a convolutional layer. For example, two image features to be processed can be combined into one feature with a larger size and input into a de-superimposition subunit in the form of a convolutional network for processing.
  • the output of the convolutional network is configured to have the same image feature size as the image feature size to be processed.
  • the trained convolutional network can output the result that represents the difference information of the two image features.
  • the de-overlap subunit 740 may also be configured to directly subtract the values of the corresponding elements of the two image features to be processed to determine the difference information between the two image features. For example, FIG.
  • the image feature 840 and the image feature 850 can be combined into a feature with a larger size and input into a convolutional network.
  • the convolutional network can output the image feature 860 representing the difference.
  • the image feature compensation unit shown in FIG. 7 includes 3 input terminals and 3 output terminals, when 3 image features are input to the image feature compensation unit, the image feature compensation unit can realize the aforementioned functions . If one or two of the inputs are missing, the image feature compensation unit will skip the corresponding operation. For example, when only input 1 and input 2 are input to the image feature compensation unit, the image feature compensation unit will omit the operation of the down-sampling sub-unit 730 and the operation of the de-superimposition sub-unit 740, and directly output the result of the superimposition sub-unit 720 as output 1. , Output 2 and output 3.
  • the image feature compensation unit when only input 2 is input to the image feature compensation unit, the image feature compensation unit will not perform any operation and directly output input 2 as output 1, output 2, and output 3.
  • the image feature compensation unit when only input 2 and input 3 are input to the image feature compensation unit, the image feature compensation unit will omit the operation of the up-sampling sub-unit 710 and the overlap operation for input 1 and input 2, and directly input 2 and the down-sampled input 3 perform de-superposition operation. And you can directly use input 2 and output as output 2 and output 1.
  • the first image feature processing unit 622, the second image feature processing unit 623, and the third image feature processing unit 624 in the image feature processing module in FIG. 6 can also be implemented as the image features shown in FIG. The form of the compensation unit.
  • the arrows shown in FIG. 6 representing the units 622, 623, 624, and 631 represent the input and output directions of the processing unit. It can be seen that the first image feature processing unit 622 operates according to only input 2, the second image feature processing unit 623 operates according to only input 1 and input 2, and the third image feature processing unit 624 operates according to only input 2. There are input 1 and input 2 modes for operation.
  • the image processing apparatus can be realized by using the network structure shown in FIG. 6. It can be understood that using the network structure shown in FIG. 6, the present disclosure does not limit the size of the input image and the output image. Regardless of whether the input is a low-resolution small-size image or a high-resolution large-size image, the network structure shown in FIG. 6 can be used to process image features of different sizes associated with the input image.
  • the network structure shown in FIG. 6 can be trained by using training sets determined for different purposes.
  • the network 600 can be trained using high-resolution original images to determine the network 600 for generating super-resolution images based on low-resolution images.
  • the network 600 can be trained using high-definition original images to determine the network 600 for generating a clear image based on the blurred image.
  • the network 600 can be trained using color original images to determine the network 600 used to color the grayscale image.
  • the network 600 may be used to process the sample images used for training, and compare the difference between the image output by the network 600 and the real image. For example, at least one of the L1 regular term and the L2 regular term between the output image of the network 600 and the real image may be determined as the loss function of the network, and the parameters in the network 600 may be adjusted to minimize the loss function. For example, the parameters of the convolution kernel in the up-sampling sub-unit, the down-sampling sub-unit superimposing sub-unit, and the de-superimposing sub-unit implemented as a convolutional network can be adjusted to minimize the loss function of the network 600.
  • FIG. 9 shows the architecture of the computing device.
  • the computing device 1000 may include a bus 910, one or more processors (CPU) 920, a read only memory (ROM) 930, a random access memory (RAM) 940, a communication port 950 connected to a network, Input/output components 960, hard disk 970, etc.
  • the storage device in the computing device 900 such as the ROM 930 or the hard disk 970, can store various data or files used in the processing and/or communication of the method for locating an electronic device provided in this application, and program instructions executed by the CPU.
  • the computing device 900 may also include a user interface 980.
  • the architecture shown in FIG. 9 is only exemplary. When implementing different devices, one or more components of the computing device shown in FIG. 9 may be omitted according to actual needs.
  • the embodiments of the present application can also be implemented as a computer-readable storage medium.
  • the computer-readable storage medium stores computer-readable instructions.
  • the computer-readable instructions are executed by the processor, the method according to the embodiments of the present application described with reference to the above drawings can be executed.
  • the computer-readable storage medium includes, but is not limited to, for example, volatile memory and/or non-volatile memory.
  • the volatile memory may include random access memory (RAM) and/or cache memory (cache), for example.
  • the non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Artificial Intelligence (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

Disclosed are an image processing method and device, comprising: receiving an input image, and processing the input image to determine a first image feature of a first size, a second image feature of a second size and a third image feature of a third size, the first size being less than the second size and the second size being less than the third size; compensating the second image feature by using the first image feature to generate a compensated second image feature of the second size; compensating the third image feature by using the compensated second image feature to generate a compensated third image feature of the third size; and determining an output image based on the compensated second image feature and the compensated third image feature.

Description

图像处理方法、装置、设备以及计算机可读介质Image processing method, device, equipment and computer readable medium
相关文献的交叉引用Cross-reference of related literature
本公开要求于2019年3月19日递交的中国专利申请第201910209661.8号的优先权,在此全文引用上述中国专利申请公开的内容以作为本申请的一部分。This disclosure claims the priority of the Chinese patent application No. 201910209661.8 filed on March 19, 2019, and the content of the above-mentioned Chinese patent application is quoted here in full as a part of this application.
技术领域Technical field
本公开涉及图像处理领域,具体涉及一种用于图像处理方法、装置、设备以及计算机可读介质。The present disclosure relates to the field of image processing, and in particular to a method, device, device, and computer-readable medium for image processing.
背景技术Background technique
在现有的图像处理方法中,使用递归的方式实现针对与输入图像相关联的多个不同尺寸的图像特征的处理。然而,在使用递归的图像处理算法中,由于需要保存每一级递归生成的结果用于后续使用,因此将占用较大的内存空间。In the existing image processing method, a recursive manner is used to implement processing for multiple image features of different sizes associated with the input image. However, in image processing algorithms that use recursion, since the results generated by each level of recursion need to be saved for subsequent use, it will occupy a larger memory space.
此外,在现有的使用递归的图像处理方法中,高分辨率的图像信息会被转移到低分辨率的图像信息中,并导致更为复杂的参数优化环境,从而使得图像处理的结果更坏。In addition, in the existing image processing methods that use recursion, high-resolution image information will be transferred to low-resolution image information, which leads to a more complex parameter optimization environment, which makes the results of image processing worse. .
发明内容Summary of the invention
针对以上问题,本公开提供一种新的图像处理方法,其能够不使用递归结构而实现对于图像的多个不同尺寸的图像特征的处理。In view of the above problems, the present disclosure provides a new image processing method, which can realize the processing of multiple image features of different sizes without using a recursive structure.
根据本公开的一方面,提出了一种图像处理方法,包括:接收输入图像,对所述输入图像进行处理以确定第一尺寸的第一图像特征、第二尺寸的第二图像特征和第三尺寸的第三图像特征,其中所述第一尺寸小于所述第二尺寸,所述第二尺寸小于所述第三尺寸;利用所述第一图像特征对所述第二图像特征进行补偿,以生成第二尺寸的补偿后的第二图像特征;利用所述补偿后的第二图像特征对所述第三图像特征进行补偿,以生成第三尺寸的补偿后的第三图像特征;以及基于所述补偿后的第二图像特征或所述补偿后的第三图像 特征确定输出图像。According to an aspect of the present disclosure, an image processing method is provided, including: receiving an input image, processing the input image to determine a first image feature of a first size, a second image feature of a second size, and a third image feature. Size of the third image feature, wherein the first size is smaller than the second size, and the second size is smaller than the third size; the first image feature is used to compensate the second image feature to Generating a compensated second image feature of a second size; using the compensated second image feature to compensate the third image feature to generate a compensated third image feature of a third size; and based on the The compensated second image feature or the compensated third image feature determines an output image.
在一些实施例中,利用所述第一图像特征对所述第二图像特征进行补偿,以生成第二尺寸的补偿后的第二图像特征包括:对所述第二图像特征进行下采样,以得到第一尺寸的下采样后的第二图像特征;对下采样后的第二图像特征和所述第一图像特征执行去叠加操作,以生成第一尺寸的第一补偿图像特征;对第一补偿图像特征进行上采样,以得到第二尺寸的上采样后的第一补偿图像特征;对上采样后的第一补偿图像特征和所述第二图像特征执行叠加操作,以生成第二尺寸的补偿后的第二图像特征。In some embodiments, using the first image feature to compensate the second image feature to generate a compensated second image feature of the second size includes: down-sampling the second image feature to Obtain the down-sampled second image feature of the first size; perform a de-superposition operation on the down-sampled second image feature and the first image feature to generate the first compensated image feature of the first size; The compensation image feature is up-sampled to obtain the up-sampled first compensation image feature of the second size; the up-sampled first compensation image feature and the second image feature are superimposed to generate the second size The second image feature after compensation.
在一些实施例中,对下采样后的第二图像特征和所述第一图像特征执行去叠加操作包括:对下采样后的第二图像特征和所述第一图像特征中的对应元素执行减法操作;或对下采样后的第二图像特征和所述第一图像特征的组合执行卷积操作。In some embodiments, performing a de-superimposition operation on the down-sampled second image feature and the first image feature includes: performing a subtraction on the down-sampled second image feature and corresponding elements in the first image feature Operation; or perform a convolution operation on the combination of the down-sampled second image feature and the first image feature.
在一些实施例中,对上采样后的第一补偿图像特征和所述第二图像特征执行叠加操作包括:对上采样后的第一补偿图像特征和所述第二图像特征中的对应元素执行加法操作。In some embodiments, performing an overlay operation on the up-sampled first compensated image feature and the second image feature includes: performing the up-sampled first compensated image feature and corresponding elements in the second image feature Addition operation.
在一些实施例中,利用所述补偿后的第二图像特征对所述第三图像特征进行补偿,以生成补偿后的第三图像特征包括:对所述第三图像特征进行下采样,以得到第二尺寸的下采样后的第三图像特征;对下采样后的第三图像特征和所述补偿后的第二图像特征执行去叠加操作,以生成第二尺寸的第二补偿图像特征;对所述第二补偿图像特征进行上采样,以得到第三尺寸的上采样后的第二补偿图像特征;对所述第三图像特征和上采样后的第二补偿图像特征执行叠加操作,以生成第三尺寸的补偿后的第三图像特征。In some embodiments, using the compensated second image feature to compensate the third image feature to generate the compensated third image feature includes: down-sampling the third image feature to obtain The down-sampled third image feature of the second size; performing a de-superimposition operation on the down-sampled third image feature and the compensated second image feature to generate a second compensated image feature of the second size; The second compensated image feature is up-sampled to obtain an up-sampled second compensated image feature of a third size; an overlay operation is performed on the third image feature and the up-sampled second compensated image feature to generate The compensated third image feature of the third size.
在一些实施例中,基于所述补偿后的第二图像特征或所述补偿后的第三图像特征确定输出图像包括:对所述补偿后的第二图像特征进行下采样,以得到第一尺寸的下采样后的补偿后的第二图像特征;对下采样后的补偿后的第二图像特征和所述第一图像特征执行去叠加操作,以生成第一尺寸的第三补偿图像特征;对所述第三补偿图像特征进行上采样,以得到第二尺寸的上采样后的第三补偿图像特征;对所述补偿后的第二图像特征和所述上采样后的第三补偿图像特征执行叠加操作,以生成第二尺寸的进一步补偿的第二图像特征;对所述补偿后的第三图像特征进行下采样,以得到第二尺寸的下采 样后的补偿后的第三图像特征;对下采样后的补偿后的第三图像特征和所述进一步补偿的第二图像特征执行去叠加操作,以生成第二尺寸的第四补偿图像特征;对所述第四补偿图像特征进行上采样,以得到第三尺寸的上采样后的第四补偿图像特征;对所述补偿后的第三图像特征和上采样后的第四补偿图像特征执行叠加操作,以生成第三尺寸的进一步补偿的第三图像特征;以及基于所述进一步补偿的第二图像特征或所述进一步补偿的第三图像特征生成输出图像。In some embodiments, determining the output image based on the compensated second image feature or the compensated third image feature includes: down-sampling the compensated second image feature to obtain the first size The down-sampling of the compensated second image feature; the down-sampling of the compensated second image feature and the first image feature to perform a de-superimposition operation to generate a third compensated image feature of the first size; Up-sampling the third compensated image feature to obtain an up-sampled third compensated image feature of a second size; executes on the compensated second image feature and the up-sampled third compensated image feature Superimposing operation to generate a further compensated second image feature of the second size; down-sampling the compensated third image feature to obtain the down-sampled compensated third image feature of the second size; The down-sampled compensated third image feature and the further compensated second image feature perform a de-overlapping operation to generate a fourth compensated image feature of the second size; up-sampling the fourth compensated image feature, To obtain the up-sampled fourth compensated image feature of the third size; perform a superposition operation on the compensated third image feature and the up-sampled fourth compensated image feature to generate a further compensated second image feature of the third size Three image features; and generating an output image based on the further compensated second image feature or the further compensated third image feature.
在一些实施例中,对所述输入图像进行处理以确定与所述输入图像相关联的第一尺寸的第一图像特征、第二尺寸的第二图像特征和第三尺寸的第三图像特征包括:根据所述输入图像确定第一尺寸的第一输入图像,第二尺寸的第二输入图像以及第三尺寸的第三输入图像,分别对所述第一输入图像、所述第二输入图像和所述第三输入图像进行处理以确定第一尺寸的第一图像特征、第二尺寸的第一输入图像特征和第三尺寸的第二输入图像特征;对所述第一图像特征进行上采样,并对所述第一输入图像特征和上采样后的第一图像特征执行叠加操作,以获得第二尺寸的第二图像特征;对所述第二图像特征进行上采样,并对上采样后的第二图像特征和所述第二输入图像特征执行叠加操作,以获得第三尺寸的第三图像特征。In some embodiments, processing the input image to determine a first image feature of a first size, a second image feature of a second size, and a third image feature of a third size associated with the input image includes : Determine a first input image of a first size, a second input image of a second size, and a third input image of a third size according to the input image, respectively, for the first input image, the second input image and Processing the third input image to determine a first image feature of a first size, a first input image feature of a second size, and a second input image feature of a third size; up-sampling the first image feature, And perform an overlay operation on the first input image feature and the up-sampled first image feature to obtain a second image feature of a second size; up-sampling the second image feature, and the up-sampled The second image feature and the second input image feature perform an overlapping operation to obtain a third image feature of a third size.
在一些实施例中,所述输入图像具有第一尺寸,根据所述输入图像确定第一尺寸的第一输入图像,第二尺寸的第二输入图像以及第三尺寸的第三输入图像包括:将所述输入图像确定为第一尺寸的第一输入图像;对第一尺寸的第一输入图像进行上采样以生成第二尺寸的第二输入图像;对第二尺寸的第二输入图像进行上采样以生成第三尺寸的第三输入图像。In some embodiments, the input image has a first size, and determining the first input image of the first size, the second input image of the second size, and the third input image of the third size according to the input image includes: The input image is determined to be the first input image of the first size; the first input image of the first size is up-sampled to generate the second input image of the second size; the second input image of the second size is up-sampled To generate a third input image of a third size.
在一些实施例中,基于所述补偿后的第二图像特征或所述补偿后的第三图像特征确定输出图像包括:利用所述第一图像特征对所述补偿后的第二图像特征进行补偿,以生成进一步补偿的第二图像特征;利用所述进一步补偿的第二图像特征对所述补偿后的第三图像特征进行补偿,以生成进一步补偿的第三图像特征;以及基于所述进一步补偿的第二图像特征或所述进一步补偿的第三图像特征生成输出图像。In some embodiments, determining the output image based on the compensated second image feature or the compensated third image feature includes: using the first image feature to compensate the compensated second image feature , To generate a further compensated second image feature; use the further compensated second image feature to compensate the compensated third image feature to generate a further compensated third image feature; and based on the further compensation The second image feature or the further compensated third image feature generates an output image.
在一些实施例中,利用所述第一图像特征对所述补偿后的第二图像特征进行补偿,以生成进一步补偿的第二图像特征包括:对所述补偿后的第二图 像特征进行下采样,以得到第一尺寸的下采样后的补偿后的第二图像特征;对下采样后的补偿后的第二图像特征和所述第一图像特征执行去叠加操作,以生成第一尺寸的第三补偿图像特征;对所述第三补偿图像特征进行上采样,以得到第二尺寸的上采样后的第三补偿图像特征;对上采样后的第三补偿图像特征和所述补偿后的第二图像特征执行叠加操作,以生成第二尺寸的进一步补偿的第二图像特征。In some embodiments, using the first image feature to compensate the compensated second image feature to generate a further compensated second image feature includes: down-sampling the compensated second image feature , To obtain the down-sampled and compensated second image feature of the first size; perform a de-superposition operation on the down-sampled, compensated second image feature and the first image feature to generate the first size of the first image feature Three compensated image features; up-sampling the third compensated image feature to obtain the up-sampled third compensated image feature of the second size; the up-sampled third compensated image feature and the compensated first The two image features are superimposed to generate a second image feature of the second size that is further compensated.
在一些实施例中,利用所述进一步补偿的第二图像特征对所述补偿后的第三图像特征进行补偿,以生成进一步补偿的第三图像特征包括:对所述补偿后的第三图像特征进行下采样,以得到第二尺寸的下采样后的补偿后的第三图像特征;对下采样后的补偿后的第三图像特征和所述进一步补偿的第二图像特征执行去叠加操作,以生成第二尺寸的第四补偿图像特征;对所述第四补偿图像特征进行上采样,以得到第三尺寸的上采样后的第四补偿图像特征;对所述补偿后的第三图像特征和上采样后的第四补偿图像特征执行叠加操作,以生成第三尺寸的进一步补偿的第三图像特征。In some embodiments, using the further compensated second image feature to compensate the compensated third image feature to generate the further compensated third image feature includes: compensating the compensated third image feature Down-sampling is performed to obtain the down-sampled compensated third image feature of the second size; the down-sampling compensated third image feature and the further compensated second image feature are de-superposed to Generate a fourth compensated image feature of the second size; up-sample the fourth compensated image feature to obtain an up-sampled fourth compensated image feature of the third size; compare the compensated third image feature and The up-sampled fourth compensated image feature performs a superposition operation to generate a further compensated third image feature of a third size.
在一些实施例中,所述第二尺寸是所述第一尺寸的M倍,第三尺寸是所述第二尺寸的M倍,M是大于1的整数。In some embodiments, the second size is M times the first size, the third size is M times the second size, and M is an integer greater than one.
根据本公开的另一方面,提出了一种图像处理装置,包括:接收模块,配置成接收输入图像;图像特征处理模块,配置成对所述输入图像进行处理以确定第一尺寸的第一图像特征、第二尺寸的第二图像特征和第三尺寸的第三图像特征,其中所述第一尺寸小于所述第二尺寸,所述第二尺寸小于所述第三尺寸;图像特征补偿模块,包括:第一补偿单元,配置成利用所述第一尺寸的第一图像特征对所述第二图像特征进行补偿,以生成第二尺寸的补偿后的第二图像特征;以及第二补偿单元,配置成利用所述补偿后的第二图像特征对所述第三图像特征进行补偿,以生成第三尺寸的补偿后的第三图像特征;以及输出模块,配置成基于所述补偿后的第二图像特征或所述补偿后的第三图像特征确定输出图像。According to another aspect of the present disclosure, an image processing device is provided, including: a receiving module configured to receive an input image; an image feature processing module configured to process the input image to determine a first image of a first size Feature, a second image feature of a second size, and a third image feature of a third size, wherein the first size is smaller than the second size, and the second size is smaller than the third size; an image feature compensation module, It includes: a first compensation unit configured to compensate the second image feature using the first image feature of the first size to generate a compensated second image feature of the second size; and a second compensation unit, Configured to use the compensated second image feature to compensate the third image feature to generate a compensated third image feature of a third size; and an output module configured to be based on the compensated second The image feature or the compensated third image feature determines the output image.
在一些实施例中,所述第一补偿单元进一步配置成:利用下采样子单元对所述第二图像特征进行下采样,以得到第一尺寸的下采样后的第二图像特征;利用去叠加子单元对下采样后的第二图像特征和所述第一尺寸的第一图像特征执行去叠加操作,以生成第一尺寸的第一补偿图像特征;利用上采样 子单元对第一补偿图像特征进行上采样,以得到第二尺寸的上采样后的第一补偿图像特征;以及利用叠加子单元对上采样后的第一补偿图像特征和所述第二图像特征执行叠加操作,以生成第二尺寸的补偿后的第二图像特征。In some embodiments, the first compensation unit is further configured to: use a down-sampling sub-unit to down-sample the second image feature to obtain a down-sampled second image feature of the first size; The sub-unit performs a de-superimposition operation on the down-sampled second image feature and the first image feature of the first size to generate the first compensated image feature of the first size; the up-sampling sub-unit is used to perform the de-superposition operation on the first compensated image feature Up-sampling is performed to obtain the up-sampled first compensated image feature of the second size; and the overlay subunit is used to perform an overlay operation on the up-sampled first compensated image feature and the second image feature to generate a second The size of the compensated second image feature.
在一些实施例中,所述去叠加子单元进一步配置成:对下采样后的第二图像特征和所述第一尺寸的第一图像特征中的对应元素执行减法操作;或对下采样后的第二图像特征和所述第一尺寸的第一图像特征的组合执行卷积操作。In some embodiments, the de-overlap subunit is further configured to: perform a subtraction operation on the down-sampled second image feature and the corresponding element in the first image feature of the first size; or perform a subtraction operation on the down-sampled The combination of the second image feature and the first image feature of the first size performs a convolution operation.
在一些实施例中,所述叠加子单元进一步配置成:对上采样后的第一补偿图像特征和所述第二图像特征中的对应元素执行加法操作。In some embodiments, the superimposing subunit is further configured to perform an addition operation on corresponding elements in the up-sampled first compensated image feature and the second image feature.
在一些实施例中,所述第二补偿单元进一步配置成:利用下采样子单元对所述第三图像特征进行下采样,以得到第二尺寸的下采样后的第三图像特征;利用去叠加子单元对下采样后的第三图像特征和所述补偿后的第二图像特征执行去叠加操作,以生成第二尺寸的第二补偿图像特征;利用上采样子单元对所述第二补偿图像特征进行上采样,以得到第三尺寸的上采样后的第二补偿图像特征;利用叠加子单元对所述第三图像特征和上采样后的第二补偿图像特征执行叠加操作,以生成第三尺寸的补偿后的第三图像特征。In some embodiments, the second compensation unit is further configured to: use a down-sampling subunit to down-sample the third image feature to obtain a down-sampled third image feature of the second size; The sub-unit performs a de-superimposition operation on the down-sampled third image feature and the compensated second image feature to generate a second compensated image feature of the second size; using an up-sampling sub-unit to perform a de-overlapping operation on the second compensated image The feature is up-sampled to obtain the up-sampled second compensated image feature of the third size; the overlay subunit is used to perform the overlay operation on the third image feature and the up-sampled second compensated image feature to generate a third The third image feature after size compensation.
在一些实施例中,所述输出模块进一步配置成:利用下采样子单元对所述补偿后的第二图像特征进行下采样,以得到第一尺寸的下采样后的补偿后的第二图像特征;利用去叠加子单元对下采样后的补偿后的第二图像特征和所述第一图像特征执行去叠加操作,以生成第一尺寸的第三补偿图像特征;利用上采样子单元对所述第三补偿图像特征进行上采样,以得到第二尺寸的上采样后的第三补偿图像特征;利用叠加子单元对所述补偿后的第二图像特征和所述上采样后的第三补偿图像特征执行叠加操作,以生成第二尺寸的进一步补偿的第二图像特征;利用下采样子单元对所述补偿后的第三图像特征进行下采样,以得到第二尺寸的下采样后的补偿后的第三图像特征;利用去叠加子单元对下采样后的补偿后的第三图像特征和所述进一步补偿的第二图像特征执行去叠加操作,以生成第二尺寸的第四补偿图像特征;利用上采样子单元对所述第四补偿图像特征进行上采样,以得到第三尺寸的上采样后的第四补偿图像特征;利用叠加子单元对所述补偿后的第三图像特征和上采样后的第四补偿图像特征执行叠加操作,以生成第三尺寸的进一步补偿的第三 图像特征;以及基于所述进一步补偿的第二图像特征或所述进一步补偿的第三图像特征生成输出图像。In some embodiments, the output module is further configured to: use a downsampling subunit to downsample the compensated second image feature to obtain a downsampled compensated second image feature of the first size Use the de-superimposition subunit to perform a de-superimposition operation on the down-sampled compensated second image feature and the first image feature to generate the third compensated image feature of the first size; use the up-sampling sub-unit to The third compensated image feature is up-sampled to obtain the up-sampled third compensated image feature of the second size; the superimposed subunit is used to perform the up-sampling on the compensated second image feature and the up-sampled third compensated image The feature performs a superposition operation to generate a further compensated second image feature of the second size; the down-sampling subunit is used to down-sample the compensated third image feature to obtain the down-sampled compensated second size The third image feature; using the de-overlap subunit to perform a de-overlap operation on the down-sampled compensated third image feature and the further compensated second image feature to generate a fourth compensated image feature of the second size; Up-sampling the fourth compensated image feature using an up-sampling subunit to obtain an up-sampled fourth compensated image feature of a third size; using an overlay sub-unit to up-sample the compensated third image feature The latter fourth compensated image feature performs a superposition operation to generate a further compensated third image feature of a third size; and an output image is generated based on the further compensated second image feature or the further compensated third image feature.
在一些实施例中,所述图像特征处理模块进一步配置成:根据所述输入图像确定第一尺寸的第一输入图像,第二尺寸的第二输入图像以及第三尺寸的第三输入图像,分别对所述第一输入图像、所述第二输入图像和所述第三输入图像进行处理以确定第一尺寸的第一图像特征、第二尺寸的第一输入图像特征和第三尺寸的第二输入图像特征;对所述第一图像特征进行上采样,并对所述第一输入图像特征和上采样后的第一图像特征执行叠加操作,以获得第二尺寸的第二图像特征;对所述第二图像特征进行上采样,并对上采样后的第二图像特征和所述第二输入图像特征执行叠加操作,以获得第三尺寸的第三图像特征。In some embodiments, the image feature processing module is further configured to determine a first input image of a first size, a second input image of a second size, and a third input image of a third size according to the input image, respectively The first input image, the second input image, and the third input image are processed to determine a first image feature of a first size, a first input image feature of a second size, and a second input image of a third size. Input image features; up-sampling the first image feature, and performing an overlay operation on the first input image feature and the up-sampled first image feature to obtain a second image feature of a second size; The second image feature is up-sampled, and the up-sampled second image feature and the second input image feature are superimposed to obtain a third image feature of a third size.
在一些实施例中,所述输入图像具有第二尺寸,根据所述输入图像确定第一尺寸的第一输入图像,第二尺寸的第二输入图像以及第三尺寸的第三输入图像包括:对第二尺寸的所述输入图像进行下采样以生成第一尺寸的第一输入图像;将所述输入图像确定为第二尺寸的第二输入图像;对第二尺寸的所述输入图像进行上采样以生成第三尺寸的第三输入图像。In some embodiments, the input image has a second size, and determining the first input image of the first size, the second input image of the second size, and the third input image of the third size according to the input image includes: The input image of the second size is down-sampled to generate a first input image of the first size; the input image is determined as a second input image of the second size; the input image of the second size is up-sampled To generate a third input image of a third size.
在一些实施例中,所述图像处理装置包括级联的N级图像特征补偿模块,其中第i+1级图像特征补偿模块配置成利用第一尺寸的第一图像特征对第i级图像特征补偿模块的生成的补偿后的第二图像特征进行补偿以获得进一步补偿的第二图像特征,并利用进一步补偿的第二图像特征对第i级图像特征补偿模块的生成的补偿后的第三图像特征进行补偿,以获得进一步补偿的第三图像特征,其中N是大于1的整数,1≤i<N;以及,所述输出模块还配置成:基于第N级图像特征补偿单元生成的补偿后的第二图像特征或第N级图像特征补偿单元生成的补偿后的第三图像特征确定输出图像。In some embodiments, the image processing device includes a cascaded N-level image feature compensation module, wherein the i+1 level image feature compensation module is configured to compensate the i-th level image feature using the first image feature of the first size The compensated second image feature generated by the module is compensated to obtain a further compensated second image feature, and the compensated third image feature generated by the i-th level image feature is compensated by the further compensated second image feature Performing compensation to obtain a further compensated third image feature, where N is an integer greater than 1, and 1≤i<N; and the output module is further configured to: based on the compensated image feature generated by the Nth level image feature compensation unit The second image feature or the compensated third image feature generated by the Nth level image feature compensation unit determines the output image.
在一些实施例中,所述第i+1级图像特征补偿模块进一步配置成:对所述补偿后的第二图像特征进行下采样,以得到第一尺寸的下采样后的补偿后的第二图像特征;对下采样后的补偿后的第二图像特征和所述第一图像特征执行去叠加操作,以生成第一尺寸的第三补偿图像特征;对所述第三补偿图像特征进行上采样,以得到第二尺寸的上采样后的第三补偿图像特征;对上采样后的第三补偿图像特征和所述补偿后的第二图像特征执行叠加操作,以 生成第二尺寸的进一步补偿的第二图像特征。In some embodiments, the i+1-th level image feature compensation module is further configured to: down-sample the compensated second image feature to obtain the down-sampled compensated second image feature of the first size Image features; performing a de-superimposition operation on the down-sampled compensated second image feature and the first image feature to generate a third compensated image feature of the first size; up-sampling the third compensated image feature , To obtain the up-sampled third compensated image feature of the second size; perform a superposition operation on the up-sampled third compensated image feature and the compensated second image feature to generate a further compensated image of the second size The second image feature.
在一些实施例中,所述第i+1级图像特征补偿模块进一步配置成:对所述补偿后的第三图像特征进行下采样,以得到第二尺寸的下采样后的补偿后的第三图像特征;对下采样后的补偿后的第三图像特征和所述进一步补偿的第二图像特征执行去叠加操作,以生成第二尺寸的第四补偿图像特征;对所述第四补偿图像特征进行上采样,以得到第三尺寸的上采样后的第四补偿图像特征;对所述补偿后的第三图像特征和上采样后的第四补偿图像特征执行叠加操作,以生成第三尺寸的进一步补偿的第三图像特征。In some embodiments, the i+1th level image feature compensation module is further configured to: down-sample the compensated third image feature to obtain the down-sampled compensated third image feature of the second size Image features; performing a de-overlapping operation on the down-sampled compensated third image feature and the further compensated second image feature to generate a fourth compensated image feature of the second size; on the fourth compensated image feature Up-sampling is performed to obtain the up-sampled fourth compensated image feature of the third size; the superimposed operation is performed on the compensated third image feature and the up-sampled fourth compensated image feature to generate the third size Third image feature for further compensation.
在一些实施例中,所述第二尺寸是所述第一尺寸的M倍,所述第三尺寸是所述第二尺寸的M倍,M是大于1的整数。In some embodiments, the second size is M times the first size, the third size is M times the second size, and M is an integer greater than one.
根据本公开的另一方面,还提供了一种图像处理设备,包括处理器和存储器,其中存储器中存储有指令,所述指令在被处理器执行时,使得所述处理器执行如前所述的图像处理方法。According to another aspect of the present disclosure, there is also provided an image processing device including a processor and a memory, wherein instructions are stored in the memory, and when the instructions are executed by the processor, the processor executes the Image processing method.
根据本公开的另一方面,还提供了一种计算机可读存储介质,其上存储有指令,所述指令在被处理器执行时,使得所述处理器执行如前所述的图像处理方法。According to another aspect of the present disclosure, there is also provided a computer-readable storage medium having instructions stored thereon, which, when executed by a processor, cause the processor to execute the image processing method described above.
利用本公开提供的技术方案,通过对与输入图像相关联的不同尺寸的图像特征依次进行补偿,能够在不需要递归的情况下实现对输入图像的多个不同尺寸的图像特征的处理,从而减少图像处理过程中的内存消耗。此外,利用本公开提供的技术方案,由于始终是利用更低分辨率的图像特征对更高分辨率的图像特征进行补偿,因此更高分辨率的图像信息不会对更低分辨率的图像信息造成影响,从而能够简化图像处理方法的参数优化过程,并提高最终的输出图像的图像质量。Using the technical solution provided by the present disclosure, by sequentially compensating image features of different sizes associated with the input image, the processing of multiple image features of different sizes of the input image can be achieved without recursion, thereby reducing Memory consumption during image processing. In addition, with the technical solution provided by the present disclosure, since the image features of lower resolution are always used to compensate for the image features of higher resolution, the image information of higher resolution will not affect the image information of lower resolution. This may affect the parameter optimization process of the image processing method and improve the image quality of the final output image.
附图说明Description of the drawings
为了更清楚地说明本公开实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员而言,在没有做出创造性劳动的前提下,还可以根据这些附图获得其他的附图。以下附图并未刻意按实际尺寸等比例缩放绘制,重点在于示出本公开的主旨。In order to explain the technical solutions of the embodiments of the present disclosure more clearly, the following will briefly introduce the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present disclosure. For those of ordinary skill in the art, without creative work, other drawings can be obtained from these drawings. The following drawings are not deliberately scaled and drawn according to actual size and proportions, and the focus is to show the gist of the present disclosure.
图1示出了根据本公开的实施例的图像处理方法的示意性的流程图;Fig. 1 shows a schematic flowchart of an image processing method according to an embodiment of the present disclosure;
图2示出了利用反向投影方法生成超分辨率图像的原理的示意图;Figure 2 shows a schematic diagram of the principle of generating super-resolution images using the back projection method;
图3示出了根据本公开的实施例的一种图像处理装置的示意性的框图;Fig. 3 shows a schematic block diagram of an image processing device according to an embodiment of the present disclosure;
图4示出了根据本公开的实施例的另一种图像处理装置的示意性的框图;Fig. 4 shows a schematic block diagram of another image processing apparatus according to an embodiment of the present disclosure;
图5示出了根据本公开的实施例的图像特征处理模块的示例;Fig. 5 shows an example of an image feature processing module according to an embodiment of the present disclosure;
图6示出了根据本公开的实施例的图像处理装置的一种示例型的网络结构;FIG. 6 shows an exemplary network structure of an image processing apparatus according to an embodiment of the present disclosure;
图7示出了根据本公开的实施例的图像特征补偿单元的示意性的结构图;Fig. 7 shows a schematic structural diagram of an image feature compensation unit according to an embodiment of the present disclosure;
图8A示出了根据本公开的叠加子单元的工作原理的示意图;FIG. 8A shows a schematic diagram of the working principle of the superposition subunit according to the present disclosure;
图8B示出了根据本公开的去叠加子单元的工作原理的示意图;以及FIG. 8B shows a schematic diagram of the working principle of the de-superimposition subunit according to the present disclosure; and
图9示出了根据本公开的实施例的计算设备的架构图。FIG. 9 shows an architecture diagram of a computing device according to an embodiment of the present disclosure.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例的附图,对本发明实施例的技术方案进行清楚、完整地描述。显然,所描述的实施例是本发明的一部分实施例,而不是全部的实施例。基于所描述的本发明的实施例,本领域普通技术人员在无需创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be described clearly and completely in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. Based on the described embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
除非另外定义,本公开使用的技术术语或者科学术语应当为本发明所属领域内具有一般技能的人士所理解的通常意义。本公开中使用的“第一”、“第二”以及类似的词语并不表示任何顺序、数量或者重要性,而只是用来区分不同的组成部分。同样,“包括”或者“包含”等类似的词语意指出现该词前面的元件或者物件涵盖出现在该词后面列举的元件或者物件及其等同,而不排除其他元件或者物件。“连接”或者“相连”等类似的词语并非限定于物理的或者机械的连接,而是可以包括电性连接或信号连接,不管是直接的还是间接的。Unless otherwise defined, the technical terms or scientific terms used in the present disclosure shall have the ordinary meanings understood by those with ordinary skills in the field to which the present invention belongs. The "first", "second" and similar words used in the present disclosure do not indicate any order, quantity, or importance, but are only used to distinguish different components. Similarly, "including" or "including" and other similar words mean that the elements or items appearing in front of the word cover the elements or items listed after the word and their equivalents, without excluding other elements or items. Similar words such as "connected" or "connected" are not limited to physical or mechanical connections, but may include electrical connections or signal connections, whether direct or indirect.
用于图像处理的卷积网络可以使用图像作为输入和输出,其中卷积网络可以包括至少一个卷积层。并且利用卷积网络中包括的卷积层对与输入图像相关联的图像特征进行处理。在通过训练确定卷积网络中的参数之后,可以利用卷积网络实现图像处理。例如,可以利用训练好的卷积网络生成基于输入图像的超分辨率图像或对输入图像进行去模糊、去噪、着色、去雾等处理。 可以利用原始的高分辨率的清晰图像实现卷积网络的训练。A convolutional network for image processing can use images as input and output, where the convolutional network can include at least one convolutional layer. And the convolutional layer included in the convolutional network is used to process the image features associated with the input image. After the parameters in the convolutional network are determined through training, the convolutional network can be used to implement image processing. For example, a trained convolutional network can be used to generate a super-resolution image based on the input image or perform deblurring, denoising, coloring, and dehazing on the input image. The original high-resolution clear image can be used to implement the training of the convolutional network.
图1示出了根据本公开的实施例的图像处理方法的示意性的流程图100。在步骤S102中,可以接收输入图像。Fig. 1 shows a schematic flowchart 100 of an image processing method according to an embodiment of the present disclosure. In step S102, an input image can be received.
在步骤S104中,可以对接收的输入图像进行处理以确定与所述输入图像相关联的具有第一尺寸的第一图像特征、具有第二尺寸的第二图像特征和具有第三尺寸的第三图像特征,其中所述第一尺寸小于所述第二尺寸,所述第二尺寸小于所述第三尺寸。这里所说的图像尺寸可以是以像素为单位的尺寸。在这种情况下,图像或图像特征的尺寸越大意味着其分辨率越高。In step S104, the received input image may be processed to determine a first image feature having a first size, a second image feature having a second size, and a third image feature having a third size associated with the input image. Image feature, wherein the first size is smaller than the second size, and the second size is smaller than the third size. The image size mentioned here may be a size in pixels. In this case, the larger the size of the image or image feature means the higher its resolution.
这里所说的尺寸指的是图像或图像特征的长或宽的尺寸。在一些实施例中,所述第二尺寸是所述第一尺寸的M倍,所述第三尺寸是所述第二尺寸的M倍,M可以是大于1的整数。例如,M可以等于2、3、4等。在本公开中以M=2为例描述本公开的原理,即第二尺寸是第一尺寸的2倍、第三尺寸是第二尺寸的2倍描述本公开涉及的原理。例如,假设第一图像特征的尺寸是16*16,那么第二图像特征的尺寸是32*32,第三图像特征的尺寸是64*64。可以理解的是,M不限于是整数,也可以实现为大于1的任何数。The size mentioned here refers to the length or width of an image or image feature. In some embodiments, the second size is M times the first size, the third size is M times the second size, and M may be an integer greater than 1. For example, M can be equal to 2, 3, 4, etc. In the present disclosure, M=2 is taken as an example to describe the principle of the present disclosure, that is, the second size is twice the first size, and the third size is twice the second size to describe the principle involved in the present disclosure. For example, assuming that the size of the first image feature is 16*16, the size of the second image feature is 32*32, and the size of the third image feature is 64*64. It can be understood that M is not limited to being an integer, and can also be implemented as any number greater than 1.
在一些实施例中,可以基于所接收的输入图像生成与输入图像的尺寸不同的其他输入图像,以得到在后续的图像处理过程中所需要的其他尺寸的图像特征。例如,通过上采样或下采样等方式,可以根据所述输入图像确定具有第一尺寸的第一输入图像,具有第二尺寸的第二输入图像以及具有第三尺寸的第三输入图像。本公开提供的技术方案不限制输入图像的尺寸,可以利用上采样和下采样的方式对输入图像进行处理以满足本公开提供的图像处理装置的输入要求。In some embodiments, other input images different in size from the input image may be generated based on the received input image to obtain image features of other sizes required in the subsequent image processing process. For example, by up-sampling or down-sampling, a first input image with a first size, a second input image with a second size, and a third input image with a third size can be determined from the input image. The technical solution provided in the present disclosure does not limit the size of the input image, and the input image can be processed in the manner of up-sampling and down-sampling to meet the input requirements of the image processing device provided in the present disclosure.
在一些实施例中,可以基于第一输入图像、第二输入图像以及第三输入图像确定具有第一尺寸的第一图像特征、具有第二尺寸的第二图像特征和具有第三尺寸的第三图像特征。In some embodiments, a first image feature having a first size, a second image feature having a second size, and a third image feature having a third size may be determined based on the first input image, the second input image, and the third input image. Image characteristics.
在本公开的实施例中,“图像特征”指的是利用训练好的分析网络对图像进行处理后输出的结果。例如,分析网络可以实现为卷积网络。通过对图像进行卷积处理得到的图像特征能够表示图像中更高阶的信息,例如图像中的语义信息。通过利用训练好的神经网络对图像特征进行进一步处理能够实现对输入图像产生预定义的处理结果。In the embodiments of the present disclosure, the "image feature" refers to the output result of processing the image using a trained analysis network. For example, the analysis network can be implemented as a convolutional network. The image features obtained by convolving the image can represent higher-order information in the image, such as semantic information in the image. By using the trained neural network to further process the image features, it is possible to generate predefined processing results for the input image.
可以利用第一尺寸的第一图像特征对分辨率更高的第二图像特征和第三 图像特征进行补偿。The first image feature of the first size can be used to compensate the second image feature and the third image feature of higher resolution.
在一些实施例中,在步骤S104中,可以根据所述输入图像确定具有第一尺寸的第一输入图像,具有第二尺寸的第二输入图像以及具有第三尺寸的第三输入图像。In some embodiments, in step S104, a first input image having a first size, a second input image having a second size, and a third input image having a third size may be determined according to the input image.
例如,如果输入图像具有第一尺寸,那么可以将输入图像确定为第一输入图像,并对输入图像进行一次上采样以生成具有第二尺寸的第二输入图像,对输入图像进行两次上采样以生成具有第三尺寸的第三输入图像。又例如,如果输入图像具有第二尺寸,那么可以将输入图像确定为第二输入图像,并对输入图像进行一次下采样以生成具有第一尺寸的第一输入图像,对输入图像进行一次上采样以生成具有第三尺寸的第三输入图像。再例如,如果输入图像具有的第三尺寸,那么可以将输入图像确定为第三输入图像,并对输入图像进行一次下采样以生成具有第二尺寸的第二输入图像,对输入图像分别进行两次下采样以生成和具有第一尺寸的第一输入图像。以此类推,本公开提供的技术方案不限制输入图像的尺寸,可以利用上采样和下采样的方式对输入图像进行处理以满足本公开提供的图像处理装置的输入要求。For example, if the input image has a first size, the input image can be determined as the first input image, and the input image can be upsampled once to generate a second input image with the second size, and the input image can be upsampled twice To generate a third input image with a third size. For another example, if the input image has a second size, the input image may be determined as the second input image, and the input image may be down-sampled once to generate a first input image with the first size, and the input image may be up-sampled once To generate a third input image with a third size. For another example, if the input image has a third size, the input image can be determined as the third input image, and the input image can be down-sampled once to generate a second input image with the second size. Down-sampling to generate and have a first input image of the first size. By analogy, the technical solution provided in the present disclosure does not limit the size of the input image, and the input image can be processed in the manner of up-sampling and down-sampling to meet the input requirements of the image processing device provided in the present disclosure.
分别对所述第一输入图像、所述第二输入图像和所述第三输入图像进行处理以确定具有第一尺寸的第一图像特征、具有第二尺寸的第一输入图像特征和具有第三尺寸的第二输入图像特征。The first input image, the second input image, and the third input image are respectively processed to determine a first image feature having a first size, a first input image feature having a second size, and a third input image. The size of the second input image feature.
然后,可以对所述第一图像特征进行上采样,并对所述第一输入图像特征和上采样后的第一图像特征执行叠加操作,以获得第二尺寸的第二图像特征。进一步地,可以对所述第二图像特征进行上采样,并对上采样后的第二图像特征和所述第二输入图像特征执行叠加操作,以获得第三图像特征。Then, the first image feature may be up-sampled, and the first input image feature and the up-sampled first image feature may be superimposed to obtain a second image feature of a second size. Further, the second image feature may be up-sampled, and the up-sampled second image feature and the second input image feature may be superimposed to obtain a third image feature.
在步骤S106中,可以利用所述第一图像特征对所述第二图像特征进行补偿,以生成第二尺寸的补偿后的第二图像特征。In step S106, the first image feature may be used to compensate the second image feature to generate a compensated second image feature of the second size.
图2示出了利用反向投影方法生成超分辨率图像的原理的示意图。如图2所示,其中带有上箭头的方块210表示上采样操作,带有下箭头的方块220表示下采样操作。包括加号的圆圈230表示叠加操作,带有负号的包括加号的圆圈240表示去叠加操作。Fig. 2 shows a schematic diagram of the principle of generating a super-resolution image using the back projection method. As shown in FIG. 2, the block 210 with an up arrow indicates an up-sampling operation, and the block 220 with a down arrow indicates a down-sampling operation. The circle 230 including the plus sign represents the superimposition operation, and the circle 240 including the plus sign with the minus sign represents the de-superimposition operation.
如果要基于低分辨率图像LR生成更大尺寸的高分辨率图像,可以利用例如上采样单元210对低分辨率图像LR进行上采样以增加低分辨率图像LR的尺寸。然而,可以理解的是,仅通过一次上采样得到的高分辨率图像的质 量是不高的。为了提升高分辨率图像的质量,可以通过反向投影的方式对高分辨率图像进行补偿。If a larger-sized high-resolution image is to be generated based on the low-resolution image LR, the low-resolution image LR may be up-sampled by the up-sampling unit 210 to increase the size of the low-resolution image LR. However, it is understandable that the quality of a high-resolution image obtained by only one upsampling is not high. In order to improve the quality of high-resolution images, high-resolution images can be compensated by back projection.
例如,可以利用下采样单元220对通过对低分辨率图像LR进行一次上采样生成的高分辨率图像进行下采样,并利用去叠加单元240确定下采样后的高分辨率图像与原低分辨率图像之间的差别图像,这样的差别图像可以用来表示高分辨率图像与原始的低分辨率图像之间的差异。可以利用通过这种方式确定的差别图像对高分辨率图像进行补偿。例如,可以将上述差别图像上采样至与高分辨率图像相同的尺寸,并将上采样后的差别图像与高分辨率图像相叠加,以生成与原低分辨率图像的内容信息更接近的高分辨率图像。For example, the down-sampling unit 220 may be used to down-sample the high-resolution image generated by upsampling the low-resolution image LR once, and the de-overlapping unit 240 may be used to determine the difference between the down-sampled high-resolution image and the original low-resolution image. The difference image between images, such a difference image can be used to represent the difference between the high-resolution image and the original low-resolution image. The difference image determined in this way can be used to compensate for the high-resolution image. For example, the above-mentioned difference image can be up-sampled to the same size as the high-resolution image, and the up-sampled difference image can be superimposed with the high-resolution image to generate a high-resolution image that is closer to the content information of the original low-resolution image. Resolution image.
在一些实施例中,在步骤S106中,可以利用下采样子单元对所述第二图像特征进行下采样,以得到第一尺寸的下采样后的第二图像特征。然后,可以利用去叠加子单元对下采样后的第二图像特征和第一图像特征执行去叠加操作,以生成第一尺寸的第一补偿图像特征。进一步地,可以利用上采样子单元对第一补偿图像特征进行上采样,以得到第二尺寸的上采样后的第一补偿图像特征。进一步地,可以利用叠加子单元对上采样后的第一补偿图像特征和所述第二图像特征执行叠加操作,以生成第二尺寸的补偿后的第二图像特征。In some embodiments, in step S106, the down-sampling subunit may be used to down-sample the second image feature to obtain the down-sampled second image feature of the first size. Then, the de-superimposition subunit may be used to perform a de-superimposition operation on the down-sampled second image feature and the first image feature to generate the first compensated image feature of the first size. Further, an up-sampling subunit may be used to up-sample the first compensated image feature to obtain the up-sampled first compensated image feature of the second size. Further, the superimposing subunit may be used to perform a superimposing operation on the up-sampled first compensated image feature and the second image feature to generate a compensated second image feature of the second size.
其中,去叠加子单元可以用于生成两个图像特征之间的差别信息,其可以配置成对下采样后的第二图像特征和第一图像特征中的对应元素执行减法操作。或者去叠加子单元可以配置成对下采样后的第二图像特征和第一图像特征的组合执行卷积操作,即利用训练好的卷积层生成下采样后的第二图像特征和第一图像特征之间的差别,以实现上述去叠加操作。叠加子单元可以用于叠加两个图像特征之间的信息,例如,其可以配置成对上采样后的第一补偿图像特征和所述第二图像特征执行卷积操作,或配置成对上采样后的第一补偿图像特征和所述第二图像特征中的对应元素执行加法操作,以实现上述叠加操作。Wherein, the de-superimposition subunit may be used to generate difference information between two image features, and it may be configured to perform a subtraction operation on the down-sampled second image feature and corresponding elements in the first image feature. Or the de-superimposition subunit may be configured to perform a convolution operation on the combination of the down-sampled second image feature and the first image feature, that is, use the trained convolution layer to generate the down-sampled second image feature and the first image The difference between the features to achieve the above-mentioned de-overlay operation. The superimposition subunit can be used to superimpose information between two image features. For example, it can be configured to perform a convolution operation on the first compensated image feature and the second image feature after upsampling, or it can be configured to upsample The corresponding elements in the latter first compensated image feature and the second image feature perform an addition operation to implement the above-mentioned superimposition operation.
在步骤S108中,可以利用所述补偿后的第二图像特征对第三尺寸的第三图像特征进行补偿,以生成第三尺寸的补偿后的第三图像特征。In step S108, the compensated second image feature may be used to compensate the third image feature of the third size to generate the third image feature after compensation of the third size.
在一些实施例中,步骤S908可以进一步包括:利用下采样子单元对所述第三图像特征进行下采样,以得到第二尺寸的下采样后的第三图像特征。然后,可以利用去叠加子单元对下采样后的第三图像特征和所述补偿后的第 二图像特征执行去叠加操作,以生成第二尺寸的第二补偿图像特征。进一步地,可以利用上采样子单元对第二补偿图像特征进行上采样,以得到第三尺寸的上采样后的第二补偿图像特征。进一步地,可以利用叠加子单元对所述第三图像特征和上采样后的第二补偿图像特征执行叠加操作,以生成第三尺寸的补偿后的第三图像特征。In some embodiments, step S908 may further include: using a down-sampling subunit to down-sample the third image feature to obtain a down-sampled third image feature of the second size. Then, the de-superimposition subunit may be used to perform a de-superimposition operation on the down-sampled third image feature and the compensated second image feature to generate a second compensated image feature of the second size. Further, the up-sampling subunit may be used to up-sample the second compensated image feature to obtain the up-sampled second compensated image feature of the third size. Further, the superimposing subunit may be used to perform a superimposing operation on the third image feature and the up-sampled second compensated image feature to generate a third-sized compensated third image feature.
其中,去叠加子单元可以配置成对下采样后的第三图像特征和所述补偿后的第二图像特征中的对应元素执行减法操作。例如可以用补偿后的第二图像特征中的元素的值减去下采样后的第三图像特征中对应元素的值。在一些实施例中,去叠加子单元可以配置成对下采样后的第三图像特征和所述补偿后的第二图像特征的组合执行卷积操作,即利用训练好的卷积层对下采样后的第三图像特征和补偿后的第二图像特征的组合进行卷积,以生成下采样后的第三图像特征和补偿后的第二图像特征之间的差别。例如,可以将下采样后的第二图像特征和第一图像特征进行拼接,形成一个尺寸更大的特征。通过对这个尺寸更大的特征进行卷积处理,能够得到与下采样后的第二图像特征和第一图像特征尺寸相同的一个新的图像特征。利用上述方法卷积得到的新的图像特征能够表示下采样后的第二图像特征和第一图像特征之间的差别。在下文中结合图8B描述了上述卷积处理的具体过程。Wherein, the de-superimposition subunit may be configured to perform a subtraction operation on corresponding elements in the down-sampled third image feature and the compensated second image feature. For example, the value of the element in the second image feature after compensation can be used to subtract the value of the corresponding element in the third image feature after downsampling. In some embodiments, the de-overlap subunit may be configured to perform a convolution operation on the combination of the down-sampled third image feature and the compensated second image feature, that is, use the trained convolution layer to down-sample The combination of the latter third image feature and the compensated second image feature is convolved to generate the difference between the down-sampled third image feature and the compensated second image feature. For example, the down-sampled second image feature and the first image feature can be spliced together to form a feature with a larger size. By performing convolution processing on the feature with a larger size, a new image feature with the same size as the down-sampled second image feature and the first image feature can be obtained. The new image feature obtained by convolution using the above method can represent the difference between the down-sampled second image feature and the first image feature. The specific process of the above-mentioned convolution processing is described below in conjunction with FIG. 8B.
叠加子单元可以用于叠加两个图像特征之间的信息,例如,其可以配置成对第三图像特征和上采样后的第二补偿图像特征执行卷积操作或对第三图像特征和上采样后的第二补偿图像特征中的对应元素执行加法操作。在下文中结合图8A描述了上述卷积处理的具体过程。The superimposition subunit can be used to superimpose information between two image features, for example, it can be configured to perform a convolution operation on the third image feature and the up-sampled second compensated image feature or to perform a convolution operation on the third image feature and up-sampling The corresponding element in the latter second compensated image feature performs an addition operation. The specific process of the above-mentioned convolution processing is described below in conjunction with FIG. 8A.
在步骤S110中,可以基于所述补偿后的第二图像特征或所述补偿后的第三图像特征确定输出图像。在一些实施例中,可以利用合成网络对步骤S906输出的补偿后的第二图像特征进行合成,从而生成具有第二尺寸的输出图像。因此,利用本公开提供的图像处理方法可以对第一尺寸的输入图像进行处理以生成2倍放大的输出图像,也可以对第二尺寸的输入图像进行处理以生成尺寸不变的图像增强的输出图像。在另一些实施例中,可以利用合成网络对步骤S908输出的补偿后的第三图像特征进行合成,从而生成具有第三尺寸的输出图像。因此,利用本公开提供的图像处理方法可以对第一尺寸的输入图像进行处理以生成4倍放大的输出图像,也可以对第二尺寸的输入图像进行处理以生成2倍放大的输出图像,也可以对第三尺寸的输入图像进 行处理以生成尺寸不变的图像增强的输出图像。由于本公开提供的图像处理方法中能够处理多个不同尺寸的图像特征,因此,本领域技术人员可以根据需要选择不同尺寸的输出图像特征用来获得最终的输出图像。In step S110, the output image may be determined based on the compensated second image feature or the compensated third image feature. In some embodiments, a synthesis network may be used to synthesize the compensated second image features output in step S906, so as to generate an output image with a second size. Therefore, the image processing method provided by the present disclosure can process an input image of a first size to generate a 2x magnified output image, and can also process an input image of a second size to generate an image-enhanced output with a constant size. image. In other embodiments, a synthesis network may be used to synthesize the compensated third image feature output in step S908, so as to generate an output image with a third size. Therefore, by using the image processing method provided by the present disclosure, the input image of the first size can be processed to generate a 4 times magnified output image, and the input image of the second size can also be processed to generate a 2 times magnified output image. The input image of the third size can be processed to generate an image-enhanced output image of the same size. Since the image processing method provided by the present disclosure can process multiple image features of different sizes, those skilled in the art can select output image features of different sizes as needed to obtain the final output image.
在一些实施例中,在步骤S110中,可以利用所述第一图像特征对所述补偿后的第二图像特征进行补偿,以生成进一步补偿的第二图像特征。然后,可以利用所述进一步补偿的第二图像特征对所述补偿后的第三图像特征进行补偿,以生成进一步补偿的第三图像特征。进一步地,可以基于所述进一步补偿的第二图像特征或所述进一步补偿的第三图像特征生成输出图像。In some embodiments, in step S110, the first image feature may be used to compensate the compensated second image feature to generate a further compensated second image feature. Then, the further compensated second image feature may be used to compensate the compensated third image feature to generate a further compensated third image feature. Further, an output image may be generated based on the further compensated second image feature or the further compensated third image feature.
在一些实施例中,利用所述第一图像特征对所述补偿后的第二图像特征进行补偿,以生成进一步补偿的第二图像特征可以包括:对所述补偿后的第二图像特征进行下采样,以得到第一尺寸的下采样后的补偿后的第二图像特征。然后,可以对下采样后的补偿后的第二图像特征和所述第一图像特征执行去叠加操作,以生成第一尺寸的第三补偿图像特征。进一步地,可以对所述第三补偿图像特征进行上采样,以得到第二尺寸的上采样后的第三补偿图像特征。进一步地,对上采样后的第三补偿图像特征和所述第二尺寸的补偿后的第二图像特征执行叠加操作,以生成第二尺寸的进一步补偿的第二图像特征。In some embodiments, using the first image feature to compensate the compensated second image feature to generate a further compensated second image feature may include: downloading the compensated second image feature Sampling to obtain the down-sampled compensated second image feature of the first size. Then, a de-superimposition operation may be performed on the down-sampled compensated second image feature and the first image feature to generate a third compensated image feature of the first size. Further, the third compensated image feature may be up-sampled to obtain the up-sampled third compensated image feature of the second size. Further, a superposition operation is performed on the up-sampled third compensated image feature and the compensated second image feature of the second size to generate a further compensated second image feature of the second size.
利用所述进一步补偿的第二图像特征对所述补偿后的第三图像特征进行补偿,以生成进一步补偿的第三图像特征可以包括:对所述补偿后的第二图像特征进行下采样,以得到第一尺寸的下采样后的补偿后的第二图像特征。然后,可以对下采样后的补偿后的第二图像特征和所述第一图像特征执行去叠加操作,以生成第一尺寸的第三补偿图像特征。然后,可以对所述第三补偿图像特征进行上采样,以得到第二尺寸的上采样后的第三补偿图像特征。进一步地,可以对上采样后的第三补偿图像特征和所述第二尺寸的补偿后的第二图像特征执行叠加操作,以生成第二尺寸的进一步补偿的第二图像特征。Using the further compensated second image feature to compensate the compensated third image feature to generate the further compensated third image feature may include: down-sampling the compensated second image feature to Obtain the down-sampled compensated second image feature of the first size. Then, a de-superimposition operation may be performed on the down-sampled compensated second image feature and the first image feature to generate a third compensated image feature of the first size. Then, the third compensated image feature may be up-sampled to obtain the up-sampled third compensated image feature of the second size. Further, a superposition operation may be performed on the up-sampled third compensated image feature and the compensated second image feature of the second size to generate a further compensated second image feature of the second size.
利用本公开提供的图像处理方法,能够利用图像特征补偿模块对两个或更多的高分辨率的图像特征进行补偿,而不需要利用复杂的递归结构。此外,通过按照分辨率从低到高的顺序对不同尺寸的图像特征依次进行补偿,能够确保只有低分辨率的信息被转移到高分辨率的图像特征中,而高分辨率的信息不会被转移到低分辨率的图像特征中,从而降低图像处理方法的复杂性。With the image processing method provided by the present disclosure, the image feature compensation module can be used to compensate two or more high-resolution image features without using a complex recursive structure. In addition, by sequentially compensating image features of different sizes in the order of resolution from low to high, it can be ensured that only low-resolution information is transferred to high-resolution image features, and high-resolution information will not be Transfer to low-resolution image features, thereby reducing the complexity of image processing methods.
图3示出了根据本公开的实施例的一种图像处理装置的示意性的框图。 如图3所示,图像处理装置300可以包括接收模块310、图像特征处理模块320、图像特征补偿模块330以及输出模块340。Fig. 3 shows a schematic block diagram of an image processing device according to an embodiment of the present disclosure. As shown in FIG. 3, the image processing apparatus 300 may include a receiving module 310, an image feature processing module 320, an image feature compensation module 330, and an output module 340.
接收模块310可以配置成接收输入图像。在一些实施例中,可以取回存储在数据库中的图片作为输入图像。在另一些实施例中,可以通过图像采集设备(例如照相机、摄像机)等采集图像作为输入图像。The receiving module 310 may be configured to receive input images. In some embodiments, pictures stored in the database can be retrieved as input images. In other embodiments, an image can be collected as an input image by an image collection device (for example, a camera, a video camera), etc.
图像特征处理模块320可以配置成对接收模块310接收的输入图像进行处理以确定与所述输入图像相关联的具有第一尺寸的第一图像特征、具有第二尺寸的第二图像特征和具有第三尺寸的第三图像特征,其中所述第一尺寸小于所述第二尺寸,所述第二尺寸小于所述第三尺寸。在一些实施例中,所述第二尺寸是所述第一尺寸的M倍,第三尺寸是所述第二尺寸的M倍,M是大于1的整数。The image feature processing module 320 may be configured to process the input image received by the receiving module 310 to determine a first image feature having a first size, a second image feature having a second size, and a first image feature associated with the input image. A three-size third image feature, wherein the first size is smaller than the second size, and the second size is smaller than the third size. In some embodiments, the second size is M times the first size, the third size is M times the second size, and M is an integer greater than one.
在一些实施例中,接收模块310可以基于所接收的输入图像生成不同尺寸的其他输入图像,从而生成之后的图像处理过程中所需要的不同尺寸的图像特征。在一些实施例中可以对接收的输入图像进行上采样或下采样,从而获得第一尺寸的第一输入图像、第二尺寸的第二输入图像以及第三尺寸的第三输入图像。In some embodiments, the receiving module 310 may generate other input images of different sizes based on the received input image, thereby generating image features of different sizes required in the subsequent image processing process. In some embodiments, the received input image may be up-sampled or down-sampled to obtain a first input image of a first size, a second input image of a second size, and a third input image of a third size.
在一些实施例中,可以基于第一输入图像、第二输入图像以及第三输入图像确定具有第一尺寸的第一图像特征、具有第二尺寸的第二图像特征和具有第三尺寸的第三图像特征。In some embodiments, a first image feature having a first size, a second image feature having a second size, and a third image feature having a third size may be determined based on the first input image, the second input image, and the third input image. Image characteristics.
图像特征补偿模块330可以配置成利用第一尺寸的第一图像特征对分辨率更高的第二图像特征和第三图像特征进行补偿。如图3所示,图像特征补偿模块330可以包括第一补偿单元331和第二补偿单元332。其中,第一补偿单元331可以配置成利用所述第一图像特征对所述第二图像特征进行补偿,以生成第二尺寸的补偿后的第二图像特征。第二补偿单元332可以配置成利用所述补偿后的第二图像特征对所述第三图像特征进行补偿,以生成第三尺寸的补偿后的第三图像特征。在一些实施例中,第一补偿单元331和第二补偿单元332可以实现为相同的结构。The image feature compensation module 330 may be configured to use the first image feature of the first size to compensate the second image feature and the third image feature of higher resolution. As shown in FIG. 3, the image feature compensation module 330 may include a first compensation unit 331 and a second compensation unit 332. The first compensation unit 331 may be configured to use the first image feature to compensate the second image feature to generate a compensated second image feature of the second size. The second compensation unit 332 may be configured to use the compensated second image feature to compensate the third image feature to generate a compensated third image feature of a third size. In some embodiments, the first compensation unit 331 and the second compensation unit 332 may be implemented as the same structure.
在一些实施例中,第一补偿单元331和第二补偿单元332可以采用反向投影(back-projection)的原理执行补偿操作。In some embodiments, the first compensation unit 331 and the second compensation unit 332 may use the principle of back-projection to perform the compensation operation.
图3中示出的图像特征补偿模块330仅包括两个补偿单元,也就是说,图3中示出的图像特征补偿模块可以对两种不同尺寸的较大尺寸的图像特征 进行补偿。然而,本公开的内容不止于此。可以理解的是,本领域技术人员可以根据实际情况在图像特征补偿模块中设置更多级补偿单元,从而能够对更多尺寸的图像特征进行补偿。The image feature compensation module 330 shown in FIG. 3 only includes two compensation units, that is, the image feature compensation module shown in FIG. 3 can compensate two different sizes of larger image features. However, the content of the present disclosure does not stop there. It is understandable that those skilled in the art can set more levels of compensation units in the image feature compensation module according to actual conditions, so that image features of more sizes can be compensated.
在一些实施例中,第一补偿单元331可以进一步配置成:利用下采样子单元对所述第二图像特征进行下采样,以得到第一尺寸的下采样后的第二图像特征;利用去叠加子单元对下采样后的第二图像特征和第一图像特征执行去叠加操作,以生成第一尺寸的第一补偿图像特征;利用上采样子单元对第一补偿图像特征进行上采样,以得到第二尺寸的上采样后的第一补偿图像特征;以及利用叠加子单元对上采样后的第一补偿图像特征和所述第二图像特征执行叠加操作,以生成第二尺寸的补偿后的第二图像特征。In some embodiments, the first compensation unit 331 may be further configured to: use a down-sampling subunit to down-sample the second image feature to obtain the down-sampled second image feature of the first size; The sub-unit performs a de-superposition operation on the down-sampled second image feature and the first image feature to generate the first compensated image feature of the first size; the up-sampling sub-unit is used to up-sample the first compensated image feature to obtain The first compensated image feature after upsampling of the second size; and the superposition operation is performed on the upsampled first compensated image feature and the second image feature by the superimposing subunit to generate the compensated first image feature of the second size 2. Image features.
其中,去叠加子单元可以用于生成两个图像特征之间的差别信息,其可以配置成对下采样后的第二图像特征和第一图像特征中的对应元素执行减法操作;或配置成对下采样后的第二图像特征和第一图像特征的组合执行卷积操作,即利用训练好的卷积层生成下采样后的第二图像特征和第一图像特征之间的差别。例如,可以将下采样后的第二图像特征和第一图像特征进行拼接,形成一个尺寸更大的特征。通过对这个尺寸更大的特征进行卷积处理,能够得到与下采样后的第二图像特征和第一图像特征尺寸相同的一个新的图像特征。利用上述方法卷积得到的新的图像特征能够表示下采样后的第二图像特征和第一图像特征之间的差别。Wherein, the de-superimposition subunit can be used to generate difference information between two image features, and it can be configured to perform a subtraction operation on the down-sampled second image feature and corresponding elements in the first image feature; or configured as a pair The combination of the down-sampled second image feature and the first image feature performs a convolution operation, that is, the trained convolution layer is used to generate the difference between the down-sampled second image feature and the first image feature. For example, the down-sampled second image feature and the first image feature can be spliced together to form a feature with a larger size. By performing convolution processing on the feature with a larger size, a new image feature with the same size as the down-sampled second image feature and the first image feature can be obtained. The new image feature obtained by convolution using the above method can represent the difference between the down-sampled second image feature and the first image feature.
叠加子单元可以用于叠加两个图像特征之间的信息,例如,其可以配置成对上采样后的第一补偿图像特征和所述第二图像特征执行卷积操作,或配置成对上采样后的第一补偿图像特征和所述第二图像特征中的对应元素执行加法操作。The superimposition subunit can be used to superimpose information between two image features. For example, it can be configured to perform a convolution operation on the first compensated image feature and the second image feature after upsampling, or it can be configured to upsample The corresponding elements in the latter first compensated image feature and the second image feature perform an addition operation.
然后,第二补偿单元332可以配置成利用下采样子单元对所述第三图像特征进行下采样,以得到第二尺寸的下采样后的第三图像特征;利用去叠加子单元对下采样后的第三图像特征和所述补偿后的第二图像特征执行去叠加操作,以生成第二尺寸的第二补偿图像特征;利用上采样子单元对第二补偿图像特征进行上采样,以得到第三尺寸的上采样后的第二补偿图像特征;以及利用叠加子单元对所述第三图像特征和上采样后的第二补偿图像特征执行叠加操作,以生成第三尺寸的补偿后的第三图像特征。Then, the second compensation unit 332 may be configured to use a down-sampling sub-unit to down-sample the third image feature to obtain a down-sampled third image feature of the second size; The third image feature and the compensated second image feature perform a de-overlapping operation to generate a second compensated image feature of a second size; the second compensated image feature is upsampled by an upsampling subunit to obtain the first A three-size up-sampled second compensated image feature; and using an overlay subunit to perform an overlay operation on the third image feature and the up-sampled second compensated image feature to generate a third-size compensated third Image characteristics.
其中,去叠加子单元可以配置成对下采样后的第三图像特征和所述补偿 后的第二图像特征中的对应元素执行减法操作。例如可以用补偿后的第二图像特征中的元素的值减去下采样后的第三图像特征中对应元素的值。在一些实施例中,去叠加子单元可以配置成对下采样后的第三图像特征和所述补偿后的第二图像特征的组合执行卷积操作,即利用训练好的卷积层生成下采样后的第三图像特征和补偿后的第二图像特征之间的差别。Wherein, the de-overlap subunit may be configured to perform a subtraction operation on corresponding elements in the down-sampled third image feature and the compensated second image feature. For example, the value of the element in the second image feature after compensation can be used to subtract the value of the corresponding element in the third image feature after downsampling. In some embodiments, the de-overlap subunit may be configured to perform a convolution operation on the combination of the down-sampled third image feature and the compensated second image feature, that is, use the trained convolutional layer to generate down-samples The difference between the post-third image feature and the compensated second image feature.
叠加子单元可以用于叠加两个图像特征之间的信息,例如,其可以配置成对第三图像特征和上采样后的第二补偿图像特征执行卷积操作或对第三图像特征和上采样后的第二补偿图像特征中的对应元素执行加法操作。The superimposition subunit can be used to superimpose information between two image features, for example, it can be configured to perform a convolution operation on the third image feature and the up-sampled second compensated image feature or to perform a convolution operation on the third image feature and up-sampling The corresponding element in the latter second compensated image feature performs an addition operation.
输出模块340可以配置成基于所述补偿后的第二图像特征或所述补偿后的第三图像特征确定输出图像。在一些实施例中,可以利用合成网络对图像特征补偿模块330输出的补偿后的第二图像特征进行合成,从而生成具有第二尺寸的输出图像。因此,利用本公开提供的图像处理方法可以对第一尺寸的输入图像进行处理以生成2倍放大的输出图像,也可以对第二尺寸的输入图像进行处理以生成尺寸不变的图像增强的输出图像。或者,可以利用合成网络对图像特征补偿模块330输出的补偿后的第三图像特征进行合成,从而生成具有第三尺寸的输出图像。因此,利用本公开提供的图像处理装置可以对第一尺寸的输入图像进行处理以生成4倍放大的输出图像,也可以对第二尺寸的输入图像进行处理以生成2倍放大的输出图像,也可以对第三尺寸的输入图像进行处理以生成尺寸不变的图像增强的输出图像。由于本公开提供的图像处理方法中能够处理多个不同尺寸的图像特征,因此,本领域技术人员可以根据需要选择不同尺寸的输出图像特征用来获得最终的输出图像。The output module 340 may be configured to determine an output image based on the compensated second image feature or the compensated third image feature. In some embodiments, a synthesis network may be used to synthesize the compensated second image features output by the image feature compensation module 330, so as to generate an output image with a second size. Therefore, the image processing method provided by the present disclosure can process an input image of a first size to generate a 2x magnified output image, and can also process an input image of a second size to generate an image-enhanced output with a constant size. image. Alternatively, a synthesis network may be used to synthesize the compensated third image feature output by the image feature compensation module 330, so as to generate an output image with a third size. Therefore, the image processing device provided by the present disclosure can process an input image of a first size to generate a 4 times magnified output image, and can also process an input image of a second size to generate a 2 times magnified output image. The input image of the third size can be processed to generate an image-enhanced output image of the same size. Since the image processing method provided by the present disclosure can process multiple image features of different sizes, those skilled in the art can select output image features of different sizes as needed to obtain the final output image.
其中,合成网络可以实现为卷积网络。合成网络可以用于将图像特征合成为图像。Among them, the synthesis network can be implemented as a convolutional network. The synthesis network can be used to synthesize image features into images.
利用本公开提供的图像处理方法可以对输入图像进行超分辨率、图像增强、去模糊、去噪、去雾、着色等处理。The image processing method provided by the present disclosure can perform processing of super-resolution, image enhancement, deblurring, denoising, dehazing, and coloring on the input image.
以超分辨率处理为例,输入图像可以是一个具有第一尺寸的低分辨率的图像。通过对输入图像进行至少一次上采样可以将输入图像上采样为第二尺寸和第三尺寸。利用如前所述的图像处理方法能够分析得到第一尺寸、第二尺寸和第三尺寸的输入图像特征,并通过利用第一尺寸的输入图像特征对第二尺寸和第三尺寸的输入图像特征进行补偿处理,能够得到补偿后的第二尺寸和第三尺寸的图像特征,并可以利用补偿后的第二尺寸或第三尺寸的图像 特征合成得到第二尺寸或第三尺寸的超分辨率图像。Taking super-resolution processing as an example, the input image may be a low-resolution image with a first size. The input image can be up-sampled to the second size and the third size by up-sampling the input image at least once. Using the image processing method described above, the input image features of the first size, the second size and the third size can be analyzed, and the input image features of the second size and the third size can be compared by using the input image features of the first size. Perform compensation processing to obtain the compensated second-size and third-size image features, and use the compensated second-size or third-size image features to synthesize to obtain a second-size or third-size super-resolution image .
以图像增强处理为例,输入图像可以是一个具有第三尺寸的高分辨率的图像。通过对输入图像进行至少一次下采样可以将输入图像下采样为第一尺寸和第二尺寸。利用如前所述的方法,通过分析得到第一尺寸、第二尺寸和第三尺寸的输入图像特征,并通过利用第一尺寸的输入图像特征对第二尺寸和第三尺寸的输入图像特征进行补偿处理,能够得到补偿后的第二尺寸和第三尺寸的图像特征。利用补偿后的第三尺寸的图像特征能够合成得到第三尺寸的图像增强后的图像。如果输入图像是第二尺寸的,则可以利用补偿后的第二尺寸的图像特征合成得到第二尺寸的图像增强后的图像。Taking image enhancement processing as an example, the input image may be a high-resolution image with a third size. The input image can be down-sampled into the first size and the second size by down-sampling the input image at least once. Using the method described above, the input image features of the first size, the second size, and the third size are obtained through analysis, and the input image features of the second size and the third size are analyzed by using the input image features of the first size. The compensation process can obtain the image features of the second size and the third size after compensation. Using the compensated image features of the third size, an enhanced image of the third size can be synthesized. If the input image is of the second size, the compensated image feature of the second size may be used to synthesize to obtain an enhanced image of the second size.
利用本公开提供的图像处理装置,能够利用图像特征补偿模块对两个或更多的具有不同分辨率的图像特征进行补偿,而不需要利用复杂的递归结构。此外,通过按照分辨率从低到高的顺序对不同尺寸的图像特征依次进行补偿,能够确保只有低分辨率的信息被转移到高分辨率的图像特征中,而高分辨率的信息不会被转移到低分辨率的图像特征中,从而降低图像处理装置的复杂性。With the image processing device provided by the present disclosure, the image feature compensation module can be used to compensate two or more image features with different resolutions without using a complex recursive structure. In addition, by sequentially compensating image features of different sizes in the order of resolution from low to high, it can be ensured that only low-resolution information is transferred to high-resolution image features, and high-resolution information will not be Transfer to low-resolution image features, thereby reducing the complexity of the image processing device.
图4示出了根据本公开的实施例的另一种图像处理装置的示意性的框图。如图4所示,图像处理装置400可以包括接收模块410、图像特征处理模块420、级联的N个图像特征补偿模块430-1至430-N、以及输出模块440。其中,接收模块410、图像特征处理模块420以及输出模块440可以实现为图3中示出的接收模块310、图像特征处理模块320以及输出模块340,在此不再加以赘述。Fig. 4 shows a schematic block diagram of another image processing apparatus according to an embodiment of the present disclosure. As shown in FIG. 4, the image processing device 400 may include a receiving module 410, an image feature processing module 420, N image feature compensation modules 430-1 to 430-N cascaded, and an output module 440. Among them, the receiving module 410, the image feature processing module 420, and the output module 440 can be implemented as the receiving module 310, the image feature processing module 320, and the output module 340 shown in FIG. 3, and details are not described herein again.
级联的N个图像特征补偿模块430-1至430-N中的每一个可以实现为图3中示出的图像特征补偿模块330。其中,每个图像特征补偿模块可以利用第一尺寸的第一图像特征补偿比第一尺寸更大的图像特征。其中,对于第i级图像特征补偿模块来说,可以利用第一尺寸的第一图像特征对第二尺寸的第二图像特征和第三尺寸的第三图像特征进行补偿。然后可以将第i级图像特征补偿模块输出的补偿后的第二图像特征和补偿后的第三图像特征输入第i+1级图像特征补偿模块。因此,输入第i+1级图像特征补偿模块的第二图像特征是第i级图像特征补偿模块输出的补偿后的第二图像特征,输入第i+1级图像特征补偿模块的第三图像特征是第i级图像特征补偿模块输出的补偿后的第三图像特征。因此,第i+1级图像特征补偿模块可以配置成利用第一 图像特征对第i级图像特征补偿模块的生成的补偿后的第二图像特征进行补偿以获得进一步补偿的第二图像特征,并利用进一步补偿的第二图像特征对第i级图像特征补偿模块的生成的补偿后的第三图像特征进行补偿,以获得进一步补偿的第三图像特征。Each of the cascaded N image feature compensation modules 430-1 to 430-N may be implemented as the image feature compensation module 330 shown in FIG. 3. Wherein, each image feature compensation module can use the first image feature of the first size to compensate the image feature larger than the first size. Wherein, for the i-th level image feature compensation module, the first image feature of the first size can be used to compensate the second image feature of the second size and the third image feature of the third size. Then, the compensated second image feature and the compensated third image feature output by the i-th level image feature compensation module can be input to the i+1 level image feature compensation module. Therefore, the second image feature input to the i+1 level image feature compensation module is the compensated second image feature output by the i level image feature compensation module, and the third image feature input to the i+1 level image feature compensation module Is the compensated third image feature output by the i-th level image feature compensation module. Therefore, the i+1 level image feature compensation module may be configured to use the first image feature to compensate the compensated second image feature generated by the i level image feature compensation module to obtain a further compensated second image feature, and The further compensated second image feature is used to compensate the compensated third image feature generated by the i-th level image feature compensation module to obtain the further compensated third image feature.
在一些实施例中,利用所述第一图像特征对所述补偿后的第二图像特征进行补偿,以生成进一步补偿的第二图像特征可以包括:对所述补偿后的第二图像特征进行下采样,以得到第一尺寸的下采样后的补偿后的第二图像特征。然后,可以对下采样后的补偿后的第二图像特征和所述第一图像特征执行去叠加操作,以生成第一尺寸的第三补偿图像特征。进一步地,可以对所述第三补偿图像特征进行上采样,以得到第二尺寸的上采样后的第三补偿图像特征。进一步地,对上采样后的第三补偿图像特征和所述第二尺寸的补偿后的第二图像特征执行叠加操作,以生成第二尺寸的进一步补偿的第二图像特征。In some embodiments, using the first image feature to compensate the compensated second image feature to generate a further compensated second image feature may include: downloading the compensated second image feature Sampling to obtain the down-sampled compensated second image feature of the first size. Then, a de-superimposition operation may be performed on the down-sampled compensated second image feature and the first image feature to generate a third compensated image feature of the first size. Further, the third compensated image feature may be up-sampled to obtain the up-sampled third compensated image feature of the second size. Further, a superposition operation is performed on the up-sampled third compensated image feature and the compensated second image feature of the second size to generate a further compensated second image feature of the second size.
利用所述进一步补偿的第二图像特征对所述补偿后的第三图像特征进行补偿,以生成进一步补偿的第三图像特征可以包括对所述补偿后的第二图像特征进行下采样,以得到第一尺寸的下采样后的补偿后的第二图像特征。然后,可以对下采样后的补偿后的第二图像特征和所述第一图像特征执行去叠加操作,以生成第一尺寸的第三补偿图像特征。然后,可以对所述第三补偿图像特征进行上采样,以得到第二尺寸的上采样后的第三补偿图像特征。进一步地,可以对上采样后的第三补偿图像特征和所述第二尺寸的补偿后的第二图像特征执行叠加操作,以生成第二尺寸的进一步补偿的第二图像特征。Using the further compensated second image feature to compensate the compensated third image feature to generate the further compensated third image feature may include down-sampling the compensated second image feature to obtain The compensated second image feature after downsampling of the first size. Then, a de-superimposition operation may be performed on the down-sampled compensated second image feature and the first image feature to generate a third compensated image feature of the first size. Then, the third compensated image feature may be up-sampled to obtain the up-sampled third compensated image feature of the second size. Further, a superposition operation may be performed on the up-sampled third compensated image feature and the compensated second image feature of the second size to generate a further compensated second image feature of the second size.
如图4所示,在图像处理装置400中,输出模块440可以配置成基于第N级图像特征补偿单元生成的补偿后的第二图像特征和第N级图像特征补偿单元生成的补偿后的第三图像特征确定输出图像。例如,输出模块440可以利用合成网络将第N级图像特征补偿单元生成的补偿后的第二图像特征合成为第二尺寸的输出图像,或者利用合成网络将第N级图像特征补偿单元生成的补偿后的第三图像特征合成为第三尺寸的输出图像。As shown in FIG. 4, in the image processing device 400, the output module 440 may be configured to be based on the compensated second image feature generated by the Nth level image feature compensation unit and the compensated first image feature generated by the Nth level image feature compensation unit. Three image features determine the output image. For example, the output module 440 may use a synthesis network to synthesize the compensated second image feature generated by the Nth level image feature compensation unit into a second size output image, or use a synthesis network to synthesize the compensation generated by the Nth level image feature compensation unit The latter third image feature is synthesized into an output image of the third size.
利用图4中示出的图像处理装置,可以通过多级特征补偿单元对高分辨率的图像特征进行多次补偿,从而能够输出质量更好的图像。Using the image processing device shown in FIG. 4, the high-resolution image features can be compensated multiple times by the multi-level feature compensation unit, so that images with better quality can be output.
图5示出了根据本公开的实施例的图像特征处理模块的示例。如图5所示,图像特征处理模块520可以包括分析网络521-1、521-2和521-3以及第 一图像特征处理单元522、第二图像特征处理单元523以及第三图像特征处理单元524。Fig. 5 shows an example of an image feature processing module according to an embodiment of the present disclosure. As shown in FIG. 5, the image feature processing module 520 may include analysis networks 521-1, 521-2, and 521-3, and a first image feature processing unit 522, a second image feature processing unit 523, and a third image feature processing unit 524 .
如图5所示,图像特征处理模块520可以用于对所接收的输入图像进行处理。在一些实施例中,可以基于输入模块确定的第一尺寸的第一输入图像、第二尺寸的第二输入图像以及第三尺寸的第三输入图像确定对应于第一输入图像的第一图像特征、对应于第二输入图像的第二输入图像特征以及对应于第三输入图像的第三输入图像特征。As shown in FIG. 5, the image feature processing module 520 may be used to process the received input image. In some embodiments, the first image feature corresponding to the first input image may be determined based on the first input image of the first size, the second input image of the second size, and the third input image of the third size determined by the input module , The second input image feature corresponding to the second input image and the third input image feature corresponding to the third input image.
然后可以利用分析网络521-1、521-2、521-3对第一输入图像、第二输入图像以及第三输入图像分别进行处理,以获得对应于第一输入图像的第一图像特征、对应于第二输入图像的第一输入图像特征以及对应于第三输入图像的第三输入图像特征。Then, the analysis networks 521-1, 521-2, 521-3 can be used to process the first input image, the second input image, and the third input image, respectively, to obtain the first image feature corresponding to the first input image and the corresponding The first input image feature in the second input image and the third input image feature corresponding to the third input image.
如图5所示,可以利用第一图像特征处理单元522、第二图像特征处理单元523以及第三图像特征处理单元524对第一输入图像特征、第二输入图像特征以及第三输入图像特征进行处理以确定第一图像特征、第二图像特征和第三图像特征。As shown in FIG. 5, the first image feature processing unit 522, the second image feature processing unit 523, and the third image feature processing unit 524 can be used to perform processing on the first input image feature, the second input image feature, and the third input image feature. Process to determine the first image feature, the second image feature, and the third image feature.
第一图像特征处理单元522可以配置成对所述第一图像特征进行上采样,并将上采样后的第一图像特征输出到第二图像特征处理单元。进一步地,第一图像特征处理单元522还可以配置成向连接到图像特征处理模块520的图像特征补偿模块输出第一图像特征。The first image feature processing unit 522 may be configured to up-sample the first image feature, and output the up-sampled first image feature to the second image feature processing unit. Further, the first image feature processing unit 522 may also be configured to output the first image feature to an image feature compensation module connected to the image feature processing module 520.
第二图像特征处理单元523可以配置成对所述第二输入图像特征和上采样后的第一图像特征执行叠加操作,以获得第二尺寸的第二图像特征。进一步地,第二图像特征处理单元523还可以配置成向连接到图像特征处理模块520的图像特征补偿模块和第三图像特征处理单元524输出第二图像特征。The second image feature processing unit 523 may be configured to perform a superposition operation on the second input image feature and the up-sampled first image feature to obtain a second image feature of a second size. Further, the second image feature processing unit 523 may also be configured to output the second image feature to the image feature compensation module connected to the image feature processing module 520 and the third image feature processing unit 524.
第三图像特征处理单元524可以配置成对所述第二图像特征进行上采样,并对上采样后的第二图像特征和所述第三输入图像特征执行叠加操作,以获得第三图像特征。进一步地,第三图像特征处理单元524还可以配置成向连接到图像特征处理模块520的图像特征补偿模块输出第三图像特征。The third image feature processing unit 524 may be configured to up-sample the second image feature, and perform an overlay operation on the up-sampled second image feature and the third input image feature to obtain the third image feature. Further, the third image feature processing unit 524 may also be configured to output the third image feature to the image feature compensation module connected to the image feature processing module 520.
图6示出了根据本公开的实施例的图像处理装置的一种示例型的网络结构。如图6所示,图像处理装置600可以包括输入模块(未示出)、图像特征处理模块620、级联的三级图像特征补偿模块630-1、630-2以及630-3、以及输出模块640。Fig. 6 shows an exemplary network structure of an image processing apparatus according to an embodiment of the present disclosure. As shown in FIG. 6, the image processing device 600 may include an input module (not shown), an image feature processing module 620, cascaded three-level image feature compensation modules 630-1, 630-2, and 630-3, and an output module 640.
如图6所示,图像特征处理模块620可以包括上采样子单元611。在一些实施例中,图像特征处理模块620还可以包括下采样子单元(未示出)。利用上采样子单元和下采样子单元对输入图像进行上采样和下采样,可以基于输入图像确定第一尺寸的第一输入图像、第二尺寸的第二输入图像以及第三尺寸的第三输入图像。As shown in FIG. 6, the image feature processing module 620 may include an up-sampling sub-unit 611. In some embodiments, the image feature processing module 620 may further include a downsampling subunit (not shown). Up-sampling and down-sampling the input image using the up-sampling sub-unit and the down-sampling sub-unit, the first input image of the first size, the second input image of the second size, and the third input of the third size can be determined based on the input image image.
图像特征处理模块620还可以包括分别用于处理第一输入图像、第二输入图像以及第三输入图像的分析网络621-1、621-2、621-3。图像特征处理模块620还可以包括第一图像特征处理单元622、第二图像特征处理单元623以及第三图像特征处理单元624。图像特征处理模块620可以配置成用于对所述第一输入图像、第二输入图像以及第三输入图像进行处理以确定第一图像特征、第二图像特征和第三图像特征。图像特征处理模块620可以实现为图像特征处理模块520的形式,在此不再加以赘述。The image feature processing module 620 may further include analysis networks 621-1, 621-2, 621-3 for processing the first input image, the second input image, and the third input image, respectively. The image feature processing module 620 may further include a first image feature processing unit 622, a second image feature processing unit 623, and a third image feature processing unit 624. The image feature processing module 620 may be configured to process the first input image, the second input image, and the third input image to determine the first image feature, the second image feature, and the third image feature. The image feature processing module 620 may be implemented in the form of the image feature processing module 520, which will not be repeated here.
级联的三级图像特征补偿模块630-1、630-2以及630-3可以是相同的,以下以图像特征补偿模块630-1为例解释本公开的原理。The cascaded three-level image feature compensation modules 630-1, 630-2, and 630-3 may be the same. The following takes the image feature compensation module 630-1 as an example to explain the principle of the present disclosure.
如图6所示,图像特征补偿模块630-1可以由多个图像特征补偿单元631形成。尽管图6中图像特征补偿模块630-1仅包括三个图像特征补偿单元,然而本领域技术人员可以理解,在符合本公开原理的情况下,图像特征补偿模块可以包括更多或更少的图像特征补偿单元,例如两个图像特征补偿单元或四个以上的图像特征补偿单元。As shown in FIG. 6, the image feature compensation module 630-1 may be formed by a plurality of image feature compensation units 631. Although the image feature compensation module 630-1 in FIG. 6 includes only three image feature compensation units, those skilled in the art can understand that the image feature compensation module may include more or less images in accordance with the principles of the present disclosure. The feature compensation unit, for example, two image feature compensation units or more than four image feature compensation units.
图7示出了根据本公开的实施例的图像特征补偿单元的示意性的结构图。如图7所示,图像特征处理单元631可以包括3个输入端、3个输出端以及上采样子单元710、叠加子单元720、下采样子单元730以及去叠加单元740。在一些实施例中,图像特征处理单元可以执行以下操作:利用上采样子单元710对输入1执行上采样;利用叠加子单元720对上采样后的输入1和输入2执行叠加操作;利用下采样子单元730对输入3执行下采样;以及利用去叠加单元740对下采样后的输入3和叠加子单元输出的图像特征执行去叠加操作。Fig. 7 shows a schematic structural diagram of an image feature compensation unit according to an embodiment of the present disclosure. As shown in FIG. 7, the image feature processing unit 631 may include 3 input terminals, 3 output terminals, and up-sampling sub-unit 710, superimposing sub-unit 720, down-sampling sub-unit 730, and de-superimposing unit 740. In some embodiments, the image feature processing unit can perform the following operations: use the upsampling subunit 710 to perform upsampling on input 1; use the superposition subunit 720 to perform superposition operations on the upsampled input 1 and input 2; use downsampling The sub-unit 730 performs down-sampling on the input 3; and the de-superimposing unit 740 performs a de-superimposing operation on the down-sampled input 3 and the image features output by the superimposing sub-unit.
在一些实施例中,上采样子单元710可以实现为包括归一化层和带步长的卷积层(strided convolution)的卷积网络。下采样子单元730可以实现为包括归一化层和转置的带步长的卷积层(strided transposed convolution)的卷积网络。在另一些实施例中,上采样子单元710也可以实现为常规的上采样, 例如线性插值、双三次插值、Lanczos插值等。In some embodiments, the upsampling sub-unit 710 may be implemented as a convolutional network including a normalization layer and a strided convolution layer. The down-sampling subunit 730 may be implemented as a convolutional network including a normalization layer and a transposed convolutional layer (strided transposed convolution). In other embodiments, the upsampling subunit 710 may also be implemented as conventional upsampling, such as linear interpolation, bicubic interpolation, Lanczos interpolation, and so on.
在一些实施例中,叠加子单元720可以实现为包括卷积层的卷积网络。例如,可以将待叠加的两个图像特征组合成一个尺寸更大的特征并输入卷积网络形式的叠加子单元进行处理。卷积网络的输出被配置成与待叠加的图像特征尺寸相同的图像特征。通过训练好的卷积网络能够输出叠加有两个图像特征的图像信息的结果。在另一些实施例中,叠加子单元720也可以配置成直接对要叠加的两个图像特征的对应元素的值进行相加,以实现两个图像特征的信息叠加。例如,图8A示出了根据本公开的叠加子单元的工作原理的示意图。为了对图像特征810和图像特征820实现叠加,可以将图像特征810和图像特征820合成一个尺寸更大的特征并输入卷积网络,利用卷积网络能够输出叠加后的图像特征830。In some embodiments, the superimposition subunit 720 may be implemented as a convolutional network including a convolutional layer. For example, two image features to be superimposed can be combined into a feature with a larger size and input into a superposition subunit in the form of a convolutional network for processing. The output of the convolutional network is configured to have the same image feature size as the image feature size to be superimposed. The trained convolutional network can output the result of image information superimposed with two image features. In other embodiments, the superimposing subunit 720 may also be configured to directly add the values of the corresponding elements of the two image features to be superimposed, so as to realize the information superimposition of the two image features. For example, FIG. 8A shows a schematic diagram of the working principle of the superposition subunit according to the present disclosure. In order to superimpose the image feature 810 and the image feature 820, the image feature 810 and the image feature 820 can be combined into a feature with a larger size and input into a convolutional network. The convolutional network can output the superimposed image feature 830.
在一些实施例中,去叠加子单元740可以实现为包括卷积层的卷积网络。例如,可以将待处理的两个图像特征组合成一个尺寸更大的特征并输入卷积网络形式的去叠加子单元进行处理。卷积网络的输出被配置成与待处理的图像特征尺寸相同的图像特征。通过训练好的卷积网络能够输出表示两个图像特征的差别信息的结果。在另一些实施例中,去叠加子单元740也可以配置成直接对要处理的两个图像特征的对应元素的值进行相减,以确定两个图像特征之间的差别信息。例如,图8B示出了根据本公开的去叠加子单元的工作原理的示意图。为了确定图像特征840和图像特征850的差别信息,可以将图像特征840和图像特征850合成一个尺寸更大的特征并输入卷积网络,利用卷积网络能够输出表示差别图像特征860。In some embodiments, the de-superimposition sub-unit 740 may be implemented as a convolutional network including a convolutional layer. For example, two image features to be processed can be combined into one feature with a larger size and input into a de-superimposition subunit in the form of a convolutional network for processing. The output of the convolutional network is configured to have the same image feature size as the image feature size to be processed. The trained convolutional network can output the result that represents the difference information of the two image features. In other embodiments, the de-overlap subunit 740 may also be configured to directly subtract the values of the corresponding elements of the two image features to be processed to determine the difference information between the two image features. For example, FIG. 8B shows a schematic diagram of the working principle of the de-superimposition subunit according to the present disclosure. In order to determine the difference information between the image feature 840 and the image feature 850, the image feature 840 and the image feature 850 can be combined into a feature with a larger size and input into a convolutional network. The convolutional network can output the image feature 860 representing the difference.
继续参考图7,由于图7中示出的图像特征补偿单元包括3个输入端和3个输出端,因此,当向图像特征补偿单元输入3个图像特征时,图像特征补偿单元能够实现前述功能。如果缺少其中的一个或两个输入,那么图像特征补偿单元将跳过相应的操作。例如,当仅将输入1和输入2输入图像特征补偿单元时,图像特征补偿单元将省略下采样子单元730的操作和去叠加子单元740的操作,直接输出叠加子单元720的结果作为输出1、输出2和输出3。又例如,当仅将输入2输入图像特征补偿单元时,图像特征补偿单元将不执行任何操作,直接将输入2输出作为输出1、输出2和输出3。再例如,当仅将输入2和输入3输入图像特征补偿单元时,图像特征补偿单元将图像特征补偿单元将省略上采样子单元710的操作和针对输入1和输入2的叠加操作, 直接对输入2和下采样后的输入3执行去叠加操作。并且可以直接将输入2输出作为输出2和输出1。Continuing to refer to FIG. 7, since the image feature compensation unit shown in FIG. 7 includes 3 input terminals and 3 output terminals, when 3 image features are input to the image feature compensation unit, the image feature compensation unit can realize the aforementioned functions . If one or two of the inputs are missing, the image feature compensation unit will skip the corresponding operation. For example, when only input 1 and input 2 are input to the image feature compensation unit, the image feature compensation unit will omit the operation of the down-sampling sub-unit 730 and the operation of the de-superimposition sub-unit 740, and directly output the result of the superimposition sub-unit 720 as output 1. , Output 2 and output 3. For another example, when only input 2 is input to the image feature compensation unit, the image feature compensation unit will not perform any operation and directly output input 2 as output 1, output 2, and output 3. For another example, when only input 2 and input 3 are input to the image feature compensation unit, the image feature compensation unit will omit the operation of the up-sampling sub-unit 710 and the overlap operation for input 1 and input 2, and directly input 2 and the down-sampled input 3 perform de-superposition operation. And you can directly use input 2 and output as output 2 and output 1.
利用上述原理,可以将图6中的图像特征处理模块中的第一图像特征处理单元622、第二图像特征处理单元623以及第三图像特征处理单元624也实现为图7中示出的图像特征补偿单元的形式。其中,图6中示出的表示各单元622、623、624和631中的箭头代表了处理单元的输入和输出方向。可以看出,第一图像特征处理单元622按照仅有输入2的方式进行操作,第二图像特征处理单元623按照仅有输入1和输入2的方式进行操作,第三图像特征处理单元624按照仅有输入1和输入2的方式进行操作。Using the above principles, the first image feature processing unit 622, the second image feature processing unit 623, and the third image feature processing unit 624 in the image feature processing module in FIG. 6 can also be implemented as the image features shown in FIG. The form of the compensation unit. Among them, the arrows shown in FIG. 6 representing the units 622, 623, 624, and 631 represent the input and output directions of the processing unit. It can be seen that the first image feature processing unit 622 operates according to only input 2, the second image feature processing unit 623 operates according to only input 1 and input 2, and the third image feature processing unit 624 operates according to only input 2. There are input 1 and input 2 modes for operation.
因此,利用图6中示出的网络结构能够实现图4中示出的根据本公开的实施例的图像处理装置。可以理解的是,利用图6中示出的网络结构,本公开不限制输入图像和输出图像的尺寸。无论输入的是低分辨率的小尺寸图像还是高分辨率的大尺寸图像,利用图6中示出的网络结构都可以对与输入图像相关联的不同尺寸的图像特征进行处理。Therefore, the image processing apparatus according to the embodiment of the present disclosure shown in FIG. 4 can be realized by using the network structure shown in FIG. 6. It can be understood that using the network structure shown in FIG. 6, the present disclosure does not limit the size of the input image and the output image. Regardless of whether the input is a low-resolution small-size image or a high-resolution large-size image, the network structure shown in FIG. 6 can be used to process image features of different sizes associated with the input image.
利用针对不同目的确定的训练集可以对图6中示出的网络结构进行训练。例如可以使用高分辨率的原始图像对网络600进行训练,以确定用于基于低分辨率图像生成超分辨率图像的网络600。又例如,可以使用高清晰度的原始图像对网络600进行训练,以确定用于基于模糊图像生成清晰图像的网络600。再例如,可以使用彩色的原始图像对网络600进行训练,以确定用于对灰度图像进行着色的网络600。The network structure shown in FIG. 6 can be trained by using training sets determined for different purposes. For example, the network 600 can be trained using high-resolution original images to determine the network 600 for generating super-resolution images based on low-resolution images. For another example, the network 600 can be trained using high-definition original images to determine the network 600 for generating a clear image based on the blurred image. For another example, the network 600 can be trained using color original images to determine the network 600 used to color the grayscale image.
在一些实施例中,可以利用网络600对用于训练的样本图像进行处理,并比较网络600输出的图像和真实图像之间的差别。例如,可以基于网络600的输出图像和真实图像之间的L1正则项、L2正则项中的至少一项确定为网络的损失函数,并调整网络600中的参数使得损失函数最小。例如,可以调整实现为卷积网络的上采样子单元、下采样子单元叠加子单元以及去叠加子单元中的卷积核的参数,以使得网络600的损失函数最小。In some embodiments, the network 600 may be used to process the sample images used for training, and compare the difference between the image output by the network 600 and the real image. For example, at least one of the L1 regular term and the L2 regular term between the output image of the network 600 and the real image may be determined as the loss function of the network, and the parameters in the network 600 may be adjusted to minimize the loss function. For example, the parameters of the convolution kernel in the up-sampling sub-unit, the down-sampling sub-unit superimposing sub-unit, and the de-superimposing sub-unit implemented as a convolutional network can be adjusted to minimize the loss function of the network 600.
此外,根据本申请实施例的方法或装置也可以借助于图9所示的计算设备的架构来实现。图9示出了该计算设备的架构。如图9所示,计算设备1000可以包括总线910、一个或多个处理器(CPU)920、只读存储器(ROM)930、随机存取存储器(RAM)940、连接到网络的通信端口950、输入/输出组件960、硬盘970等。计算设备900中的存储设备,例如ROM 930或硬盘 970可以存储本申请提供的用于定位电子设备的方法的处理和/或通信使用的各种数据或文件以及CPU所执行的程序指令。计算设备900还可以包括用户界面980。当然,图9所示的架构只是示例性的,在实现不同的设备时,根据实际需要,可以省略图9示出的计算设备中的一个或多个组件。In addition, the method or device according to the embodiment of the present application can also be implemented with the aid of the architecture of the computing device shown in FIG. 9. Figure 9 shows the architecture of the computing device. As shown in FIG. 9, the computing device 1000 may include a bus 910, one or more processors (CPU) 920, a read only memory (ROM) 930, a random access memory (RAM) 940, a communication port 950 connected to a network, Input/output components 960, hard disk 970, etc. The storage device in the computing device 900, such as the ROM 930 or the hard disk 970, can store various data or files used in the processing and/or communication of the method for locating an electronic device provided in this application, and program instructions executed by the CPU. The computing device 900 may also include a user interface 980. Of course, the architecture shown in FIG. 9 is only exemplary. When implementing different devices, one or more components of the computing device shown in FIG. 9 may be omitted according to actual needs.
本申请的实施例也可以被实现为计算机可读存储介质。根据本申请实施例的计算机可读存储介质上存储有计算机可读指令。当所述计算机可读指令由处理器运行时,可以执行参照以上附图描述的根据本申请实施例的方法。所述计算机可读存储介质包括但不限于例如易失性存储器和/或非易失性存储器。所述易失性存储器例如可以包括随机存取存储器(RAM)和/或高速缓冲存储器(cache)等。所述非易失性存储器例如可以包括只读存储器(ROM)、硬盘、闪存等。The embodiments of the present application can also be implemented as a computer-readable storage medium. The computer-readable storage medium according to the embodiment of the present application stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the method according to the embodiments of the present application described with reference to the above drawings can be executed. The computer-readable storage medium includes, but is not limited to, for example, volatile memory and/or non-volatile memory. The volatile memory may include random access memory (RAM) and/or cache memory (cache), for example. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc.
本领域技术人员能够理解,本申请所披露的内容可以出现多种变型和改进。例如,以上所描述的各种设备或组件可以通过硬件实现,也可以通过软件、固件、或者三者中的一些或全部的组合实现。Those skilled in the art can understand that the content disclosed in this application can have many variations and improvements. For example, the various devices or components described above can be implemented by hardware, or can be implemented by software, firmware, or a combination of some or all of the three.
此外,如本申请和权利要求书中所示,除非上下文明确提示例外情形,“一”、“一个”、“一种”和/或“该”等词并非特指单数,也可包括复数。一般说来,术语“包括”与“包含”仅提示包括已明确标识的步骤和元素,而这些步骤和元素不构成一个排它性的罗列,方法或者设备也可能包含其他的步骤或元素。In addition, as shown in the present application and claims, unless the context clearly suggests exceptional circumstances, the words "a", "an", "an" and/or "the" do not specifically refer to the singular, but may also include the plural. Generally speaking, the terms "including" and "including" only suggest that the clearly identified steps and elements are included, and these steps and elements do not constitute an exclusive list, and the method or device may also include other steps or elements.
此外,虽然本申请对根据本申请的实施例的系统中的某些单元做出了各种引用,然而,任何数量的不同单元可以被使用并运行在客户端和/或服务器上。所述单元仅是说明性的,并且所述系统和方法的不同方面可以使用不同单元。In addition, although this application makes various references to certain units in the system according to the embodiments of this application, any number of different units can be used and run on the client and/or server. The units are merely illustrative, and different units may be used for different aspects of the systems and methods.
此外,本申请中使用了流程图用来说明根据本申请的实施例的系统所执行的操作。应当理解的是,前面或下面操作不一定按照顺序来精确地执行。相反,可以按照倒序或同时处理各种步骤。同时,也可以将其他操作添加到这些过程中,或从这些过程移除某一步或数步操作。In addition, a flowchart is used in this application to illustrate the operations performed by the system according to the embodiment of the application. It should be understood that the preceding or following operations are not necessarily performed exactly in order. Instead, the various steps can be processed in reverse order or simultaneously. At the same time, you can also add other operations to these processes, or remove a step or several operations from these processes.
除非另有定义,这里使用的所有术语(包括技术和科学术语)具有与本发明所属领域的普通技术人员共同理解的相同含义。还应当理解,诸如在通常字典里定义的那些术语应当被解释为具有与它们在相关技术的上下文中的含义相一致的含义,而不应用理想化或极度形式化的意义来解释,除非这里 明确地这样定义。Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art to which the present invention belongs. It should also be understood that terms such as those defined in ordinary dictionaries should be interpreted as having meanings consistent with their meanings in the context of related technologies, and should not be interpreted in idealized or extremely formalized meanings, unless explicitly stated here. So defined.
上面是对本发明的说明,而不应被认为是对其的限制。尽管描述了本发明的若干示例性实施例,但本领域技术人员将容易地理解,在不背离本发明的新颖教学和优点的前提下可以对示例性实施例进行许多修改。因此,所有这些修改都意图包含在权利要求书所限定的本发明范围内。应当理解,上面是对本发明的说明,而不应被认为是限于所公开的特定实施例,并且对所公开的实施例以及其他实施例的修改意图包含在所附权利要求书的范围内。本发明由权利要求书及其等效物限定。The above is an explanation of the present invention and should not be considered as a limitation thereof. Although several exemplary embodiments of the present invention have been described, those skilled in the art will readily understand that many modifications can be made to the exemplary embodiments without departing from the novel teachings and advantages of the present invention. Therefore, all these modifications are intended to be included in the scope of the present invention defined by the claims. It should be understood that the above is an illustration of the present invention and should not be considered as limited to the specific embodiments disclosed, and modifications to the disclosed embodiments and other embodiments are intended to be included in the scope of the appended claims. The present invention is defined by the claims and their equivalents.

Claims (15)

  1. 一种图像处理方法,包括:An image processing method, including:
    接收输入图像,Receive the input image,
    对所述输入图像进行处理以确定第一尺寸的第一图像特征、第二尺寸的第二图像特征和第三尺寸的第三图像特征,其中所述第一尺寸小于所述第二尺寸,所述第二尺寸小于所述第三尺寸;The input image is processed to determine a first image feature of a first size, a second image feature of a second size, and a third image feature of a third size, wherein the first size is smaller than the second size, so The second size is smaller than the third size;
    利用所述第一图像特征对所述第二图像特征进行补偿,以生成第二尺寸的补偿后的第二图像特征;Using the first image feature to compensate the second image feature to generate a compensated second image feature of a second size;
    利用所述补偿后的第二图像特征对所述第三图像特征进行补偿,以生成第三尺寸的补偿后的第三图像特征;以及Compensate the third image feature by using the compensated second image feature to generate a compensated third image feature of a third size; and
    基于所述补偿后的第二图像特征或所述补偿后的第三图像特征确定输出图像。The output image is determined based on the compensated second image feature or the compensated third image feature.
  2. 如权利要求1所述的图像处理方法,其中,利用所述第一图像特征对所述第二图像特征进行补偿,以生成第二尺寸的补偿后的第二图像特征包括:8. The image processing method according to claim 1, wherein using the first image feature to compensate the second image feature to generate a compensated second image feature of the second size comprises:
    对所述第二图像特征进行下采样,以得到第一尺寸的下采样后的第二图像特征;Down-sampling the second image feature to obtain the down-sampled second image feature of the first size;
    对下采样后的第二图像特征和所述第一图像特征执行去叠加操作,以生成第一尺寸的第一补偿图像特征;Performing a de-superimposition operation on the down-sampled second image feature and the first image feature to generate a first compensated image feature of the first size;
    对所述第一补偿图像特征进行上采样,以得到第二尺寸的上采样后的第一补偿图像特征;Up-sampling the first compensated image feature to obtain an up-sampled first compensated image feature of a second size;
    对所述上采样后的第一补偿图像特征和所述第二图像特征执行叠加操作,以生成第二尺寸的补偿后的第二图像特征。A superposition operation is performed on the up-sampled first compensated image feature and the second image feature to generate a compensated second image feature of a second size.
  3. 如权利要求2所述的图像处理方法,其中对所述下采样后的第二图像特征和所述第一图像特征执行去叠加操作包括:3. The image processing method of claim 2, wherein performing a de-superimposition operation on the down-sampled second image feature and the first image feature comprises:
    对所述下采样后的第二图像特征和所述第一图像特征中的对应元素执行减法操作;或Perform a subtraction operation on the down-sampled second image feature and the corresponding element in the first image feature; or
    对所述下采样后的第二图像特征和所述第一图像特征的组合执行卷积操作。Perform a convolution operation on the combination of the down-sampled second image feature and the first image feature.
  4. 如权利要求2或3所述的图像处理方法,其中对所述上采样后的第一补偿图像特征和所述第二图像特征执行叠加操作包括:对所述上采样后的第 一补偿图像特征和所述第二图像特征中的对应元素执行加法操作。The image processing method of claim 2 or 3, wherein performing an overlay operation on the up-sampled first compensated image feature and the second image feature comprises: performing the up-sampled first compensated image feature Perform an addition operation with the corresponding element in the second image feature.
  5. 如权利要求2或3所述的图像处理方法,其中,利用所述补偿后的第二图像特征对所述第三图像特征进行补偿,以生成补偿后的第三图像特征包括:3. The image processing method according to claim 2 or 3, wherein using the compensated second image feature to compensate the third image feature to generate the compensated third image feature comprises:
    对所述第三图像特征进行下采样,以得到第二尺寸的下采样后的第三图像特征;Down-sampling the third image feature to obtain the down-sampled third image feature of the second size;
    对所述下采样后的第三图像特征和所述补偿后的第二图像特征执行去叠加操作,以生成第二尺寸的第二补偿图像特征;Performing a de-superimposition operation on the down-sampled third image feature and the compensated second image feature to generate a second compensated image feature of a second size;
    对所述第二补偿图像特征进行上采样,以得到第三尺寸的上采样后的第二补偿图像特征;Up-sampling the second compensated image feature to obtain an up-sampled second compensated image feature of a third size;
    对所述第三图像特征和所述上采样后的第二补偿图像特征执行叠加操作,以生成第三尺寸的补偿后的第三图像特征。A superposition operation is performed on the third image feature and the up-sampled second compensated image feature to generate a compensated third image feature of a third size.
  6. 如权利要求5所述的图像处理方法,基于所述补偿后的第二图像特征或所述补偿后的第三图像特征确定输出图像包括:8. The image processing method of claim 5, wherein determining the output image based on the compensated second image feature or the compensated third image feature comprises:
    对所述补偿后的第二图像特征进行下采样,以得到第一尺寸的下采样后的补偿后的第二图像特征;Down-sampling the compensated second image feature to obtain the down-sampled compensated second image feature of the first size;
    对下采样后的补偿后的第二图像特征和所述第一图像特征执行去叠加操作,以生成第一尺寸的第三补偿图像特征;Performing a de-superimposition operation on the down-sampled compensated second image feature and the first image feature to generate a third compensated image feature of the first size;
    对所述第三补偿图像特征进行上采样,以得到第二尺寸的上采样后的第三补偿图像特征;Up-sampling the third compensated image feature to obtain an up-sampled third compensated image feature of the second size;
    对所述补偿后的第二图像特征和所述上采样后的第三补偿图像特征执行叠加操作,以生成第二尺寸的进一步补偿的第二图像特征;Performing a superposition operation on the compensated second image feature and the up-sampled third compensated image feature to generate a further compensated second image feature of a second size;
    对所述补偿后的第三图像特征进行下采样,以得到第二尺寸的下采样后的补偿后的第三图像特征;Down-sampling the compensated third image feature to obtain the down-sampled compensated third image feature of the second size;
    对下采样后的补偿后的第三图像特征和所述进一步补偿的第二图像特征执行去叠加操作,以生成第二尺寸的第四补偿图像特征;Performing a de-superimposition operation on the down-sampled compensated third image feature and the further compensated second image feature to generate a fourth compensated image feature of the second size;
    对所述第四补偿图像特征进行上采样,以得到第三尺寸的上采样后的第四补偿图像特征;Up-sampling the fourth compensated image feature to obtain an up-sampled fourth compensated image feature of a third size;
    对所述补偿后的第三图像特征和上采样后的第四补偿图像特征执行叠加操作,以生成第三尺寸的进一步补偿的第三图像特征;以及Performing an overlay operation on the compensated third image feature and the up-sampled fourth compensated image feature to generate a further compensated third image feature of a third size; and
    基于所述进一步补偿的第二图像特征或所述进一步补偿的第三图像特征 生成输出图像。An output image is generated based on the further compensated second image feature or the further compensated third image feature.
  7. 如权利要求1-6任一项所述的图像处理方法,对所述输入图像进行处理以确定与所述输入图像相关联的第一尺寸的第一图像特征、第二尺寸的第二图像特征和第三尺寸的第三图像特征包括:7. The image processing method according to any one of claims 1 to 6, processing the input image to determine a first image feature of a first size and a second image feature of a second size associated with the input image And the third image features of the third size include:
    根据所述输入图像确定第一尺寸的第一输入图像,第二尺寸的第二输入图像以及第三尺寸的第三输入图像,Determining a first input image of a first size, a second input image of a second size, and a third input image of a third size according to the input image,
    分别对所述第一输入图像、所述第二输入图像和所述第三输入图像进行处理以确定第一尺寸的第一图像特征、第二尺寸的第一输入图像特征和第三尺寸的第二输入图像特征;The first input image, the second input image, and the third input image are respectively processed to determine the first image feature of the first size, the first input image feature of the second size, and the first input image of the third size. 2. Input image characteristics;
    对所述第一图像特征进行上采样,并对所述第一输入图像特征和上采样后的第一图像特征执行叠加操作,以获得第二尺寸的第二图像特征;Up-sampling the first image feature, and performing an overlay operation on the first input image feature and the up-sampled first image feature to obtain a second image feature of a second size;
    对所述第二图像特征进行上采样,并对上采样后的第二图像特征和所述第二输入图像特征执行叠加操作,以获得第三尺寸的第三图像特征。Up-sampling the second image feature, and performing an overlay operation on the up-sampled second image feature and the second input image feature to obtain a third image feature of a third size.
  8. 如权利要求7所述的图像处理方法,其中,所述输入图像具有第一尺寸,8. The image processing method of claim 7, wherein the input image has a first size,
    根据所述输入图像确定第一尺寸的第一输入图像,第二尺寸的第二输入图像以及第三尺寸的第三输入图像包括:The first input image of the first size is determined according to the input image, the second input image of the second size and the third input image of the third size include:
    将所述输入图像确定为第一尺寸的第一输入图像;Determining the input image as a first input image of a first size;
    对第一尺寸的第一输入图像进行上采样以生成第二尺寸的第二输入图像;Up-sampling the first input image of the first size to generate a second input image of the second size;
    对第二尺寸的第二输入图像进行上采样以生成第三尺寸的第三输入图像。The second input image of the second size is up-sampled to generate a third input image of the third size.
  9. 如权利要求1所述的图像处理方法,其中,基于所述补偿后的第二图像特征或所述补偿后的第三图像特征确定输出图像包括:5. The image processing method of claim 1, wherein determining the output image based on the compensated second image feature or the compensated third image feature comprises:
    利用所述第一图像特征对所述补偿后的第二图像特征进行补偿,以生成进一步补偿的第二图像特征;Using the first image feature to compensate the compensated second image feature to generate a further compensated second image feature;
    利用所述进一步补偿的第二图像特征对所述补偿后的第三图像特征进行补偿,以生成进一步补偿的第三图像特征;以及Using the further compensated second image feature to compensate the compensated third image feature to generate a further compensated third image feature; and
    基于所述进一步补偿的第二图像特征或所述进一步补偿的第三图像特征生成输出图像。An output image is generated based on the further compensated second image feature or the further compensated third image feature.
  10. 如权利要求9所述的图像处理方法,其中,利用所述第一图像特征对所述补偿后的第二图像特征进行补偿,以生成进一步补偿的第二图像特征包括:9. The image processing method of claim 9, wherein using the first image feature to compensate the compensated second image feature to generate a further compensated second image feature comprises:
    对所述补偿后的第二图像特征进行下采样,以得到第一尺寸的下采样后的补偿后的第二图像特征;Down-sampling the compensated second image feature to obtain the down-sampled compensated second image feature of the first size;
    对下采样后的补偿后的第二图像特征和所述第一图像特征执行去叠加操作,以生成第一尺寸的第三补偿图像特征;Performing a de-superimposition operation on the down-sampled compensated second image feature and the first image feature to generate a third compensated image feature of the first size;
    对所述第三补偿图像特征进行上采样,以得到第二尺寸的上采样后的第三补偿图像特征;Up-sampling the third compensated image feature to obtain an up-sampled third compensated image feature of the second size;
    对上采样后的第三补偿图像特征和所述补偿后的第二图像特征执行叠加操作,以生成第二尺寸的进一步补偿的第二图像特征。A superposition operation is performed on the up-sampled third compensated image feature and the compensated second image feature to generate a further compensated second image feature of the second size.
  11. 如权利要求10所述的图像处理方法,其中,利用所述进一步补偿的第二图像特征对所述补偿后的第三图像特征进行补偿,以生成进一步补偿的第三图像特征包括:10. The image processing method according to claim 10, wherein using the further compensated second image feature to compensate the compensated third image feature to generate the further compensated third image feature comprises:
    对所述补偿后的第三图像特征进行下采样,以得到第二尺寸的下采样后的补偿后的第三图像特征;Down-sampling the compensated third image feature to obtain the down-sampled compensated third image feature of the second size;
    对下采样后的补偿后的第三图像特征和所述进一步补偿的第二图像特征执行去叠加操作,以生成第二尺寸的第四补偿图像特征;Performing a de-superimposition operation on the down-sampled compensated third image feature and the further compensated second image feature to generate a fourth compensated image feature of the second size;
    对所述第四补偿图像特征进行上采样,以得到第三尺寸的上采样后的第四补偿图像特征;Up-sampling the fourth compensated image feature to obtain an up-sampled fourth compensated image feature of a third size;
    对所述补偿后的第三图像特征和上采样后的第四补偿图像特征执行叠加操作,以生成第三尺寸的进一步补偿的第三图像特征。A superposition operation is performed on the compensated third image feature and the up-sampled fourth compensated image feature to generate a further compensated third image feature of a third size.
  12. 如权利要求1所述的图像处理方法,其中所述第二尺寸是所述第一尺寸的M倍,第三尺寸是所述第二尺寸的M倍,M是大于1的整数。5. The image processing method according to claim 1, wherein the second size is M times the first size, the third size is M times the second size, and M is an integer greater than 1.
  13. 一种图像处理装置,包括:An image processing device including:
    接收模块,配置成接收输入图像;The receiving module is configured to receive input images;
    图像特征处理模块,配置成对所述输入图像进行处理以确定第一尺寸的第一图像特征、第二尺寸的第二图像特征和第三尺寸的第三图像特征,其中所述第一尺寸小于所述第二尺寸,所述第二尺寸小于所述第三尺寸;An image feature processing module configured to process the input image to determine a first image feature of a first size, a second image feature of a second size, and a third image feature of a third size, wherein the first size is smaller than The second size, the second size being smaller than the third size;
    图像特征补偿模块,包括:Image feature compensation module, including:
    第一补偿单元,配置成利用所述第一图像特征对所述第二图像特征进行补偿,以生成第二尺寸的补偿后的第二图像特征;以及A first compensation unit configured to use the first image feature to compensate the second image feature to generate a compensated second image feature of a second size; and
    第二补偿单元,配置成利用所述补偿后的第二图像特征对所述第三图像特征进行补偿,以生成第三尺寸的补偿后的第三图像特征;以及The second compensation unit is configured to compensate the third image feature by using the compensated second image feature to generate a compensated third image feature of a third size; and
    输出模块,配置成基于所述补偿后的第二图像特征或所述补偿后的第三图像特征确定输出图像。The output module is configured to determine an output image based on the compensated second image feature or the compensated third image feature.
  14. 一种图像处理设备,包括处理器和存储器,其中存储器中存储有指令,所述指令在被处理器执行时,使得所述处理器执行如权利要求1-12中任一项所述的图像处理方法。An image processing device, comprising a processor and a memory, wherein instructions are stored in the memory, and when the instructions are executed by the processor, the processor executes the image processing according to any one of claims 1-12 method.
  15. 一种计算机可读存储介质,其上存储有指令,所述指令在被处理器执行时,使得所述处理器执行如权利要求1-12中任一项所述的图像处理方法。A computer-readable storage medium having instructions stored thereon, which when executed by a processor, causes the processor to execute the image processing method according to any one of claims 1-12.
PCT/CN2020/077983 2019-03-19 2020-03-05 Image processing method, device and apparatus, and computer readable medium WO2020187042A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910209661.8 2019-03-19
CN201910209661.8A CN111724292B (en) 2019-03-19 2019-03-19 Image processing method, device, equipment and computer readable medium

Publications (1)

Publication Number Publication Date
WO2020187042A1 true WO2020187042A1 (en) 2020-09-24

Family

ID=72518967

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/077983 WO2020187042A1 (en) 2019-03-19 2020-03-05 Image processing method, device and apparatus, and computer readable medium

Country Status (2)

Country Link
CN (1) CN111724292B (en)
WO (1) WO2020187042A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021155675A1 (en) * 2020-02-07 2021-08-12 腾讯科技(深圳)有限公司 Image processing method and apparatus, computer-readable storage medium, and computer device
US20220368829A1 (en) * 2021-05-11 2022-11-17 Samsung Electronics Co., Ltd. Image super-resolution with reference images from one or more cameras

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110274370A1 (en) * 2010-05-10 2011-11-10 Yuhi Kondo Image processing apparatus, image processing method and image processing program
US8233541B2 (en) * 2008-03-26 2012-07-31 Sony Corporation Recursive image quality enhancement on super resolution video
CN102915527A (en) * 2012-10-15 2013-02-06 中山大学 Face image super-resolution reconstruction method based on morphological component analysis

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4646146B2 (en) * 2006-11-30 2011-03-09 ソニー株式会社 Image processing apparatus, image processing method, and program
JP2011237998A (en) * 2010-05-10 2011-11-24 Sony Corp Image processing device, and image processing method and program
CN103379357B (en) * 2012-04-26 2015-12-16 联咏科技股份有限公司 Image processing apparatus
CN102780909B (en) * 2012-07-26 2014-12-24 青岛海信电器股份有限公司 Method and system for processing video image
US9299128B2 (en) * 2013-05-23 2016-03-29 Futurewei Technologies, Inc. Delta interpolation for upsampling imaging solution
CN109345456B (en) * 2018-09-30 2021-01-19 京东方科技集团股份有限公司 Generation countermeasure network training method, image processing method, device, and storage medium
CN109360151B (en) * 2018-09-30 2021-03-05 京东方科技集团股份有限公司 Image processing method and system, resolution improving method and readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8233541B2 (en) * 2008-03-26 2012-07-31 Sony Corporation Recursive image quality enhancement on super resolution video
US20110274370A1 (en) * 2010-05-10 2011-11-10 Yuhi Kondo Image processing apparatus, image processing method and image processing program
CN102915527A (en) * 2012-10-15 2013-02-06 中山大学 Face image super-resolution reconstruction method based on morphological component analysis

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021155675A1 (en) * 2020-02-07 2021-08-12 腾讯科技(深圳)有限公司 Image processing method and apparatus, computer-readable storage medium, and computer device
US20220368829A1 (en) * 2021-05-11 2022-11-17 Samsung Electronics Co., Ltd. Image super-resolution with reference images from one or more cameras

Also Published As

Publication number Publication date
CN111724292B (en) 2024-04-05
CN111724292A (en) 2020-09-29

Similar Documents

Publication Publication Date Title
US10853916B2 (en) Convolution deconvolution neural network method and system
TWI714397B (en) Method, device for video processing and computer storage medium thereof
JP7482253B2 (en) IMAGE PROCESSING METHOD, APPARATUS, COMPUTER DEVICE, AND STORAGE MEDIUM
WO2021189733A1 (en) Image processing method and apparatus, electronic device, and storage medium
WO2020187042A1 (en) Image processing method, device and apparatus, and computer readable medium
CN112602088B (en) Method, system and computer readable medium for improving quality of low light images
WO2023169582A1 (en) Image enhancement method and apparatus, device, and medium
CN110544214A (en) Image restoration method and device and electronic equipment
WO2021213340A1 (en) Video resolution enhancement method and apparatus, storage medium, and electronic device
WO2023184913A1 (en) Model training method and apparatus, super-resolution reconstruction method, device and medium
CN107220934B (en) Image reconstruction method and device
CN116547694A (en) Method and system for deblurring blurred images
CN116071279A (en) Image processing method, device, computer equipment and storage medium
WO2021013139A1 (en) Image processing method and device
CN113409188A (en) Image background replacing method, system, electronic equipment and storage medium
WO2024055458A1 (en) Image noise reduction processing method and apparatus, device, storage medium, and program product
US20230098437A1 (en) Reference-Based Super-Resolution for Image and Video Enhancement
US11871145B2 (en) Optimization of adaptive convolutions for video frame interpolation
WO2021218414A1 (en) Video enhancement method and apparatus, and electronic device and storage medium
CN112419146B (en) Image processing method and device and terminal equipment
JP2020087104A (en) Computer program, image processing method and image processing apparatus
WO2024051657A1 (en) Image processing method and apparatus, and computer device and storage medium
CN112950462B (en) Image processing method and device, electronic equipment and storage medium
WO2022117067A1 (en) Content-aware bifurcated upscaling
TWI818491B (en) Method for image refinement and system thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20774694

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20774694

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 07.02.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20774694

Country of ref document: EP

Kind code of ref document: A1