WO2019174522A1 - Image generating method and device - Google Patents

Image generating method and device Download PDF

Info

Publication number
WO2019174522A1
WO2019174522A1 PCT/CN2019/077352 CN2019077352W WO2019174522A1 WO 2019174522 A1 WO2019174522 A1 WO 2019174522A1 CN 2019077352 W CN2019077352 W CN 2019077352W WO 2019174522 A1 WO2019174522 A1 WO 2019174522A1
Authority
WO
WIPO (PCT)
Prior art keywords
resolution
image
low
feature map
oriented
Prior art date
Application number
PCT/CN2019/077352
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 WO2019174522A1 publication Critical patent/WO2019174522A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/4053Super resolution, i.e. output image resolution higher than sensor resolution
    • G06T3/4076Super resolution, i.e. output image resolution higher than sensor resolution by iteratively correcting the provisional high resolution image using the original low-resolution image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration by the use of more than one image, e.g. averaging, subtraction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20021Dividing image into blocks, subimages or windows
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20212Image combination
    • G06T2207/20221Image fusion; Image merging

Definitions

  • the present application relates to the field of image processing technologies, and in particular, to an image generating method and apparatus.
  • Super-Resolution refers to the recovery of high-resolution images from a low-resolution image or sequence of images.
  • the current method of super-resolution processing of most single images is the use of the Empirical Risk Minimisation (ERM) principle.
  • ERM Empirical Risk Minimisation
  • the embodiment of the present invention provides an image generation method and device, which can solve the problem that an image processed by the ERM principle is too smooth and lacks detailed information.
  • an embodiment of the present application provides an image generating method, including: determining at least one detail-oriented low-resolution feature map corresponding to a low-resolution image and at least one complementary-oriented low-resolution feature map; determining that at least one detail orientation is low Determining, in each of the resolution maps, a detail-oriented super-resolution image corresponding to the low-resolution feature map; determining a complementary orientation super corresponding to each of the complementary-oriented low-resolution feature maps in the at least one complementary-oriented low-resolution feature map A resolution image; acquiring a super-resolution image corresponding to the low-resolution image according to the detail-oriented super-resolution image and the complementary-oriented super-resolution image.
  • the at least one detail-oriented low-resolution feature map and the at least one complementary-oriented low-resolution feature map determined according to the low-resolution image respectively record information such as real details of the low-resolution image and other feature information, and the detail orientation is super
  • the resolution image and the complementary directional super-resolution image have more detailed information and other information such as local texture, that is, the weight of the information such as the detailed content is emphasized, so that the output super-resolution image has richer details and structure. At the same time, it can also suppress the sawtooth effect produced by some image processing.
  • the super-resolution image generated by the image generating method provided by the embodiment of the present application has richer detail content and structure, and the visual sense is more natural.
  • the image generated by the ERM principle can solve the problem that the image is generated by using the ERM principle. The image is too smooth and lacks detailed information.
  • the detail-oriented separation module may determine the detail-oriented low-resolution feature map and the complementary-oriented low-resolution feature map according to the low-resolution image. Similarly, the detail-oriented separation module may determine the detail-oriented high-resolution feature according to the high-resolution image. Figure and complementary directional high resolution feature map.
  • determining the detail-oriented super-resolution image corresponding to each of the detail-oriented low-resolution feature maps in the at least one detail-oriented low-resolution feature map comprises: orienting the low-resolution feature map for the at least one detail Each of the details is oriented to the low resolution feature map, and the detail oriented super resolution image is determined according to the detail oriented high resolution feature map corresponding to the detail oriented low resolution feature map and the detail oriented low resolution feature map.
  • the detail-oriented super-resolution image determined according to the detail-oriented low-resolution feature map and the detail-oriented high-resolution feature map has more details and structure, that is, the low-resolution image is emphasized
  • the weight of the details and other information can make the visual sense of the subsequently generated super-resolution image more natural and realistic.
  • determining the complementary directional super-resolution image corresponding to each of the complementary directional low-resolution feature maps of the at least one complementary directional low-resolution feature map comprises: for at least one complementary directional low-resolution feature map Each of the complementary directional low-resolution feature maps determines a complementary directional super-resolution image according to the complementary directional low-resolution feature map and the complementary directional high-resolution feature map corresponding to the complementary directional low-resolution feature map.
  • the complementary directional super-resolution image determined according to the complementary directional low-resolution feature map and the complementary directional high-resolution feature map has more content than the detail content, and can be subsequently generated.
  • the visual sense of the super-resolution image is more natural and realistic.
  • acquiring the super-resolution image corresponding to the low-resolution image according to the detail-oriented super-resolution image and the complementary-oriented super-resolution image comprises: locating each of the super-resolution feature maps for at least one detail Adding a pixel value of the detail-oriented super-resolution image corresponding to the detail-oriented super-resolution feature map and the complementary-oriented super-resolution feature map of the at least one complementary-oriented super-resolution feature map a pixel value of the detail-oriented super-resolution image corresponding to the complementary directional super-resolution feature map; wherein the detail-oriented super-resolution feature map corresponds to the complementary directional super-resolution feature map, ie, the complementary directional super-resolution feature map
  • the corresponding complementary directional low-resolution feature map is obtained by subtracting the pixel value of the detail-oriented low-resolution feature map corresponding to the detail-oriented super-resolution feature map from the pixel value of the corresponding gray-scale image.
  • an embodiment of the present application provides an image generating apparatus, including: a detail orientation separating module, configured to determine at least one detail oriented low resolution feature map corresponding to a low resolution image and at least one complementary oriented low resolution feature map a detail-oriented super-division module for determining a detail-oriented super-resolution image corresponding to each of the detail-oriented low-resolution feature maps in the at least one detail-oriented low-resolution feature map; and a complementary directional super-segment module for determining at least one Complementary directional super-resolution image corresponding to each complementary directional low-resolution feature map in the complementary directional low-resolution feature map; super-image fusion module for directional super-resolution image and complementary directional super-resolution image acquisition A super-resolution image corresponding to a low-resolution image.
  • the detail orientation separation module records information such as the real details of the low resolution image and other feature information respectively according to the at least one detail oriented low resolution feature map and the at least one complementary oriented low resolution feature map determined by the low resolution image.
  • the detail-oriented super-resolution image determined by the detail-oriented super-division module and the complementary directional super-resolution image determined by the complementary directional super-division module emphasize the weight of the information such as the detailed content, so that the output super-resolution image has richer details.
  • the content and structure can also suppress the jagged effect produced by some image processing.
  • the super-resolution image generated by the image generating method provided by the embodiment of the present application has richer detail content and structure, and the visual sense is more natural.
  • the image generated by the ERM principle can solve the problem that the image is generated by using the ERM principle. The image is too smooth and lacks detailed information.
  • the detail orientation separation module is configured to: determine at least one candidate feature map of the low resolution image; and convert each candidate feature map into gray for each candidate feature map in the at least one candidate feature map
  • the pixel value of the feature map is subtracted from the pixel value of the gray image of the low resolution image to obtain a complementary directional low resolution feature map.
  • the detail oriented super-segment module is configured to: direct each low-resolution feature map for each detail in the at least one detail-oriented low-resolution feature map, and orient the low-resolution feature map and detail orientation according to the detail
  • the detail-oriented high-resolution feature map corresponding to the low-resolution feature map determines the detail-oriented super-resolution image.
  • the complementary directional super-division module is configured to: for each complementary directional low-resolution feature map in the at least one complementary directional low-resolution feature map, according to the complementary directional low-resolution feature map and the complementary orientation
  • the complementary directional high resolution feature map corresponding to the low resolution feature map determines the complementary directional super resolution image.
  • the super-image fusion module is configured to: in each of the at least one detail-oriented super-resolution feature map, the super-resolution feature map and the at least one complementary-oriented super-resolution feature map Each complementary directional super-resolution feature map, the pixel value of the detail-oriented super-resolution image corresponding to the detail-oriented super-resolution feature map and the pixel of the detail-oriented super-resolution image corresponding to the complementary directional super-resolution feature map a value; wherein the detail oriented super-resolution feature map corresponds to a complementary directional super-resolution feature map.
  • an embodiment of the present application provides a device, which is in the form of a product of a chip.
  • the device includes a processor and a memory, and the memory is coupled to the processor to save necessary program instructions of the device. And data for executing the program instructions stored in the memory such that the apparatus performs the functions of the image generating apparatus in the above method.
  • an embodiment of the present application provides an image generating apparatus, which can implement the functions performed by the image generating apparatus in the foregoing method embodiments, and the functions can be implemented by hardware, or can be implemented by hardware.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • the image generating apparatus includes a processor and a communication interface configured to support the image generating apparatus to perform a corresponding function in the above method.
  • the communication interface is used to support communication between the image generating device and other network elements.
  • the image generating device can also include a memory for coupling with the processor that holds program instructions and data necessary for the image generating device.
  • an embodiment of the present application provides a computer readable storage medium, including instructions, when executed on a computer, causing a computer to perform any one of the methods provided by the first aspect.
  • an embodiment of the present application provides a computer program product comprising instructions, which when executed on a computer, cause the computer to perform any of the methods provided by the first aspect.
  • FIG. 1 is a schematic diagram of comparison of an image processed by a low resolution image and an ERM principle according to an embodiment of the present application
  • FIG. 2 is a schematic structural diagram of an image generating apparatus according to an embodiment of the present application.
  • FIG. 3 is a schematic diagram of an end-to-end system framework provided by an embodiment of the present application.
  • FIG. 4 is a schematic flowchart diagram of an image generating method according to an embodiment of the present application.
  • FIG. 5 is a schematic diagram of comparison between an image processed by a super-resolution image and an ERM principle according to an embodiment of the present application
  • FIG. 6 is a schematic structural diagram of an image generating apparatus according to an embodiment of the present application.
  • the embodiment of the present application provides an image generation method and apparatus, which can be applied to a process of image super-resolution, for example, a process of upgrading an SD image to a high-definition image.
  • FIG. 2 is a schematic diagram of an internal structure of an image generating apparatus according to an embodiment of the present disclosure.
  • the image generating apparatus may include a processing module 201, a communication module 202, and a storage module 203.
  • the processing module 201 is used to control various parts of the image generating device, the hardware device, the application software, and the like.
  • the processing module 201 may be a processor or a controller, for example, may be a central processing unit (CPU), a graphics processor. (Graphics Processing Unit, GPU), general purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), Field Programmable Gate Array (FPGA) Or other programmable logic device, transistor logic device, hardware component, or any combination thereof.
  • CPU central processing unit
  • GPU graphics processor
  • DSP digital signal processor
  • ASIC application-specific integrated circuit
  • FPGA Field Programmable Gate Array
  • the processor can also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
  • the communication module 202 is configured to receive commands sent by other devices by using a communication method such as Long Term Evolution (LTE) or WIreless-Fidelity (WiFi), or send data of the image generating device to other devices.
  • the communication module 202 can be a transceiver, a transceiver circuit, a communication interface, or the like.
  • the storage module 203 is configured to execute storage of a software program of the image generation device, storage of data, operation of software, etc., and may be a read-only memory (ROM), other types of static storage that can store static information and instructions.
  • ROM read-only memory
  • a device a random access memory (RAM), or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM) or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), disk storage media or other magnetic storage devices, Or any other medium that can be used to carry or store desired program code in the form of an instruction or data structure and that can be accessed by a computer, but is not limited thereto.
  • EEPROM electrically erasable programmable read-only memory
  • CD-ROM Compact Disc Read-Only Memory
  • CD-ROM Compact Disc Read-Only
  • the image generating device may be a desktop computer, a portable computer, a network server, a personal digital assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, a communication device, an embedded device, or the like structure in FIG. A device that supports image super-resolution technology.
  • PDA personal digital assistant
  • the processor of the image generating apparatus may implement an image generating method by running an end-to-end system framework, and the software modules included in the end-to-end system framework may be stored in a storage medium such as a memory.
  • FIG. 3 it is a schematic diagram of a logical relationship of an end-to-end system framework provided by an embodiment of the present application.
  • the system framework adopts a semantic network model, including a detail orientation separation module, a detail orientation super division module, and a complementary orientation super division module.
  • the super-division image fusion module the input of the system frame is a low-resolution image, and the output is a super-resolution image.
  • the detail orientation separation module is configured to determine at least one detail-oriented low-resolution feature map and at least one complementary-oriented low-resolution feature map corresponding to the low-resolution image.
  • the detail-oriented super-segment module is configured to determine a detail-oriented super-resolution image corresponding to each of the detail-oriented low-resolution feature maps in the at least one detail-oriented low-resolution feature map, and the detail-oriented super-resolution image has a lower resolution than the detail-oriented super-resolution image
  • the image has more edge structure, edge strength, detail content, and target feature type information.
  • the complementary directional super-division module is operative to determine a complementary directional super-resolution image corresponding to each of the complementary directional low-resolution feature maps in the at least one complementary directional low-resolution feature map.
  • a complementary directional super-resolution image has more other feature information, such as local texture information, than a complementary directional low-resolution image.
  • the super-resolution image fusion module is configured to acquire a super-resolution image corresponding to the low-resolution image according to the detail-oriented super-resolution image and the complementary directional super-resolution image.
  • RGB three-channel image consists of three channels: R, G, and B. Wherein R represents red, G represents green, and B represents blue.
  • VGG-Net is a Convolutional Neural Network (CNN). VGG-Net usually has 16-19 convolutional layers.
  • MSE Mean Square Error
  • FSRCNN Super-Resolution Convolutional Neural Network
  • ESPCN Efficient Sub-Pixel Convolutional Neural Network
  • An embodiment of the present application provides an image generating method, as shown in FIG. 4, including:
  • the detail directional separation module can be configured to receive the input low resolution image, determine at least one detail oriented low resolution feature map corresponding to the low resolution image, and the at least one complementary directional low resolution feature map.
  • the detail orientation separation module determines at least one candidate feature map of the low resolution image.
  • VGG-net can be used to perform two consecutive convolutional layer operations on the RGB three-channel image, and each convolution layer operation can include N k*k Convolution kernel operation.
  • N can be an integer between [20, 100], and k can be 3 or 5.
  • the detail orientation separation module may use at least one feature map obtained after the second convolution layer operation as at least one candidate feature map.
  • the detail orientation separation module For each candidate feature map of the at least one candidate feature map, the detail orientation separation module converts the candidate feature map into a grayscale image; the grayscale image is segmented into N image blocks, and the gradient histogram corresponding to the N image blocks is determined
  • the median value of the graph is greater than or equal to the number D of image blocks of the first predetermined threshold.
  • N is an integer greater than or equal to 1, for example, N may be 9, 25 or 49 or the like.
  • the detail-oriented low-resolution feature map contains edge information and detail content in different directions, and may also contain different image type feature information. It should be noted that R can be used to judge the richness of details, and the higher the R value, the more details, but the less details. Exemplarily, the second preset threshold may be 0.3.
  • the detail orientation separation module subtracts the pixel value of the detail-oriented low-resolution feature image from the pixel value of the gray-scale image of the low-resolution image according to the information complementation principle to obtain a complementary orientation low-resolution feature image.
  • the function of the detail directional separation module can be determined according to the model parameters.
  • a low-resolution image may be processed by a neural network such as FSRCNN or ESPCN to obtain a processing result, and then a weight back-propagation method is used to update the weight of the processing result according to an MSE error function. Training generates model parameters for the detail-oriented separation module.
  • the detail-oriented separation module can determine the detail-oriented low-resolution feature map and the complementary-oriented low-resolution feature map according to the low-resolution image. Similarly, the detail-oriented separation module can determine the detail-oriented high-resolution according to the high-resolution image. Rate feature map and complementary directional high resolution feature map. In one possible design, the detail orientation separation module may determine a high resolution image corresponding to the low resolution image based on the low resolution image.
  • the detail oriented super-segment module is configured to obtain at least one detail-oriented low-resolution feature map from the detail-oriented separation module, and determine a detail orientation super corresponding to each of the detail-oriented low-resolution feature maps in the at least one detail-oriented low-resolution feature map. Resolution image.
  • the detail-oriented super-segment module may be based on the detail-oriented low-resolution feature map and the detail-oriented low-resolution feature map corresponding to the detail-oriented high-resolution
  • the rate feature map determines the detail-oriented super-resolution image.
  • the detail-oriented super-resolution image determined according to the detail-oriented low-resolution feature map and the detail-oriented high-resolution feature map has more details and structure, that is, the low-resolution image is emphasized
  • the weight of the details and other information can make the visual sense of the subsequently generated super-resolution image more natural and realistic.
  • the function of the detail oriented super-segment module can be determined according to the model parameters.
  • the high-resolution detail-oriented feature map corresponding to the low-resolution detail orientation feature map and the low-resolution detail orientation feature map may be processed by using a neural network such as FSRCNN or ESPCN, and then the processing result is obtained, and then according to the MSE error function, The error back propagation method is used to update the weight of the above processing result, and the model parameters of the detail oriented super-division module are trained.
  • the complementary directional super-division module is configured to obtain at least one complementary directional low-resolution feature map from the detail-oriented separation module, and determine a complementary orientation super corresponding to each complementary directional low-resolution feature map in the at least one complementary directional low-resolution feature map. Resolution image.
  • the complementary orientation is determined according to the complementary directional low resolution feature map and the complementary directional high resolution feature map corresponding to the complementary directional low resolution feature map Super resolution image.
  • the complementary directional super-resolution image determined according to the complementary directional low-resolution feature map and the complementary directional high-resolution feature map has more content than the detail content, and can be subsequently generated.
  • the visual sense of the super-resolution image is more natural and realistic.
  • the function of the complementary directional super-division module is determined according to the model parameters.
  • the high-resolution complementary orientation feature map corresponding to the low-resolution complementary orientation feature map and the low-resolution complementary orientation feature map may be processed by using a neural network such as FSRCNN or ESPCN, and then the processing result is obtained, and then according to the MSE error function, The error back propagation method is used to update the weight of the above processing result, and the model parameters of the complementary directional super-division module are trained.
  • the super-resolution image fusion module can be configured to acquire at least one detail-oriented super-resolution image from the detail-oriented super-segment module, and can acquire at least one complementary-oriented super-resolution image from the complementary orientation super-segment module, and super-resolution according to at least one detail orientation
  • the rate image and the at least one complementary directional super-resolution image acquire a super-resolution image corresponding to the low-resolution image.
  • the detail-oriented super-resolution to each of the at least one detail-oriented super-resolution feature map and each of the at least one complementary-oriented super-resolution feature map a pixel value of the detail-oriented super-resolution image corresponding to the feature map and a pixel value of the detail-oriented super-resolution image corresponding to the complementary-oriented super-resolution feature map; wherein the detail-oriented super-resolution feature map corresponds to the complementary orientation super
  • the resolution feature map that is, the complementary orientation low-resolution feature map corresponding to the complementary orientation super-resolution feature map is a pixel value and a corresponding gray level of the detail-oriented low-resolution feature map corresponding to the detail-oriented super-resolution feature map
  • the pixel values of the image are subtracted.
  • the detail orientation separation module records information such as the real details of the low resolution image and other feature information respectively according to the at least one detail oriented low resolution feature map and the at least one complementary oriented low resolution feature map determined by the low resolution image.
  • the detail-oriented super-resolution image determined by the detail-oriented super-division module and the complementary directional super-resolution image determined by the complementary directional super-division module emphasize the weight of the information such as the detailed content, so that the output super-resolution image has richer details.
  • the content and structure can also suppress the jagged effect produced by some image processing.
  • the super-resolution image generated by the image generating method provided by the embodiment of the present application has richer detail content and structure, and the visual sense is more natural.
  • the image generated by the ERM principle can solve the problem that the image is generated by using the ERM principle. The image is too smooth and lacks detailed information.
  • the image generating apparatus includes hardware structures and/or software modules corresponding to the execution of the respective functions in order to implement the above functions.
  • the present application can be implemented in hardware or a combination of hardware and software in combination with the algorithm steps described in the embodiments disclosed herein. Whether a function is implemented in hardware or software-driven hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present application.
  • the embodiment of the present application may divide the function module by the image generation device according to the above method example.
  • each function module may be divided according to each function, or two or more functions may be integrated into one processing module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of the module in the embodiment of the present application is schematic, and is only a logical function division, and the actual implementation may have another division manner.
  • FIG. 6 is a schematic diagram showing a possible structure of the image generating apparatus 6 involved in the above embodiment.
  • the image generating apparatus includes: a detail orientation separating module 601, and a detail orientation.
  • the detail orientation separation module 601 is configured to support the image generation apparatus to perform the process 401 in FIG.
  • the detail oriented super-segment module 602 is configured to support the image generation device to perform the process 402 of FIG.
  • the complementary directional super-division module 603 is for supporting the image generation device to perform the process 403 in FIG.
  • the super-segment image fusion module 604 is configured to support the image generation device to perform 404. All the related content of the steps involved in the foregoing method embodiments may be referred to the functional descriptions of the corresponding functional modules, and details are not described herein again.
  • the steps of a method or algorithm described in connection with the present disclosure may be implemented in a hardware or may be implemented by a processor executing software instructions.
  • the software instructions may be comprised of corresponding software modules that may be stored in RAM, flash memory, ROM, EPROM, EEPROM, registers, hard disk, removable hard disk, read-only optical disk, or any other form of storage medium known in the art.
  • An exemplary storage medium is coupled to the processor to enable the processor to read information from, and write information to, the storage medium.
  • the storage medium can also be an integral part of the processor.
  • the processor and the storage medium can be located in an ASIC. Additionally, the ASIC can be located in a core network interface device.
  • the processor and the storage medium may also exist as discrete components in the core network interface device.
  • the functions described herein can be implemented in hardware, software, firmware, or any combination thereof.
  • the functions may be stored in an image generation device readable medium or transmitted as one or more instructions or code on an image generation device readable medium.
  • the image generating device readable medium includes an image generating device storage medium and a communication medium, wherein the communication medium includes any medium that facilitates transfer of an image generating device program from one place to another.
  • the storage medium can be any available media that can be accessed by a general purpose or special purpose image generating device.

