Image decoding method and apparatus, image coding method and apparatus, and device and storage medium

By extracting and processing image residual data from the image code stream, and performing spatial resolution processing and grouping, the mean prediction time complexity in the image encoding and decoding process is reduced and the calculation efficiency is improved.

WO2024199477A1PCT designated stage expired Publication Date: 2024-10-03HANGZHOU HIKVISION DIGITAL TECHNOLOGY CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/084961
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-31
Filing Date
2024-03-29
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

In the prior art, the mean prediction time complexity in the image encoding and decoding process is high, resulting in high overall execution time complexity.

Method used

By extracting image residual data or extended residual data from the image code stream, we perform reduction and enlargement spatial resolution processing, grouping and residual recovery to reduce the time complexity of mean prediction.

Benefits of technology

It improves the overall residual recovery calculation efficiency, reduces the time complexity, and makes the image decoding and encoding process more efficient.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024084961_03102024_PF_FP_ABST
    Figure CN2024084961_03102024_PF_FP_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of image processing. Disclosed are an image decoding method and apparatus, an image coding method and apparatus, and a device and a storage medium. The image decoding method of the present application comprises: extracting image residual data or extended residual data from an image code stream, and obtaining a plurality of extended residual groups on the basis of the extracted image residual data or extended residual data; respectively performing residual recovery on the plurality of extended residual groups, so as to obtain an image reconstruction feature corresponding to each extended residual group; performing spatial-domain resolution amplification processing on the image reconstruction feature corresponding to each extended residual group, so as to obtain reconstruction feature data; and performing image reconstruction according to the reconstruction feature data, so as to obtain a reconstructed image block. Since acquired extended residual data is residual data which has been subjected to spatial-domain resolution reduction processing, residual recovery processing performed in groups on the entire group can be implemented at a low resolution, thereby improving the overall residual recovery calculation efficiency, and reducing the time complexity.
Need to check novelty before this filing date? Find Prior Art

Description

Image decoding and encoding method, device, equipment and storage medium Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to an image decoding and encoding method, apparatus, device and storage medium. Background Art

[0002] In deep learning-based image compression schemes, the current mainstream approach is to use already decoded feature points as prior information to perform mean prediction on the feature points currently being decoded to reduce the spatial redundancy of the image. Mainstream schemes generally use serial or wave-front encoding and decoding methods, and the serialization increases with the resolution of the features, resulting in a high overall execution time complexity.

[0003] The above content is only used to assist in understanding the technical solution of the present invention and does not constitute an admission that the above content is prior art.

[0004] Summary of the Invention

[0005] The main purpose of the present invention is to provide an image decoding and encoding method, device, equipment and storage medium, aiming to solve the technical problem of high time complexity of mean prediction in the image encoding and decoding process in the prior art.

[0006] To achieve the above object, the present invention provides an image decoding method, which comprises the following steps:

[0007] Extracting image residual data or extended residual data from an image code stream, and obtaining a plurality of extended residual groups based on the extracted image residual data or the extended residual data;

[0008] Performing residual recovery on each of the plurality of extended residual groups to obtain image reconstruction features corresponding to each extended residual group;

[0009] Amplifying the spatial resolution of the image reconstruction features corresponding to each extended residual group to obtain reconstructed feature data;

[0010] Image reconstruction is performed according to the reconstruction feature data to obtain a reconstructed image block.

[0011] In a possible implementation manner of the present application, extracting image residual data or extended residual data from an image code stream, and obtaining multiple extended residual groups based on the extracted image residual data or the extended residual data, includes:

[0012] extracting the image residual data from the image code stream;

[0013] Performing spatial resolution reduction processing on the image residual data to obtain the expanded residual data, wherein the spatial resolution enlargement processing is an inverse process of the spatial resolution reduction processing;

[0014] The extended residual data is grouped to obtain a plurality of extended residual groups.

[0015] In a possible implementation manner of the present application, the performing spatial resolution reduction processing on the image residual data to obtain the extended residual data includes:

[0016] The spatial size corresponding to the image residual data is reduced, and / or the number of feature channels corresponding to the image residual data is increased to obtain expanded residual data.

[0017] In a possible implementation manner of the present application, reducing the spatial size corresponding to the image residual data and / or increasing the number of feature channels corresponding to the image residual data to obtain the expanded residual data includes:

[0018] The spatial size corresponding to the image residual data is reduced according to the spatial domain information corresponding to the image residual data, and / or the number of feature channels corresponding to the image residual data is increased to obtain the expanded residual data.

[0019] In a possible implementation manner of the present application, performing residual recovery on each of the multiple extended residual groups to obtain image reconstruction features corresponding to each extended residual group includes:

[0020] constructing a residual recovery sequence according to the multiple extended residual groups;

[0021] Residual recovery is performed on each of the plurality of extended residual groups based on the residual recovery sequence to obtain image reconstruction features corresponding to each extended residual group.

[0022] In a possible implementation of the present application, the step of performing residual recovery on the multiple extended residual groups based on the residual recovery sequence to obtain image reconstruction features corresponding to each extended residual group includes:

[0023] Traversing the residual recovery sequence to obtain a current extended residual group;

[0024] Obtain auxiliary information output by the auxiliary encoding network;

[0025] constructing prior information based on the auxiliary information;

[0026] Performing residual recovery on the current extended residual group based on the prior information to obtain image reconstruction features corresponding to the current extended residual group;

[0027] At the end of the traversal, the image reconstruction features corresponding to each extended residual group are obtained.

[0028] In a possible implementation of the present application, constructing the prior information based on the auxiliary information includes:

[0029] Get extended auxiliary information;

[0030] Detecting whether the current extended residual group is the first element in the residual recovery sequence;

[0031] If it is the first element, constructing the prior information based on the extended auxiliary information;

[0032] If it is not the first element, the extended auxiliary information is spliced ​​with the convolution processing result corresponding to the image reconstruction feature of the restored extended residual group to obtain spliced ​​auxiliary information, and prior information is constructed according to the spliced ​​auxiliary information.

[0033] In addition, to achieve the above-mentioned object, the present invention further proposes an image encoding method, the image encoding method comprising:

[0034] Perform spatial domain resolution reduction processing on image features corresponding to the image to be encoded to obtain extended image features;

[0035] Grouping the extended image features to obtain a plurality of extended feature groups;

[0036] Performing residual calculations on the multiple extended feature groups respectively to obtain image residual data corresponding to each extended feature group;

[0037] An image code stream is generated according to the image residual data, and the image code stream is sent to an image decoding end.

[0038] In a possible implementation of the present application, reducing the spatial resolution of image features corresponding to the image to be encoded to obtain extended image features includes:

[0039] Obtain image features corresponding to the image to be encoded;

[0040] The spatial resolution of the data in the image feature is reduced to obtain an extended image feature.

[0041] In a possible implementation of the present application, reducing the spatial resolution of image features corresponding to the image to be encoded to obtain extended image features includes:

[0042] The spatial size corresponding to the image feature of the image to be encoded is reduced, and / or the number of feature channels corresponding to the image feature is increased, so as to obtain the extended image feature.

[0043] In a possible implementation of the present application, reducing the spatial size corresponding to the image feature of the image to be encoded and / or increasing the number of feature channels corresponding to the image feature to obtain the extended image feature includes:

[0044] According to the spatial domain information corresponding to the image feature of the image to be encoded, the spatial size corresponding to the image feature is reduced, and / or the number of feature channels corresponding to the image feature is increased, so as to obtain an extended feature group.

[0045] In a possible implementation manner of the present application, performing residual calculations on the multiple extended feature groups respectively to obtain image residual data corresponding to each extended feature group includes:

[0046] constructing a residual calculation sequence according to the plurality of extended feature groups;

[0047] Residual calculations are performed on the multiple extended feature groups based on the residual calculation sequence to obtain image residual data corresponding to each extended feature group.

[0048] In a possible implementation of the present application, performing residual calculations on the multiple extended feature groups based on the residual calculation sequence to obtain image residual data corresponding to each extended feature group includes:

[0049] Traversing the residual calculation sequence to obtain a current extended feature group;

[0050] Obtain auxiliary information output by the auxiliary encoding network;

[0051] constructing prior information based on the auxiliary information;

[0052] Performing residual calculation on the current extended feature group based on the prior information to obtain image residual data corresponding to the current extended feature group;

[0053] At the end of the traversal, the image residual data corresponding to each extended feature group is obtained.

[0054] In a possible implementation manner of the present application, grouping the extended image features to obtain multiple extended feature groups includes:

[0055] The extended image features are grouped based on feature channels corresponding to the extended feature data to obtain a plurality of extended feature groups.

[0056] In a possible implementation manner of the present application, generating an image code stream according to the image residual data and sending the image code stream to an image decoding end includes:

[0057] Performing a spatial resolution enlargement process on the image reconstruction features corresponding to each extended feature group to obtain image residual data corresponding to the image to be encoded, wherein the spatial resolution enlargement process is an inverse process of the spatial resolution reduction process;

[0058] An image code stream is generated according to the image residual data corresponding to the image to be encoded, and the image code stream is sent to an image decoding end.

[0059] In addition, to achieve the above-mentioned object, the present invention further provides an image decoding device, comprising:

[0060] a code stream decoding module, configured to extract image residual data or extended residual data from an image code stream, and obtain a plurality of extended residual groups based on the extracted image residual data or the extended residual data;

[0061] a residual recovery module, configured to perform residual recovery on each of the plurality of extended residual groups to obtain image reconstruction features corresponding to each extended residual group;

[0062] A data combination module is used to amplify the spatial resolution of the image reconstruction features corresponding to each extended residual group to obtain reconstructed feature data;

[0063] The image reconstruction module is used to perform image reconstruction according to the reconstruction feature data to obtain a reconstructed image block.

[0064] In addition, to achieve the above-mentioned object, the present invention further provides an image encoding device, the image encoding device comprising:

