WO2023159883A1 - 图像处理方法及装置、电子设备、存储介质、计算机程序和计算机程序产品 - Google Patents
图像处理方法及装置、电子设备、存储介质、计算机程序和计算机程序产品 Download PDFInfo
- Publication number
- WO2023159883A1 WO2023159883A1 PCT/CN2022/110266 CN2022110266W WO2023159883A1 WO 2023159883 A1 WO2023159883 A1 WO 2023159883A1 CN 2022110266 W CN2022110266 W CN 2022110266W WO 2023159883 A1 WO2023159883 A1 WO 2023159883A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- component
- dct coefficient
- target
- row
- information corresponding
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/60—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
- H04N19/625—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding using discrete cosine transform [DCT]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/134—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
- H04N19/146—Data rate or code amount at the encoder output
- H04N19/149—Data rate or code amount at the encoder output by estimating the code amount by means of a model, e.g. mathematical model or statistical model
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/85—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression
- H04N19/88—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression involving rearrangement of data among different coding units, e.g. shuffling, interleaving, scrambling or permutation of pixel data or permutation of transform coefficient data among different blocks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/90—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
- H04N19/91—Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
Definitions
- the present disclosure relates to but not limited to the field of computer technology, and in particular relates to an image processing method and device, electronic equipment, storage media, computer programs and computer program products.
- JPEG Joint Photographic Experts Group
- Embodiments of the present disclosure provide an image processing method and device, electronic equipment, storage media, computer programs and computer program products.
- an image processing method including: extracting initial discrete cosine transform DCT coefficients of three color components corresponding to a Joint Photographic Experts Group JPEG image to be compressed; The initial DCT coefficients are arranged according to different frequencies to obtain the target DCT coefficients of the three color components; entropy encoding is performed on the target DCT coefficients of the three color components to obtain the target compressed data corresponding to the JPEG image to be compressed.
- an image processing device including: a DCT coefficient extraction part configured to extract initial transformed DCT coefficients of three color components corresponding to a JPEG image to be compressed; a DCT coefficient rearrangement part configured to To respectively arrange the initial DCT coefficients of the three color components according to different frequencies to obtain the target DCT coefficients of the three color components; the entropy encoding part is configured to perform entropy on the target DCT coefficients of the three color components Encoding to obtain the target compressed data corresponding to the JPEG image to be compressed.
- an electronic device including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to call the instructions stored in the memory to Execute the method above.
- a computer-readable storage medium on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the foregoing method is implemented.
- a computer program includes computer readable codes, and when the computer readable codes run on a device, the processor in the device implements the above method when executed.
- a computer program product includes a computer program or an instruction, and when the computer program or instruction is run on an electronic device, the electronic device is caused to execute implement the above method.
- the initial discrete cosine transform (Discrete Cosine Transform, DCT) coefficients of the three color components corresponding to the JPEG image to be compressed are extracted, and the initial DCT coefficients of the three color components are respectively arranged according to the frequency to obtain three
- the target DCT coefficients of the color components are entropy encoded for the target DCT coefficients of the three color components to obtain the target compressed data corresponding to the JPEG image to be compressed, so as to realize end-to-end image compression of the JPEG image to be compressed, thereby effectively eliminating the
- the redundancy of the JPEG image in the spatial dimension and the channel dimension reduces the data size of the JPEG image to be compressed and improves the compression rate of the JPEG image to be compressed.
- FIG. 1 shows a flowchart of an image processing method according to an embodiment of the present disclosure
- Fig. 2 shows a schematic diagram of initial DCT coefficients according to an embodiment of the present disclosure
- Fig. 3 shows a schematic diagram of arranging the initial DCT coefficients shown in Fig. 2 according to different frequencies according to an embodiment of the present disclosure
- Fig. 4 shows a schematic diagram of an image codec neural network according to an embodiment of the present disclosure
- FIG. 5 shows a schematic diagram of determining a DCT coefficient matrix corresponding to a Y component according to an embodiment of the present disclosure
- FIG. 6 shows a schematic diagram of an MLCC model according to an embodiment of the disclosure
- Fig. 7 shows a block diagram of an image processing device according to an embodiment of the present disclosure
- Fig. 8 shows a block diagram of an electronic device according to an embodiment of the present disclosure.
- JPEG JPEG standard is currently a widely supported and used image compression standard. Widely present in data centers, cloud storage and cloud file system centers. According to the survey, JPEG accounts for 35% of cloud storage file systems such as Dropbox. However, due to the limitations of JPEG technology itself, it is difficult to fully eliminate data redundancy by relying on hand-designed compression modules.
- JPEG has been surpassed by a large number of image compression technologies, such as JPEG2000, BPG, VVC/H.266 intra-frame coding, and a large number of image compression technologies based on deep learning.
- JPEG2000, BPG, VVC/H.266 intra-frame coding has achieved significantly better results than JPEG in terms of compression ratio, these compression techniques are still not widely supported and used.
- these compression techniques are significantly different from JPEG, so they cannot handle the huge number of JPEG files that already exist.
- Some compression technologies are used in related technologies to introduce lossless compression on the basis of JPEG, so that the volume of JPEG files can be compressed while ensuring that the original JPEG files are lossless, thereby saving massive storage and bandwidth. resource.
- These compression techniques include Lepton, Packjpg, MozJPEG, JPEGrescan, JPEG XL, Cmix, etc. These compression techniques usually need to manually design predictors and context models through feature engineering, resulting in low compression rates of these compression techniques.
- the image processing method provided by the embodiment of the present disclosure can be applied to recompressing the existing massive JPEG files, extracting the initial DCT coefficients of the three color components corresponding to the JPEG image to be compressed, and respectively calculating the initial DCT coefficients of the three color components Arrange according to different frequencies to obtain the target DCT coefficients of the three color components, perform entropy encoding on the target DCT coefficients of the three color components, and obtain the target compressed data corresponding to the JPEG image to be compressed, so as to realize the end-to-end treatment of the compressed JPEG image Perform image compression to effectively eliminate the redundancy of the JPEG image to be compressed in the spatial and channel dimensions, reduce the data size of the JPEG image to be compressed, and increase the compression rate of the JPEG image to be compressed
- Fig. 1 shows a flowchart of an image processing method according to an embodiment of the present disclosure.
- the image processing method can be performed by electronic devices such as terminal equipment or servers, and the terminal equipment can be user equipment (User Equipment, UE), mobile equipment, user terminal, terminal, cellular phone, cordless phone, personal digital assistant (Personal Digital Assistant, PDA), handheld device, computing device, vehicle-mounted device, wearable device, etc.
- the image processing method can be implemented by calling the computer-readable instructions stored in the memory by the processor.
- the image processing method may be performed by a server.
- the image processing method includes steps S11 to S13:
- the initial DCT coefficients of the three color components are extracted from the code stream of the JPEG image to be compressed to perform a subsequent recompression process.
- the initial DCT coefficients of the three color components are respectively arranged according to different frequencies to obtain target DCT coefficients of the three color components.
- Fig. 2 shows a schematic diagram of initial DCT coefficients according to an embodiment of the present disclosure. What is shown in FIG. 2 may be the initial DCT coefficient of any color component. As shown in FIG. 2 , the size of the initial DCT coefficients is 16 ⁇ 16 ⁇ 1, which includes 4 DCT blocks of 8 ⁇ 8 ⁇ 1 size, and each DCT block includes 64 coefficients of different frequencies. Wherein, coefficients with the same relative position in different DCT blocks have the same frequency, and coefficients with different relative positions have different frequencies. As shown in Fig. 2, each DCT block includes 0 to 63 different positions. The frequency of coefficients at position 0 in each DCT block is the same, the frequency of coefficients at position 1 is the same, and so on.
- the target DCT coefficients can be obtained.
- the process of arranging the initial DCT coefficients according to different frequencies to obtain the target DCT coefficients will be described in detail later in combination with possible implementations of the present disclosure, and will not be repeated here.
- entropy encoding is performed on the target DCT coefficients of the three color components to obtain target compressed data corresponding to the JPEG image to be compressed.
- the embodiments of the present disclosure perform entropy encoding on the target DCT coefficients of the three color components, effectively eliminating the redundancy of the JPEG image to be compressed in the spatial dimension and the channel dimension, so as to realize end-to-end image compression of the JPEG image to be compressed, and obtain the target compression data.
- the process of performing entropy encoding on the target DCT coefficients of each color component will be described in detail later in combination with possible implementations of the present disclosure, and will not be repeated here.
- the initial DCT coefficients of the three color components corresponding to the JPEG image to be compressed are extracted, and the initial DCT coefficients of the three color components are respectively arranged according to different frequencies to obtain the target DCT coefficients of the three color components.
- the target DCT coefficients of the three color components are entropy encoded to obtain the target compressed data corresponding to the JPEG image to be compressed, so as to realize end-to-end image compression of the JPEG image to be compressed, thereby effectively eliminating the gap between the spatial dimension and the channel dimension of the JPEG image to be compressed. redundancy, reduce the data size of the JPEG image to be compressed, and increase the compression rate of the JPEG image to be compressed.
- the initial DCT coefficients of the three color components are respectively arranged according to different frequencies to obtain the target DCT coefficients of the three color components, including: the initial DCT coefficients for any color component, from the initial DCT Among the coefficients, the coefficients of the same frequency constitute the spatial dimension, and the coefficients of different frequencies constitute the channel dimension to obtain multi-channel DCT sub-coefficients; perform zigzag scanning (ie, zigzag scanning) on the initial DCT coefficients to determine the zigzag sorting; based on zigzag Sorting is to arrange the multi-channel DCT sub-coefficients in the channel dimension to obtain the target DCT coefficients corresponding to the initial DCT coefficients.
- zigzag scanning ie, zigzag scanning
- the initial DCT coefficients of the color component are preprocessed, and the zigzag sorting is performed in the channel dimension according to different frequencies, so that the obtained target DCT coefficients of the color component have certain values in both the space dimension and the channel dimension.
- Structural redundant information the subsequent encoding process can make full use of these redundant information, and effectively realize the entropy encoding of the target DCT coefficient of the color component in the spatial dimension and channel dimension.
- Fig. 3 shows a schematic diagram of arranging the initial DCT coefficients shown in Fig. 2 according to different frequencies according to an embodiment of the present disclosure.
- the coefficients of the same frequency in the initial DCT coefficients are extracted to form the spatial dimension, and the coefficients of different frequencies form the channel dimension, and the DCT of 64 channels is obtained
- the size of the DCT sub-coefficients of each channel is 2 ⁇ 2 in the spatial dimension.
- the zigzag sorting is to reorder the positions in different DCT blocks.
- the zigzag order is 0, 1, 8, 16, 9, 2, 3, ..., 61, 54, 47, 55, 62, 63.
- the DCT sub-coefficients of 64 channels are reordered in the channel dimension to obtain the target DCT coefficients in FIG. 3 , where the size of the target DCT coefficients is 2 ⁇ 2 ⁇ 64.
- the target DCT coefficients of the three color components are entropy encoded to obtain the target compressed data corresponding to the JPEG image to be compressed, including: using the image codec neural network to encode the target DCT coefficients of the three color components The coefficients are entropy coded to obtain the target compressed data.
- entropy encoding is performed on the target DCT coefficients of the three color components to achieve end-to-end image compression of the JPEG image to be compressed. Therefore, the target compressed data corresponding to the JPEG image to be compressed is directly output, and the compression rate of the JPEG image to be compressed is effectively improved.
- the three color components include: a luminance component Y and two chrominance components Cb and Cr.
- the Y component contains richer information in the JPEG image to be compressed.
- the image codec neural network includes a multi-level cross-channel autoregressive entropy coding model (Multi-Level Cross-Channel Entropy Model, MLCC), and the target compressed data includes coding information corresponding to the Y component; Entropy coding the target DCT coefficients of the three color components using the image encoding and decoding neural network to obtain the target compressed data, including: using the MLCC model to perform multi-level channel autoregressive entropy on the Y component of the three color components in the channel dimension Encoding to obtain the encoding information corresponding to the Y component.
- MLCC Multi-Level Cross-Channel Entropy Model
- the MLCC model is used to perform multi-level channel autoregressive entropy coding on the Y component in the channel dimension to effectively reduce the internal data redundancy of the Y component and realize the Y component.
- the target DCT coefficients are entropy coded to reduce the data size of the Y component.
- FIG. 4 shows a schematic diagram of an image compression neural network according to an embodiment of the present disclosure.
- the image codec neural network includes a cross-color entropy coding model 401 (Cross-color Entropy Model) and an MLCC model 402 .
- the image processing method before performing entropy coding on the target DCT coefficients of the three color components, the image processing method further includes: fusing the target DCT coefficients of the three color components to obtain the fused DCT coefficients; based on After fusing the DCT coefficients, the shared super prior information is determined; the shared super prior information is split to obtain the coding prior information corresponding to each color component.
- the target DCT coefficients of the three color components are fused to obtain the fused DCT coefficients, so that the correlation between different color components can be used to determine the shared super prior information based on the fused DCT coefficients, and then through the shared super prior information By splitting the information, the encoding prior information corresponding to each color component can be obtained for subsequent encoding processing.
- the cross-color entropy coding model includes a coefficient fusion module 4011 (Coefficient Fusion Model, CFM), a super encoder 4012 (Hyper Encoder), a quantization module 4013 (Q), a super Decoder 4014 (Hyper Decoder), coefficient prior splitting module 4015 (Coefficient Prior Split Model, CPSM), entropy parameter prediction module 4016 (Entropy Parameters).
- the coefficient fusion module 4011 uses the coefficient fusion module 4011 to fuse the target DCT coefficients of the three color components of Y, Cb, and Cr to obtain the fused DCT coefficients. Since the JPEG image to be compressed may have different resolution formats such as YCbCr 4:4:4, YCbCr 4:1:1, and YCbCr 4:2:0, the JPEG image to be compressed is not the full resolution of YCbCr 4:4:4 In the case of the format, in order to better integrate the three color components of Y, Cb, and Cr, it is necessary to perform resolution alignment on the three color components of Y, Cb, and Cr before fusion.
- the JPEG image to be compressed is a resolution format of YCbCr 4:2:0
- the Cb component and the Cr component have the same resolution
- the resolution of the Y component is Cb component, Cr component
- the target DCT coefficient of the Y component is downsampled by 2 times, so that the target DCT coefficient of the Y component after downsampling is similar to the target DCT coefficient of the Cb component and the target DCT coefficient of the Cr component.
- the target DCT coefficients of the Y component, the target DCT coefficients of the Cb component, and the target DCT coefficients of the Cr component after downsampling are fused to obtain fused DCT coefficients.
- the fused DCT coefficients output by the coefficient fusion module 4011 are input into the super encoder 4012 for super-priori prediction, and the initial super-prior information z is obtained, and then the super encoder 4012 The output initial super-prior information z is input to the quantization module 4013 for quantization, so as to effectively obtain the shared super-prior information
- the shared super prior information output by the quantization module 4013 After the super decoder 4014 and the coefficient prior splitting module 4015, the coding prior information corresponding to the three color components is effectively split: the coding prior information Cr prior corresponding to the Cr component, and the coding prior information Cb corresponding to the Cb component prior , the encoding prior information Y prior corresponding to the Y component.
- the target compressed data includes: super prior encoding information, encoding information corresponding to the Cr component, encoding information corresponding to the Cb component, encoding information corresponding to the Y component; target DCT coefficients for the three color components Perform entropy coding to obtain the target compressed data corresponding to the JPEG image to be compressed, including: entropy coding the shared super prior information to obtain super prior coding information; based on the coding prior information corresponding to each color component, the Cr component
- the target DCT coefficients of the Cb component, the target DCT coefficients of the Cb component, and the target DCT coefficients of the Y component are entropy coded to obtain the coding information corresponding to the Cr component, the coding information corresponding to the Cb component, and the coding information corresponding to the Y component.
- the entropy coding is arithmetic coding.
- Using arithmetic coding in entropy coding to compress the JPEG image to be compressed can effectively improve the compression effect.
- both the cross-color entropy coding model 401 and the MLCC model 402 shown in FIG. 4 include an arithmetic encoder 403 (Arithmetic Encoder, AE) for arithmetic coding.
- AE Arimetic Encoder
- the shared hyper-prior information can be further Entropy coding is performed, and the shared super prior coding information obtained after coding is stored in the target compressed data as additional information.
- the cross-color entropy coding model also includes a factorized entropy module 4017 (Factorized Entropy), using the factorized entropy module 4017 and the arithmetic encoder 403 (AE), the shared super Prior Information Arithmetic coding is performed to obtain shared super prior coding information.
- a factorized entropy module 4017 Factorized Entropy
- AE arithmetic encoder 403
- entropy encoding is performed on the target DCT coefficient of the Cr component, the target DCT coefficient of the Cb component, and the target DCT coefficient of the Y component in sequence to obtain the Cr component
- the corresponding encoding information, the encoding information corresponding to the Cb component, and the encoding information corresponding to the Y component include: based on the encoding prior information corresponding to the Cr component, entropy encoding is performed on the target DCT coefficient of the Cr component to obtain the encoding information corresponding to the Cr component; Based on the encoding prior information corresponding to the Cb component and the target DCT coefficient of the Cr component, entropy encoding is performed on the target DCT coefficient of the Cb component to obtain the encoding information corresponding to the Cb component; based on the encoding prior information corresponding to the Y component and the target of the Cr component The DCT coefficient and the target DCT coefficient of the Cb component
- the target DCT coefficient of the Cr component is directly entropy encoded; after the entropy encoding of the target DCT coefficient of the Cr component is completed, the encoding prior information corresponding to the Cb component is used to encode
- the target DCT coefficient is used as context information to effectively perform entropy coding on the target DCT coefficient of the Cb component; after the entropy coding of the target DCT coefficient of the Cb component is completed, the target DCT coefficient of the Cr component
- the target DCT coefficients of the , Cr components are used as context information, and the target DCT coefficients of the Y component are effectively entropy encoded, thereby effectively eliminating data redundancy between different color components.
- entropy encoding is performed on the target DCT coefficient of the Cr component to obtain the encoding information corresponding to the Cr component, including: based on the encoding prior information corresponding to the Cr component, Determine the probability mass function (Probability Mass Function, PMF) corresponding to the target DCT coefficient of the Cr component; based on the PMF corresponding to the target DCT coefficient of the Cr component, perform entropy coding on the target DCT coefficient of the Cr component, and obtain the coding information corresponding to the Cr component.
- PMF probability mass function
- the PMF corresponding to the target DCT coefficient of the Cr component is determined, so as to effectively realize the entropy encoding of the target DCT coefficient of the Cr component and reduce the data size of the Cr component.
- the PMF corresponding to the target DCT coefficient of the Cr component is directly determined by using the encoding prior information Cr prior corresponding to the Cr component, and then the arithmetic encoder 403 is used to determine the target DCT coefficient based on the Cr component.
- the PMF corresponding to the DCT coefficient performs arithmetic coding on the target DCT coefficient of the Cr component to obtain coding information corresponding to the Cr component.
- entropy encoding is performed on the target DCT coefficient of the Cb component to obtain the encoding information corresponding to the Cb component, including: based on the Cb component Corresponding coding prior information, the target DCT coefficient of the Cr component, determine the PMF corresponding to the target DCT coefficient of the Cb component; based on the PMF corresponding to the target DCT coefficient of the Cb component, perform entropy encoding on the target DCT coefficient of the Cb component, and obtain the Cb component Corresponding encoding information.
- the target DCT coefficient of the Cr component is used as context information, so that based on the coding prior information corresponding to the Cb component, Cr
- the target DCT coefficient of the component determines the PMF corresponding to the target DCT coefficient of the Cb component, so as to effectively realize the entropy coding of the target DCT coefficient of the Cb component and reduce the data size of the Cb component.
- the cross-color entropy coding model 401 also includes an entropy parameter prediction module 4016 (Entropy Parameters), after entropy coding the target DCT coefficient of the Cr component, the Cr component
- the coding prior information Cb prior corresponding to the target DCT coefficient and Cb component is input to the entropy parameter prediction module 4016, so that the entropy parameter prediction module 4016 can output the PMF corresponding to the target DCT coefficient of the Cb component.
- the arithmetic encoder 403 is used to perform arithmetic coding on the target DCT coefficients of the Cb component based on the PMF corresponding to the target DCT coefficients of the Cb component, to obtain coding information corresponding to the Cb component.
- entropy coding is performed on the target DCT coefficient of the Y component to obtain the coding corresponding to the Y component Information, including: based on the coding prior information corresponding to the Y component, the target DCT coefficient of the Cr component, and the target DCT coefficient of the Cb component, determine the probability distribution parameters corresponding to the Y component; based on the probability distribution parameters corresponding to the Y component, use multi-level channel Auto-regression, entropy encoding is performed on the target DCT coefficient of the Y component to obtain encoding information corresponding to the Y component.
- the target DCT coefficient of the Cr component and the target DCT coefficient of the Cb component are used as context information, In order to determine the probability distribution parameters corresponding to the Y component based on the coding prior information corresponding to the Y component, the target DCT coefficient of the Cr component, and the target DCT coefficient of the Cb component. Since the Y component contains richer information in the JPEG image to be compressed, it can be directly It is not accurate to construct the PMF for entropy coding based on the probability distribution parameters corresponding to the Y component.
- multi-level channel autoregressive is used to effectively reduce the internal data redundancy of the Y component and realize the
- the target DCT coefficients of the Y component are entropy coded to reduce the data size of the Y component.
- the JPEG image to be compressed is a resolution format of YCbCr 4:2:0
- the resolution of the Y component is that of the Cb and Cr components. 2 times, at this time, perform 2 times upsampling processing on the target DCT coefficients of the Cb and Cr components respectively, so that the target DCT coefficients of the Cb and Cr components after upsampling have the same resolution as the target DCT coefficients of the Y component .
- the cross-color entropy coding model 401 also includes an upsampling module 404 (Up), and uses the upsampling module to perform upsampling processing on the target DCT coefficients of the Cb and Cr components respectively, So that the target DCT coefficients of the Cb and Cr components after upsampling have the same resolution as the target DCT coefficients of the Y component.
- Up upsampling module 404
- the entropy parameter prediction module 4016 After fusing the target DCT coefficients of the Cb and Cr components after upsampling, together with the coding prior information Y prior corresponding to the Y component, input the entropy parameter prediction module 4016, so that the entropy parameter prediction module 4016 is used to output the Y component The corresponding probability distribution parameter hyper y .
- the probability distribution parameter hyper y corresponding to the Y component and the target DCT coefficient of the Y component are input into the MLCC model 402, so as to implement entropy encoding on the target DCT coefficient of the Y component by using multi-level channel autoregression, and obtain the coding information corresponding to the Y component .
- the multi-level channel autoregressive is used to perform entropy coding on the target DCT coefficient of the Y component to obtain the coding information corresponding to the Y component, including:
- the target DCT coefficient is converted from the spatial dimension to the channel dimension to obtain the converted DCT coefficient of the Y component; according to the preset matrix form, the converted DCT coefficient of the Y component is disassembled to obtain the DCT coefficient matrix corresponding to the Y component; based on the Y
- the DCT coefficient matrix is entropy encoded by using multi-level channel auto-regression to obtain the encoding information corresponding to the Y component.
- Fig. 5 shows a schematic diagram of determining a DCT coefficient matrix corresponding to a Y component according to an embodiment of the present disclosure.
- the size of the initial DCT coefficient of the Y component is 32 ⁇ 32 ⁇ 1
- the initial DCT of the Y component with a size of 32 ⁇ 32 ⁇ 1 After the coefficients are arranged, the target DCT coefficients of the Y component with a size of 4 ⁇ 4 ⁇ 64 shown in FIG. 5 can be obtained.
- the target DCT coefficients of the Y component are divided into 2 ⁇ 2 partitions in the spatial dimension, and each partition includes 1 to 4 different positions, and then the spatial dimension
- the conversion to the channel dimension 501 (Space-to-depth) obtains the converted DCT coefficient of the Y component, as shown in Figure 5, the size of the converted DCT coefficient of the Y component is 2 ⁇ 2 ⁇ (64 ⁇ 4), namely The transformed DCT coefficients of the Y component are increased from 64 channels to 256 channels in the channel dimension.
- the converted DCT coefficients of the Y component are disassembled to obtain the DCT coefficient matrix corresponding to the Y component, including: according to the preset matrix form, the converted Y component The space dimension of the DCT coefficient is disassembled to obtain multiple rows of the DCT coefficient matrix; the channel dimension is disassembled for each row of the DCT coefficient matrix to obtain multiple columns of each row.
- the converted DCT coefficients of the Y component are disassembled in the space dimension and the channel dimension, so that the rows and columns of the DCT coefficient matrix obtained after the disassembly have certain structural redundant information, so that it can be By utilizing the redundant information, subsequent multi-level channel autoregressive entropy encoding on the DCT coefficient matrix is effectively realized.
- the converted DCT coefficients of the Y component with a size of 2 ⁇ 2 ⁇ (64 ⁇ 4) are disassembled in the spatial dimension 502 (Row Split ), four rows in the DCT coefficient matrix are obtained: r (1) , r (2) , r (3) , r (4) , and each row includes DCT coefficients with a size of 2 ⁇ 2 ⁇ 64.
- n of columns in each row and the number of channels contained in each column are the same, and specific values can be set according to actual conditions, which are not specifically limited in the present disclosure.
- 9 columns in r (1) are obtained: The splitting of r (2) , r (3) , and r (4) in the channel dimension is similar and will not be repeated here.
- the DCT coefficient matrix After dismantling and obtaining the DCT coefficient matrix corresponding to the Y component, based on the probability distribution parameters corresponding to the Y component, the DCT coefficient matrix is subjected to multi-level channel autoregressive entropy coding.
- FIG. 6 shows a schematic diagram of an MLCC model according to an embodiment of the disclosure.
- the MLCC model includes an outer channel module 601 (Outer Channel) and an inner channel module 602 (Inner Channel).
- the external channel module 601 includes a space dimension to channel dimension conversion unit 6011 (Space-to-depth), and a row disassembly unit 6012 (Row Split).
- the space dimension to channel dimension conversion unit 6011 is used to convert the target DCT coefficient of the Y component from the space dimension to the channel dimension to obtain the converted DCT coefficient Y′ of the Y component.
- the row dismantling unit 6012 is used to disassemble the converted DCT coefficient Y' of the Y component in the spatial dimension to obtain four rows in the DCT coefficient matrix: r (1) , r (2) , r (3 ) , r (4) , the internal channel module 602 corresponding to the four row inputs obtained by dismantling performs multi-level channel autoregressive entropy coding.
- the multi-level channel autoregressive is used to perform entropy coding on the DCT coefficient matrix to obtain the coding information corresponding to the Y component, including: based on the probability distribution corresponding to the Y component Parameters, using multi-level channel autoregression, sequentially determine the PMF corresponding to each column in each row of the DCT coefficient matrix; using the PMF corresponding to each column in each row of the DCT coefficient matrix, perform entropy on each row of the DCT coefficient matrix encoding to obtain the encoding information corresponding to each column in each row of the DCT coefficient matrix; wherein, the encoding information corresponding to each column in each row of the DCT coefficient matrix constitutes the encoding information corresponding to the Y component.
- the PMF corresponding to each column in each row of the DCT coefficient matrix is sequentially determined by using multi-level channel auto-regression, including: based on the probability distribution parameters corresponding to the Y component , using multi-level channel auto-regression, sequentially determine the coding prior information corresponding to each row in the DCT coefficient matrix; for the i-th row of the DCT coefficient matrix, based on the coding prior information corresponding to the i-th row, using multi-level channel auto-regression, Determine the PMF corresponding to each column in the i-th row, where i represents the number of rows.
- the multi-level channel autoregressive is used to determine the coding prior information corresponding to each row in the DCT coefficient matrix in turn, and then for any i-th row in the DCT coefficient matrix, it can be based on the i-th row.
- the prior information is encoded, and the multi-level channel autoregressive is used to determine the PMF with high accuracy corresponding to each column in the i-th row, which is used for subsequent entropy encoding of each column in the i-th row.
- the multi-level channel autoregressive is used to sequentially determine the coding prior information corresponding to each row in the DCT coefficient matrix, including: for the first row of the DCT coefficient matrix , based on the probability distribution parameters corresponding to the Y component, determine the coding prior information corresponding to the first row; in the case of i>1, for the i-th row of the DCT coefficient matrix, based on the probability distribution parameters corresponding to the Y component, the DCT coefficient matrix From line 1 to line i-1 of , determine the coding prior information corresponding to line i.
- i>1 means that i is greater than 1.
- any remaining i-th row is based on the previous first row to i-th row
- the -1 row is used as context information to determine its corresponding encoding prior information, so as to realize autoregression in the row direction and improve the accuracy of the encoding prior information corresponding to each row.
- the i-th row in the DCT coefficient matrix After determining the coding prior information corresponding to the i-th row, use the coding prior information corresponding to the i-th row to perform entropy coding on each column in the i-th row. After the entropy coding of all the columns in is completed, the i-th row is used as the context information to determine the coding prior information corresponding to the i+1-th row.
- Fig. 6 use the spatial dimension to channel dimension conversion unit 6011 to convert the probability distribution parameter hyper y corresponding to the Y component from the spatial dimension to the channel dimension, and obtain the converted probability distribution parameter h '.
- the external channel module 601 also includes a parameter module 6013 (Param), which inputs the converted probability distribution parameter h' into the parameter module 6013, and outputs the coding prior information pri (1 ) ; Input the first line r (1) of the DCT coefficient matrix and the coding prior information pri (1) corresponding to the first line into the internal channel module 602, so as to each of the first line r (1) of the DCT coefficient matrix A column is entropy encoded.
- Paraam parameter module 6013
- the converted probability distribution parameter h' and the first row r (1) of the DCT coefficient matrix are combined and input to the parameter module 6013, output The coding prior information pri (2) corresponding to the 2nd line of the DCT coefficient matrix;
- the input parameter module 6013 After entropy coding all the columns in the 2nd row r (2) of the DCT coefficient matrix, the transformed probability distribution parameter h', the 1st row r (1) of the DCT coefficient matrix, the 2nd row of the DCT coefficient matrix After r (2) is merged, the input parameter module 6013 outputs the coding prior information pri (3 ) corresponding to the 3rd row of the DCT coefficient matrix; The empirical information pri (3) is input to the inner channel module 602 to entropy encode each column in the third row r (3) of the DCT coefficient matrix.
- the input parameter module 6013 After entropy coding all the columns in the 3rd row r (3) of the DCT coefficient matrix, the transformed probability distribution parameter h', the 1st row r (1) of the DCT coefficient matrix, the 2nd row of the DCT coefficient matrix After r (2) , the 3rd line r (3) of the DCT coefficient matrix is merged, the input parameter module 6013 outputs the coding prior information pri (4) corresponding to the 4th line of the DCT coefficient matrix; the 4th line of the DCT coefficient matrix r (4) , the encoding prior information pri (4) corresponding to the 4th row are input to the internal channel module 602 to perform entropy encoding on each column in the 4th row r (4) of the DCT coefficient matrix.
- the PMF corresponding to each column in the i-th row is determined by using multi-level channel autoregressive, including: for the i-th row of the DCT coefficient matrix column, based on the coding prior information corresponding to the i-th row, determine the PMF corresponding to the i-th row and the first column; in the case of j>1, for the i-th row and j-column of the DCT coefficient matrix, based on the i-th row corresponding to Encoding prior information, column 1 to column j-1 in row i of the DCT coefficient matrix, and determining a PMF corresponding to row i and column j, where j represents the number of columns.
- any other j-th column is based on the previous 1st
- the column to the j-1th column is used as context information to determine its corresponding PMF, so as to realize auto-regression in the column direction and improve the accuracy of the PMF corresponding to each column in the i-th row.
- the PMF corresponding to row i and column j+1 is determined using row i and column j as context information.
- the internal channel module 602 includes a column disassembly unit 6021 (Column Split), and for the i-th row r (i) of the DCT coefficient matrix, the column disassembly unit 6021 is used, The i-th row r (i) of the DCT coefficient matrix is disassembled in the channel dimension to obtain n columns in the i-th row r (i) of the DCT coefficient matrix:
- the encoding prior information pri (i ) corresponding to the i-th row r (i ) and the first column in the i-th row r (i) Input the parameter module 6013 after merging, and output the second column in the i-th row r (i)
- the corresponding PMF which in turn is based on column 2 in row i r (i) Corresponding PMF, for column 2 in row i r (i) Do entropy encoding.
- the PMF corresponding to each column in each row of the DCT coefficient matrix is used to perform entropy encoding on each column in each row of the DCT coefficient matrix to obtain the encoding corresponding to each column in each row of the DCT coefficient matrix Information, including: in the case of i ⁇ 1 and j ⁇ 1, entropy encoding is performed on row i and column j based on the PMF corresponding to row i and column j of the DCT coefficient matrix, Obtain the encoding information corresponding to row i and column j.
- i ⁇ 1 and j ⁇ 1 means that i is greater than and equal to 1 and j is greater than and equal to 1.
- entropy coding is performed on the i-th row and j-column to obtain the coding information corresponding to the i-th row and j-column, thereby effectively reducing the data size of the i-th row and j-column .
- the shared super prior information can be obtained by performing entropy decoding on the shared super prior coding information Furthermore, by sharing super-prior information By splitting, the coding prior information corresponding to each color component can be obtained in the decoding process, which is used for subsequent decoding processing on the coding information of each color component.
- the cross-color entropy coding model 401 also includes an arithmetic decoder 405 (Arithmetic Decoder, AD).
- AD Arimetic Decoder
- the factor entropy module 4017 and the arithmetic decoder 405 to perform entropy decoding on the shared super-prior encoding information, and obtain the shared super-prior information
- the super decoder 4014 and the coefficient prior splitting module 4015 are used to effectively split the coding process to obtain the coding prior information Cr prior for entropy decoding the coding information corresponding to the Cr component, and for the Cb component
- the process of entropy decoding the coding information corresponding to the Cr component by using the coding prior information Cr prior corresponding to the Cr component is the inverse of entropy coding the target DCT coefficient of the Cr component using the coding prior information Cr prior corresponding to the Cr component Process; after entropy decoding the coding information corresponding to the Cr component to obtain the target DCT coefficient of the Cr component, use the coding prior information Cb prior corresponding to the Cb component and the target DCT coefficient of the Cr component to perform entropy on the coding information corresponding to the Cb component
- the decoding process is the inverse process of entropy encoding the target DCT coefficients of the Cb component by using the coding prior information Cb prior corresponding to the Cb component and the target DCT coefficient of the Cr component; After entropy decoding obtains the target DCT coefficients of the Cr component and the Cb component, use the coding prior information Y prior corresponding to the Y component, the target DCT coefficient of the Cr component, and
- the image processing method further includes: performing network training on the initial neural network to obtain a target image encoding and decoding neural network.
- the network structure of the initial neural network is the same as that of the target image encoding and decoding neural network, and the network parameters of the cross-color entropy coding model and the MLCC model in the target image encoding and decoding neural network are obtained by performing network training on the initial neural network.
- the specific process of network training may adopt the network training process in related technologies, which is not specifically limited in the embodiments of the present disclosure.
- the present disclosure also provides image processing devices, electronic equipment, computer-readable storage media, computer programs and computer program products, all of which can be used to implement any image processing method provided in the present disclosure, corresponding technical solutions and descriptions and see The corresponding records in the method part will not be repeated here.
- Fig. 7 shows a block diagram of an image processing device according to an embodiment of the present disclosure. As shown in Figure 7, the device 70 includes:
- the DCT coefficient extraction part 71 is configured to extract the initial transformed DCT coefficients of the three color components corresponding to the JPEG image to be compressed;
- the DCT coefficient rearrangement part 72 is configured to respectively arrange the initial DCT coefficients of the three color components according to different frequencies to obtain target DCT coefficients of the three color components;
- the entropy encoding part 73 is configured to perform entropy encoding on the target DCT coefficients of the three color components to obtain target compressed data corresponding to the JPEG image to be compressed.
- the DCT coefficient rearrangement part 72 is specifically configured as:
- the coefficients of the same frequency are formed into the spatial dimension, and the coefficients of different frequencies are formed into the channel dimension to obtain multi-channel DCT sub-coefficients;
- the multi-channel DCT sub-coefficients are arranged in the channel dimension to obtain the target DCT coefficients corresponding to the initial DCT coefficients.
- the three color components include: the luminance component Y and the chrominance components Cb and Cr;
- the target compressed data includes: super-prior encoding information, encoding information corresponding to the Cr component, and encoding information corresponding to the Cb component , the coding information corresponding to the Y component;
- Entropy coding part 73 including:
- the super-prior information coding subpart is configured to perform entropy coding on the shared super-prior information to obtain super-prior encoding information;
- the color component encoding subpart is configured to perform entropy encoding on the target DCT coefficient of the Cr component, the target DCT coefficient of the Cb component, and the target DCT coefficient of the Y component in turn based on the encoding prior information corresponding to each color component, and obtain the corresponding The coding information corresponding to the Cb component, the coding information corresponding to the Y component.
- the device 70 further includes: a coefficient fusion part configured to fuse the target DCT coefficients of the three color components before performing entropy coding on the target DCT coefficients of the three color components, to obtain the fused DCT coefficient;
- the shared super prior information determining part is configured to determine the shared super prior information based on the fused DCT coefficients
- the encoding prior information determination part is configured to split the shared super prior information to obtain the encoding prior information corresponding to each color component.
- the color component encodes subparts, including:
- the Cr component coding unit is configured to perform entropy coding on the target DCT coefficient of the Cr component based on the coding prior information corresponding to the Cr component, and obtain the coding information corresponding to the Cr component;
- the Cb component coding unit is configured to perform entropy coding on the target DCT coefficient of the Cb component based on the coding prior information corresponding to the Cb component and the target DCT coefficient of the Cr component to obtain coding information corresponding to the Cb component;
- the Y component encoding unit is configured to perform entropy encoding on the target DCT coefficient of the Y component based on the encoding prior information corresponding to the Y component, the target DCT coefficient of the Cr component, and the target DCT coefficient of the Cb component, to obtain encoding information corresponding to the Y component.
- the Cr component coding unit is specifically configured as:
- entropy coding is performed on the target DCT coefficient of the Cr component to obtain coding information corresponding to the Cr component.
- the Cb component coding unit is specifically configured as:
- entropy coding is performed on the target DCT coefficient of the Cb component to obtain coding information corresponding to the Cb component.
- the Y component coding unit includes:
- the probability distribution parameter determination subunit is configured to determine the probability distribution parameter corresponding to the Y component based on the coding prior information corresponding to the Y component, the target DCT coefficient of the Cr component, and the target DCT coefficient of the Cb component;
- the Y component encoding subunit is configured to perform entropy encoding on the target DCT coefficient of the Y component based on the probability distribution parameters corresponding to the Y component by using multi-level channel autoregression to obtain encoding information corresponding to the Y component.
- the Y component encoding subunit is specifically configured as:
- the converted DCT coefficients of the Y component are disassembled to obtain the DCT coefficient matrix corresponding to the Y component;
- the DCT coefficient matrix is entropy encoded by using the multi-level channel autoregressive to obtain the encoding information corresponding to the Y component.
- the Y component encoding subunit is further specifically configured as:
- the converted DCT coefficients of the Y component are disassembled in spatial dimensions to obtain multiple rows of the DCT coefficient matrix
- the plurality of rows and the plurality of columns of each row in the plurality of rows are determined as a DCT coefficient matrix corresponding to the Y component.
- the Y component encoding subunit is further specifically configured as:
- the PMF corresponding to each column in each row of the DCT coefficient matrix is sequentially determined by using multi-level channel autoregression;
- entropy encoding is performed on each column in each row of the DCT coefficient matrix to obtain the corresponding encoding information of each column in each row of the DCT coefficient matrix;
- the coding information corresponding to each column in each row of the DCT coefficient matrix constitutes the coding information corresponding to the Y component.
- the Y component encoding subunit is further specifically configured as:
- the multi-level channel autoregressive is used to sequentially determine the coding prior information corresponding to each row in the DCT coefficient matrix
- the PMF corresponding to each column in the i-th row is determined by using multi-level channel autoregression, where i represents the number of rows.
- the Y component encoding subunit is further specifically configured as:
- the Y component encoding subunit is further specifically configured as:
- the first column to the j-1th column in the i-th row of the DCT coefficient matrix Determine the PMF corresponding to row i and column j, where j represents the number of columns.
- the Y component encoding subunit is further specifically configured as:
- the entropy coding is arithmetic coding.
- the entropy coding part 73 is specifically configured as:
- the target DCT coefficients of the three color components are entropy coded by using the image codec neural network to obtain the target compressed data.
- the image encoding and decoding neural network includes an MLCC model
- the target compressed data includes encoding information corresponding to the luminance component Y;
- the entropy coding part 73 is specifically configured as:
- multi-level channel autoregressive entropy coding is performed on the Y component of the three color components in the channel dimension to obtain the coding information corresponding to the Y component.
- the DCT coefficient extraction part 71, the DCT coefficient rearrangement part 72, and the entropy coding part 73 can all be processors or processing components.
- This method has a specific technical relationship with the internal structure of the computer system, and it can solve the technical problems of how to improve the hardware computing efficiency or execution effect (including reducing the amount of data storage, reducing the amount of data transmission, increasing the processing speed of the hardware, etc.), so as to obtain a natural The technical effect of regular computer system internal performance improvements.
- the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the methods described in the method embodiments above, and its specific implementation can refer to the description of the method embodiments above. For brevity, here No longer.
- Embodiments of the present disclosure also provide a computer-readable storage medium, on which computer program instructions are stored, and the above-mentioned method is implemented when the computer program instructions are executed by a processor.
- Computer readable storage media may be volatile or nonvolatile computer readable storage media.
- An embodiment of the present disclosure also proposes an electronic device, including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to invoke the instructions stored in the memory to execute the above method.
- Electronic devices may be provided as terminals, servers, or other forms of devices.
- Fig. 8 shows a block diagram of an electronic device according to an embodiment of the present disclosure.
- the electronic device 800 may be a user equipment (User Equipment, UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle Devices, wearable devices and other terminal equipment.
- UE User Equipment
- PDA personal digital assistant
- the hardware entity of this electronic equipment 80 comprises: processor 81, communication interface 82 and memory 83, wherein:
- the processor 81 generally controls the overall operation of the electronic device 80 .
- the communication interface 82 enables the electronic device to communicate with other terminals or servers through the network.
- the memory 83 is configured to store instructions and applications executable by the processor 81, and can also cache data to be processed or processed by each module in the processor 81 and the electronic device 80 (for example, image data, audio data, voice communication data and Video communication data) can be realized by flash memory (FLASH) or random access memory (Random Access Memory, RAM). Data transmission can be performed between the processor 81 , the communication interface 82 and the memory 83 through the bus 84 .
- FLASH flash memory
- RAM Random Access Memory
- An embodiment of the present disclosure also provides a computer program, where the computer program includes computer readable codes, and when the computer readable codes run on a device, the processor in the device implements the above method when executed.
- An embodiment of the present disclosure also provides a computer program product, including computer-readable codes, or a non-volatile computer-readable storage medium carrying computer-readable codes, when the computer-readable codes are stored in a processor of an electronic device When running in the electronic device, the processor in the electronic device executes the above method.
- the present disclosure can be a system, method and/or computer program product.
- a computer program product may include a computer readable storage medium having computer readable program instructions thereon for causing a processor to implement various aspects of the present disclosure.
- a computer readable storage medium may be a tangible device that can retain and store instructions for use by an instruction execution device.
- a computer readable storage medium may be, for example, but is not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing.
- Computer-readable storage media include: portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or flash memory), static random access memory (SRAM), compact disc read only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanically encoded device, such as a printer with instructions stored thereon A hole card or a raised structure in a groove, and any suitable combination of the above.
- RAM random access memory
- ROM read-only memory
- EPROM erasable programmable read-only memory
- flash memory static random access memory
- SRAM static random access memory
- CD-ROM compact disc read only memory
- DVD digital versatile disc
- memory stick floppy disk
- mechanically encoded device such as a printer with instructions stored thereon
- a hole card or a raised structure in a groove and any suitable combination of the above.
- computer-readable storage media are not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., pulses of light through fiber optic cables), or transmitted electrical signals.
- Computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or downloaded to an external computer or external storage device over a network, such as the Internet, a local area network, a wide area network, and/or a wireless network.
- the network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers.
- a network adapter card or a network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing/processing device .
- Computer program instructions for performing the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or Source or object code written in any combination, including object-oriented programming languages—such as Smalltalk, C++, etc., and conventional procedural programming languages—such as the “C” language or similar programming languages.
- Computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server implement.
- the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as via the Internet using an Internet service provider). connect).
- LAN local area network
- WAN wide area network
- an electronic circuit such as a programmable logic circuit, field programmable gate array (FPGA), or programmable logic array (PLA)
- FPGA field programmable gate array
- PDA programmable logic array
- These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine such that when executed by the processor of the computer or other programmable data processing apparatus , producing an apparatus for realizing the functions/actions specified in one or more blocks in the flowchart and/or block diagram.
- These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause computers, programmable data processing devices and/or other devices to work in a specific way, so that the computer-readable medium storing instructions includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks in flowcharts and/or block diagrams.
- each block in a flowchart or block diagram may represent a module, a portion of a program segment, or an instruction that includes one or more Executable instructions.
- the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved.
- each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented by a dedicated hardware-based system that performs the specified function or action , or may be implemented by a combination of dedicated hardware and computer instructions.
- the computer program product can be specifically realized by means of hardware, software or a combination thereof.
- the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK) etc. wait.
- a software development kit Software Development Kit, SDK
- the writing order of each step does not mean a strict execution order and constitutes any limitation on the implementation process.
- the specific execution order of each step should be based on its function and possible
- the inner logic is OK.
- the products applying the disclosed technical solution have clearly notified the personal information processing rules and obtained the individual's independent consent before processing personal information.
- the disclosed technical solution involves sensitive personal information the products applying the disclosed technical solution have obtained individual consent before processing sensitive personal information, and at the same time meet the requirement of "express consent". For example, at a personal information collection device such as a camera, a clear and prominent sign is set up to inform that it has entered the scope of personal information collection, and personal information will be collected.
- the personal information processing rules may include Information such as the information processor, the purpose of personal information processing, the method of processing, and the type of personal information processed.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Discrete Mathematics (AREA)
- Algebra (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
Abstract
Description
Claims (23)
- 一种图像处理方法,包括:提取待压缩联合图像专家组JPEG图像对应的三个颜色分量的初始离散余弦变换DCT系数;分别对所述三个颜色分量的初始DCT系数按照不同频率进行排列,得到所述三个颜色分量的目标DCT系数;对所述三个颜色分量的目标DCT系数进行熵编码,得到所述待压缩JPEG图像对应的目标压缩数据。
- 根据权利要求1所述的方法,其中,所述分别对所述三个颜色分量的初始DCT系数按照不同频率进行排列,得到所述三个颜色分量的目标DCT系数,包括:针对任意一个颜色分量的初始DCT系数,从所述初始DCT系数中,将相同频率的系数构成空间维度,将不同频率的系数构成通道维度,得到多通道DCT子系数;对所述初始DCT系数进行之字形zigzag扫描,确定zigzag排序;基于所述zigzag排序,对所述多通道DCT子系数在通道维度进行排列,得到所述初始DCT系数对应的目标DCT系数。
- 根据权利要求2所述的方法,其中,所述三个颜色分量包括:亮度分量Y和色度分量Cb、Cr;所述目标压缩数据包括:超先验编码信息、Cr分量对应的编码信息、Cb分量对应的编码信息、Y分量对应的编码信息;所述对所述三个颜色分量的目标DCT系数进行熵编码,得到所述待压缩JPEG图像对应的目标压缩数据,包括:对共享超先验信息进行熵编码,得到所述超先验编码信息;基于每个颜色分量对应的编码先验信息,依次对所述Cr分量的目标DCT系数、所述Cb分量的目标DCT系数、所述Y分量的目标DCT系数进行熵编码,得到所述Cr分量对应的编码信息、所述Cb分量对应的编码信息、所述Y分量对应的编码信息。
- 根据权利要求3所述的方法,其中,在对所述三个颜色分量的目标DCT系数进行熵编码之前,所述方法还包括:对所述三个颜色分量的目标DCT系数进行融合,得到融合后DCT系数;基于所述融合后DCT系数,确定所述共享超先验信息;对所述共享超先验信息进行拆分,得到所述每个颜色分量对应的编码先验信息。
- 根据权利要求3或4所述的方法,其中,所述基于每个颜色分量对应的编码先验信息,依次对所述Cr分量的目标DCT系数、所述Cb分量的目标DCT系数、所述Y分量的目标DCT系数进行熵编码,得到所述Cr分量对应的编码信息、所述Cb分量对应的编码信息、所述Y分量对应的编码信息,包括:基于所述Cr分量对应的编码先验信息,对所述Cr分量的目标DCT系数进行熵编码,得到所述Cr分量对应的编码信息;基于所述Cb分量对应的编码先验信息、所述Cr分量的目标DCT系数,对所述Cb分量的目标DCT系数进行熵编码,得到所述Cb分量对应的编码信息;基于所述Y分量对应的编码先验信息、所述Cr分量的目标DCT系数、所述Cb分量的目标DCT系数,对所述Y分量的目标DCT系数进行熵编码,得到所述Y分量对应的编码信息。
- 根据权利要求5所述的方法,其中,所述基于所述Cr分量对应的编码先验信息,对所述Cr分量的目标DCT系数进行熵编码,得到所述Cr分量对应的编码信息,包括:基于所述Cr分量对应的编码先验信息,确定所述Cr分量的目标DCT系数对应的 概率质量函数PMF;基于所述Cr分量的目标DCT系数对应的PMF,对所述Cr分量的目标DCT系数进行熵编码,得到所述Cr分量对应的编码信息。
- 根据权利要求5或6所述的方法,其中,所述基于所述Cb分量对应的编码先验信息、所述Cr分量的目标DCT系数,对所述Cb分量的目标DCT系数进行熵编码,得到所述Cb分量对应的编码信息,包括:基于所述Cb分量对应的编码先验信息、所述Cr分量的目标DCT系数,确定所述Cb分量的目标DCT系数对应的PMF;基于所述Cb分量的目标DCT系数对应的PMF,对所述Cb分量的目标DCT系数进行熵编码,得到所述Cb分量对应的编码信息。
- 根据权利要求5至7中任意一项所述的方法,其中,所述基于所述Y分量对应的编码先验信息、所述Cr分量的目标DCT系数、所述Cb分量的目标DCT系数,对所述Y分量的目标DCT系数进行熵编码,得到所述Y分量对应的编码信息,包括:基于所述Y分量对应的编码先验信息、所述Cr分量的目标DCT系数、所述Cb分量的目标DCT系数,确定所述Y分量对应的概率分布参数;基于所述Y分量对应的概率分布参数,利用多级通道自回归,对所述Y分量的目标DCT系数进行熵编码,得到所述Y分量对应的编码信息。
- 根据权利要求8所述的方法,其中,所述基于所述Y分量对应的概率分布参数,利用多级通道自回归,对所述Y分量的目标DCT系数进行熵编码,得到所述Y分量对应的编码信息,包括:对所述Y分量的目标DCT系数进行空间维度到通道维度的转换,得到所述Y分量的转换后DCT系数;按照预设矩阵形式,对所述Y分量的转换后DCT系数进行拆解,得到所述Y分量对应的DCT系数矩阵;基于所述Y分量对应的概率分布参数,利用多级通道自回归,对所述DCT系数矩阵进行熵编码,得到所述Y分量对应的编码信息。
- 根据权利要求9所述的方法,其中,所述按照预设矩阵形式,对所述Y分量的转换后DCT系数进行拆解,得到所述Y分量对应的DCT系数矩阵,包括:按照所述预设矩阵形式,对所述Y分量的转换后DCT系数进行空间维度的拆解,得到所述DCT系数矩阵的多个行;对所述DCT系数矩阵的每一行进行通道维度的拆解,得到每一行的多个列;将所述多个行和所述多个行中每一行的多个列,确定为所述Y分量对应的DCT系数矩阵。
- 根据权利要求10所述的方法,其中,所述基于所述Y分量对应的概率分布参数,利用多级通道自回归,对所述DCT系数矩阵进行熵编码,得到所述Y分量对应的编码信息,包括:基于所述Y分量对应的概率分布参数,利用多级通道自回归,依次确定所述DCT系数矩阵的每一行中每一列对应的PMF;利用所述DCT系数矩阵的每一行中每一列对应的PMF,对所述DCT系数矩阵的每一行中每一列进行熵编码,得到所述DCT系数矩阵的每一行中每一列对应的编码信息;其中,所述DCT系数矩阵的每一行中每一列对应的编码信息,构成所述Y分量对应的编码信息。
- 根据权利要求11所述的方法,其中,所述基于所述Y分量对应的概率分布参数,利用多级通道自回归,依次确定所述DCT系数矩阵的每一行中每一列对应的PMF, 包括:基于所述Y分量对应的概率分布参数,利用多级通道自回归,依次确定所述DCT系数矩阵中每一行对应的编码先验信息;针对所述DCT系数矩阵的第i行,基于所述第i行对应的编码先验信息,利用多级通道自回归,确定所述第i行中每一列对应的PMF,其中,i表示行数。
- 根据权利要求12所述的方法,其中,所述基于所述Y分量对应的概率分布参数,利用多级通道自回归,依次确定所述DCT系数矩阵中每一行对应的编码先验信息,包括:针对所述DCT系数矩阵的第1行,基于所述Y分量对应的概率分布参数,确定所述第1行对应的编码先验信息;在i>1的情况下,针对所述DCT系数矩阵的第i行,基于所述Y分量对应的概率分布参数、所述DCT系数矩阵的第1行至第i-1行,确定所述第i行对应的编码先验信息。
- 根据权利要求12或13所述的方法,其中,所述基于所述第i行对应的编码先验信息,利用多级通道自回归,确定所述第i行中每一列对应的PMF,包括:针对所述DCT系数矩阵的第i行第1列,基于所述第i行对应的编码先验信息,确定所述第i行第1列对应的PMF;在j>1的情况下,针对所述DCT系数矩阵的第i行第j列,基于所述第i行对应的编码先验信息、所述DCT系数矩阵的第i行中的第1列至第j-1列,确定所述第i行第j列对应的PMF,其中,j表示列数。
- 根据权利要求11至14中任意一项所述的方法,其中,所述利用所述DCT系数矩阵的每一行中每一列对应的PMF,对所述DCT系数矩阵的每一行中每一列进行熵编码,得到所述DCT系数矩阵的每一行中每一列对应的编码信息,包括:在i≥1且j≥1的情况下,针对所述DCT系数矩阵的第i行第j列,基于所述第i行第j列对应的PMF,对所述第i行第j列进行熵编码,得到所述第i行第j列对应的编码信息。
- 根据权利要求1至15中任意一项所述的方法,其中,所述熵编码为算术编码。
- 根据权利要求1至16中任意一项所述的方法,其中,所述对所述三个颜色分量的目标DCT系数进行熵编码,得到所述待压缩JPEG图像对应的目标压缩数据,包括:利用图像编解码神经网络,对所述三个颜色分量的目标DCT系数进行熵编码,得到所述目标压缩数据。
- 根据权利要求17所述的方法,其中,所述图像编解码神经网络中包括多级跨通道自回归熵编码MLCC模型,所述目标压缩数据中包括亮度分量Y对应的编码信息;所述利用图像编解码神经网络,对所述三个颜色分量的目标DCT系数进行熵编码,得到所述目标压缩数据,包括:利用所述MLCC模型,对所述三个颜色分量中的Y分量在通道维度进行多级通道自回归熵编码,得到所述Y分量对应的编码信息。
- 一种图像处理装置,包括:DCT系数提取部分,配置为提取待压缩JPEG图像对应的三个颜色分量的初始变换DCT系数;DCT系数重排部分,配置为分别对所述三个颜色分量的初始DCT系数按照不同频率进行排列,得到所述三个颜色分量的目标DCT系数;熵编码部分,配置为对所述三个颜色分量的目标DCT系数进行熵编码,得到所述待压缩JPEG图像对应的目标压缩数据。
- 一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为调用所述存储器存储的指令,以执行权利要求1至18中任意一项所述的方法。
- 一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现权利要求1至18中任意一项所述的方法。
- 一种计算机程序,所述计算机程序包括计算机可读代码,在计算机可读代码在设备上运行的情况下,设备中的处理器执行权利要求1至18中任意一项所述的方法。
- 一种计算机程序产品,所述计算机程序产品包括计算机程序或指令,在所述计算机程序或指令在电子设备上运行的情况下,使得所述电子设备执行权利要求1至18中任意一项所述的方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210178603.5 | 2022-02-25 | ||
| CN202210178603.5A CN114554226A (zh) | 2022-02-25 | 2022-02-25 | 图像处理方法及装置、电子设备和存储介质 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2023159883A1 true WO2023159883A1 (zh) | 2023-08-31 |
Family
ID=81678602
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2022/110266 Ceased WO2023159883A1 (zh) | 2022-02-25 | 2022-08-04 | 图像处理方法及装置、电子设备、存储介质、计算机程序和计算机程序产品 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN114554226A (zh) |
| WO (1) | WO2023159883A1 (zh) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114554226A (zh) * | 2022-02-25 | 2022-05-27 | 北京市商汤科技开发有限公司 | 图像处理方法及装置、电子设备和存储介质 |
| CN116095333A (zh) * | 2023-01-12 | 2023-05-09 | 上海商汤智能科技有限公司 | 图像压缩方法、装置、设备及存储介质 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006060657A (ja) * | 2004-08-23 | 2006-03-02 | Victor Co Of Japan Ltd | 画像データ圧縮装置及び画像データ圧縮方法 |
| CN103581678A (zh) * | 2012-07-19 | 2014-02-12 | 豪威科技股份有限公司 | 由量化控制改良解码器性能的方法与系统 |
| CN111868753A (zh) * | 2018-07-20 | 2020-10-30 | 谷歌有限责任公司 | 使用条件熵模型的数据压缩 |
| CN114554226A (zh) * | 2022-02-25 | 2022-05-27 | 北京市商汤科技开发有限公司 | 图像处理方法及装置、电子设备和存储介质 |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7903894B2 (en) * | 2006-10-05 | 2011-03-08 | Microsoft Corporation | Color image coding using inter-color correlation |
| CN101951524B (zh) * | 2009-07-10 | 2013-06-19 | 比亚迪股份有限公司 | 彩色数字图像的jpeg压缩方法和装置 |
| CN114071141A (zh) * | 2020-08-06 | 2022-02-18 | 华为技术有限公司 | 一种图像处理方法及其设备 |
| CN113301347B (zh) * | 2021-05-08 | 2023-05-05 | 广东工业大学 | 一种hevc高清视频编码的优化方法 |
| CN113810693B (zh) * | 2021-09-01 | 2022-11-11 | 上海交通大学 | 一种jpeg图像无损压缩和解压缩方法、系统与装置 |
| CN114067009A (zh) * | 2021-10-22 | 2022-02-18 | 深圳力维智联技术有限公司 | 基于Transformer模型的图像处理方法与装置 |
-
2022
- 2022-02-25 CN CN202210178603.5A patent/CN114554226A/zh active Pending
- 2022-08-04 WO PCT/CN2022/110266 patent/WO2023159883A1/zh not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006060657A (ja) * | 2004-08-23 | 2006-03-02 | Victor Co Of Japan Ltd | 画像データ圧縮装置及び画像データ圧縮方法 |
| CN103581678A (zh) * | 2012-07-19 | 2014-02-12 | 豪威科技股份有限公司 | 由量化控制改良解码器性能的方法与系统 |
| CN111868753A (zh) * | 2018-07-20 | 2020-10-30 | 谷歌有限责任公司 | 使用条件熵模型的数据压缩 |
| CN114554226A (zh) * | 2022-02-25 | 2022-05-27 | 北京市商汤科技开发有限公司 | 图像处理方法及装置、电子设备和存储介质 |
Non-Patent Citations (1)
| Title |
|---|
| ZHU YANQIU, CHEN HEXIN, DAI YISONG: "Compression Coding of Color Image via 3D-DCT Transform", JOURNAL OF IMAGE AND GRAPHICS, vol. 11, no. 2, 30 November 1997 (1997-11-30), pages 795 - 800, XP009548471 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114554226A (zh) | 2022-05-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11386583B2 (en) | Image coding apparatus, probability model generating apparatus and image decoding apparatus | |
| US11257252B2 (en) | Image coding apparatus, probability model generating apparatus and image compression system | |
| CN106937111B (zh) | 优化图像压缩质量的方法及系统 | |
| CN113473126B (zh) | 视频流的处理方法、装置、电子设备及计算机可读介质 | |
| CN111727445A (zh) | 局部熵编码的数据压缩 | |
| WO2022028197A1 (zh) | 一种图像处理方法及其设备 | |
| CN118364877B (zh) | 文本生成方法、装置和计算设备 | |
| US12489922B2 (en) | Image processing method and apparatus, electronic device, and storage medium | |
| CN118823630A (zh) | 一种视频理解方法、系统、电子设备和存储介质 | |
| CN114463453A (zh) | 图像重建、编码解码方法、相关装置 | |
| CN116527936A (zh) | 适用于空间图像的编码方法及装置 | |
| CN119250020A (zh) | 一种文本压缩方法、文本解压缩方法、模型训练方法、装置和设备 | |
| KR20200094363A (ko) | 이미지 파일의 픽셀 변환을 통한 압축율 향상 방법 및 시스템 | |
| CN114554226A (zh) | 图像处理方法及装置、电子设备和存储介质 | |
| CN116016958A (zh) | 图像处理方法、装置、设备和存储介质 | |
| CN115103191A (zh) | 图像处理方法、装置、设备及存储介质 | |
| US20250097440A1 (en) | Learned image compression and decompression using long and short attention module | |
| CN111859210A (zh) | 图像处理方法、装置、设备及存储介质 | |
| CN118097495B (zh) | 上下文增强方法、装置、设备及介质 | |
| WO2025138715A1 (zh) | 一种图像处理方法及其相关设备 | |
| CN113435578B (zh) | 基于互注意力的特征图编码方法、装置及电子设备 | |
| WO2023154007A2 (zh) | 视频的特征提取及切片方法、装置、电子设备及存储介质 | |
| Hu et al. | Asymmetric Learned Image Compression Using Fast Residual Channel Attention | |
| CN102395031A (zh) | 一种数据压缩方法 | |
| CN115914641B (zh) | 图像压缩方法、设备及可读存储介质 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22928150 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 22928150 Country of ref document: EP Kind code of ref document: A1 |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 18.03.2025) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 22928150 Country of ref document: EP Kind code of ref document: A1 |