Abstract

Embodiments of the present application relate to the technical field of image processing and provide an image generating method and device, capable of resolving the problem that an image processed using the ERM principle is excessively smooth and lack detailed information. The method comprises: determining at least one detail-oriented low-resolution feature map and at least one complementation-oriented low-resolution feature map corresponding to a low-resolution image; determining a detail-oriented super-resolution image corresponding to each of the at least one detail-oriented low-resolution feature map; determining a complementation-oriented super-resolution image corresponding to each of the at least one complementation-oriented low-resolution feature map; and obtaining a super-resolution image corresponding to the low-resolution image according to the detail-oriented super-resolution image and the complementation-oriented super-resolution image. The embodiments of the present application are applied in a super-resolution process of an image.

Description

一种图像生成方法和装置Image generation method and device
本申请要求于2018年03月16日提交中国专利局、申请号为201810222294.0、申请名称为“一种图像生成方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201 810 222 290, filed on March 16, 2018, the entire disclosure of which is incorporated herein by reference. .
技术领域Technical field
本申请涉及图像处理技术领域,尤其涉及一种图像生成方法和装置。The present application relates to the field of image processing technologies, and in particular, to an image generating method and apparatus.
背景技术Background technique
超分辨率技术(Super-Resolution)是指由一幅低分辨率图像或图像序列恢复出高分辨率图像。当前大多数的单一图像进行超分辨率处理的方法是运用经验风险最小化(Empirical Risk Minimisation,ERM)原则。如图1所示,X列代表低分辨率图像,Y列代表运用ERM原则处理后的图像。Super-Resolution refers to the recovery of high-resolution images from a low-resolution image or sequence of images. The current method of super-resolution processing of most single images is the use of the Empirical Risk Minimisation (ERM) principle. As shown in Fig. 1, the X column represents a low resolution image, and the Y column represents an image processed using the ERM principle.
但是,采用ERM原则处理得出的图像,像素之间的过度往往过度平滑,从而造成图像模糊,图像过于平滑,缺少细节信息。整体效果看起来与原图差别较大。However, images processed using the ERM principle tend to be excessively smooth over the pixels, resulting in blurred images, too smooth images, and lack of detailed information. The overall effect looks a lot different from the original image.
发明内容Summary of the invention
本申请实施例提供一种图像生成方法和装置,能够解决采用ERM原则处理得出的图像过于平滑,缺少细节信息的问题。The embodiment of the present invention provides an image generation method and device, which can solve the problem that an image processed by the ERM principle is too smooth and lacks detailed information.
第一方面,本申请实施例提供一种图像生成方法,包括:确定低分辨率图像对应的至少一个细节定向低分辨率特征图和至少一个互补定向低分辨率特征图;确定至少一个细节定向低分辨率特征图中的每个细节定向低分辨率特征图对应的细节定向超分辨率图像;确定至少一个互补定向低分辨率特征图中的每个互补定向低分辨率特征图对应的互补定向超分辨率图像;根据细节定向超分辨率图像和互补定向超分辨率图像获取低分辨率图像对应的超分辨率图像。In a first aspect, an embodiment of the present application provides an image generating method, including: determining at least one detail-oriented low-resolution feature map corresponding to a low-resolution image and at least one complementary-oriented low-resolution feature map; determining that at least one detail orientation is low Determining, in each of the resolution maps, a detail-oriented super-resolution image corresponding to the low-resolution feature map; determining a complementary orientation super corresponding to each of the complementary-oriented low-resolution feature maps in the at least one complementary-oriented low-resolution feature map A resolution image; acquiring a super-resolution image corresponding to the low-resolution image according to the detail-oriented super-resolution image and the complementary-oriented super-resolution image.
由此,根据低分辨率图像确定的至少一个细节定向低分辨率特征图和至少一个互补定向低分辨率特征图分别记录了低分辨率图像真实的细节内容等信息和其他特征信息,细节定向超分辨率图像和互补定向超分辨率图像具有更多的细节信息和局部纹理等其他信息,即加重了细节内容等信息的权值,从而输出的超分辨率图像具有更丰富的细节内容和结构,同时也可以抑制一些图像处理后产生的锯齿效应。如图5中的(a)所示,本申请实施例提供的图像生成方法生成的超分辨率图像具有更丰富的细节内容和结构,视觉感官更为自然。如图5中的(b)所示,相比采用ERM原则处理得出的图像会产生图像过于平滑,缺少细节信息的问题,本申请实施例提供的图像生成方法能够解决采用ERM原则处理得出的图像过于平滑,缺少细节信息的问题。Thereby, the at least one detail-oriented low-resolution feature map and the at least one complementary-oriented low-resolution feature map determined according to the low-resolution image respectively record information such as real details of the low-resolution image and other feature information, and the detail orientation is super The resolution image and the complementary directional super-resolution image have more detailed information and other information such as local texture, that is, the weight of the information such as the detailed content is emphasized, so that the output super-resolution image has richer details and structure. At the same time, it can also suppress the sawtooth effect produced by some image processing. As shown in (a) of FIG. 5, the super-resolution image generated by the image generating method provided by the embodiment of the present application has richer detail content and structure, and the visual sense is more natural. As shown in (b) of FIG. 5 , the image generated by the ERM principle can solve the problem that the image is generated by using the ERM principle. The image is too smooth and lacks detailed information.
在一种可能的实现方式中,确定低分辨率图像对应的至少一个细节定向低分辨率特征图和至少一个互补定向低分辨率特征图包括:确定低分辨率图像的至少一个候选特征图;对于至少一个候选特征图中的每个候选特征图,将该候选特征图转换为灰度图像;将该灰度图像分割成N个图像块,确定N个图像块对应的梯度直方图的中值大 于或等于第一预设阈值的图像块数目D;若R(R=D/N)大于或等于第二预设阈值,确定该候选特征图为细节定向低分辨率特征图;其中,N为大于或等于1的整数,D为大于或等于0的整数;将细节定向低分辨率特征图的像素值与低分辨率图像的灰度图像的像素值相减,得到互补定向低分辨率特征图。In a possible implementation, determining the at least one detail-oriented low-resolution feature map and the at least one complementary-oriented low-resolution feature map corresponding to the low-resolution image includes: determining at least one candidate feature map of the low-resolution image; Determining each candidate feature map into at least one candidate feature map, converting the candidate feature map into a grayscale image; dividing the grayscale image into N image blocks, determining that a median value of the gradient histogram corresponding to the N image blocks is greater than Or the number of image blocks D equal to the first preset threshold; if R (R=D/N) is greater than or equal to the second preset threshold, determining that the candidate feature map is a detail-oriented low-resolution feature map; wherein N is greater than Or an integer equal to 1, D is an integer greater than or equal to 0; the pixel value of the detail-oriented low-resolution feature map is subtracted from the pixel value of the gray-scale image of the low-resolution image to obtain a complementary directional low-resolution feature map.
类似的,细节定向分离模块可以根据低分辨率图像确定细节定向低分辨率特征图和互补定向低分辨率特征图,类似的,细节定向分离模块可以根据高分辨率图像确定细节定向高分辨率特征图和互补定向高分辨率特征图。Similarly, the detail-oriented separation module may determine the detail-oriented low-resolution feature map and the complementary-oriented low-resolution feature map according to the low-resolution image. Similarly, the detail-oriented separation module may determine the detail-oriented high-resolution feature according to the high-resolution image. Figure and complementary directional high resolution feature map.
在一种可能的实现方式中,确定至少一个细节定向低分辨率特征图中的每个细节定向低分辨率特征图对应的细节定向超分辨率图像包括:对于至少一个细节定向低分辨率特征图中的每个细节定向低分辨率特征图,根据细节定向低分辨率特征图和细节定向低分辨率特征图对应的细节定向高分辨率特征图确定细节定向超分辨率图像。In a possible implementation, determining the detail-oriented super-resolution image corresponding to each of the detail-oriented low-resolution feature maps in the at least one detail-oriented low-resolution feature map comprises: orienting the low-resolution feature map for the at least one detail Each of the details is oriented to the low resolution feature map, and the detail oriented super resolution image is determined according to the detail oriented high resolution feature map corresponding to the detail oriented low resolution feature map and the detail oriented low resolution feature map.
相比细节定向低分辨率特征图,根据细节定向低分辨率特征图和细节定向高分辨率特征图确定的细节定向超分辨率图像具有更多的细节内容和结构,即加重了低分辨率图像的细节内容等信息的权值,可以使后续生成的超分辨率图像的视觉感官更为自然和逼真。Compared with the detail-oriented low-resolution feature map, the detail-oriented super-resolution image determined according to the detail-oriented low-resolution feature map and the detail-oriented high-resolution feature map has more details and structure, that is, the low-resolution image is emphasized The weight of the details and other information can make the visual sense of the subsequently generated super-resolution image more natural and realistic.
在一种可能的实现方式中,确定至少一个互补定向低分辨率特征图中的每个互补定向低分辨率特征图对应的互补定向超分辨率图像包括:对于至少一个互补定向低分辨率特征图中的每个互补定向低分辨率特征图,根据互补定向低分辨率特征图和互补定向低分辨率特征图对应的互补定向高分辨率特征图确定互补定向超分辨率图像。In a possible implementation, determining the complementary directional super-resolution image corresponding to each of the complementary directional low-resolution feature maps of the at least one complementary directional low-resolution feature map comprises: for at least one complementary directional low-resolution feature map Each of the complementary directional low-resolution feature maps determines a complementary directional super-resolution image according to the complementary directional low-resolution feature map and the complementary directional high-resolution feature map corresponding to the complementary directional low-resolution feature map.
相比互补定向低分辨率特征图,根据互补定向低分辨率特征图和互补定向高分辨率特征图确定的互补定向超分辨率图像具有更多的除细节内容以外的其他内容,可以使后续生成的超分辨率图像的视觉感官更为自然和逼真。Compared with the complementary directional low-resolution feature map, the complementary directional super-resolution image determined according to the complementary directional low-resolution feature map and the complementary directional high-resolution feature map has more content than the detail content, and can be subsequently generated. The visual sense of the super-resolution image is more natural and realistic.
在一种可能的实现方式中,根据细节定向超分辨率图像和互补定向超分辨率图像获取低分辨率图像对应的超分辨率图像包括:对于至少一个细节定向超分辨率特征图中的每个细节定向超分辨率特征图以及至少一个互补定向超分辨率特征图中的每个互补定向超分辨率特征图,相加该细节定向超分辨率特征图对应的细节定向超分辨率图像的像素值和该互补定向超分辨率特征图对应的细节定向超分辨率图像的像素值;其中,该细节定向超分辨率特征图对应该互补定向超分辨率特征图,即该互补定向超分辨率特征图对应的互补定向低分辨率特征图是由该细节定向超分辨率特征图对应的细节定向低分辨率特征图的像素值与相应的灰度图像的像素值相减得到的。In a possible implementation, acquiring the super-resolution image corresponding to the low-resolution image according to the detail-oriented super-resolution image and the complementary-oriented super-resolution image comprises: locating each of the super-resolution feature maps for at least one detail Adding a pixel value of the detail-oriented super-resolution image corresponding to the detail-oriented super-resolution feature map and the complementary-oriented super-resolution feature map of the at least one complementary-oriented super-resolution feature map a pixel value of the detail-oriented super-resolution image corresponding to the complementary directional super-resolution feature map; wherein the detail-oriented super-resolution feature map corresponds to the complementary directional super-resolution feature map, ie, the complementary directional super-resolution feature map The corresponding complementary directional low-resolution feature map is obtained by subtracting the pixel value of the detail-oriented low-resolution feature map corresponding to the detail-oriented super-resolution feature map from the pixel value of the corresponding gray-scale image.
第二方面,本申请实施例提供一种图像生成装置,包括:细节定向分离模块,用于确定低分辨率图像对应的至少一个细节定向低分辨率特征图和至少一个互补定向低分辨率特征图;细节定向超分模块,用于确定至少一个细节定向低分辨率特征图中的每个细节定向低分辨率特征图对应的细节定向超分辨率图像;互补定向超分模块,用于确定至少一个互补定向低分辨率特征图中的每个互补定向低分辨率特征图对应的互补定向超分辨率图像;超分图像融合模块,用于根据细节定向超分辨率图像和互补定向超分辨率图像获取低分辨率图像对应的超分辨率图像。In a second aspect, an embodiment of the present application provides an image generating apparatus, including: a detail orientation separating module, configured to determine at least one detail oriented low resolution feature map corresponding to a low resolution image and at least one complementary oriented low resolution feature map a detail-oriented super-division module for determining a detail-oriented super-resolution image corresponding to each of the detail-oriented low-resolution feature maps in the at least one detail-oriented low-resolution feature map; and a complementary directional super-segment module for determining at least one Complementary directional super-resolution image corresponding to each complementary directional low-resolution feature map in the complementary directional low-resolution feature map; super-image fusion module for directional super-resolution image and complementary directional super-resolution image acquisition A super-resolution image corresponding to a low-resolution image.
由此,细节定向分离模块根据低分辨率图像确定的至少一个细节定向低分辨率特征图和至少一个互补定向低分辨率特征图分别记录了低分辨率图像真实的细节内容等 信息和其他特征信息,细节定向超分模块确定的细节定向超分辨率图像和互补定向超分模块确定的互补定向超分辨率图像加重了细节内容等信息的权值,从而输出的超分辨率图像具有更丰富的细节内容和结构,同时也可以抑制一些图像处理后产生的锯齿效应。如图5中的(a)所示,本申请实施例提供的图像生成方法生成的超分辨率图像具有更丰富的细节内容和结构,视觉感官更为自然。如图5中的(b)所示,相比采用ERM原则处理得出的图像会产生图像过于平滑,缺少细节信息的问题,本申请实施例提供的图像生成方法能够解决采用ERM原则处理得出的图像过于平滑,缺少细节信息的问题。Thereby, the detail orientation separation module records information such as the real details of the low resolution image and other feature information respectively according to the at least one detail oriented low resolution feature map and the at least one complementary oriented low resolution feature map determined by the low resolution image. The detail-oriented super-resolution image determined by the detail-oriented super-division module and the complementary directional super-resolution image determined by the complementary directional super-division module emphasize the weight of the information such as the detailed content, so that the output super-resolution image has richer details. The content and structure can also suppress the jagged effect produced by some image processing. As shown in (a) of FIG. 5, the super-resolution image generated by the image generating method provided by the embodiment of the present application has richer detail content and structure, and the visual sense is more natural. As shown in (b) of FIG. 5 , the image generated by the ERM principle can solve the problem that the image is generated by using the ERM principle. The image is too smooth and lacks detailed information.
在一种可能的实现方式中,细节定向分离模块用于:确定低分辨率图像的至少一个候选特征图;对于至少一个候选特征图中的每个候选特征图,将该候选特征图转换为灰度图像;将该灰度图像分割成N个图像块,确定N个图像块对应的梯度直方图的中值大于或等于第一预设阈值的图像块数目D;若R(R=D/N)大于或等于第二预设阈值,确定该候选特征图为细节定向低分辨率特征图;其中,N为大于或等于1的整数,D为大于或等于0的整数;将细节定向低分辨率特征图的像素值与低分辨率图像的灰度图像的像素值相减,得到互补定向低分辨率特征图。In a possible implementation, the detail orientation separation module is configured to: determine at least one candidate feature map of the low resolution image; and convert each candidate feature map into gray for each candidate feature map in the at least one candidate feature map The image is divided into N image blocks, and the number of image blocks D whose median value of the gradient histogram corresponding to the N image blocks is greater than or equal to the first preset threshold is determined; if R(R=D/N) Or greater than or equal to the second predetermined threshold, determining that the candidate feature map is a detail-oriented low-resolution feature map; wherein N is an integer greater than or equal to 1, and D is an integer greater than or equal to 0; directing the detail to a low resolution The pixel value of the feature map is subtracted from the pixel value of the gray image of the low resolution image to obtain a complementary directional low resolution feature map.
在一种可能的实现方式中,细节定向超分模块用于:对于至少一个细节定向低分辨率特征图中的每个细节定向低分辨率特征图,根据细节定向低分辨率特征图和细节定向低分辨率特征图对应的细节定向高分辨率特征图确定细节定向超分辨率图像。In a possible implementation, the detail oriented super-segment module is configured to: direct each low-resolution feature map for each detail in the at least one detail-oriented low-resolution feature map, and orient the low-resolution feature map and detail orientation according to the detail The detail-oriented high-resolution feature map corresponding to the low-resolution feature map determines the detail-oriented super-resolution image.
在一种可能的实现方式中,互补定向超分模块用于:对于至少一个互补定向低分辨率特征图中的每个互补定向低分辨率特征图,根据互补定向低分辨率特征图和互补定向低分辨率特征图对应的互补定向高分辨率特征图确定互补定向超分辨率图像。In a possible implementation, the complementary directional super-division module is configured to: for each complementary directional low-resolution feature map in the at least one complementary directional low-resolution feature map, according to the complementary directional low-resolution feature map and the complementary orientation The complementary directional high resolution feature map corresponding to the low resolution feature map determines the complementary directional super resolution image.
在一种可能的实现方式中,超分图像融合模块用于:对于至少一个细节定向超分辨率特征图中的每个细节定向超分辨率特征图以及至少一个互补定向超分辨率特征图中的每个互补定向超分辨率特征图,相加该细节定向超分辨率特征图对应的细节定向超分辨率图像的像素值和该互补定向超分辨率特征图对应的细节定向超分辨率图像的像素值;其中,该细节定向超分辨率特征图对应该互补定向超分辨率特征图。In a possible implementation, the super-image fusion module is configured to: in each of the at least one detail-oriented super-resolution feature map, the super-resolution feature map and the at least one complementary-oriented super-resolution feature map Each complementary directional super-resolution feature map, the pixel value of the detail-oriented super-resolution image corresponding to the detail-oriented super-resolution feature map and the pixel of the detail-oriented super-resolution image corresponding to the complementary directional super-resolution feature map a value; wherein the detail oriented super-resolution feature map corresponds to a complementary directional super-resolution feature map.
第三方面,本申请实施例提供了一种装置,该装置以芯片的产品形态存在,该装置的结构中包括处理器和存储器,该存储器用于与处理器耦合,保存该装置必要的程序指令和数据,该处理器用于执行存储器中存储的程序指令,使得该装置执行上述方法中图像生成装置的功能。In a third aspect, an embodiment of the present application provides a device, which is in the form of a product of a chip. The device includes a processor and a memory, and the memory is coupled to the processor to save necessary program instructions of the device. And data for executing the program instructions stored in the memory such that the apparatus performs the functions of the image generating apparatus in the above method.
第四方面,本申请实施例提供了一种图像生成装置,该图像生成装置可以实现上述方法实施例中图像生成装置所执行的功能,功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个上述功能相应的模块。In a fourth aspect, an embodiment of the present application provides an image generating apparatus, which can implement the functions performed by the image generating apparatus in the foregoing method embodiments, and the functions can be implemented by hardware, or can be implemented by hardware. . The hardware or software includes one or more modules corresponding to the above functions.
在一种可能的设计中,该图像生成装置的结构中包括处理器和通信接口,该处理器被配置为支持该图像生成装置执行上述方法中相应的功能。该通信接口用于支持该图像生成装置与其他网元之间的通信。该图像生成装置还可以包括存储器,该存储器用于与处理器耦合,其保存该图像生成装置必要的程序指令和数据。In one possible design, the image generating apparatus includes a processor and a communication interface configured to support the image generating apparatus to perform a corresponding function in the above method. The communication interface is used to support communication between the image generating device and other network elements. The image generating device can also include a memory for coupling with the processor that holds program instructions and data necessary for the image generating device.
第五方面,本申请实施例提供一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行第一方面提供的任意一种方法。In a fifth aspect, an embodiment of the present application provides a computer readable storage medium, including instructions, when executed on a computer, causing a computer to perform any one of the methods provided by the first aspect.
第六方面,本申请实施例提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行第一方面提供的任意一种方法。In a sixth aspect, an embodiment of the present application provides a computer program product comprising instructions, which when executed on a computer, cause the computer to perform any of the methods provided by the first aspect.
附图说明DRAWINGS
图1为本申请实施例提供的一种低分辨率图像和ERM原则处理后的图像的对比示意图;1 is a schematic diagram of comparison of an image processed by a low resolution image and an ERM principle according to an embodiment of the present application;
图2为本申请实施例提供的一种图像生成装置的结构示意图;2 is a schematic structural diagram of an image generating apparatus according to an embodiment of the present application;
图3为本申请实施例提供的一种端到端的系统框架示意图;3 is a schematic diagram of an end-to-end system framework provided by an embodiment of the present application;
图4为本申请实施例提供的一种图像生成方法的流程示意图;FIG. 4 is a schematic flowchart diagram of an image generating method according to an embodiment of the present application;
图5为本申请实施例提供的一种超分辨率图像与ERM原则处理后的图像的对比示意图;FIG. 5 is a schematic diagram of comparison between an image processed by a super-resolution image and an ERM principle according to an embodiment of the present application; FIG.
图6为本申请实施例提供的一种图像生成装置的结构示意图。FIG. 6 is a schematic structural diagram of an image generating apparatus according to an embodiment of the present application.
具体实施方式detailed description
本申请实施例提供一种图像生成方法和装置,可以应用于图像超分辨率的过程中,例如应用于将标清影像升级为高清影像的过程。The embodiment of the present application provides an image generation method and apparatus, which can be applied to a process of image super-resolution, for example, a process of upgrading an SD image to a high-definition image.
图2为本申请实施例中图像生成装置的一种内部结构示意图,在本申请实施例中,图像生成装置可以包括处理模块201、通讯模块202和存储模块203。其中,处理模块201用于控制图像生成装置的各部分硬件装置和应用程序软件等,处理模块201可以是处理器或控制器,例如可以是中央处理器(Central Processing Unit,CPU),图形处理器(Graphics Processing Unit,GPU),通用处理器,数字信号处理器(Digital Signal Processor,DSP),专用集成电路(Application-Specific Integrated Circuit,ASIC),现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。通讯模块202用于可使用长期演进(Long Term Evolution,LTE)、无线保真(WIreless-Fidelity,WiFi)等通讯方式接受其它设备发送的指令,也可以将图像生成装置的数据发送给其它设备。通讯模块202可以是收发器、收发电路或通信接口等。存储模块203用于执行图像生成装置的软件程序的存储、数据的存储和软件的运行等,可以是只读存储器(Read-Only Memory,ROM)、可存储静态信息和指令的其他类型的静态存储设备、随机存取存储器(Random Access Memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。FIG. 2 is a schematic diagram of an internal structure of an image generating apparatus according to an embodiment of the present disclosure. In the embodiment of the present application, the image generating apparatus may include a processing module 201, a communication module 202, and a storage module 203. The processing module 201 is used to control various parts of the image generating device, the hardware device, the application software, and the like. The processing module 201 may be a processor or a controller, for example, may be a central processing unit (CPU), a graphics processor. (Graphics Processing Unit, GPU), general purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), Field Programmable Gate Array (FPGA) Or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure. The processor can also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like. The communication module 202 is configured to receive commands sent by other devices by using a communication method such as Long Term Evolution (LTE) or WIreless-Fidelity (WiFi), or send data of the image generating device to other devices. The communication module 202 can be a transceiver, a transceiver circuit, a communication interface, or the like. The storage module 203 is configured to execute storage of a software program of the image generation device, storage of data, operation of software, etc., and may be a read-only memory (ROM), other types of static storage that can store static information and instructions. A device, a random access memory (RAM), or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM) or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), disk storage media or other magnetic storage devices, Or any other medium that can be used to carry or store desired program code in the form of an instruction or data structure and that can be accessed by a computer, but is not limited thereto.
其中,图像生成装置可以是台式机、便携式电脑、网络服务器、掌上电脑(Personal Digital Assistant,PDA)、移动手机、平板电脑、无线终端设备、通信设备、嵌入式设备、或有图2中类似结构的支持图像超分辨率技术的设备。The image generating device may be a desktop computer, a portable computer, a network server, a personal digital assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, a communication device, an embedded device, or the like structure in FIG. A device that supports image super-resolution technology.
在本申请实施例中,进一步的,上述图像生成装置的处理器可以通过运行端到端 的系统框架实现图像生成方法,该端到端的系统框架所包括的软件模块可以被存放于存储器等存储介质中。如图3所示,为本申请实施例提供的一种端到端的系统框架的逻辑关系示意图,该系统框架采用语义网络模型,包括细节定向分离模块、细节定向超分模块、互补定向超分模块和超分图像融合模块,该系统框架的输入为低分辨率图像,输出为超分辨率图像。In the embodiment of the present application, further, the processor of the image generating apparatus may implement an image generating method by running an end-to-end system framework, and the software modules included in the end-to-end system framework may be stored in a storage medium such as a memory. . As shown in FIG. 3 , it is a schematic diagram of a logical relationship of an end-to-end system framework provided by an embodiment of the present application. The system framework adopts a semantic network model, including a detail orientation separation module, a detail orientation super division module, and a complementary orientation super division module. And the super-division image fusion module, the input of the system frame is a low-resolution image, and the output is a super-resolution image.
其中,细节定向分离模块用于确定低分辨率图像对应的至少一个细节定向低分辨率特征图和至少一个互补定向低分辨率特征图。细节定向超分模块用于确定至少一个细节定向低分辨率特征图中的每个细节定向低分辨率特征图对应的细节定向超分辨率图像,细节定向超分辨率图像相比细节定向低分辨率图像具有更多的边缘结构、边缘强度、细节内容以及目标特征类型信息。互补定向超分模块用于确定至少一个互补定向低分辨率特征图中的每个互补定向低分辨率特征图对应的互补定向超分辨率图像。互补定向超分辨率图像相比互补定向低分辨率图像具有更多的其它特征信息,例如局部纹理信息。超分辨率图像融合模块用于根据细节定向超分辨率图像和互补定向超分辨率图像获取低分辨率图像对应的超分辨率图像。The detail orientation separation module is configured to determine at least one detail-oriented low-resolution feature map and at least one complementary-oriented low-resolution feature map corresponding to the low-resolution image. The detail-oriented super-segment module is configured to determine a detail-oriented super-resolution image corresponding to each of the detail-oriented low-resolution feature maps in the at least one detail-oriented low-resolution feature map, and the detail-oriented super-resolution image has a lower resolution than the detail-oriented super-resolution image The image has more edge structure, edge strength, detail content, and target feature type information. The complementary directional super-division module is operative to determine a complementary directional super-resolution image corresponding to each of the complementary directional low-resolution feature maps in the at least one complementary directional low-resolution feature map. A complementary directional super-resolution image has more other feature information, such as local texture information, than a complementary directional low-resolution image. The super-resolution image fusion module is configured to acquire a super-resolution image corresponding to the low-resolution image according to the detail-oriented super-resolution image and the complementary directional super-resolution image.
为了下述各实施例的描述清楚简洁,首先给出相关概念或技术的简要介绍:For a clear and concise description of the following embodiments, a brief introduction of related concepts or techniques is first given:
RGB三通道图像:由R、G、B三个通道组成。其中,R代表红(red),G代表绿(green),B代表蓝(Blue)。RGB three-channel image: consists of three channels: R, G, and B. Wherein R represents red, G represents green, and B represents blue.
VGG-Net:是一种卷积神经网络(Convolutional Neural Network,CNN),VGG-Net通常有16-19个卷积层。VGG-Net: is a Convolutional Neural Network (CNN). VGG-Net usually has 16-19 convolutional layers.
网络的均方误差(Mean Square Error,MSE):简单来说,即一组数的误差平方和再除以数据的对数。Mean Square Error (MSE) of the network: In simple terms, the sum of squared errors of a set of numbers is divided by the logarithm of the data.
基于区域的快速卷积神经网络(Accelerating the Super-Resolution Convolutional Neural Network,FSRCNN):一种卷积神经网络,通常有4个卷积层,能够对低分辨率图像进行计算卷积得到高分辨率图像。Accelerating the Super-Resolution Convolutional Neural Network (FSRCNN): A convolutional neural network that typically has four convolutional layers that can be used to compute high-resolution convolutions of low-resolution images. image.
高效子像素卷积神经网络(Efficient Sub-Pixel Convolutional Neural Network,ESPCN):类似FSRCNN,也是一种卷积神经网络,能够对低分辨率图像进行计算卷积得到高分辨率图像。Efficient Sub-Pixel Convolutional Neural Network (ESPCN): Similar to FSRCNN, it is also a convolutional neural network that can compute convolutions of low-resolution images to obtain high-resolution images.
本申请实施例提供一种图像生成方法,如图4所示,包括:An embodiment of the present application provides an image generating method, as shown in FIG. 4, including:
401、确定低分辨率图像对应的至少一个细节定向低分辨率特征图和至少一个互补定向低分辨率特征图。401. Determine at least one detail-oriented low-resolution feature map and at least one complementary-oriented low-resolution feature map corresponding to the low-resolution image.
细节定向分离模块可以用于接收输入的低分辨率图像,确定低分辨率图像对应的至少一个细节定向低分辨率特征图和至少一个互补定向低分辨率特征图。The detail directional separation module can be configured to receive the input low resolution image, determine at least one detail oriented low resolution feature map corresponding to the low resolution image, and the at least one complementary directional low resolution feature map.
首先,细节定向分离模块确定低分辨率图像的至少一个候选特征图。举例来说,当低分辨率图像为RGB三通道图像时,可以采用VGG-net对RGB三通道图像进行连续的两个卷积层运算,每个卷积层运算可以包含N个k*k的卷积核运算。示例性的,N可以为[20,100]之间的整数,k可以3或者5。而后,细节定向分离模块可以将第2个卷积层运算后得到的至少一个特征图作为至少一个候选特征图。First, the detail orientation separation module determines at least one candidate feature map of the low resolution image. For example, when the low-resolution image is an RGB three-channel image, VGG-net can be used to perform two consecutive convolutional layer operations on the RGB three-channel image, and each convolution layer operation can include N k*k Convolution kernel operation. Illustratively, N can be an integer between [20, 100], and k can be 3 or 5. Then, the detail orientation separation module may use at least one feature map obtained after the second convolution layer operation as at least one candidate feature map.
对于至少一个候选特征图中的每个候选特征图,细节定向分离模块将该候选特征图转换为灰度图像;将该灰度图像分割成N个图像块,确定N个图像块对应的梯度直 方图的中值大于或等于第一预设阈值的图像块数目D。其中,N为大于或等于1的整数,例如N可以为9、25或49等。D为大于或等于0的整数。若R(R=D/N)大于或等于第二预设阈值,细节定向分离模块确定该候选特征图为细节定向低分辨率特征图。细节定向低分辨率特征图包含不同方向的边缘信息和细节内容,也可以包含不同图像类型特征信息。需要说明的是,R可以用于判断细节内容丰富程度,R值越高说明细节内容越多,反之细节内容越少。示例性的,第二预设阈值可以为0.3。For each candidate feature map of the at least one candidate feature map, the detail orientation separation module converts the candidate feature map into a grayscale image; the grayscale image is segmented into N image blocks, and the gradient histogram corresponding to the N image blocks is determined The median value of the graph is greater than or equal to the number D of image blocks of the first predetermined threshold. Where N is an integer greater than or equal to 1, for example, N may be 9, 25 or 49 or the like. D is an integer greater than or equal to zero. If R(R=D/N) is greater than or equal to the second predetermined threshold, the detail orientation separation module determines that the candidate feature map is a detail oriented low resolution feature map. The detail-oriented low-resolution feature map contains edge information and detail content in different directions, and may also contain different image type feature information. It should be noted that R can be used to judge the richness of details, and the higher the R value, the more details, but the less details. Exemplarily, the second preset threshold may be 0.3.
举例来说,假设N为9,即将候选特征图转换得到的灰度图分割成9个图像块,9个图像块对应的边缘梯度直方图中值分别为0、10、20、30、40、50、60、70和80,第一预设阈值为30,则9个图像块对应的梯度直方图的中值大于或等于第一预设阈值的图像块数目D为6,第二预设阈值为0.3,则R=D/N=0.67,R>0.3,从而细节定向分离模块可以确定该候选特征图为细节定向低分辨率特征图。For example, suppose N is 9, that is, the grayscale image obtained by the candidate feature map transformation is divided into nine image blocks, and the values of the edge gradient histograms corresponding to the nine image blocks are 0, 10, 20, 30, 40, respectively. 50, 60, 70, and 80, the first preset threshold is 30, and the number of image blocks D in which the median value of the gradient histogram corresponding to the nine image blocks is greater than or equal to the first preset threshold is 6, and the second preset threshold is 0.3, then R=D/N=0.67, R>0.3, so that the detail-oriented separation module can determine that the candidate feature map is a detail-oriented low-resolution feature map.
而后,细节定向分离模块根据信息互补原理,将细节定向低分辨率特征图的像素值与低分辨率图像的灰度图像的像素值相减,得到互补定向低分辨率特征图。Then, the detail orientation separation module subtracts the pixel value of the detail-oriented low-resolution feature image from the pixel value of the gray-scale image of the low-resolution image according to the information complementation principle to obtain a complementary orientation low-resolution feature image.
可以理解的是,细节定向分离模块的功能可以是根据模型参数决定的。举例来说,可以采用FSRCNN或ESPCN等神经网络对低分辨率图像进行处理后得到处理结果,而后根据MSE误差函数,采用误差反向传播方法(back-propagation),更新上述处理结果的权值,训练生成细节定向分离模块的模型参数。It can be understood that the function of the detail directional separation module can be determined according to the model parameters. For example, a low-resolution image may be processed by a neural network such as FSRCNN or ESPCN to obtain a processing result, and then a weight back-propagation method is used to update the weight of the processing result according to an MSE error function. Training generates model parameters for the detail-oriented separation module.
可以理解的是,细节定向分离模块可以根据低分辨率图像确定细节定向低分辨率特征图和互补定向低分辨率特征图,类似的,细节定向分离模块可以根据高分辨率图像确定细节定向高分辨率特征图和互补定向高分辨率特征图。在一种可能的设计中,细节定向分离模块可以根据低分辨率图像确定该低分辨率图像对应的高分辨率图像。It can be understood that the detail-oriented separation module can determine the detail-oriented low-resolution feature map and the complementary-oriented low-resolution feature map according to the low-resolution image. Similarly, the detail-oriented separation module can determine the detail-oriented high-resolution according to the high-resolution image. Rate feature map and complementary directional high resolution feature map. In one possible design, the detail orientation separation module may determine a high resolution image corresponding to the low resolution image based on the low resolution image.
402、确定至少一个细节定向低分辨率特征图中的每个细节定向低分辨率特征图对应的细节定向超分辨率图像。402. Determine a detail-oriented super-resolution image corresponding to each of the detail-oriented low-resolution feature maps in the at least one detail-oriented low-resolution feature map.
即细节定向超分模块用于从细节定向分离模块获取至少一个细节定向低分辨率特征图,确定至少一个细节定向低分辨率特征图中的每个细节定向低分辨率特征图对应的细节定向超分辨率图像。That is, the detail oriented super-segment module is configured to obtain at least one detail-oriented low-resolution feature map from the detail-oriented separation module, and determine a detail orientation super corresponding to each of the detail-oriented low-resolution feature maps in the at least one detail-oriented low-resolution feature map. Resolution image.
对于至少一个细节定向低分辨率特征图中的每个细节定向低分辨率特征图,细节定向超分模块可以根据细节定向低分辨率特征图和细节定向低分辨率特征图对应的细节定向高分辨率特征图确定细节定向超分辨率图像。For each detail-oriented low-resolution feature map in at least one detail-oriented low-resolution feature map, the detail-oriented super-segment module may be based on the detail-oriented low-resolution feature map and the detail-oriented low-resolution feature map corresponding to the detail-oriented high-resolution The rate feature map determines the detail-oriented super-resolution image.
相比细节定向低分辨率特征图,根据细节定向低分辨率特征图和细节定向高分辨率特征图确定的细节定向超分辨率图像具有更多的细节内容和结构,即加重了低分辨率图像的细节内容等信息的权值,可以使后续生成的超分辨率图像的视觉感官更为自然和逼真。Compared with the detail-oriented low-resolution feature map, the detail-oriented super-resolution image determined according to the detail-oriented low-resolution feature map and the detail-oriented high-resolution feature map has more details and structure, that is, the low-resolution image is emphasized The weight of the details and other information can make the visual sense of the subsequently generated super-resolution image more natural and realistic.
可以理解的是,细节定向超分模块的功能可以是根据模型参数决定的。举例来说,可以采用FSRCNN或ESPCN等神经网络对低分辨率细节定向特征图和低分辨率细节定向特征图对应的高分辨率细节定向特征图进行处理后得到处理结果,而后根据MSE误差函数,采用误差反向传播方法,更新上述处理结果的权值,训练生成细节定向超分模块的模型参数。It can be understood that the function of the detail oriented super-segment module can be determined according to the model parameters. For example, the high-resolution detail-oriented feature map corresponding to the low-resolution detail orientation feature map and the low-resolution detail orientation feature map may be processed by using a neural network such as FSRCNN or ESPCN, and then the processing result is obtained, and then according to the MSE error function, The error back propagation method is used to update the weight of the above processing result, and the model parameters of the detail oriented super-division module are trained.
403、确定至少一个互补定向低分辨率特征图中的每个互补定向低分辨率特征图对 应的互补定向超分辨率图像。403. Determine a complementary directional super-resolution image corresponding to each of the complementary directional low-resolution feature maps in the at least one complementary directional low-resolution feature map.
即互补定向超分模块用于从细节定向分离模块获取至少一个互补定向低分辨率特征图,确定至少一个互补定向低分辨率特征图中的每个互补定向低分辨率特征图对应的互补定向超分辨率图像。That is, the complementary directional super-division module is configured to obtain at least one complementary directional low-resolution feature map from the detail-oriented separation module, and determine a complementary orientation super corresponding to each complementary directional low-resolution feature map in the at least one complementary directional low-resolution feature map. Resolution image.
对于至少一个互补定向低分辨率特征图中的每个互补定向低分辨率特征图,根据互补定向低分辨率特征图和互补定向低分辨率特征图对应的互补定向高分辨率特征图确定互补定向超分辨率图像。For each complementary directional low resolution feature map of the at least one complementary directional low resolution feature map, the complementary orientation is determined according to the complementary directional low resolution feature map and the complementary directional high resolution feature map corresponding to the complementary directional low resolution feature map Super resolution image.
相比互补定向低分辨率特征图,根据互补定向低分辨率特征图和互补定向高分辨率特征图确定的互补定向超分辨率图像具有更多的除细节内容以外的其他内容,可以使后续生成的超分辨率图像的视觉感官更为自然和逼真。Compared with the complementary directional low-resolution feature map, the complementary directional super-resolution image determined according to the complementary directional low-resolution feature map and the complementary directional high-resolution feature map has more content than the detail content, and can be subsequently generated. The visual sense of the super-resolution image is more natural and realistic.
可以理解的是,互补定向超分模块的功能是根据模型参数决定的。举例来说,可以采用FSRCNN或ESPCN等神经网络对低分辨率互补定向特征图和低分辨率互补定向特征图对应的高分辨率互补定向特征图进行处理后得到处理结果,而后根据MSE误差函数,采用误差反向传播方法,更新上述处理结果的权值,训练生成互补定向超分模块的模型参数。It can be understood that the function of the complementary directional super-division module is determined according to the model parameters. For example, the high-resolution complementary orientation feature map corresponding to the low-resolution complementary orientation feature map and the low-resolution complementary orientation feature map may be processed by using a neural network such as FSRCNN or ESPCN, and then the processing result is obtained, and then according to the MSE error function, The error back propagation method is used to update the weight of the above processing result, and the model parameters of the complementary directional super-division module are trained.
404、根据细节定向超分辨率图像和互补定向超分辨率图像获取低分辨率图像对应的超分辨率图像。404. Acquire a super-resolution image corresponding to the low-resolution image according to the detail-oriented super-resolution image and the complementary directional super-resolution image.
超分辨率图像融合模块可以用于从细节定向超分模块获取至少一个细节定向超分辨率图像,并可以从互补定向超分模块获取至少一个互补定向超分辨率图像,根据至少一个细节定向超分辨率图像和至少一个互补定向超分辨率图像获取低分辨率图像对应的超分辨率图像。The super-resolution image fusion module can be configured to acquire at least one detail-oriented super-resolution image from the detail-oriented super-segment module, and can acquire at least one complementary-oriented super-resolution image from the complementary orientation super-segment module, and super-resolution according to at least one detail orientation The rate image and the at least one complementary directional super-resolution image acquire a super-resolution image corresponding to the low-resolution image.
对于至少一个细节定向超分辨率特征图中的每个细节定向超分辨率特征图以及至少一个互补定向超分辨率特征图中的每个互补定向超分辨率特征图,相加该细节定向超分辨率特征图对应的细节定向超分辨率图像的像素值和该互补定向超分辨率特征图对应的细节定向超分辨率图像的像素值;其中,该细节定向超分辨率特征图对应该互补定向超分辨率特征图,即该互补定向超分辨率特征图对应的互补定向低分辨率特征图是由该细节定向超分辨率特征图对应的细节定向低分辨率特征图的像素值与相应的灰度图像的像素值相减得到的。Adding the detail-oriented super-resolution to each of the at least one detail-oriented super-resolution feature map and each of the at least one complementary-oriented super-resolution feature map a pixel value of the detail-oriented super-resolution image corresponding to the feature map and a pixel value of the detail-oriented super-resolution image corresponding to the complementary-oriented super-resolution feature map; wherein the detail-oriented super-resolution feature map corresponds to the complementary orientation super The resolution feature map, that is, the complementary orientation low-resolution feature map corresponding to the complementary orientation super-resolution feature map is a pixel value and a corresponding gray level of the detail-oriented low-resolution feature map corresponding to the detail-oriented super-resolution feature map The pixel values of the image are subtracted.
由此,细节定向分离模块根据低分辨率图像确定的至少一个细节定向低分辨率特征图和至少一个互补定向低分辨率特征图分别记录了低分辨率图像真实的细节内容等信息和其他特征信息,细节定向超分模块确定的细节定向超分辨率图像和互补定向超分模块确定的互补定向超分辨率图像加重了细节内容等信息的权值,从而输出的超分辨率图像具有更丰富的细节内容和结构,同时也可以抑制一些图像处理后产生的锯齿效应。如图5中的(a)所示,本申请实施例提供的图像生成方法生成的超分辨率图像具有更丰富的细节内容和结构,视觉感官更为自然。如图5中的(b)所示,相比采用ERM原则处理得出的图像会产生图像过于平滑,缺少细节信息的问题,本申请实施例提供的图像生成方法能够解决采用ERM原则处理得出的图像过于平滑,缺少细节信息的问题。Thereby, the detail orientation separation module records information such as the real details of the low resolution image and other feature information respectively according to the at least one detail oriented low resolution feature map and the at least one complementary oriented low resolution feature map determined by the low resolution image. The detail-oriented super-resolution image determined by the detail-oriented super-division module and the complementary directional super-resolution image determined by the complementary directional super-division module emphasize the weight of the information such as the detailed content, so that the output super-resolution image has richer details. The content and structure can also suppress the jagged effect produced by some image processing. As shown in (a) of FIG. 5, the super-resolution image generated by the image generating method provided by the embodiment of the present application has richer detail content and structure, and the visual sense is more natural. As shown in (b) of FIG. 5 , the image generated by the ERM principle can solve the problem that the image is generated by using the ERM principle. The image is too smooth and lacks detailed information.
上述主要从图像生成装置的角度对本申请实施例提供的方案进行了介绍。可以理 解的是,图像生成装置为了实现上述功能,其包括了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的算法步骤,本申请能够以硬件或硬件和软件的结合形式来实现。某个功能究竟以硬件还是软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The solution provided by the embodiment of the present application is mainly introduced from the perspective of the image generating apparatus. It can be understood that the image generating apparatus includes hardware structures and/or software modules corresponding to the execution of the respective functions in order to implement the above functions. Those skilled in the art will readily appreciate that the present application can be implemented in hardware or a combination of hardware and software in combination with the algorithm steps described in the embodiments disclosed herein. Whether a function is implemented in hardware or software-driven hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present application.
本申请实施例可以根据上述方法示例对图像生成装置进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiment of the present application may divide the function module by the image generation device according to the above method example. For example, each function module may be divided according to each function, or two or more functions may be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of the module in the embodiment of the present application is schematic, and is only a logical function division, and the actual implementation may have another division manner.
在采用对应各个功能划分各个功能模块的情况下,图6示出了上述实施例中所涉及的图像生成装置6的一种可能的结构示意图,图像生成装置包括:细节定向分离模块601、细节定向超分模块602、互补定向超分模块603和超分图像融合模块604。细节定向分离模块601用于支持图像生成装置执行图4中的过程401。细节定向超分模块602用于支持图像生成装置执行图4中的过程402。互补定向超分模块603用于支持图像生成装置执行图4中的过程403。超分图像融合模块604用于支持图像生成装置执行404。其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。FIG. 6 is a schematic diagram showing a possible structure of the image generating apparatus 6 involved in the above embodiment. The image generating apparatus includes: a detail orientation separating module 601, and a detail orientation. The super-division module 602, the complementary directional super-division module 603, and the super-sub-image fusion module 604. The detail orientation separation module 601 is configured to support the image generation apparatus to perform the process 401 in FIG. The detail oriented super-segment module 602 is configured to support the image generation device to perform the process 402 of FIG. The complementary directional super-division module 603 is for supporting the image generation device to perform the process 403 in FIG. The super-segment image fusion module 604 is configured to support the image generation device to perform 404. All the related content of the steps involved in the foregoing method embodiments may be referred to the functional descriptions of the corresponding functional modules, and details are not described herein again.
结合本申请公开内容所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于RAM、闪存、ROM、EPROM、EEPROM、寄存器、硬盘、移动硬盘、只读光盘或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。另外,该ASIC可以位于核心网接口设备中。当然,处理器和存储介质也可以作为分立组件存在于核心网接口设备中。The steps of a method or algorithm described in connection with the present disclosure may be implemented in a hardware or may be implemented by a processor executing software instructions. The software instructions may be comprised of corresponding software modules that may be stored in RAM, flash memory, ROM, EPROM, EEPROM, registers, hard disk, removable hard disk, read-only optical disk, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor to enable the processor to read information from, and write information to, the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and the storage medium can be located in an ASIC. Additionally, the ASIC can be located in a core network interface device. Of course, the processor and the storage medium may also exist as discrete components in the core network interface device.
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在图像生成装置可读介质中或者作为图像生成装置可读介质上的一个或多个指令或代码进行传输。图像生成装置可读介质包括图像生成装置存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送图像生成装置程序的任何介质。存储介质可以是通用或专用图像生成装置能够存取的任何可用介质。Those skilled in the art will appreciate that in one or more examples described above, the functions described herein can be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored in an image generation device readable medium or transmitted as one or more instructions or code on an image generation device readable medium. The image generating device readable medium includes an image generating device storage medium and a communication medium, wherein the communication medium includes any medium that facilitates transfer of an image generating device program from one place to another. The storage medium can be any available media that can be accessed by a general purpose or special purpose image generating device.
以上所述的具体实施方式,对本申请的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本申请的具体实施方式而已,并不用于限定本申请的保护范围,凡在本申请的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本申请的保护范围之内。The specific embodiments of the present invention have been described in detail with reference to the specific embodiments of the present application. It is to be understood that the foregoing description is only The scope of protection, any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present application are included in the scope of protection of the present application.