[0065] A feature extraction module is used to reduce the spatial resolution of the image features corresponding to the image to be encoded to obtain extended image features;

[0066] a data grouping module, configured to group the extended image features to obtain a plurality of extended feature groups;

[0067] A residual calculation module, configured to perform residual calculations on each of the plurality of extended feature groups to obtain image residual data corresponding to each extended feature group;

[0068] The code stream generating module is used to generate an image code stream according to the image residual data and send the image code stream to the image decoding end.

[0069] In addition, to achieve the above-mentioned purpose, the present invention also proposes a decoding device, which includes: a processor, a memory, and an image decoding program stored in the memory and runnable on the processor, and when the image decoding program is executed by the processor, the steps of the image decoding method described above are implemented.

[0070] In addition, to achieve the above-mentioned purpose, the present invention also proposes a coding device, which includes: a processor, a memory, and an image decoding program and / or an image coding program stored on the memory and runnable on the processor, wherein the image decoding program implements the steps of the image decoding method described above when executed by the processor, and the image coding program implements the steps of the image coding method described above when executed by the processor.

[0071] In addition, to achieve the above-mentioned purpose, the present invention also proposes a storage medium, on which an image decoding program and / or an image encoding program are stored. When the image decoding program is executed, the steps of the image decoding method described above are implemented, and when the image encoding program is executed, the steps of the image encoding method described above are implemented.

[0072] In addition, to achieve the above objectives, the present invention also proposes a computer program, which is configured to, when executed by a processor having a memory, implement the steps of the image decoding method described above, or implement the steps of the image encoding method described above.

[0073] In addition, to achieve the above-mentioned objectives, the present invention also proposes a computer program product, including computer program instructions, which are configured to, when executed by a processor having a memory, implement the steps of the image decoding method as described above, or implement the steps of the image encoding method as described above.

[0074] The present invention extracts image residual data or extended residual data from an image code stream, obtains multiple extended residual groups based on the extracted image residual data or extended residual data, performs residual recovery on each of the multiple extended residual groups, obtains image reconstruction features corresponding to each extended residual group, performs spatial resolution amplification processing on the image reconstruction features corresponding to each extended residual group, obtains reconstructed feature data, and performs image reconstruction based on the reconstructed feature data to obtain a reconstructed image block. Because the obtained extended residual data is residual data that has undergone spatial resolution reduction processing, residual recovery can be performed in groups at low resolution, thereby improving the overall residual recovery computational efficiency and reducing time complexity. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] FIG1 is a schematic diagram of the structure of an electronic device in a hardware operating environment according to an embodiment of the present invention;

[0076] FIG2 is a schematic flow chart of a first embodiment of an image decoding method according to the present invention;

[0077] FIG3 is a diagram of an overall framework of image compression according to an embodiment of the present invention;

[0078] FIG4 is a schematic flow chart of a second embodiment of an image decoding method according to the present invention;

[0079] FIG5 is a schematic diagram of a spatial resolution processing flow according to an embodiment of the present invention;

[0080] FIG6 is a schematic flow chart of a third embodiment of an image decoding method according to the present invention;

[0081] FIG7 is a schematic diagram of an image decoding group execution flow according to an embodiment of the present invention;

[0082] FIG8 is a schematic diagram of a secondary grouping execution process according to an embodiment of the present invention;

[0083] FIG9 is a schematic diagram of a feature enhancement grouping execution process according to an embodiment of the present invention;

[0084] FIG10 is a schematic flow chart of a first embodiment of an image encoding method according to the present invention;

[0085] FIG11 is a schematic flow chart of a second embodiment of an image encoding method according to the present invention;

[0086] FIG12 is a block diagram of the structure of a first embodiment of an image decoding device according to the present invention;

[0087] FIG13 is a block diagram showing the structure of the image encoding apparatus according to the first embodiment of the present invention.

[0088] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings and in conjunction with the embodiments. DETAILED DESCRIPTION

[0089] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0090] 1 , which is a schematic structural diagram of a decoding device or encoding device in a hardware operating environment according to an embodiment of the present invention.

[0091] As shown in Figure 1, the electronic device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to implement connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and optionally the user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WI-FI) interface). The memory 1005 may be a high-speed random access memory (RAM) or a stable non-volatile memory (NVM), such as a disk storage. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0092] Those skilled in the art will appreciate that the structure shown in FIG1 does not limit the electronic device and may include more or fewer components than shown, or combine certain components, or arrange the components differently.

[0093] As shown in FIG. 1 , the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and an image decoding program and / or an image encoding program.

[0094] In the electronic device shown in Figure 1, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the electronic device of the present invention can be set in a decoding device or an encoding device, and the electronic device calls the image decoding program or image encoding program stored in the memory 1005 through the processor 1001, and executes the image decoding method or image encoding method provided by the embodiment of the present invention.

[0095] An embodiment of the present invention provides an image decoding method. Referring to FIG. 2 , FIG. 2 is a flow chart of a first embodiment of an image decoding method of the present invention.

[0096] In this embodiment, the image decoding method includes the following steps:

[0097] Step S10: extracting image residual data or extended residual data from the image code stream, and obtaining a plurality of extended residual groups based on the extracted image residual data or the extended residual data.

[0098] It should be noted that the executor of this embodiment can be a decoding device when decoding image data. The decoding device can be an electronic device such as a personal computer or a server. Of course, it can also be other devices that can achieve the same or similar functions. This embodiment does not limit this. In this embodiment and the following embodiments, the image decoding method of the present invention is explained by taking the decoding device as an example.

[0099] Among them, since during the image encoding process, the encoding device generally decodes the encoded image code stream after the encoding is completed, and determines whether the parameters used in the encoding need to be adjusted based on the image quality of the decoded image, the execution subject of this embodiment can also be the encoding device.

[0100] It should be noted that the image codestream can be the codestream generated by an encoding device after encoding image data to be compressed. When generating the image codestream, the encoding device reduces the spatial resolution of image features to reduce the time complexity of predicting the mean during the encoding process. Finally, the encoding device directly encodes the generated image residual data or extended residual data into the image codestream. At this time, the decoding device can directly extract the image residual data or extended residual data from the image codestream. At this time, the decoding device can process the extracted image residual data or extended residual data to obtain multiple extended residual groups, and then perform residual recovery on each group, thereby reducing the time complexity of mean prediction during the image decoding process.

[0101] The technical terms involved in encoding or decoding images include: JPEG (Joint Photographic Experts Group), JPEG-AI (Joint Photographic Experts Group Artificial Intelligence), entropy encoding (Entropy Encoding), neural network (NN), convolutional neural network (CNN), feature, rate-distortion optimized (Rate-Distortion Optimized), etc., which are explained here.

[0102] Among them, JPEG (Joint Photographic Experts Group) is a standard for continuous-tone still image compression. Its file extensions are .jpg or .jpeg, making it the most commonly used image file format. It primarily utilizes a combination of predictive coding (e.g., Differential Pulse Code Modulation, DPCM), discrete cosine transform (DCT), and entropy coding to remove redundant image and color data. It is a lossy compression format that compresses images into a very small storage space, but this can cause some damage to the image data. In particular, using too high a compression ratio will reduce the quality of the image recovered after decompression. Therefore, if high-quality images are desired, a high compression ratio should be avoided.

[0103] The scope of JPEG-AI is to create a learning-based image coding standard that provides a single-stream, compact compressed domain representation that is targeted for human visualization, significantly improves compression efficiency over commonly used image coding standards at equivalent subjective quality, and provides effective performance for image processing and computer vision tasks. JPEG-AI targets a wide range of applications, such as cloud storage, visual surveillance, autonomous vehicles and devices, image acquisition storage and management, real-time monitoring of visual data, and media distribution. The goal is to design a coding solution that significantly improves the compression efficiency of commonly used coding standards at the same subjective quality, and provides efficient compressed domain processing for machine learning-based image processing and computer vision tasks. Other key requirements include hardware / software implementation-friendly encoding and decoding, support for 8-bit and 10-bit depths, efficient encoding of images with text and graphics, and progressive decoding.

[0104] Entropy coding is a method of encoding data without losing any information, based on the principle of entropy. Information entropy is the average amount of information in a source (a measure of uncertainty). Common entropy coding methods include Shannon coding, Huffman coding, and arithmetic coding.

[0105] The term "neural network" in this application refers to an artificial neural network, not a biological neural network. A neural network is a computational model composed of a large number of interconnected nodes (or neurons). In an artificial neural network, neuronal processing units can represent different objects, such as features, letters, concepts, or some meaningful abstract patterns. The types of processing units in the network are divided into three categories: input units, output units, and hidden units. Input units receive signals and data from the external world; output units output the system's processing results; and hidden units are located between the input and output units and cannot be observed from outside the system. The connection weights between neurons reflect the strength of the connections between units, and the representation and processing of information are reflected in the connection relationships between the network processing units. Artificial neural networks are a non-programmed, brain-like information processing method. Their essence is to obtain a parallel and distributed information processing function through the network's transformations and dynamic behavior, and to imitate the information processing functions of the human brain nervous system to varying degrees and levels. Currently, commonly used neural networks in the field of video processing include convolutional neural networks (CNNs), recurrent neural networks (RNNs), and fully connected networks.

[0106] A convolutional neural network (CNN) is a feedforward neural network and one of the most representative network structures in deep learning technology. Its artificial neurons can respond to surrounding units within a certain coverage area, making it an excellent choice for processing large images. Generally, the basic structure of a CNN consists of two layers: the feature extraction layer (also known as the convolutional layer), where the input of each neuron is connected to the local receptive field of the previous layer, extracting local features. Once a local feature is extracted, its positional relationship with other features is determined. The second layer is the feature mapping layer (also known as the activation layer). Each computational layer of the network consists of multiple feature maps. Each feature map is a plane where all neurons have equal weights. Convolutional networks can use Sigmoid, ReLU, Leaky-ReLU, PReLU, GDN, and other activation functions as feature mapping functions. Furthermore, since neurons within a mapping plane share weights, the number of free parameters in the network is reduced. One advantage of CNNs over traditional image processing algorithms is that they avoid complex preprocessing (such as extracting artificial features) and can directly input raw images for end-to-end learning. One of the advantages of CNN over traditional neural networks is that traditional neural networks all use a fully connected approach, that is, all neurons from the input layer to the hidden layer are connected. This will result in a huge number of parameters, making network training time-consuming or even difficult to train. CNN avoids this difficulty through methods such as local connections and weight sharing.

[0107] The feature involved in this application is a three-dimensional feature matrix of CxWxH (as shown in Figure 3, which is a schematic diagram of the matrix structure of this embodiment). C represents the number of channels, H represents the feature height, and W represents the feature width. The feature matrix can be either the input or the output of a neural network.

[0108] Indicators for evaluating coding efficiency include: bit rate, PSNR, MS-SSIM, VMAF FSIM, PSNRHVS, and many other indicators. Of course, more indicators can be included, which are not limited here. The smaller the bitstream, the greater the compression ratio; the larger the PSNR, the better the image coding efficiency. When selecting a mode, the discriminant formula is essentially a comprehensive evaluation of the two. The cost corresponding to the mode is: J(mode) = D + λ*R. Here, D represents Distortion, which is usually measured using the SSE metric. SSE refers to the mean squared sum of the differences between the reconstructed block and the source image; λ is the Lagrange multiplier; and R is the actual number of bits required to encode the image block in this mode, including the sum of bits required for coding mode information, residual, etc.

[0109] In a possible implementation of this embodiment, the obtained extended residual data are grouped according to the feature channels corresponding to the extended residual data. In this case, step S10 of this embodiment may include:

[0110] Extracting extended residual data from the image code stream;

[0111] The extended residual data are grouped based on feature channels corresponding to the extended residual data to obtain a plurality of extended residual groups.

[0112] It should be noted that grouping the extended residual data based on the characteristic channels corresponding to the extended residual data to obtain multiple extended residual groups can be performed by evenly dividing the extended residual data into multiple groups according to the corresponding characteristic channels. For example, assuming that the total number of characteristic channels corresponding to the extended residual data is 20, the extended residual data corresponding to characteristic channels 1-10 can be grouped together, and the extended residual data corresponding to characteristic channels 11-20 can be grouped together. The number of evenly divided groups can be pre-set by the administrator of the decoding device and is not limited in this embodiment.

[0113] Of course, the specific grouping can also be unevenly divided. In this case, the extended residual data can be grouped based on the characteristic channels corresponding to the extended residual data to obtain multiple extended residual groups. The extended residual data can also be divided into multiple groups according to the corresponding characteristic channels based on preset grouping rules. The preset grouping rules can be pre-set by the administrator of the decoding device according to actual needs. For example: the preset grouping rules are set to group the first m / n (n is the total number of characteristic channels, m is a preset value, and the value range is [1,n)) extended residual data into one group, and the remaining extended residual data into another group.

[0114] In actual use, when the extended residual data is grouped based on the feature channels corresponding to the extended residual data to obtain multiple extended residual groups, the extended residual data corresponding to one feature channel can also be divided into one group. For example, assuming that the total number of feature channels corresponding to the extended residual data is 20, the extended residual data can be divided into 20 groups according to the different feature channels.

[0115] Step S20: performing residual recovery on the multiple extended residual groups respectively to obtain image reconstruction features corresponding to each extended residual group.

[0116] It should be noted that performing residual recovery on the extended residual group to obtain the image reconstruction features corresponding to the extended residual group can be to perform mean prediction on the extended residual group, and then add the means obtained by predicting the residual data domain in the extended residual group to obtain the image reconstruction features corresponding to the extended residual group.

[0117] Step S30: performing spatial resolution magnification processing on the image reconstruction features corresponding to each extended residual group to obtain reconstructed feature data.

[0118] It should be noted that since the extended residual data has been processed with reduced spatial resolution, the spatial size and number of channels corresponding to each data are different from the spatial size and number of channels of the image features obtained by the initial encoding device for feature extraction of the original image. At this time, in order to ensure the smooth execution of image reconstruction, the image reconstruction features corresponding to each extended residual group can be enlarged in spatial resolution, and the spatial size and number of channels corresponding to the image reconstruction features can be restored to be consistent with the image features obtained by feature extraction of the original image.

[0119] The process of enlarging the spatial resolution may be the inverse process of the process of reducing the spatial resolution in the encoding device.

[0120] Step S40: performing image reconstruction according to the reconstruction feature data to obtain a reconstructed image block.

[0121] It should be noted that after obtaining the reconstructed feature data whose spatial size and number of channels are consistent with the image features corresponding to the original image, image reconstruction can be performed based on the reconstructed feature data to obtain a reconstructed image block.

[0122] The image is reconstructed based on the reconstructed feature data to obtain the reconstructed image block. The reconstructed feature data may be subjected to a synthetic transformation process using a pre-built synthetic transformation network to achieve image reconstruction, thereby obtaining the reconstructed image block. The synthetic transformation network may be a network built based on deep learning or a neural network.

[0123] For ease of understanding, this is now explained in conjunction with Figure 3, but this solution is not limited. Figure 3 is a diagram of the overall framework of image compression. As shown in Figure 3, at the encoding device end: x is the input image, and the main encoder (Analysis Transform Net) generates the potential representation y. Directly encoding y requires a large bit rate, so the context (Context Model Net) and hyperparameter encoding network (Hyper Encoder net) are introduced, and the hyperparameter decoding network (Hyper Decoder net) is used for prediction to obtain the prediction result μ, and the residual resi = y-μ, and the distribution parameter σ of the residual is obtained through the hyperparameter encoding network (Hyper Encoder net) and the probabilistic hyperparameter decoding network (Hyper Scale Decoder net). The distribution parameter can help entropy coding to encode data with less bit rate. Therefore, at the decoding end, it is necessary to obtain the predicted mean μ and distribution parameter σ of each y in order to correctly perform entropy decoding. The G-unit component is used to scale resi and the distribution parameter σ to control the quantization loss. The quantized residual obtained by rounding resi is recorded as Finally, lossless entropy encoding (Lossless encoder) is performed.

[0124] On the decoding device side: perform entropy decoding on the image stream to obtain invG-unit component pair Scaling is performed, where the scaling multiples of the G-unit and invG-unit modules are opposite, and after scaling, the predicted value μ is obtained The synthesis transform network (Synthesis Transform Net) input to the decoding end obtains the reconstructed image block.

[0125] This embodiment extracts image residual data or extended residual data from an image bitstream, obtains multiple extended residual groups based on the extracted image residual data or extended residual data, performs residual recovery on each of the extended residual groups, and obtains image reconstruction features corresponding to each extended residual group. The image reconstruction features corresponding to each extended residual group are then processed to increase spatial resolution to obtain reconstructed feature data. Image reconstruction is then performed based on the reconstructed feature data to obtain a reconstructed image block. Because the obtained extended residual data is residual data processed with reduced spatial resolution, residual recovery can be performed on the entire group at a low resolution, thereby improving the overall computational efficiency of residual recovery and reducing time complexity.

[0126] Refer to FIG4 , which is a flowchart of a second embodiment of an image decoding method according to the present invention.

[0127] Based on the first embodiment, step S10 of the image decoding method of this embodiment includes:

[0128] Step S101: extracting image residual data from an image code stream.

[0129] It should be noted that the encoding device may expand the spatial resolution of the generated extended residual data, restore it to image residual data with a spatial size and number of channels consistent with the image features corresponding to the original image, and then encode the image residual data into the image code stream. At this time, the decoding device can only extract the image residual data from the image code stream when decoding the image code stream.

[0130] Step S102: performing spatial resolution reduction processing on the image residual data to obtain expanded residual data.

[0131] It is understood that, in order to facilitate subsequent grouping processing and reduce time complexity, after obtaining the image residual data, the image residual data can be subjected to spatial resolution reduction processing to obtain expanded residual data. To ensure decoding accuracy, the encoding and decoding devices must use the same method when performing spatial resolution reduction processing, and the spatial resolution expansion processing is the inverse process of the spatial resolution reduction processing.

[0132] Among them, after the image residual data is processed with reduced spatial resolution, its spatial size will become smaller. Correspondingly, when processing the image residual data, a smaller convolution kernel can be used. For example, if a convolution kernel with a size of 5x5 is used on the original image residual data, in terms of the receptive field of the convolution kernel, it is equivalent to using a convolution kernel with a size of 3x3 after reducing the spatial resolution.

[0133] In actual use, the step of reducing the spatial resolution of the image residual data to obtain the expanded residual data in this embodiment may include:

[0134] The spatial size corresponding to the image residual data is reduced, and / or the number of feature channels corresponding to the image residual data is increased to obtain expanded residual data.

[0135] It should be noted that the reduction range of the spatial size corresponding to the image residual data and the increase range of the number of feature channels corresponding to the image residual data can be pre-set by the administrator of the decoding device, and this embodiment does not limit this.

[0136] Among them, during actual execution, only the reduction range of the spatial size can be set, or only the increase range of the number of feature channels can be set, and the decoding device can adaptively adjust the spatial size or the number of feature channels. Of course, it is also possible not to use device adaptation, but to set the reduction range of the spatial size and the increase range of the number of feature channels, and let the device execute.

[0137] For example: Assume that the image feature corresponding to the image residual data is y∈R {H,W,C} , where H is the height of the image feature, W is the width of the image feature, and C is the number of feature channels corresponding to the image feature. At this time, H and W can be reduced to half of the original. At this time, in order to ensure that the amount of data remains unchanged, the number of feature channels will become 4 times the original. The image feature corresponding to the expanded residual data obtained at this time can be expressed as y∈R {H / 2,W / 2,4C} .