Claims (10)

  1. 一种图像生成方法,其特征在于,包括:An image generating method, comprising:
    确定低分辨率图像对应的至少一个细节定向低分辨率特征图和至少一个互补定向低分辨率特征图;Determining at least one detail-oriented low-resolution feature map and at least one complementary-oriented low-resolution feature map corresponding to the low-resolution image;
    确定所述至少一个细节定向低分辨率特征图中的每个细节定向低分辨率特征图对应的细节定向超分辨率图像;Determining a detail-oriented super-resolution image corresponding to each of the detail-oriented low-resolution feature maps in the at least one detail-oriented low-resolution feature map;
    确定所述至少一个互补定向低分辨率特征图中的每个互补定向低分辨率特征图对应的互补定向超分辨率图像;Determining a complementary directional super-resolution image corresponding to each of the complementary directional low-resolution feature maps in the at least one complementary directional low-resolution feature map;
    根据所述细节定向超分辨率图像和所述互补定向超分辨率图像获取所述低分辨率图像对应的超分辨率图像。Acquiring the super-resolution image corresponding to the low-resolution image according to the detail-oriented super-resolution image and the complementary directional super-resolution image.
  2. 根据权利要求1所述的方法,其特征在于,所述确定低分辨率图像对应的至少一个细节定向低分辨率特征图和至少一个互补定向低分辨率特征图包括:The method according to claim 1, wherein the determining the at least one detail-oriented low-resolution feature map and the at least one complementary-oriented low-resolution feature map corresponding to the low-resolution image comprises:
    确定所述低分辨率图像的至少一个候选特征图;Determining at least one candidate feature map of the low resolution image;
    对于所述至少一个候选特征图中的每个候选特征图,将该候选特征图转换为灰度图像;将该灰度图像分割成N个图像块,确定所述N个图像块对应的梯度直方图的中值大于或等于第一预设阈值的图像块数目D;若R(R=D/N)大于或等于第二预设阈值,确定该候选特征图为所述细节定向低分辨率特征图;其中,N为大于或等于1的整数,D为大于或等于0的整数;For each candidate feature map of the at least one candidate feature map, converting the candidate feature map into a grayscale image; dividing the grayscale image into N image blocks, and determining a gradient histogram corresponding to the N image blocks The median value of the graph is greater than or equal to the number of image blocks D of the first preset threshold; if R (R=D/N) is greater than or equal to the second preset threshold, determining that the candidate feature map is the detail-oriented low-resolution feature Figure; wherein N is an integer greater than or equal to 1, and D is an integer greater than or equal to 0;
    将所述细节定向低分辨率特征图的像素值与所述低分辨率图像的灰度图像的像素值相减,得到所述互补定向低分辨率特征图。And subtracting the pixel value of the detail-oriented low-resolution feature image from the pixel value of the gray-scale image of the low-resolution image to obtain the complementary directional low-resolution feature image.
  3. 根据权利要求1或2所述的方法,其特征在于,所述确定所述至少一个细节定向低分辨率特征图中的每个细节定向低分辨率特征图对应的细节定向超分辨率图像包括:The method according to claim 1 or 2, wherein the determining the detail-oriented super-resolution image corresponding to each of the detail-oriented low-resolution feature maps in the at least one detail-oriented low-resolution feature map comprises:
    对于所述至少一个细节定向低分辨率特征图中的每个细节定向低分辨率特征图,根据所述细节定向低分辨率特征图和所述细节定向低分辨率特征图对应的细节定向高分辨率特征图确定所述细节定向超分辨率图像。For each of the at least one detail-oriented low-resolution feature map, the low-resolution feature map is oriented according to the detail-oriented low-resolution feature map and the detail-oriented low-resolution feature map corresponding to the detail-oriented high-resolution The rate profile determines the detail oriented super-resolution image.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述确定所述至少一个互补定向低分辨率特征图中的每个互补定向低分辨率特征图对应的互补定向超分辨率图像包括:The method of any of claims 1-3, wherein the determining the complementary directional super-resolution corresponding to each of the complementary directional low-resolution feature maps in the at least one complementary directional low-resolution feature map The image includes:
    对于所述至少一个互补定向低分辨率特征图中的每个互补定向低分辨率特征图,根据所述互补定向低分辨率特征图和所述互补定向低分辨率特征图对应的互补定向高分辨率特征图确定所述互补定向超分辨率图像。For each of the complementary directional low resolution feature maps of the at least one complementary directional low resolution feature map, the complementary directional high resolution corresponding to the complementary directional low resolution feature map and the complementary directional low resolution feature map The rate profile determines the complementary directional super-resolution image.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述根据所述细节定向超分辨率图像和所述互补定向超分辨率图像获取所述低分辨率图像对应的超分辨率图像包括:The method according to any one of claims 1 to 4, wherein the acquiring the super resolution corresponding to the low resolution image according to the detail oriented super resolution image and the complementary directional super resolution image The image includes:
    对于至少一个细节定向超分辨率特征图中的每个细节定向超分辨率特征图以及至少一个互补定向超分辨率特征图中的每个互补定向超分辨率特征图,相加该细节定向超分辨率特征图对应的细节定向超分辨率图像的像素值和该互补定向超分辨率特征图对应的细节定向超分辨率图像的像素值;Adding the detail-oriented super-resolution to each of the at least one detail-oriented super-resolution feature map and each of the at least one complementary-oriented super-resolution feature map a pixel value corresponding to the detail-oriented super-resolution image corresponding to the feature map and a pixel value of the detail-oriented super-resolution image corresponding to the complementary directional super-resolution feature map;
    其中,该细节定向超分辨率特征图对应该互补定向超分辨率特征图。Wherein, the detail-oriented super-resolution feature map corresponds to a complementary orientation super-resolution feature map.
  6. 一种图像生成装置,其特征在于,包括:An image generating apparatus, comprising:
    细节定向分离模块,用于确定低分辨率图像对应的至少一个细节定向低分辨率特征图和至少一个互补定向低分辨率特征图;a detail directional separation module, configured to determine at least one detail-oriented low-resolution feature map and at least one complementary directional low-resolution feature map corresponding to the low-resolution image;
    细节定向超分模块,用于确定所述至少一个细节定向低分辨率特征图中的每个细节定向低分辨率特征图对应的细节定向超分辨率图像;a detail-oriented super-segment module, configured to determine a detail-oriented super-resolution image corresponding to each of the at least one detail-oriented low-resolution feature map;
    互补定向超分模块,用于确定所述至少一个互补定向低分辨率特征图中的每个互补定向低分辨率特征图对应的互补定向超分辨率图像;a complementary directional super-resolution module for determining a complementary directional super-resolution image corresponding to each of the complementary directional low-resolution feature maps in the at least one complementary directional low-resolution feature map;
    超分图像融合模块,用于根据所述细节定向超分辨率图像和所述互补定向超分辨率图像获取所述低分辨率图像对应的超分辨率图像。And a super-image fusion module, configured to acquire a super-resolution image corresponding to the low-resolution image according to the detail-oriented super-resolution image and the complementary directional super-resolution image.
  7. 根据权利要求6所述的图像生成装置,其特征在于,所述细节定向分离模块用于:The image generating apparatus according to claim 6, wherein the detail directional separation module is configured to:
    确定所述低分辨率图像的至少一个候选特征图;Determining at least one candidate feature map of the low resolution image;
    对于所述至少一个候选特征图中的每个候选特征图,将该候选特征图转换为灰度图像;将该灰度图像分割成N个图像块,确定所述N个图像块对应的梯度直方图的中值大于或等于第一预设阈值的图像块数目D;若R(R=D/N)大于或等于第二预设阈值,确定该候选特征图为所述细节定向低分辨率特征图;其中,N为大于或等于1的整数,D为大于或等于0的整数;For each candidate feature map of the at least one candidate feature map, converting the candidate feature map into a grayscale image; dividing the grayscale image into N image blocks, and determining a gradient histogram corresponding to the N image blocks The median value of the graph is greater than or equal to the number of image blocks D of the first preset threshold; if R (R=D/N) is greater than or equal to the second preset threshold, determining that the candidate feature map is the detail-oriented low-resolution feature Figure; wherein N is an integer greater than or equal to 1, and D is an integer greater than or equal to 0;
    将所述细节定向低分辨率特征图的像素值与所述低分辨率图像的灰度图像的像素值相减,得到所述互补定向低分辨率特征图。And subtracting the pixel value of the detail-oriented low-resolution feature image from the pixel value of the gray-scale image of the low-resolution image to obtain the complementary directional low-resolution feature image.
  8. 根据权利要求6或7所述的图像生成装置,其特征在于,所述细节定向超分模块用于:The image generating apparatus according to claim 6 or 7, wherein the detail oriented super-segmenting module is configured to:
    对于所述至少一个细节定向低分辨率特征图中的每个细节定向低分辨率特征图,根据所述细节定向低分辨率特征图和所述细节定向低分辨率特征图对应的细节定向高分辨率特征图确定所述细节定向超分辨率图像。For each of the at least one detail-oriented low-resolution feature map, the low-resolution feature map is oriented according to the detail-oriented low-resolution feature map and the detail-oriented low-resolution feature map corresponding to the detail-oriented high-resolution The rate profile determines the detail oriented super-resolution image.
  9. 根据权利要求6-8任一项所述的图像生成装置,其特征在于,所述互补定向超分模块用于:The image generating apparatus according to any one of claims 6 to 8, wherein the complementary directional super-division module is used to:
    对于所述至少一个互补定向低分辨率特征图中的每个互补定向低分辨率特征图,根据所述互补定向低分辨率特征图和所述互补定向低分辨率特征图对应的互补定向高分辨率特征图确定所述互补定向超分辨率图像。For each of the complementary directional low resolution feature maps of the at least one complementary directional low resolution feature map, the complementary directional high resolution corresponding to the complementary directional low resolution feature map and the complementary directional low resolution feature map The rate profile determines the complementary directional super-resolution image.
  10. 根据权利要求6-9任一项所述的图像生成装置,其特征在于,所述超分图像融合模块用于:The image generating apparatus according to any one of claims 6 to 9, wherein the super-image fusion module is configured to:
    对于至少一个细节定向超分辨率特征图中的每个细节定向超分辨率特征图以及至少一个互补定向超分辨率特征图中的每个互补定向超分辨率特征图,相加该细节定向超分辨率特征图对应的细节定向超分辨率图像的像素值和该互补定向超分辨率特征图对应的细节定向超分辨率图像的像素值;Adding the detail-oriented super-resolution to each of the at least one detail-oriented super-resolution feature map and each of the at least one complementary-oriented super-resolution feature map a pixel value corresponding to the detail-oriented super-resolution image corresponding to the feature map and a pixel value of the detail-oriented super-resolution image corresponding to the complementary directional super-resolution feature map;
    其中,该细节定向超分辨率特征图对应该互补定向超分辨率特征图。Wherein, the detail-oriented super-resolution feature map corresponds to a complementary orientation super-resolution feature map.