[0138] In a specific implementation, the spatial resolution reduction process may be performed based on the spatial information or frequency information corresponding to the image residual data. The spatial resolution reduction process may also be performed through a preset convolutional layer. In this case, the step of reducing the spatial size corresponding to the image residual data and / or increasing the number of feature channels corresponding to the image residual data to obtain the expanded residual data in this embodiment may include:

[0139] Reducing the spatial size corresponding to the image residual data and / or increasing the number of feature channels corresponding to the image residual data according to the spatial domain information corresponding to the image residual data, so as to obtain expanded residual data;

[0140] or,

[0141] reducing the spatial size corresponding to the image residual data according to frequency domain information corresponding to the image residual data, and / or increasing the number of feature channels corresponding to the image residual data, to obtain extended residual data;

[0142] or,

[0143] The spatial size corresponding to the image residual data is reduced according to a preset convolutional layer, and / or the number of feature channels corresponding to the image residual data is increased to obtain expanded residual data.

[0144] For ease of understanding, the present invention will be described in conjunction with FIG5 , but this solution is not limited thereto. FIG5 is a schematic diagram of the spatial resolution processing flow of this embodiment. As shown in method (a) in FIG5 , SpaceShuffle is one of the methods for reducing the spatial resolution processing. Assuming that the input of the processing process is a1∈R{H,W,C} and the output is a2∈R{H / 2,W / 2,4*C}, the mathematical expression is as follows: a2[h,w,c]=a1[2*h,2*w,c] a2[h,w,C+c]=a1[2*h+1,2*w+1,c] a2[h,w,2*C+c]=a1[2*h,2*w+1,c] a2[h,w,3*C+c]=a1[2*h+1,1*w,c]

[0145] Among them, h represents the index value in the height dimension, and its value range is 0 ~ H-1, w represents the index value in the width dimension, and its value range is 0 ~ W-1, and c represents the index value in the channel dimension, and its value range is 0 ~ C-1. And a1[h,w,c] represents the size of the corresponding h,w,c index position in a1. In Figure 5 method (a), unSpaceShuffle is the inverse process of SpaceShuffle. UnSpaceShuffle is one of the methods for amplifying spatial resolution processing. In this process, after the input is processed by SpaceShuffle and unSpaceShuffle, the output result is the same as the original input, so the process is lossless. The input and output of the above processing process can also be other data, and the embodiments of the present disclosure are not limited to this.

[0146] As shown in method (b), this method performs spatial resolution processing based on the spatial information corresponding to the image residual data. Pixshuffle's sampling method is similar to method (a), but differs in that the data is interleaved in the channel dimension. The data from the previous channel is spatially divided into four channels and arranged sequentially.

[0147] Method (c) in Figure 5 performs spatial resolution processing based on the frequency domain information corresponding to the image residual data. As shown in method (c), the Wavelet transform is a two-dimensional wavelet transform that divides the data into frequency domains and outputs four frequency domain subbands of dimensions [H / 2, W / 2, C], each representing a different frequency domain characteristic. The Inv Wavelet transform is the inverse process, synthesizing the frequency domain subbands into the original data. This process is lossless.

[0148] Method (d) in Figure 5 uses a pre-set convolutional layer to perform spatial resolution processing. As shown in method (d), the convolution transform is directly input into the convolutional layer for processing, resulting in an output of [H / 2, W / 2, 4*C], thereby reducing the residual resolution. The corresponding inverse process also uses a convolutional layer to restore the image to the original size, but this method is lossy, and the resulting data will differ from the original data.

[0149] In a possible implementation of this embodiment, before the image residual data is processed to reduce the spatial resolution, the image residual data may be grouped and then processed to reduce the spatial resolution separately. In this case, step S102 of this embodiment includes:

[0150] Grouping the data according to the feature channels corresponding to the image residual data to obtain at least one image residual group;

[0151] The data in the image residual group is processed to reduce the spatial resolution to obtain extended residual data.

[0152] It should be noted that the data grouping according to the feature channels corresponding to the image residual data can be performed in the same or similar manner as the grouping of the extended residual data. The data in the image residual group is subjected to spatial resolution reduction processing to obtain the extended residual data. The data in at least one image residual group is subjected to spatial resolution reduction processing, and then the data subjected to spatial resolution reduction processing are aggregated to obtain the extended residual data.

[0153] For example: Assume that the image feature corresponding to the image residual data is y∈R {H,W,C} , at this time, it can be divided into two groups according to the feature channel, then the image features corresponding to the data in each group of image residual groups can be expressed as y∈R {H,W,C / 2} .

[0154] Step S103: grouping the extended residual data to obtain a plurality of extended residual groups.

[0155] It should be noted that grouping the extended residual data to obtain multiple extended residual groups can be performed by evenly dividing the extended residual data into multiple groups according to the corresponding characteristic channels. For example, assuming that the total number of characteristic channels corresponding to the extended residual data is 20, the extended residual data corresponding to characteristic channels 1-10 can be grouped together, and the extended residual data corresponding to characteristic channels 11-20 can be grouped together. The number of evenly divided groups can be pre-set by the administrator of the decoding device and is not limited in this embodiment.

[0156] Of course, the specific grouping can also be unevenly divided. The extended residual data can be grouped based on the characteristic channels corresponding to the extended residual data to obtain multiple extended residual groups. The extended residual data can also be divided into multiple groups based on the corresponding characteristic channels based on preset grouping rules. The preset grouping rules can be pre-set by the administrator of the decoding device according to actual needs. For example: the preset grouping rules are set to group the first m / n (n is the total number of characteristic channels, m is a preset value, and the value range is [1,n)) extended residual data into one group, and the remaining extended residual data into another group.

[0157] In actual use, the extended residual data is grouped based on the feature channels corresponding to the extended residual data. When multiple extended residual groups are obtained, the extended residual data corresponding to one feature channel can also be divided into one group. For example, assuming that the total number of feature channels corresponding to the extended residual data is 20, the extended residual data can be divided into 20 groups according to the different feature channels.

[0158] Before grouping, this embodiment also detects whether the extracted data is image residual data or extended residual data. If it is image residual data, it will first be processed by reducing the spatial resolution. This ensures that even if the image code stream input from the encoding end contains image residual data, it can still be grouped and processed normally after processing, thereby improving the versatility of the image decoding method of this embodiment.

[0159] Refer to FIG6 , which is a flowchart of a third embodiment of an image decoding method according to the present invention.

[0160] Based on the first embodiment, step S20 of the image decoding method of this embodiment includes:

[0161] Step S201: constructing a residual recovery sequence according to the multiple extended residual groups.

[0162] It should be noted that after dividing the extended residual groups, residual recovery can be performed group by group, thereby reducing the time complexity of mean prediction during image decoding. At this time, in order to determine the order of residual recovery for each extended residual group, a residual recovery sequence can be constructed based on the multiple extended residual groups.

[0163] Step S202: performing residual recovery on each of the plurality of extended residual groups based on the residual recovery sequence to obtain image reconstruction features corresponding to each extended residual group.

[0164] It should be noted that performing residual recovery on the multiple extended residual groups based on the residual recovery sequence may be performing residual recovery on the multiple extended residual groups in sequence based on the sequence order in the residual recovery sequence.

[0165] In actual use, residual recovery can be performed sequentially by sequence traversal. In this case, step S202 of this embodiment may include:

[0166] Traversing the residual recovery sequence to obtain a current extended residual group;

[0167] Obtain auxiliary information output by the auxiliary encoding network;

[0168] constructing prior information based on the auxiliary information;

[0169] Performing residual recovery on the current extended residual group based on the prior information to obtain image reconstruction features corresponding to the current extended residual group;

[0170] At the end of the traversal, the image reconstruction features corresponding to each extended residual group are obtained.

[0171] It should be noted that traversing the residual recovery sequence to obtain the current extended residual group may be traversing the residual recovery sequence and using the traversed extended residual group as the current extended residual group. The auxiliary coding network may be the auxiliary network (Hyper Encoder Net or Hyper Decoder Net) shown in FIG3 above.

[0172] In actual use, residual recovery is performed on the current extended residual group based on prior information. The image reconstruction features corresponding to the current extended residual group can be obtained by processing the prior information through a prediction parameter fusion network (Prediction Fusion Net) to obtain a predicted mean, and then adding the predicted mean to the residual in the current extended residual group to achieve residual recovery and obtain the image reconstruction features corresponding to the current extended residual group.

[0173] In actual use, the step of constructing the prior information based on the auxiliary information in this embodiment may include:

[0174] Get extended auxiliary information;

[0175] Detecting whether the current extended residual group is the first element in the residual recovery sequence;

[0176] If it is the first element, constructing the prior information based on the extended auxiliary information;

[0177] If it is not the first element, the extended auxiliary information is spliced ​​with the convolution processing result corresponding to the image reconstruction feature of the restored extended residual group to obtain spliced ​​auxiliary information, and prior information is constructed according to the spliced ​​auxiliary information.

[0178] It should be noted that the spatial size and number of feature channels corresponding to the auxiliary information output by the auxiliary coding network are actually consistent with those of the original image, and at this time the extended residual data has actually been processed to reduce the spatial resolution. Therefore, in order to ensure smooth channel splicing, it is necessary to process the auxiliary information first to obtain the extended auxiliary information, and then construct the prior information based on the extended auxiliary information.

[0179] When constructing prior information based on the extended auxiliary information, in order to increase the accuracy of the mean prediction, the image features corresponding to the previously reconstructed extended residual group can also be combined to construct the prior information. If the current extended residual group is the first element in the residual recovery sequence, it means that the extended residual group is the first extended residual group to perform residual recovery. At this time, there is no reconstructed extended residual group. Therefore, the prior information can be directly constructed based on the extended auxiliary information.

[0180] If the current extended residual group is not the first element in the residual recovery sequence, then there is an already reconstructed extended residual group. Therefore, the image reconstruction features of the restored extended residual group can be convolved through a convolution layer. The extended auxiliary information and the convolution results corresponding to the image reconstruction features of the restored extended residual group are then channel-wise spliced. Prior information is then constructed based on the spliced ​​auxiliary information. When constructing the prior information and selecting the restored extended residual groups, all restored extended residual groups can be selected, or only a portion of the restored extended residual groups can be selected.

[0181] In a possible implementation of this embodiment, when performing result splicing, feature enhancement may be performed on the image reconstruction features of the restored extended residual group to further improve the prediction effect. The step of splicing the extended auxiliary information with the convolution processing results corresponding to the image reconstruction features of the restored extended residual group to obtain the spliced ​​auxiliary information may include:

[0182] Obtaining image reconstruction features corresponding to the restored extended residual group;

[0183] Performing feature enhancement on the image reconstruction feature to obtain enhanced reconstruction feature;

[0184] The auxiliary information is spliced ​​with the convolution processing result corresponding to the enhanced reconstruction feature to obtain spliced ​​auxiliary information.

[0185] In actual use, feature enhancement is performed on the image reconstruction features to obtain enhanced reconstruction features, which may be performed by performing operations such as missing value processing and outlier processing on the image reconstruction features.

[0186] It can be understood that before splicing the auxiliary information with the image reconstruction features, the image reconstruction features are first enhanced to obtain enhanced reconstruction features, which can increase the reliability of the enhanced reconstruction features, thereby improving the reliability of the prior information, making the mean prediction based on the prior information more accurate.

[0187] In actual use, when enhancing the image reconstruction features corresponding to the restored extended residual group, the predicted mean, auxiliary information, image residual data, and / or residual data variance corresponding to the restored extended residual group may be used. In this case, the step of enhancing the image reconstruction features to obtain enhanced reconstruction features in this embodiment may include:

[0188] Obtaining a predicted mean, auxiliary information, image residual data, and / or residual data variance corresponding to the restored extended residual group;

[0189] The image reconstruction feature is enhanced according to the predicted mean, auxiliary information, image residual data and / or residual data variance corresponding to the restored extended residual group to obtain an enhanced reconstruction feature.

[0190] It should be noted that the predicted mean corresponding to the restored extended residual group may be a value obtained by performing mean prediction when performing residual recovery on the restored extended residual group. The residual data variance may be a variance value of the image residual data corresponding to the restored extended residual group.

[0191] In a possible implementation of this embodiment, in order to improve the reconstruction effect of the image reconstruction, step S30 in this embodiment may include:

[0192] Performing feature enhancement on the image reconstruction features corresponding to each extended residual group to obtain enhanced reconstruction features corresponding to each extended residual group;

[0193] The enhanced reconstruction features corresponding to each extended residual group are processed by amplifying the spatial resolution to obtain the reconstructed feature data.

[0194] It should be noted that the image reconstruction features corresponding to the extended residual group are enhanced to obtain the enhanced reconstruction features corresponding to the extended residual group, which can be achieved by using the predicted mean, auxiliary information, image residual data and / or residual data variance corresponding to the extended residual group to enhance the image reconstruction features corresponding to the extended residual group.

[0195] It can be understood that before the image reconstruction features corresponding to each extended residual group are enlarged in spatial resolution processing to obtain the reconstructed feature data, the image reconstruction features corresponding to each extended residual group are first enhanced, and then the enhanced reconstruction features corresponding to each extended residual group are enlarged in spatial resolution processing to obtain the reconstructed feature data. This can ensure that the reliability of the reconstructed feature data finally constructed is higher, and the quality of the reconstructed image blocks obtained by subsequent image reconstruction will be better.

[0196] For ease of understanding, the present invention will be described in conjunction with Figures 7, 8, and 9, but this does not limit the present embodiment. Figure 7 is a schematic diagram of the image decoding grouping execution process of this embodiment, Figure 8 is a schematic diagram of the secondary grouping execution process of this embodiment, and Figure 9 is a schematic diagram of the feature enhancement grouping execution process of this embodiment.

[0197] As shown in Figure 7, the image feature corresponding to the image residual data is y∈R {H,W,C} , first reduce the spatial resolution, and the result is y∈R {H / 2,W / 2,4C} At this point, it can be divided into two groups (group 1 and group 2), and then a residual recovery sequence (group 1-group 2) is constructed. The auxiliary (Psi) information is then passed through the network to obtain the mean mu of Group 1 points, and the image reconstruction features of Group 1 points are obtained. The image reconstruction features of Group 1 points are used to extract features, and channel splicing is performed with Psi. The mean mu of Group 2 is obtained through the network, and then decoded to obtain Group 2. Channel splicing is performed on Group 1 and Group 2 points, and then a special process of enlarging the spatial resolution is performed (i.e., the inverse process of reducing the spatial resolution) to obtain reconstructed feature data, and then image reconstruction is performed based on the reconstructed feature data.

[0198] If a grouping is performed before reducing the spatial resolution, the execution flow is as shown in Figure 8. The image feature corresponding to the image residual data is y∈R {H,W,C} , at this time, it is first divided into y1 and y2 according to the corresponding feature channel, then y1∈R {H,W,C / 2} , then reduce the spatial resolution and divide y1 into part1, part2, part3, and part4. Now we have:

[0199] Part1 is represented as the spatial position in y1, which is in the even row and even column of the spatial index of y1, and contains data information of all channels.

[0200] Part2 is represented as the spatial position in y1, which is in the odd rows and odd columns of the spatial index of y1, and contains data information of all channels.

[0201] Part3 is represented as the spatial position in y1, which is in the even rows and odd columns of the spatial index of y1, and contains data information of all channels.

[0202] Part4 is represented as y1, with the spatial position in the odd rows and even columns of the y1 spatial index, and contains data information of all channels.

[0203] Similarly, y2 can also be divided into four similar parts, namely part5, part6, part7, and part8. The residual recovery sequence constructed at this time is "part1-part2-part3-part4-part5-part6-part7-part8". Then, when performing residual recovery on part1, prior information can be directly generated based on the auxiliary information. When performing residual recovery on part2, prior information can be generated based on the image reconstruction features and auxiliary information of part1. When performing residual recovery on part3, prior information can be generated based on the image reconstruction features and auxiliary information of parts1 and 2, and so on, until the image reconstruction features corresponding to all parts are obtained;

[0204] Of course, two residual recovery sequences can also be constructed based on y1 and y2 respectively. In this case, the two residual recovery sequences are "part1-part2-part3-part4" and "part5-part6-part7-part8" respectively. At this time, a similar process to the above can be used to reconstruct the image of y1 based on the residual recovery sequence composed of part1-4 to obtain the image reconstruction features corresponding to each part in y1. Then, prior information is generated based on the image reconstruction features corresponding to y1 and auxiliary information. Then, the image of y2 is reconstructed based on the residual recovery sequence composed of part5-8 and the generated prior information to obtain the image reconstruction features corresponding to each part in y2.

[0205] Among them, since y is first split into y1 and y2 and then the spatial resolution is reduced, after obtaining the image reconstruction features corresponding to each part in y1 and y2, the image reconstruction features corresponding to each part of y1 and y2 can be enlarged and processed in the spatial resolution before aggregation to obtain complete reconstructed feature data.

[0206] If feature enhancement is performed after grouping, the specific execution process is as shown in Figure 9 (a), and the image feature corresponding to the image residual data is y∈R {H,W,C} , first reduce the spatial resolution, and the result is y∈R {H / 2,W / 2,4C}At this point, it can be divided into two groups (group 1 and group 2). The auxiliary (Psi) information is then passed through the network to obtain the mean value mu of Group 1 points, resulting in the image reconstruction features of Group 1. The predicted mean value corresponding to Group 1 is used to enhance the image reconstruction features of Group 1, yielding the enhanced image features Group 1_E. The features of the enhanced image features are then extracted and channel-wise concatenated with Psi. The mean value mu of Group 2 is then obtained through the network, and decoding is performed to obtain the image reconstruction features of Group 2. The image reconstruction features of Group 2 are then enhanced based on the mean value mu of Group 2, yielding the enhanced image features Group 2_E. Group 1_E and Group 2_E are then channel-wise concatenated, and a special process of enlarging the spatial resolution is performed (i.e., the inverse process of reducing the spatial resolution). This yields reconstructed feature data, which is then used for image reconstruction. When performing feature enhancement in Figure 9 (a), the specific structure of the network (Enhance_Net) used for feature enhancement is shown in Figure 9 (b).

[0207] This embodiment constructs a residual recovery sequence based on the multiple extended residual groups; then performs residual recovery on each of the multiple extended residual groups based on the residual recovery sequence to obtain image reconstruction features corresponding to each extended residual group. Since the residual recovery sequence is constructed based on the multiple extended residual groups, the order of residual recovery can be determined using the residual recovery sequence, making it possible to quickly determine whether any extended residual groups have been recovered. If any extended residual groups have been recovered, more accurate prior information can be constructed based on the image feature data corresponding to the recovered extended residual groups.

[0208] An embodiment of the present invention provides an image encoding method. Referring to FIG. 10 , FIG. 10 is a flow chart of a first embodiment of an image encoding method of the present invention.

[0209] In this embodiment, the image encoding method includes the following steps:

[0210] Step S100: performing spatial resolution reduction processing on image features corresponding to the image to be encoded to obtain extended image features.

[0211] It should be noted that, in order to facilitate subsequent grouping processing and reduce time complexity, after obtaining the image features corresponding to the image to be encoded, the image residual data can be processed by reducing the spatial resolution to obtain expanded image features. The image to be encoded is the original image mentioned in the above-mentioned embodiment of the image decoding method.