PCT/CN2019/077352 2018-03-16 2019-03-07 Image generating method and device WO2019174522A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810222294.0 2018-03-16
CN201810222294.0A CN110276720B (en) 2018-03-16 2018-03-16 Image generation method and device

Publications (1)

Publication Number Publication Date
WO2019174522A1 true WO2019174522A1 (en) 2019-09-19

Family

ID=67907389

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/077352 WO2019174522A1 (en) 2018-03-16 2019-03-07 Image generating method and device

Country Status (2)

Country Link
CN (1) CN110276720B (en)
WO (1) WO2019174522A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101216889A (en) * 2008-01-14 2008-07-09 浙江大学 A face image super-resolution method with the amalgamation of global characteristics and local details information
CN101615290A (en) * 2009-07-29 2009-12-30 西安交通大学 A kind of face image super-resolution reconstruction method based on canonical correlation analysis
US20110037894A1 (en) * 2009-08-11 2011-02-17 Google Inc. Enhanced image and video super-resolution processing
CN107492070A (en) * 2017-07-10 2017-12-19 华北电力大学 A kind of single image super-resolution computational methods of binary channels convolutional neural networks
US20180075581A1 (en) * 2016-09-15 2018-03-15 Twitter, Inc. Super resolution using a generative adversarial network

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8878950B2 (en) * 2010-12-14 2014-11-04 Pelican Imaging Corporation Systems and methods for synthesizing high resolution images using super-resolution processes
CN106548449A (en) * 2016-09-18 2017-03-29 北京市商汤科技开发有限公司 Generate method, the apparatus and system of super-resolution depth map
CN107240066A (en) * 2017-04-28 2017-10-10 天津大学 Image super-resolution rebuilding algorithm based on shallow-layer and deep layer convolutional neural networks

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101216889A (en) * 2008-01-14 2008-07-09 浙江大学 A face image super-resolution method with the amalgamation of global characteristics and local details information
CN101615290A (en) * 2009-07-29 2009-12-30 西安交通大学 A kind of face image super-resolution reconstruction method based on canonical correlation analysis
US20110037894A1 (en) * 2009-08-11 2011-02-17 Google Inc. Enhanced image and video super-resolution processing
US20180075581A1 (en) * 2016-09-15 2018-03-15 Twitter, Inc. Super resolution using a generative adversarial network
CN107492070A (en) * 2017-07-10 2017-12-19 华北电力大学 A kind of single image super-resolution computational methods of binary channels convolutional neural networks