[0212] Among them, after the image features are processed with reduced spatial resolution, their spatial size will become smaller. Correspondingly, when processing the image features, a smaller convolution kernel can be used. For example, if a convolution kernel with a size of 5x5 is used on the original image residual data, in terms of the receptive field of the convolution kernel, it is equivalent to using a convolution kernel with a size of 3x3 after reducing the spatial resolution.

[0213] In a possible implementation of this embodiment, step S100 in this embodiment may include:

[0214] The spatial size corresponding to the image feature of the image to be encoded is reduced, and / or the number of feature channels corresponding to the image feature is increased, so as to obtain the extended image feature.

[0215] It should be noted that the reduction range of the spatial size corresponding to the image feature and the increase range of the number of feature channels corresponding to the image feature can be pre-set by the administrator of the decoding device, and this embodiment does not limit this.

[0216] Among them, during actual execution, only the reduction range of the spatial size can be set, or only the increase range of the number of feature channels can be set, and the decoding device can adaptively adjust the spatial size or the number of feature channels. Of course, it is also possible not to use device adaptation, but to set the reduction range of the spatial size and the increase range of the number of feature channels, and let the device execute.

[0217] In a specific implementation, the spatial resolution reduction process may be performed based on the spatial information or frequency information corresponding to the image feature. The spatial resolution reduction process may also be performed through a preset convolutional layer. In this case, the step of reducing the spatial size corresponding to the image feature of the image to be encoded and / or increasing the number of feature channels corresponding to the image feature to obtain the extended image feature in this embodiment may include:

[0218] Reducing the spatial size corresponding to the image feature of the image to be encoded and / or increasing the number of feature channels corresponding to the image feature to obtain an extended image feature according to spatial domain information corresponding to the image feature of the image to be encoded;

[0219] or,

[0220] Reducing the spatial size corresponding to the image feature of the image to be encoded and / or increasing the number of feature channels corresponding to the image feature according to frequency domain information corresponding to the image feature to obtain an extended image feature;

[0221] or,

[0222] The spatial size corresponding to the image feature is reduced according to a preset convolutional layer, and / or the number of feature channels corresponding to the image feature is increased to obtain an extended image feature.

[0223] The specific implementation method can refer to the explanation part of FIG5 in the above-mentioned image decoding method embodiment, and will not be repeated here.

[0224] Step S200: grouping the extended image features to obtain a plurality of extended feature groups.

[0225] In a specific implementation, when grouping the extended image features, the grouping may be performed with reference to the feature channels corresponding to the extended image features. In this case, step S200 of this embodiment may include:

[0226] The extended image features are grouped based on feature channels corresponding to the extended feature data to obtain a plurality of extended feature groups.

[0227] It should be noted that grouping the extended image features based on the feature channels corresponding to the extended feature data to obtain multiple extended feature groups can be performed by evenly dividing the extended image features into multiple groups based on the corresponding feature channels. For example, assuming the total number of feature channels corresponding to the extended image features is 20, then the extended image features corresponding to feature channels 1-10 can be grouped together, and the extended image features corresponding to feature channels 11-20 can be grouped together. The number of evenly divided groups can be pre-set by the administrator of the decoding device and is not limited in this embodiment.

[0228] Of course, the specific grouping can also be unevenly divided. The extended image features can be grouped based on the feature channels corresponding to the extended image features to obtain multiple extended feature groups. The extended image features can also be divided into multiple groups based on the corresponding feature channels based on preset grouping rules. The preset grouping rules can be pre-set by the management personnel of the encoding device according to actual needs. For example: the preset grouping rules are set to group the first m / n (n is the total number of feature channels, m is a preset value, and the value range is [1,n)) extended image features into one group, and the remaining extended image features into another group.

[0229] In actual use, the extended image features are grouped based on the feature channels corresponding to the extended image features. When multiple extended feature groups are obtained, the extended image features corresponding to one feature channel can also be divided into one group. For example, assuming that the total number of feature channels corresponding to the extended image features is 20, the extended image features can be divided into 20 groups according to the different feature channels.

[0230] Step S300: performing residual calculation on each of the plurality of extended feature groups to obtain image residual data corresponding to each extended feature group.

[0231] It should be noted that residual calculation is performed on the extended feature groups respectively to obtain the image residual data corresponding to the extended feature groups. The extended feature groups can be predicted by mean, and then the image features in the extended feature groups are subtracted from the predicted mean to obtain the image residual data corresponding to the extended feature groups.

[0232] Step S400: generating an image code stream according to the image residual data, and sending the image code stream to an image decoding end.

[0233] It should be noted that generating the image code stream according to the image residual data may be writing the image residual data into the image code stream through entropy coding.

[0234] In a possible implementation of this embodiment, before performing spatial resolution reduction processing on image features corresponding to the image to be encoded, the image features may be grouped first, and then spatial resolution reduction processing may be performed on each of the image features. In this case, step S100 of this embodiment may include:

[0235] Obtain image features corresponding to the image to be encoded;

[0236] grouping the image features according to feature channels corresponding to the image features to obtain at least one image feature group;

[0237] The data in the image feature group is processed to reduce the spatial resolution to obtain extended image features.

[0238] In one possible implementation of this embodiment, the image features corresponding to the image to be encoded are processed to reduce the spatial resolution to obtain the extended image features. Alternatively, after obtaining the image features corresponding to the image to be encoded, the data in the image features are processed to reduce the spatial resolution to obtain the extended image features. It should be noted that obtaining the image features corresponding to the image to be encoded can be performed by extracting the image features corresponding to the image to be encoded through a preset feature extraction network. When grouping data according to the feature channels corresponding to the image features, the same or similar method as that used for grouping the extended image features can be used.

[0239] In a possible implementation of this embodiment, step S400 of this embodiment may include:

[0240] Performing spatial domain resolution processing on the image residual features corresponding to each extended feature group to obtain image residual data corresponding to the image to be encoded;

[0241] An image code stream is generated according to the image residual data corresponding to the image to be encoded, and the image code stream is sent to an image decoding end.

[0242] It should be noted that the enlarged spatial resolution processing can be the inverse process of the above-mentioned reduced spatial resolution processing. After obtaining the image residual features corresponding to each extended feature group, the image residual features corresponding to each extended feature group can be enlarged spatial resolution processing, and the corresponding spatial size and number of channels can be restored to be consistent with the image features corresponding to the image to be encoded, thereby obtaining the image residual data corresponding to the image to be encoded, and then entropy encoding is performed on the image residual data corresponding to the image to be encoded to generate an image code stream, and the generated image code stream is sent to the image decoding end.

[0243] This embodiment reduces the spatial resolution of image features corresponding to the image to be encoded to obtain extended image features; groups the extended image features to obtain multiple extended feature groups; performs residual calculation on each of the multiple extended feature groups to obtain image residual data corresponding to each extended feature group; generates an image code stream based on the image residual data, and transmits the image code stream to the image decoding end. Because the spatial resolution of the acquired image features of the image to be encoded is reduced and then grouped into multiple extended feature groups, residual calculation can be performed on the entire group at a low resolution, thereby improving the overall residual calculation efficiency and reducing the time complexity.

[0244] Refer to FIG11 , which is a flowchart of a second embodiment of an image encoding method according to the present invention.

[0245] Based on the first embodiment, step S300 of the image encoding method of this embodiment includes:

[0246] Step S3001: constructing a residual calculation sequence according to the multiple extended feature groups.

[0247] It should be noted that after the extended feature groups are divided, residual calculation can be performed on the entire group. At this time, in order to determine the residual calculation order of each extended feature group, a residual calculation sequence can be constructed based on the multiple extended feature groups.

[0248] Step S3002: performing residual calculations on the plurality of extended feature groups respectively based on the residual calculation sequence to obtain image residual data corresponding to each extended feature group.

[0249] It should be noted that performing residual calculations on the multiple extended feature groups based on the residual calculation sequence may be performing residual calculations on the multiple extended feature groups in sequence based on the sequence order in the residual calculation sequence.

[0250] In actual use, the residual calculation may be performed sequentially by sequence traversal. In this case, step S3002 of this embodiment may include:

[0251] Traversing the residual calculation sequence to obtain a current extended feature group;

[0252] Obtain auxiliary information output by the auxiliary encoding network;

[0253] constructing prior information based on the auxiliary information;

[0254] Performing residual calculation on the current extended feature group based on the prior information to obtain image residual data corresponding to the current extended feature group;

[0255] At the end of the traversal, the image residual data corresponding to each extended feature group is obtained.

[0256] It should be noted that traversing the residual calculation sequence to obtain the current extended feature group may be traversing the residual calculation sequence and using the traversed extended feature group as the current extended feature group. The auxiliary encoding network may be the auxiliary network (Hyper Encoder Net or Hyper Decoder Net) shown in FIG3 above.

[0257] In actual use, the residual calculation of the current extended feature group is performed based on the prior information. The image residual data corresponding to the current extended feature group can be obtained by processing the prior information through Prediction Fusion Net to obtain the predicted mean, and then subtracting the features in the current extended feature group from the predicted mean to realize the residual calculation and obtain the image residual data corresponding to the current extended feature group.

[0258] Among them, when constructing prior information based on auxiliary information, in order to increase the accuracy of mean prediction, when constructing the prior information, the image features corresponding to the extended feature group whose residual calculation has been performed before can also be combined to construct the prior information. The specific implementation method is the same as the method used in the image decoding process. The specific implementation steps can refer to the method of constructing prior information based on auxiliary information provided in any of the above-mentioned image decoding method embodiments.

[0259] This embodiment constructs a residual calculation sequence based on multiple extended feature groups; then performs residual calculations on each of the extended feature groups based on the residual calculation sequence to obtain image residual data corresponding to each extended feature group. Since the residual calculation sequence is constructed based on multiple extended feature groups, the order of residual calculations can be determined using the residual calculation sequence. This allows for rapid determination of whether an extended feature group has already been calculated. If an extended feature group has already been calculated, more accurate prior information can be generated based on the convolution processing results corresponding to the image reconstruction features of the recovered extended residual group.

[0260] In addition, an embodiment of the present invention also proposes a storage medium, on which an image decoding and / or image encoding program is stored. When the image decoding program is executed by a processor, the steps of the image decoding method described above are implemented; when the image encoding program is executed by a processor, the steps of the image encoding method described above are implemented.

[0261] Refer to FIG12 , which is a structural block diagram of the first embodiment of the image decoding apparatus according to the present invention.

[0262] As shown in FIG12 , the image decoding apparatus proposed in an embodiment of the present invention includes:

[0263] A code stream decoding module 10 is configured to extract image residual data or extended residual data from an image code stream, and obtain a plurality of extended residual groups based on the extracted image residual data or the extended residual data;

[0264] The residual recovery module 20 is used to perform residual recovery on the multiple extended residual groups respectively to obtain image reconstruction features corresponding to each extended residual group;

[0265] A data combination module 30 is used to perform spatial resolution amplification processing on the image reconstruction features corresponding to each extended residual group to obtain reconstructed feature data;

[0266] The image reconstruction module 40 is configured to perform image reconstruction according to the reconstruction feature data to obtain a reconstructed image block.

[0267] This embodiment extracts image residual data or extended residual data from an image bitstream, obtains multiple extended residual groups based on the extracted image residual data or extended residual data; performs residual recovery on each of the multiple extended residual groups to obtain image reconstruction features corresponding to each extended residual group; performs spatial resolution magnification processing on the image reconstruction features corresponding to each extended residual group to obtain reconstructed feature data; and performs image reconstruction based on the reconstructed feature data to obtain a reconstructed image block. Because the obtained extended residual data is residual data that has undergone spatial resolution reduction processing, residual recovery can be performed in groups at low resolution, thereby improving the overall residual recovery computational efficiency and reducing time complexity.

[0268] In a possible implementation of this embodiment, the code stream decoding module 10 is further configured to extract extended residual data from the image code stream; and group the extended residual data based on feature channels corresponding to the extended residual data to obtain multiple extended residual groups.

[0269] In a possible implementation of this embodiment, the bitstream decoding module 10 is further configured to extract image residual data from the image bitstream; perform spatial resolution reduction processing on the image residual data to obtain extended residual data, where the spatial resolution enlargement processing is an inverse process of the spatial resolution reduction processing; and group the extended residual data to obtain multiple extended residual groups.

[0270] In a possible implementation of this embodiment, the code stream decoding module 10 is further used to group data according to the feature channels corresponding to the image residual data to obtain at least one image residual group; and perform spatial resolution reduction processing on the data in the image residual group to obtain extended residual data.

[0271] In a possible implementation of this embodiment, the code stream decoding module 10 is further configured to reduce the spatial size corresponding to the image residual data and / or increase the number of feature channels corresponding to the image residual data to obtain extended residual data.

[0272] In a possible implementation of this embodiment, the code stream decoding module 10 is further used to reduce the spatial size corresponding to the image residual data based on the spatial domain information corresponding to the image residual data, and / or increase the number of feature channels corresponding to the image residual data, to obtain extended residual data; or, reduce the spatial size corresponding to the image residual data based on the frequency domain information corresponding to the image residual data, and / or increase the number of feature channels corresponding to the image residual data, to obtain extended residual data; or, reduce the spatial size corresponding to the image residual data based on a preset convolutional layer, and / or increase the number of feature channels corresponding to the image residual data, to obtain extended residual data.

[0273] In a possible implementation of this embodiment, the residual recovery module 20 is further used to construct a residual recovery sequence based on the multiple extended residual groups; based on the residual recovery sequence, perform residual recovery on the multiple extended residual groups respectively to obtain image reconstruction features corresponding to each extended residual group.

[0274] In a possible implementation of this embodiment, the residual recovery module 20 is further used to traverse the residual recovery sequence to obtain a current extended residual group; obtain auxiliary information output by the auxiliary coding network; construct prior information based on the auxiliary information; perform residual recovery on the current extended residual group based on the prior information to obtain image reconstruction features corresponding to the current extended residual group; and at the end of the traversal, obtain image reconstruction features corresponding to each extended residual group.

[0275] In a possible implementation of this embodiment, the residual recovery module 20 is also used to obtain extended auxiliary information; detect whether the current extended residual group is the first element in the residual recovery sequence; if it is the first element, construct prior information based on the extended auxiliary information; if it is not the first element, splicing the extended auxiliary information with the convolution processing result corresponding to the image reconstruction feature of the restored extended residual group to obtain spliced ​​auxiliary information, and construct prior information based on the spliced ​​auxiliary information.

[0276] In a possible implementation of this embodiment, the residual recovery module 20 is also used to obtain image reconstruction features corresponding to the restored extended residual group; perform feature enhancement on the image reconstruction features to obtain enhanced reconstruction features; and splice the auxiliary information with the convolution processing results corresponding to the enhanced reconstruction features to obtain spliced ​​auxiliary information.

[0277] In a possible implementation of this embodiment, the residual recovery module 20 is also used to obtain the predicted mean, auxiliary information, image residual data and / or residual data variance corresponding to the restored extended residual group; and perform feature enhancement on the image reconstruction features according to the predicted mean, auxiliary information, image residual data and / or residual data variance corresponding to the restored extended residual group to obtain enhanced reconstruction features.

[0278] In a possible implementation of this embodiment, the data combination module 30 is further used to perform feature enhancement on the image reconstruction features corresponding to each extended residual group to obtain enhanced reconstruction features corresponding to each extended residual group; and to amplify the spatial resolution of the enhanced reconstruction features corresponding to each extended residual group to obtain reconstructed feature data.

[0279] In a possible implementation of this embodiment, the image reconstruction module 40 is further used to perform synthetic transformation processing on the reconstructed feature data through a pre-constructed synthetic transformation network to achieve the image reconstruction and obtain the reconstructed image block, wherein the synthetic transformation network is a network constructed based on deep learning or a neural network.

[0280] In a possible implementation of this embodiment, the code stream decoding module 10 is further configured to evenly group the extended residual data according to the feature channels corresponding to the extended residual data.

[0281] 13 , which is a block diagram showing the structure of the image encoding apparatus according to the first embodiment of the present invention.

[0282] As shown in FIG13 , the image encoding apparatus proposed in an embodiment of the present invention includes:

[0283] The feature extraction module 100 is used to reduce the spatial resolution of the image features corresponding to the image to be encoded to obtain extended image features;

[0284] A data grouping module 200 is configured to group the extended image features to obtain a plurality of extended feature groups;

[0285] The residual calculation module 300 is used to perform residual calculation on the multiple extended feature groups respectively to obtain image residual data corresponding to each extended feature group;

[0286] The code stream generating module 400 is configured to generate an image code stream according to the image residual data, and send the image code stream to an image decoding end.

[0287] This embodiment reduces the spatial resolution of image features corresponding to the image to be encoded to obtain extended image features; groups the extended image features to obtain multiple extended feature groups; performs residual calculation on each of the multiple extended feature groups to obtain image residual data corresponding to each extended feature group; generates an image code stream based on the image residual data, and transmits the image code stream to the image decoding end. Because the spatial resolution of the acquired image features of the image to be encoded is reduced and then grouped into multiple extended feature groups, residual calculation can be performed on the entire group at a low resolution, thereby improving the overall residual calculation efficiency and reducing the time complexity.

[0288] In a possible implementation of this embodiment, the feature extraction module 100 is further configured to obtain image features corresponding to the image to be encoded; and perform spatial resolution reduction processing on the data in the image features to obtain extended image features.

[0289] In a possible implementation of this embodiment, the feature extraction module 100 is further used to

[0290] The spatial size corresponding to the image feature of the image to be encoded is reduced, and / or the number of feature channels corresponding to the image feature is increased, so as to obtain the extended image feature.

[0291] In a possible implementation of this embodiment, the feature extraction module 100 is further used to reduce the spatial size corresponding to the image feature of the image to be encoded based on the spatial domain information corresponding to the image feature of the image to be encoded, and / or increase the number of feature channels corresponding to the image feature to obtain an extended image feature; or, to reduce the spatial size corresponding to the image feature based on the frequency domain information corresponding to the image feature of the image to be encoded, and / or increase the number of feature channels corresponding to the image feature to obtain an extended image feature; or, to reduce the spatial size corresponding to the image feature based on a preset convolutional layer, and / or increase the number of feature channels corresponding to the image feature to obtain an extended image feature.

[0292] In a possible implementation of this embodiment, the residual calculation module 300 is further used to construct a residual calculation sequence based on the multiple extended feature groups; based on the residual calculation sequence, perform residual calculations on the multiple extended feature groups respectively to obtain image residual data corresponding to each extended feature group.

[0293] In a possible implementation of this embodiment, the residual calculation module 300 is further used to traverse the residual calculation sequence to obtain the current extended feature group; obtain auxiliary information output by the auxiliary coding network; construct prior information based on the auxiliary information; perform residual calculation on the current extended feature group based on the prior information to obtain image residual data corresponding to the current extended feature group; and at the end of the traversal, obtain image residual data corresponding to each extended feature group.

[0294] In a possible implementation of this embodiment, the data grouping module 200 is further configured to group the extended image features based on feature channels corresponding to the extended feature data to obtain a plurality of extended feature groups.

[0295] In one possible implementation of this embodiment, the code stream generation module 400 is further configured to perform spatial resolution magnification processing on the image residual features corresponding to each extended feature group to obtain image residual data corresponding to the image to be encoded, where the spatial resolution magnification processing is the inverse process of the spatial resolution reduction processing; generate an image code stream based on the image residual data corresponding to the image to be encoded, and send the image code stream to the image decoding end.

[0296] It should be understood that the above is only an example and does not constitute any limitation to the technical solution of the present invention. In specific applications, those skilled in the art can make settings as needed, and the present invention does not impose any limitation on this.