Also Published As

Publication number Publication date
CN110276720B (en) 2021-02-12
CN110276720A (en) 2019-09-24

Similar Documents

Publication Publication Date Title
US10861133B1 (en) Super-resolution video reconstruction method, device, apparatus and computer-readable storage medium
US10803554B2 (en) Image processing method and device
US10650495B2 (en) High resolution style transfer
US10187546B2 (en) Method and device for correcting document image captured by image pick-up device
CN109064399B (en) Image super-resolution reconstruction method and system, computer device and storage medium thereof
CN109753971B (en) Correction method and device for distorted text lines, character recognition method and device
US10726599B2 (en) Realistic augmentation of images and videos with graphics
US11244426B2 (en) Method for image super resolution imitating optical zoom implemented on a resource-constrained mobile device, and a mobile device implementing the same
CN112037129A (en) Image super-resolution reconstruction method, device, equipment and storage medium
CN111310759B (en) Target detection inhibition optimization method and device for dual-mode cooperation
WO2020125062A1 (en) Image fusion method and related device
CN111160242A (en) Image target detection method, system, electronic terminal and storage medium
US20190355104A1 (en) Image Correction Method and Apparatus
US20230138053A1 (en) Systems and methods for optical flow estimation
CN111358430B (en) Training method and device for magnetic resonance imaging model
WO2019174522A1 (en) Image generating method and device
WO2023109086A1 (en) Character recognition method, apparatus and device, and storage medium
EP3817392A1 (en) Video jitter detection method and apparatus
CN113596576A (en) Video super-resolution method and device
KR20220054044A (en) Demosaicing method and demosaicing device based on deep learning
WO2023072072A1 (en) Blurred image generating method and apparatus, and network model training method and apparatus
CN112102145A (en) Image processing method and device
US11790533B2 (en) Machine learning based image segmentation training with contour accuracy evaluation
CN115564644B (en) Image data processing method, related device and computer storage medium
CN114169497A (en) Feature extraction method and device based on convolutional neural network model

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: 19767529

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: 19767529

Country of ref document: EP

Kind code of ref document: A1