[0297] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of the present invention. In practical applications, technicians in this field can select part or all of it according to actual needs to achieve the purpose of the embodiment scheme, and no limitation is made here.

[0298] In addition, for technical details not fully described in this embodiment, reference may be made to the image decoding method or image encoding method provided in any embodiment of the present invention, and will not be repeated here.

[0299] In addition, it should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or system comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or system. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or system comprising the element.

[0300] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.

[0301] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, or of course by hardware, but in many cases the former is a better embodiment. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as a read-only memory (ROM) / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0302] The above are only preferred embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention description and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. An image decoding method, It is characterized in that The image decoding method comprises: Extracting image residual data or extended residual data from an image code stream, and obtaining a plurality of extended residual groups based on the extracted image residual data or the extended residual data; Performing residual recovery on the multiple extended residual groups respectively to obtain image reconstruction features corresponding to each extended residual group; Amplifying the spatial resolution of the image reconstruction features corresponding to each extended residual group to obtain reconstruction feature data; Image reconstruction is performed according to the reconstruction feature data to obtain a reconstructed image block.

2. The image decoding method according to claim 1, It is characterized in that The extracting of image residual data or extended residual data from the image code stream, and obtaining a plurality of extended residual groups based on the extracted image residual data or the extended residual data, comprises: Extracting the image residual data from the image code stream; Performing spatial domain resolution reduction processing on the image residual data to obtain the extended residual data, wherein the spatial domain resolution enlargement processing is the inverse process of the spatial domain resolution reduction processing; The extended residual data are grouped to obtain a plurality of extended residual groups.

3. The image decoding method according to claim 2, It is characterized in that The step of reducing the spatial resolution of the image residual data to obtain the extended residual data includes: The spatial size corresponding to the image residual data is reduced, and / or the number of feature channels corresponding to the image residual data is increased to obtain the extended residual data.

4. The image decoding method according to claim 3, It is characterized in that The reducing the spatial size corresponding to the image residual data and / or increasing the number of feature channels corresponding to the image residual data to obtain the extended residual data includes: The spatial size corresponding to the image residual data is reduced according to the spatial domain information corresponding to the image residual data, and / or the number of feature channels corresponding to the image residual data is increased to obtain the extended residual data.

5. The image decoding method according to claim 1, It is characterized in that The performing residual recovery on the multiple extended residual groups respectively to obtain image reconstruction features corresponding to each extended residual group includes: constructing a residual recovery sequence according to the multiple extended residual groups; Based on the residual recovery sequence, residual recovery is performed on the multiple extended residual groups respectively to obtain image reconstruction features corresponding to each extended residual group.

6. The image decoding method according to claim 5, It is characterized in that The step of performing residual recovery on the multiple extended residual groups based on the residual recovery sequence to obtain image reconstruction features corresponding to each extended residual group includes: Traversing the residual recovery sequence to obtain a current extended residual group; Obtain auxiliary information output by the auxiliary encoding network; constructing prior information based on the auxiliary information; Performing residual recovery on the current extended residual group based on the prior information to obtain image reconstruction features corresponding to the current extended residual group; At the end of the traversal, the image reconstruction features corresponding to each extended residual group are obtained.

7. The image decoding method according to claim 6, It is characterized in that The constructing the prior information according to the auxiliary information comprises: Get extended auxiliary information; Detecting whether the current extended residual group is the first element in the residual recovery sequence; If it is the first element, constructing the prior information according to the extended auxiliary information; If it is not the first element, the extended auxiliary information is spliced ​​with the convolution processing result corresponding to the image reconstruction feature of the restored extended residual group to obtain spliced ​​auxiliary information, and prior information is constructed according to the spliced ​​auxiliary information.

8. The image decoding method according to claim 1, It is characterized in that The step of performing image reconstruction according to the reconstruction feature data to obtain a reconstructed image block comprises: The reconstructed feature data is subjected to synthetic transformation processing by a pre-constructed synthetic transformation network to realize the image reconstruction and obtain the reconstructed image block, wherein the synthetic transformation network is a network constructed based on deep learning or a neural network.

9. The image decoding method according to claim 2, It is characterized in that The step of grouping the extended residual data to obtain a plurality of extended residual groups includes: The extended residual data are evenly grouped according to the feature channels corresponding to the extended residual data.

10. A method for encoding an image, It is characterized in that The image encoding method comprises: Performing spatial domain resolution reduction processing on image features corresponding to the image to be encoded to obtain extended image features; Grouping the extended image features to obtain a plurality of extended feature groups; Performing residual calculations on the multiple extended feature groups respectively to obtain image residual data corresponding to each extended feature group; An image code stream is generated according to the image residual data, and the image code stream is sent to an image decoding end.

11. An image decoding device, It is characterized in that The image decoding device comprises: A code stream decoding module, used to extract image residual data or extended residual data from the image code stream, and obtain a plurality of extended residual groups based on the extracted image residual data or the extended residual data; A residual recovery module, used to perform residual recovery on the multiple extended residual groups respectively to obtain image reconstruction features corresponding to each extended residual group; A data combination module is used to enlarge the spatial resolution of the image reconstruction features corresponding to each extended residual group to obtain reconstruction feature data; The image reconstruction module is used to perform image reconstruction according to the reconstruction feature data to obtain a reconstructed image block.

12. The image decoding device according to claim 11, It is characterized in that The code stream decoding module is further used to extract the image residual data from the image code stream; perform spatial resolution reduction processing on the image residual data to obtain the extended residual data, wherein the spatial resolution enlargement processing is the inverse process of the spatial resolution reduction processing; The extended residual data are grouped to obtain a plurality of extended residual groups.

13. The image decoding device according to claim 12, It is characterized in that The code stream decoding module is further used to reduce the spatial size corresponding to the image residual data and / or increase the number of feature channels corresponding to the image residual data to obtain the extended residual data.

14. The image decoding device according to claim 13, It is characterized in that The code stream decoding module is also used to reduce the spatial size corresponding to the image residual data according to the spatial domain information corresponding to the image residual data, and / or increase the number of feature channels corresponding to the image residual data to obtain the extended residual data.

15. The image decoding device according to claim 11, It is characterized in that The code stream decoding module is further used to construct a residual recovery sequence according to the multiple extended residual groups; based on the residual recovery sequence, perform residual recovery on the multiple extended residual groups respectively to obtain image reconstruction features corresponding to each extended residual group.

16. The image decoding device according to claim 15, It is characterized in that The residual recovery module is also used to traverse the residual recovery sequence to obtain the current extended residual group; obtain auxiliary information output by the auxiliary coding network; construct prior information based on the auxiliary information; perform residual recovery on the current extended residual group based on the prior information to obtain image reconstruction features corresponding to the current extended residual group; at the end of the traversal, obtain image reconstruction features corresponding to each extended residual group.

17. The image decoding device according to claim 16, It is characterized in that The residual recovery module is also used to obtain extended auxiliary information; detect whether the current extended residual group is the first element in the residual recovery sequence; if it is the first element, construct prior information based on the extended auxiliary information; if it is not the first element, splice the extended auxiliary information with the convolution processing result corresponding to the image reconstruction feature of the restored extended residual group to obtain spliced ​​auxiliary information, and construct prior information based on the spliced ​​auxiliary information.

18. The image decoding device according to claim 11, It is characterized in that The image reconstruction module is also used to perform synthetic transformation processing on the reconstructed feature data through a pre-constructed synthetic transformation network to achieve the image reconstruction and obtain the reconstructed image block, wherein the synthetic transformation network is a network constructed based on deep learning or a neural network.

19. The image decoding device according to claim 12, It is characterized in that The code stream decoding module is further used to evenly group the extended residual data according to the feature channels corresponding to the extended residual data.

20. An image encoding device, It is characterized in that The image encoding device comprises: A feature extraction module is used to reduce the spatial resolution of the image features corresponding to the image to be encoded to obtain extended image features; A data grouping module, used for grouping the extended image features to obtain a plurality of extended feature groups; A residual calculation module, used to perform residual calculations on the multiple extended feature groups respectively to obtain image residual data corresponding to each extended feature group; The code stream generation module is used to generate an image code stream according to the image residual data, and send the image code stream to the image decoding end.

21. A decoding device, It is characterized in that The decoding device comprises: a processor, a memory, and an image decoding program stored in the memory and executable on the processor, wherein the image decoding program implements the steps of the image decoding method according to any one of claims 1 to 9 when executed by the processor.

22. A coding device, It is characterized in that The encoding device includes: a processor, a memory, and an image decoding program and / or an image encoding program stored in the memory and executable on the processor. When the image decoding program is executed by the processor, the steps of the image decoding method according to any one of claims 1 to 9 are implemented. When the image encoding program is executed by the processor, the steps of the image encoding method according to claim 10 are implemented.

23. A storage medium, It is characterized in that The storage medium stores an image decoding program and / or an image encoding program. When the image decoding program is executed, the steps of the image decoding method according to any one of claims 1 to 9 are implemented. When the image encoding program is executed, the steps of the image encoding method according to claim 10 are implemented.

24. A computer program, It is characterized in that The computer program is configured to, when executed by a processor having a memory, implement the steps of the image decoding method according to any one of claims 1 to 9, or implement the steps of the image encoding method according to claim 10.

25. A computer program product, It is characterized in that The computer program comprises computer program instructions, which are configured to, when executed by a processor having a memory, implement the steps of the image decoding method according to any one of claims 1 to 9, or implement the steps of the image encoding method according to claim 10.

Citation Information

Patent Citations

  • Channel extension method based on convolutional neural network

    CN110619387A

  • Image compression method and device and image decompression method and device

    CN114501011A

  • Coarse-to-fine depth video coding method with hyper-priori guidance mode prediction

    CN115150628A

  • Image compression method and apparatus

    US20220286696A1