WO2023124602A1 - 数据变换与恢复方法、装置、系统、电子设备及存储介质 - Google Patents
数据变换与恢复方法、装置、系统、电子设备及存储介质 Download PDFInfo
- Publication number
- WO2023124602A1 WO2023124602A1 PCT/CN2022/132143 CN2022132143W WO2023124602A1 WO 2023124602 A1 WO2023124602 A1 WO 2023124602A1 CN 2022132143 W CN2022132143 W CN 2022132143W WO 2023124602 A1 WO2023124602 A1 WO 2023124602A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data
- integer
- matrix
- transformation
- inverse
- 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
-
- 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]
Definitions
- the present disclosure relates to the technical field of data processing, and in particular to a data conversion and recovery method, device, system, electronic equipment, and storage medium.
- DCT transform Discrete Cosine Transform, discrete cosine transform
- integer transform is widely used in related technologies to achieve a higher compression ratio, for example, JPEG (Joint Photographic Experts Group, Joint Photographic Experts Group)
- JPEG Joint Photographic Experts Group
- H.264 standard the next-generation digital video compression format following MPEG4 by the International Organization for Standardization and the International Telecommunication Union
- VCM Video Coding For Machines, The feature coding in the machine vision coding
- DCT transformation Video Coding For Machines, The feature coding in the machine vision coding
- the traditional integer transformation is derived from the DCT transformation, and the equivalent matrix of the DCT transformation is slightly modified, and the floating-point operation error term is incorporated into the quantization. Therefore, the performance loss of the integer transformation scheme comes only from quantization; while the performance loss of the DCT transformation scheme comes from the error term of the quantization and the floating-point operation of the DCT transformation itself.
- the traditional integer transformation scheme is not an all-integer transformation scheme, but only incorporates the floating-point error term into the quantization. Although the floating-point calculation error is reduced to a certain extent, this error is unavoidable. Therefore, neither the DCT transformation scheme nor the traditional integer transformation scheme can completely eliminate the floating point operation error.
- the present disclosure provides a data conversion and recovery method, device, system, electronic equipment and storage medium, which overcomes the technical problem in the related art that traditional integer conversion-based compression schemes cannot completely eliminate floating-point calculation errors at least to a certain extent.
- a data transformation method includes: obtaining a pre-configured integer matrix, wherein the integer matrix is invertible and the inverse matrix is a rational number matrix; Integer transform.
- integer transformation is performed on the data to be transformed by the following formula:
- Y represents the data after integer transformation
- X represents the data before integer transformation
- I represents a pre-configured reversible integer matrix whose inverse matrix is a rational number matrix
- IT represents the transposition matrix of I.
- the data after the integer transformation is inversely transformed by the following formula to recover the data before the integer transformation:
- Y represents the data after integer transformation
- X represents the restored data, that is, the data before integer transformation
- F represents the inverse matrix of I, which is a rational number matrix
- FT represents the transpose matrix of F.
- the data after the integer transformation is inversely transformed by the following formula to recover the data before the integer transformation:
- F represents the inverse matrix of I, which is a matrix of rational numbers
- N represents an integer matrix with the same dimension as F, and each element is n
- n is a positive integer
- the data to be transformed is plastic data
- the forward transformation and inverse transformation of the plastic data are both integer transformations of full integer operations
- the method further includes: using an integer matrix to perform Integer transformation of full integer operation: using the integer matrix after shaping the inverse matrix of the integer matrix, performing inverse transformation of full integer operation on the data after integer transformation to recover the shaped data.
- the data to be transformed is floating-point data
- the method further includes: quantizing the floating-point data to be transformed to obtain quantized integer data; Integer transformation of the operation: using the integer matrix after shaping the inverse matrix of the integer matrix, inversely transforming the data after the integer transformation to recover the data before the integer transformation.
- the data to be transformed is floating-point data
- the method further includes: using an integer matrix to transform the floating-point data to be transformed to obtain transformed floating-point data; using the inverse of the integer matrix The integer matrix after the matrix is reshaped, inversely transforms the transformed floating-point data, and restores the floating-point data before the transformation.
- the data to be transformed is floating-point data
- the method further includes: using an integer matrix to transform the floating-point data to be transformed to obtain transformed floating-point data; Quantization processing: performing inverse quantization processing on the quantized data; using the inverse matrix of the integer matrix or the integer matrix after shaping the inverse matrix, inverse transforming the dequantized floating-point data to restore the transformed previous floating-point data.
- the data to be transformed includes at least any one of the following: image data, video data, residual data, and feature data.
- a data recovery method including: acquiring the data to be recovered, wherein the data to be recovered is the data after integer transformation of the original data by using an integer matrix, and the integer matrix
- the reversible and inverse matrix is a matrix of rational numbers; using the inverse matrix of the integer matrix, the inverse transformation is performed on the data to be restored, so as to restore the data before the integer transformation.
- a data restoration method including: acquiring data to be restored, wherein the data to be restored is the data after integer transformation of the original data by using an integer matrix, and the integer matrix
- the inverse matrix is reversible and is a matrix of rational numbers; the data to be restored is inversely transformed by using the integer matrix after shaping the inverse matrix, so as to restore the data before the integer transformation.
- a data conversion device including: a configuration module, configured to obtain a pre-configured integer matrix, wherein the integer matrix is invertible and the inverse matrix is a rational number matrix; the conversion module uses The integer transformation is performed on the data to be transformed by using the integer matrix.
- a data restoration device including: a data acquisition module, configured to acquire data to be restored, wherein the data to be restored is the integer transformation of the original data by using an integer matrix data, the integer matrix is reversible and the inverse matrix is a rational number matrix; the inverse transformation module is used to use the inverse matrix of the integer matrix to inverse transform the data to be restored, so as to restore the data before the integer transformation.
- a data restoration device including: a data acquisition module, configured to acquire data to be restored, wherein the data to be restored is the integer transformation of the original data by using an integer matrix Data, the integer matrix is reversible and the inverse matrix is a rational number matrix; the inverse transformation module is used to use the integer matrix after shaping the inverse matrix to perform inverse transformation on the data to be restored, so as to restore the integer transformation before data.
- an image compression system including: a first encoding module and a first decoding module; wherein, the first encoding module is used to obtain a pre-configured integer matrix, using the The integer matrix performs integer transformation on the image data, wherein the integer matrix is reversible and the inverse matrix is a rational number matrix; the first decoding module is used to use the inverse matrix of the integer matrix or after shaping the inverse matrix Integer matrix of integer transformation, the inverse transformation is performed on the data after the integer transformation, and the image data before the integer transformation is recovered.
- the first encoding module is also used to: encode the data after integer transformation, and transmit the encoded data to the first decoding module; the first decoding module is also used to encode data from The data of the first coding module is decoded, and the inverse matrix of the integer matrix or the integer matrix obtained by shaping the inverse matrix is used to inversely transform the decoded data to restore the data before the integer transformation.
- the first encoding module adopts an encoding manner that performs ZigZag scanning or an encoding manner that does not perform ZigZag scanning.
- a feature compression system including: a second encoding module and a second decoding module; wherein, the second encoding module is used to obtain a pre-configured integer matrix, using the The integer matrix performs integer transformation on the feature data, wherein the integer matrix is reversible and the inverse matrix is a rational number matrix; the second decoding module is used to use the inverse matrix of the integer matrix or after shaping the inverse matrix Integer matrix of integer transformation, inverse transformation is performed on the data after integer transformation, and the data before integer transformation is recovered.
- the second encoding module is also used to: encode the data after integer transformation, and transmit the encoded data to the second decoding module; the second decoding module is also used to encode the data from The data of the second coding module is decoded, and the inverse matrix of the integer matrix or the integer matrix obtained by shaping the inverse matrix is used to inversely transform the decoded data to restore the data before the integer transformation.
- the second encoding module adopts an encoding manner that performs ZigZag scanning or an encoding manner that does not perform ZigZag scanning.
- the second coding module is further used to perform quantization processing on the feature data, and uses the integer matrix to perform integer transformation of all integer operations on the quantized feature data; the second decoding module is also used to Using the integer matrix after shaping the inverse matrix, perform inverse transformation of all integer operations on the data after integer transformation, and perform inverse quantization processing on the inverse transformed data to obtain original feature data.
- the second encoding module is further configured to perform integer transformation on the feature data, and quantize the integer-transformed feature data; the second decoding module is also used to invert the quantized feature data
- the quantization process uses the integer matrix after shaping the inverse matrix to perform inverse transformation on the data after the inverse quantization process to obtain the original feature data.
- a residual compression system including: a third encoding module and a third decoding module; wherein, the third encoding module is used to obtain a pre-configured integer matrix by using The integer matrix performs integer transformation on the residual data, wherein the integer matrix is reversible and the inverse matrix is a rational number matrix; the third decoding module is used to use the inverse matrix of the integer matrix or perform an integer transformation on the inverse matrix Integer matrix after shaping, perform inverse transformation on the data after integer transformation, and restore the data before integer transformation.
- the third encoding module is also used to: encode the data after integer transformation, and transmit the encoded data to the third decoding module; the third decoding module is also used to encode data from The data of the third coding module is decoded, and the inverse matrix of the integer matrix or the integer matrix obtained by shaping the inverse matrix is used to inversely transform the decoded data to restore the data before the integer transformation.
- the third encoding module adopts an encoding manner that performs ZigZag scanning or an encoding manner that does not perform ZigZag scanning.
- an electronic device including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the executable Instructions to execute the data transformation method described in any of the above, or the data recovery method described in any of the above.
- a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the data transformation method described in any one of the above, or any of the above-mentioned A data recovery method as described.
- Fig. 1 shows the flow chart of realizing data compression based on traditional integer transformation in the related art
- Fig. 2 shows the schematic diagram of the data transformation result adopting traditional DCT/integer transformation in the related art
- FIG. 3 shows a flow chart of implementing data compression based on a new integer transformation in an embodiment of the present disclosure
- Fig. 4 shows a schematic diagram of the principle of quantization realized by combining the basic quantization step size and the step size multiplier in the embodiment of the present disclosure
- FIG. 5 shows a schematic diagram of data transformation results using new integer transformations in an embodiment of the present disclosure
- FIG. 6 shows a flow chart of a data conversion method in an embodiment of the present disclosure
- FIG. 7 shows a flowchart of a data recovery method in an embodiment of the present disclosure
- FIG. 8 shows a flowchart of another data recovery method in an embodiment of the present disclosure
- FIG. 9 shows a schematic diagram of a data conversion device in an embodiment of the present disclosure.
- FIG. 10 shows a schematic diagram of a data recovery device in an embodiment of the present disclosure
- Fig. 11 shows a schematic diagram of an image compression system in an embodiment of the present disclosure
- Fig. 12 shows a schematic diagram of a feature compression system in an embodiment of the present disclosure
- Fig. 13 shows a schematic diagram of a residual compression system in an embodiment of the present disclosure
- Fig. 14 shows a structural block diagram of an electronic device in an embodiment of the present disclosure.
- Example embodiments will now be described more fully with reference to the accompanying drawings.
- Example embodiments may, however, be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete and will fully convey the concept of example embodiments to those skilled in the art.
- the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
- Compression Reducing the size of data by some technical means.
- Decompression restore the reduced data size to its original size by some technical means.
- Decoding A specific means of decompression.
- DCT The English full name is Discrete Cosine Transform, translated as "Discrete Cosine Transform", which is used for lossy data compression of images or videos.
- ZigZag scanning that is, zigzag scanning, scanning according to a certain path (zigzag), and transforming the quantized coefficients from two-dimensional to one-dimensional.
- the lower right corner of the matrix has basically become a zero value, and the non-zero values are basically concentrated in the upper left corner of the matrix.
- the two-dimensional matrix can be transformed into a one-dimensional
- the first part of the string is mainly non-zero values, and the latter part is mainly zero values.
- the two-dimensional DCT transformation is equivalent to the first DCT transformation, and then the column DCT transformation.
- the following matrix can be used to represent the positive and negative transformation of DCT:
- FIG. 1 shows a flow chart of data compression based on traditional integer transformation in the related art.
- traditional integer transformation is used to compress data
- Hadamard transformation/quantization and ZigZag scanning are required for transformation coefficients.
- ZigZag scanning is an essential module of the system, and ZigZag scanning itself brings a lot of calculations.
- Coefficient encoding/decoding of traditional DCT transform/integer transform relies on ZigZag scanning (ie, zigzag scanning) to gather 0 coefficients together, and ZigZag itself requires a lot of calculation.
- the embodiments of the present disclosure provide a data transformation method and a data recovery method based on a new integer transformation.
- the new integer transformation is explained first:
- the new integer transformation provided in the embodiments of the present disclosure only constrains I to be an integer matrix, the integer matrix is invertible and the inverse matrix is a rational number matrix:
- Y represents the data after integer transformation
- X represents the data before integer transformation
- I represents a pre-configured reversible integer matrix whose inverse matrix is a rational number matrix
- IT represents the transposition matrix of I
- F T represents the transpose matrix of F.
- the inverse matrix can be reshaped and calculated:
- N represents an integer matrix with the same dimension as F, and each element is n; n is a positive integer; Represents the Kronecker product of F and N, which is an integer matrix; express The transpose matrix.
- the new integer transformation provided in the embodiments of the present disclosure utilizes an integer matrix that has nothing to do with DCT, therefore, for integer data, integer transformation and inverse transformation of all integer operations can be performed without any information loss; for floating-point numbers According to the data, after the floating-point data is quantized, the integer transformation of the whole integer operation can be realized for the quantized shaping matrix, not only without any floating-point expression error and quantization error, but also can generate more zeros than the traditional integer transformation/DCT transformation The coefficient effectively improves the data compression ratio and data compression efficiency.
- Fig. 3 shows a flow chart of realizing data compression based on the new integer transformation in the embodiment of the present disclosure.
- the quantization module is an optional module when the data compression is realized by using the new integer transformation provided in the embodiment of the present disclosure.
- the embodiment of the present disclosure can realize quantization from integer type (floating point type) data to integer data in the following two ways:
- Mode a fixed quantization table
- Mode b Quantization combined with basic quantization step size and step size multiplier.
- Fig. 4 shows a schematic diagram of the principle of quantization realized by combining a basic quantization step size and a step size multiplier in an embodiment of the present disclosure.
- the basic quantization is divided into (2 ⁇ INT_MAX+1) steps: the basic quantization step size is abs_max/INT_MAX;
- a 4x4 fixed quantization table is shown in Table 1
- a 4x4 step size multiplication table is shown in Table 2.
- Fig. 5 shows a schematic diagram of the data transformation result using the new integer transformation in the embodiment of the disclosure.
- the new integer transformation provided in the embodiment of the disclosure has the following advantages:
- More 0 coefficients and configurable distribution of different coefficients make ZigZag scan encoding an optional item rather than a mandatory item.
- the embodiments of the present disclosure provide two encoding modes: 1 an encoding mode without performing ZigZag scanning; 2 an encoding mode in which ZigZag scanning is performed.
- the embodiments of the present disclosure disclose a data transformation method and a data recovery method, which use a pre-configured integer matrix to perform integer transformation on the data to be transformed, and perform integer transformation on the data after the integer transformation
- the inverse transformation can realize the whole integer transformation scheme, not only without any floating-point expression error and quantization error, but also can generate more zero coefficients than the traditional integer transformation/DCT transformation, effectively improving the data compression ratio and data compression efficiency.
- the data conversion method and the data restoration method provided in the embodiments of the present disclosure may be executed by any electronic device with computing and processing capabilities.
- the data conversion method in the embodiment of the present disclosure may be executed by the encoding end device
- the data recovery method in the embodiment of the present disclosure may be executed by the decoding end device.
- the electronic device that executes the data conversion method and the data recovery method in the embodiments of the present disclosure may be a terminal device or a server.
- the terminal devices may include but not limited to smartphones, tablet computers, laptop computers, desktop computers, wearable devices, augmented reality devices, virtual reality devices, etc.
- the server may provide various services, such as A background management server that provides support for devices operated by terminal equipment.
- the background management server can analyze and process the received data such as requests, and feed back the processing results to the terminal device.
- the clients of the application programs installed in the terminal device are the same, or the clients of the same type of application programs based on different operating systems. Based on different terminal platforms, the specific form of the client of the application program may also be different, for example, the client of the application program may be a mobile phone client, a PC client, and the like.
- the server can be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, and can also provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network Cloud servers for basic cloud computing services such as cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network, content distribution network), and big data and artificial intelligence platforms.
- the terminal may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto.
- the terminal and the server may be connected directly or indirectly through wired or wireless communication, which is not limited in the present disclosure.
- Fig. 6 shows a flow chart of a data transformation method in an embodiment of the present disclosure.
- the data transformation method provided in an embodiment of the present disclosure includes the following steps:
- the integer matrix configured in the above S602 is a reversible matrix whose elements are integers, and its inverse matrix is a matrix of rational numbers; the original data can be transformed into integers by using the integer matrix, and the inverse matrix of the integer matrix or The integer matrix after the inverse matrix is reshaped, and the inverse integer transformation (inverse transformation) is performed on the data after the integer transformation, so that the original data can be completely restored.
- the integer transformation performed on the original data is the integer transformation of the full integer operation
- the inverse integer transformation performed on the integer transformed data is also the inverse integer transformation of the full integer operation.
- the integer matrix is directly used to perform integer transformation and inverse integer transformation on the original data; if the original data is floating-point data, the integer transformation of the full integer operation is realized on the quantized integer matrix .
- data to be transformed may include but not limited to any one of the following: image data, video data, residual data, and feature data.
- an integer matrix irrelevant to the DCT transformation is used to perform integer transformation on the data to be transformed, so that the form of the integer transformation is not unique, and more integer transformation schemes can be provided.
- both the forward transformation and the inverse transformation of the shaping data are integer transformations of full integer operations
- the data transformation method provided in the embodiments of the present disclosure further includes the following steps: Using the integer matrix to carry out the integer transformation of the integer operation on the integer data to be transformed; using the integer matrix after shaping the inverse matrix of the integer matrix, performing the inverse transformation of the integer operation on the data after the integer transformation, and recovering the integer data.
- the data transformation method when the data to be transformed is floating-point data, further includes the following steps: quantizing the floating-point data to be transformed to obtain quantized integer data; Integer transformation in which the matrix performs full integer operations on the quantized shaping data; use the inverse matrix of the integer matrix or the integer matrix after shaping the inverse matrix to inverse transform the data after the integer transformation, and restore the data before the integer transformation ( That is, the integer data obtained by quantizing the original floating-point data).
- the data transformation method when the data to be transformed is floating-point data, further includes the following steps: using an integer matrix to transform the floating-point data to be transformed to obtain the transformed floating-point data ;Use the integer matrix after shaping the inverse matrix of the integer matrix to perform inverse transformation on the transformed floating-point data, and restore the floating-point data before transformation.
- the integer transformation and inverse transformation are directly performed on the floating point data, and the floating point data before the integer transformation can be approximately restored.
- the data transformation method when the data to be transformed is floating-point data, further includes the following steps: using an integer matrix to transform the floating-point data to be transformed to obtain the transformed floating-point data ; Quantize the transformed floating-point data; perform inverse quantization on the quantized data; use the inverse matrix of the integer matrix or the integer matrix after reshaping the inverse matrix to inverse the dequantized floating-point data Transform to restore the floating-point data before transformation.
- quantization and inverse quantization are performed on the transformed data, and the floating-point data before the integer transformation can be approximated by inverse transformation.
- the configured integer matrix is used at the encoding end to perform integer transformation on the data before encoding; to perform integer transformation on the data after integer transformation Compression coding, so that the decoding end can completely restore the original data through inverse integer transformation after decoding the data, not only without any floating-point expression error and quantization error, but also can generate more zero coefficients than traditional integer transformation/DCT transformation, effectively
- the data compression ratio and data compression efficiency are improved.
- the data to be compressed can be converted into an integer by the above formula (8); after the compressed data is decoded, the data after the integer conversion can be restored by the above formula (9) or (10) .
- the new integer transformation provided in the embodiment of the present disclosure can be used to realize the full integer transformation (that is, the integer transformation of the full integer operation) ;
- the data to be compressed is floating-point data
- a new integer transformation is performed on the quantized integer data.
- the specific quantization process has been introduced in the above content, and will not be repeated here.
- the embodiments of the present disclosure can use the data recovery method shown in FIG. 7 to recover the data before integer transformation; in other embodiments, the embodiments of the present disclosure can use the data recovery method shown in FIG. 8 , to restore the data before the integer transformation.
- the data recovery method provided in the embodiment of the present disclosure includes the following steps:
- the data to be restored is the data obtained by performing integer transformation on the original data by using an integer matrix, the integer matrix is reversible and the inverse matrix is a rational number matrix;
- the data recovery method provided in the embodiment of the present disclosure includes the following steps:
- the data to be restored is the data obtained by performing integer transformation on the original data by using an integer matrix, the integer matrix is reversible and the inverse matrix is a rational number matrix;
- the decoding end receives the compressed data from the encoding end, it decodes the compressed data, and uses the inverse matrix of the integer matrix to perform the inverse matrix
- the integer matrix after shaping performs an inverse integer transformation on the decoded data to completely restore the data before the integer transformation, which can realize the full integer transformation scheme, not only without any floating-point expression error and quantization error, but also can generate more than traditional integer Transform/DCT transforms more 0 coefficients, effectively improving the data compression ratio and data compression efficiency.
- embodiments of the present disclosure also provide a data conversion device, such as the following embodiments. Since the problem-solving principle of this device embodiment is similar to that of the above-mentioned method embodiment, the implementation of this device embodiment can refer to the implementation of the above-mentioned method embodiment, and repeated descriptions will not be repeated.
- FIG. 9 shows a schematic diagram of a data conversion device in an embodiment of the present disclosure. As shown in FIG. 9 , the device includes: a configuration module 91 and a conversion module 92.
- the configuration module 91 is used to obtain a pre-configured integer matrix, wherein the integer matrix is invertible and the inverse matrix is a rational number matrix; the transformation module 92 is used to perform integer transformation on the data to be transformed by using the integer matrix.
- the data transformation device pre-configures an integer matrix that is reversible and the inverse matrix is a rational number matrix through the configuration module 91; through the transformation module 92, the integer transformation is performed on the data to be transformed using the configured integer matrix,
- the whole integer transformation scheme can be realized, not only without any floating-point expression error and quantization error, but also can generate more zero coefficients than the traditional integer transformation/DCT transformation, effectively improving the data compression ratio and Data compression efficiency.
- embodiments of the present disclosure also provide a data recovery device, such as the following embodiments. Since the problem-solving principle of this device embodiment is similar to that of the above-mentioned method embodiment, the implementation of this device embodiment can refer to the implementation of the above-mentioned method embodiment, and repeated descriptions will not be repeated.
- FIG. 10 shows a schematic diagram of a data recovery device in an embodiment of the present disclosure.
- the device includes: a data acquisition module 101 and an inverse transformation module 102 .
- the data obtaining module 101 is used to obtain the data to be restored, wherein, the data to be restored is the data after integer transformation is carried out to the original data by using an integer matrix, the integer matrix is reversible and the inverse matrix is a matrix of rational numbers; the inverse transformation module 102 uses It uses the inverse matrix of the integer matrix to perform inverse transformation on the data to be restored, so as to restore the data before the integer transformation.
- the above-mentioned inverse transformation module 102 can also use the integer matrix after shaping the inverse matrix to perform inverse transformation on the data to be restored, so as to restore the integer transformation previous data.
- the data recovery device obtains the data to be recovered through the data acquisition module 101, and uses the inverse matrix of the integer matrix or the integer matrix after shaping the inverse matrix through the inverse transformation module 102,
- the original data can be completely recovered by performing an inverse integer transformation on the data to be recovered.
- an image compression system is also provided in the embodiments of the present disclosure, such as the following embodiments. Since the problem-solving principle of the system embodiment is similar to that of the above-mentioned method embodiment, the implementation of the system embodiment can refer to the implementation of the above-mentioned method embodiment, and repeated descriptions will not be repeated.
- FIG. 11 shows a schematic diagram of an image compression system in an embodiment of the present disclosure.
- the image compression system 11 includes: a first encoding module 111 and a first decoding module 112 .
- the first encoding module 111 is used to obtain a pre-configured integer matrix, and uses the integer matrix to perform integer transformation on the image data, wherein the integer matrix is reversible and the inverse matrix is a rational number matrix; the first decoding module 112 is used to use the integer matrix The inverse matrix of the matrix or the integer matrix after shaping the inverse matrix performs inverse transformation on the data after the integer transformation, and restores the image data before the integer transformation.
- first encoding module 111 and first decoding module 112 may be deployed on the same device, or may be deployed on different devices, which is not specifically limited in this disclosure.
- the first encoding module 111 is also used to: encode the data after integer transformation, and transmit the encoded data to the first decoding module 112; the first decoding module 112 is also used to encode The data of module 111 is decoded, and the inverse matrix of the integer matrix or the integer matrix obtained by shaping the inverse matrix is used to inversely transform the decoded data to recover the data before the integer transformation.
- the first encoding module 111 adopts an encoding manner that performs ZigZag scanning or an encoding manner that does not perform ZigZag scanning.
- embodiments of the present disclosure also provide a feature compression system, such as the following embodiments. Since the problem-solving principle of the system embodiment is similar to that of the above-mentioned method embodiment, the implementation of the system embodiment can refer to the implementation of the above-mentioned method embodiment, and repeated descriptions will not be repeated.
- FIG. 12 shows a schematic diagram of a feature compression system in an embodiment of the present disclosure.
- the image compression system 12 includes: a second encoding module 121 and a second decoding module 122 .
- the second encoding module 121 is used to obtain a pre-configured integer matrix, and uses the integer matrix to perform integer transformation on the characteristic data, wherein the integer matrix is reversible and the inverse matrix is a rational number matrix; the second decoding module 122 is used to use the integer matrix The inverse matrix of the matrix or the integer matrix after reshaping the inverse matrix performs inverse transformation on the data after the integer transformation, and restores the data before the integer transformation.
- the above feature data may be, but not limited to, feature data obtained by extracting features from an image using a convolutional neural network (CNN) model.
- CNN convolutional neural network
- the second encoding module 121 and the second decoding module 122 may be deployed on the same device, or may be deployed on different devices, which is not specifically limited in the present disclosure.
- the second encoding module 121 is also used to: encode the data after integer transformation, and transmit the encoded data to the second decoding module 122; the second decoding module 122 is also used to encode data from the second encoding
- the data of the module 121 is decoded, and the inverse matrix of the integer matrix or the integer matrix obtained by reshaping the inverse matrix is used to inversely transform the decoded data to recover the data before the integer transformation.
- the second encoding module 121 adopts an encoding manner that performs ZigZag scanning or an encoding manner that does not perform ZigZag scanning.
- the second encoding module 121 is also used to perform quantization processing on the feature data, and uses an integer matrix to perform integer transformation of all integer operations on the quantized feature data; the second decoding module 122 is also used to use the inverse matrix The integer matrix after shaping is performed, the inverse transformation of the whole integer operation is performed on the data after the integer transformation, and the inverse quantization process is performed on the inversely transformed data to obtain the original feature data.
- the second encoding module 121 is also used to perform integer transformation on the feature data, and quantize the integer-transformed feature data; the second decoding module 122 is also used to perform inverse quantization on the quantized feature data , using the inverse matrix of the integer matrix or the integer matrix after reshaping the inverse matrix, inversely transforming the data after inverse quantization processing to obtain the original feature data.
- embodiments of the present disclosure also provide a residual compression system, such as the following embodiments. Since the problem-solving principle of the system embodiment is similar to that of the above-mentioned method embodiment, the implementation of the system embodiment can refer to the implementation of the above-mentioned method embodiment, and repeated descriptions will not be repeated.
- FIG. 13 shows a schematic diagram of a residual compression system in an embodiment of the present disclosure.
- the residual compression system 13 includes: a third encoding module 131 and a third decoding module 132 .
- the third coding module 131 is used to obtain a pre-configured integer matrix, and uses the integer matrix to perform integer transformation on the residual data, wherein the integer matrix is reversible and the inverse matrix is a rational number matrix; the third decoding module 132 is used to use The inverse matrix of the integer matrix or the integer matrix after shaping the inverse matrix performs inverse transformation on the data after the integer transformation, and restores the data before the integer transformation.
- the third encoding module 131 and the third decoding module 132 may be deployed on the same device, or may be deployed on different devices, which is not specifically limited in this disclosure.
- the third encoding module 131 is also used to: encode the data after integer transformation, and transmit the encoded data to the third decoding module 132; the third decoding module 132 is also used to encode data from the third encoding
- the data of the module 131 is decoded, and the inverse matrix of the integer matrix or the integer matrix obtained by shaping the inverse matrix is used to inversely transform the decoded data to restore the data before the integer transformation.
- the third encoding module 131 adopts an encoding manner that performs ZigZag scanning or an encoding manner that does not perform ZigZag scanning.
- Step 1 Block the image 4x4 XF M_16
- Step 3 Direct entropy encoding of the resulting coefficients YF 32_1 .
- Step 1 Perform entropy decoding on the data to obtain YF 32_2 ;
- Step 2 carry out inverse integer transformation to YF 32_2 by following formula, obtain original image 4x4 block XF M_16 ;
- F represents the inverse matrix of I, which is a matrix of rational numbers
- N represents an integer matrix with the same dimension as F, and each element is n
- n is a positive integer.
- Step 1 The image gets the feature F 32_1 through the CNN feature extraction network
- Step 2 Preliminary preprocessing of features, forcing features to take 0.0 as the middle point, and the left and right positive and negative distributions
- Feature maximum value f_max max(F 32_1 );
- Feature maximum value f_min min(F 32_1 );
- Feature offset f_offset (f_max+f_min)/2;
- F 32_1 F 32_1 - f_offset
- Step 6 The feature is shaped into (-1,16) dimension to get XI M_16
- Step 10 Set q_table as shown in Table 3;
- Step 2 Perform an inverse integer transformation on the data:
- F is the inverse matrix of I, which is a floating-point rational number
- n is a positive integer
- N is a matrix whose dimension is the same as F, and each element of which is an integer n;
- Step 3 Feature XI M_16 is shaped back to the original size to get I 32_2 ;
- Step 1 the image obtains the feature F 32_1 through the CNN feature extraction network
- Step 5 feature shaping into (-1,16) dimension to get XI M_16 ;
- Step 7 Directly entropy encode the coefficients.
- Step 1 Perform an inverse integer transformation on the data YI 32_2 :
- F is the inverse matrix of I, which is a floating-point rational number
- n is a positive integer
- N is a matrix whose dimension is the same as F, and each element of which is an integer n;
- Step 2 Feature XI M_16 is shaped back to the original size to get I 32_2 ;
- Step 1 the image obtains the feature F 32_1 through the CNN feature extraction network
- Step 6 feature shaping into (-1,64) dimension to get XI M_64 ;
- Step 8 Set the fixed quantization table q_table, as shown in Table 4;
- Step 9 Second Quantization of Feature Data Further narrow the scope of the data.
- Step 2 Perform an inverse integer transformation on the data:
- F is the inverse matrix of I, which is a floating-point rational number
- n is a positive integer
- N is a matrix whose dimension is the same as F, and each element of which is an integer n;
- Step 3 Feature XI M_64 is reshaped to the original size to get I 32_2 ;
- Embodiment 5 is a diagrammatic representation of Embodiment 5:
- Step 1 the image obtains the feature F 32_1 through the CNN feature extraction network
- Step 2 feature shaping into (-1,16) dimension obtains XI M_16 ;
- Step 5 Quantify the feature data
- Step 6 Entropy coding the quantized feature data I 32_1 .
- Step 1 Dequantize the data I 32_2 to obtain integer transformation coefficients, which are floating-point values:
- YI 32_2 I 32_1 ⁇ b2;
- XI M_16 FYI 32_2 F T ;
- F is the inverse matrix of I, which is a floating-point rational number
- Step 2 Feature XI M_16 is shaped back to the original size to get I 32_2 ;
- Embodiment 6 is a diagrammatic representation of Embodiment 6
- Step 1 Estimate the image to obtain the residual I 32_1 ;
- Step 2 Quantize the residual and complete the 8x8 block to get XI M_64 ;
- Step 3 Perform an 8x8 integer transformation on each 64 small block to get:
- YI 32_1 IXI M_64 I Y ;
- Step 4 zigzag encoding + other entropy encoding
- Step 1 Other entropy decoding + zigzag decoding of encoded data
- Step 2 Do an inverse integer transformation:
- F is the inverse matrix of I, which is a floating-point rational number
- n is a positive integer
- N is a matrix whose dimension is the same as F, and each element of which is an integer n;
- the residual is dequantized to obtain the residual I 32_2 .
- FIG. 14 An electronic device 1400 according to this embodiment of the present disclosure is described below with reference to FIG. 14 .
- the electronic device 1400 shown in FIG. 14 is only an example, and should not limit the functions and scope of use of the embodiments of the present disclosure.
- electronic device 1400 takes the form of a general-purpose computing device.
- Components of the electronic device 1400 may include but not limited to: at least one processing unit 1410, at least one storage unit 1420, and a bus 1430 connecting different system components (including the storage unit 1420 and the processing unit 1410).
- the storage unit stores program codes, and the program codes can be executed by the processing unit 1410, so that the processing unit 1410 executes various exemplary methods according to the present disclosure described in the “Exemplary Methods” section of this specification. Implementation steps.
- the processing unit 1410 can perform the following steps in the above method embodiment: obtain a pre-configured integer matrix; use the integer matrix to perform integer transformation on the data to be compressed; The data to be compressed is encoded to obtain compressed data.
- the processing unit 1410 may perform the following steps in the above method embodiment: obtain compressed data, wherein the compressed data is an integer transformation of the original data using a pre-configured integer matrix, and The data obtained by encoding the data after integer transformation; decoding the compressed data, and using the inverse matrix of the integer matrix to perform inverse integer transformation on the decoded data to restore the original data.
- the storage unit 1420 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 14201 and/or a cache storage unit 14202 , and may further include a read-only storage unit (ROM) 14203 .
- RAM random access storage unit
- ROM read-only storage unit
- Storage unit 1420 may also include programs/utilities 14204 having a set (at least one) of program modules 14205, such program modules 14205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, Implementations of networked environments may be included in each or some combination of these examples.
- Bus 1430 may represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local area using any of a variety of bus structures. bus.
- the electronic device 1400 can also communicate with one or more external devices 1440 (such as keyboards, pointing devices, Bluetooth devices, etc.), and can also communicate with one or more devices that enable the user to interact with the electronic device 1400, and/or communicate with Any device (eg, router, modem, etc.) that enables the electronic device 1400 to communicate with one or more other computing devices. Such communication may occur through input/output (I/O) interface 1450 .
- the electronic device 1400 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN) and/or a public network such as the Internet) through the network adapter 1460 . As shown, network adapter 1460 communicates with other modules of electronic device 1400 via bus 1430 .
- other hardware and/or software modules may be used in conjunction with electronic device 1400, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives And data backup storage system, etc.
- the example implementations described here can be implemented by software, or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure can be embodied in the form of software products, and the software products can be stored in a non-volatile storage medium (which can be CD-ROM, U disk, mobile hard disk, etc.) or on the network , including several instructions to make a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) execute the method according to the embodiments of the present disclosure.
- a computing device which may be a personal computer, a server, a terminal device, or a network device, etc.
- a computer-readable storage medium is also provided, and the computer-readable storage medium may be a readable signal medium or a readable storage medium.
- a program product capable of realizing the above-mentioned methods of the present disclosure is stored thereon.
- various aspects of the present disclosure may also be implemented in the form of a program product, which includes program code, and when the program product is run on a terminal device, the program code is used to make the The terminal device executes the steps according to various exemplary embodiments of the present disclosure described in the "Exemplary Method" section above in this specification.
- Computer-readable storage media in this disclosure may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), Erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
- RAM random access memory
- ROM read only memory
- EPROM or flash memory Erasable programmable read-only memory
- CD-ROM portable compact disk read-only memory
- magnetic storage device or any suitable combination of the above.
- a computer-readable storage medium may include a data signal carrying readable program code in baseband or as part of a carrier wave traveling as a data signal. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
- a readable signal medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.
- program code contained on a computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, cable, optical cable, RF, etc., or any suitable combination of the above.
- the program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, and the programming language includes an object-oriented programming language—such as Java, C++, etc., or Includes conventional procedural programming languages - such as the "C" language or similar programming languages.
- the program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server to execute.
- the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (for example, using an Internet service provider). business to connect via the Internet).
- LAN local area network
- WAN wide area network
- Internet service provider for example, using an Internet service provider
- steps of the methods of the present disclosure are depicted in the drawings in a particular order, there is no requirement or implication that the steps must be performed in that particular order, or that all illustrated steps must be performed to achieve the desired result. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step for execution, and/or one step may be decomposed into multiple steps for execution, etc.
- the example embodiments described here can be implemented by software, or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure can be embodied in the form of software products, and the software products can be stored in a non-volatile storage medium (which can be CD-ROM, U disk, mobile hard disk, etc.) or on the network , including several instructions to make a computing device (which may be a personal computer, a server, a mobile terminal, or a network device, etc.) execute the method according to the embodiments of the present disclosure.
- a non-volatile storage medium which can be CD-ROM, U disk, mobile hard disk, etc.
- a computing device which may be a personal computer, a server, a mobile terminal, or a network device, etc.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Discrete Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
Description
| 1 | 1 | 1 | 4 |
| 1 | 1 | 4 | 4 |
| 1 | 4 | 4 | 8 |
| 4 | 4 | 8 | 8 |
| 1 | 1 | 1 | 1 |
| 1 | 1 | 1 | 1 |
| 1 | 1 | 1 | 2 |
| 1 | 1 | 2 | 2 |
| 1 | 1 | 1 | 1 |
| 1 | 1 | 1 | 2 |
| 1 | 1 | 2 | 2 |
| 1 | 2 | 2 | 2 |
| 7 | 7 | 10 | 19 | 40 | 40 | 40 | 40 |
| 7 | 8 | 10 | 26 | 40 | 40 | 40 | 40 |
| 10 | 10 | 22 | 40 | 40 | 40 | 40 | 40 |
| 19 | 26 | 40 | 40 | 40 | 40 | 40 | 40 |
| 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 |
| 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 |
| 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 |
| 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 |
| 1 | 1 | 1 | 1 |
| 1 | 1 | 1 | 2 |
| 1 | 1 | 2 | 2 |
| 1 | 2 | 2 | 2 |
Claims (28)
- 一种数据变换方法,包括:获取预先配置的一个整数矩阵,其中,所述整数矩阵可逆且逆矩阵为有理数矩阵;利用所述整数矩阵对待变换数据进行整数变换。
- 根据权利要求1所述的数据变换方法,其中,通过如下公式对待变换数据进行整数变换:Y=IXI T;其中,Y表示整数变换后的数据;X表示整数变换前的数据,也即整数变换前的数据;I表示预先配置的一个可逆且逆矩阵为有理数矩阵的整数矩阵;I T表示I的转置矩阵。
- 根据权利要求2所述的数据变换方法,其中,通过如下公式对整数变换后的数据进行逆变换,以恢复出整数变换前的数据:X=FYF T;其中,F表示I的逆矩阵,是一个有理数矩阵;F T表示F的转置矩阵。
- 根据权利要求1所述的数据变换方法,其中,所述待变换数据为整形数据,对所述整形数据的正变换和逆变换均为全整数运算的整数变换,所述数据变换方法还包括:利用整数矩阵对待变换的整形数据进行全整数运算的整数变换;利用对所述整数矩阵的逆矩阵进行整形后的整数矩阵,对整数变换后的数据进行全整 数运算的逆变换,恢复出所述整形数据。
- 根据权利要求1所述的数据变换方法,其中,所述待变换数据为浮点数据,所述数据变换方法还包括:对待变换的浮点数据进行量化,得到量化后的整形数据;利用整数矩阵对量化后的整形数据进行全整数运算的整数变换;利用对所述整数矩阵的逆矩阵进行整形后的整数矩阵,对整数变换后的数据进行逆变换,恢复出整数变换前的数据。
- 根据权利要求1所述的数据变换方法,其中,所述待变换数据为浮点数据,所述数据变换方法还包括:利用整数矩阵对待变换的浮点数据进行变换,得到变换后的浮点数据;利用所述整数矩阵的逆矩阵或对所述整数矩阵的逆矩阵进行整形后的整数矩阵,对变换后的浮点数据进行逆变换,恢复出变换前的浮点数据。
- 根据权利要求1所述的数据变换方法,其中,所述待变换数据为浮点数据,所述数据变换方法还包括:利用整数矩阵对待变换的浮点数据进行变换,得到变换后的浮点数据;对整数变换后的浮点数据进行量化处理;对量化处理后的数据进行反量化处理;利用所述整数矩阵的逆矩阵或对所述逆矩阵进行整形后的整数矩阵,对反量化后的浮点数据进行逆变换,恢复出整数变换前的浮点数据。
- 根据权利要求1至8中任意一项所述的数据变换方法,其中,所述待变换数据至少包括如下任意之一:图像数据、视频数据、残差数据、特征数据。
- 一种数据恢复方法,包括:获取待恢复数据,其中,所述待恢复数据为利用一个整数矩阵对原始数据进行整数变换后的数据,所述整数矩阵可逆且逆矩阵为有理数矩阵;利用所述整数矩阵的逆矩阵,对所述待恢复数据进行逆变换,以恢复出整数变换前的数据。
- 一种数据恢复方法,包括:获取待恢复数据,其中,所述待恢复数据为利用一个整数矩阵对原始数据进行整数变换后的数据,所述整数矩阵可逆且逆矩阵为有理数矩阵;利用对所述逆矩阵进行整形后的整数矩阵,对所述待恢复数据进行逆变换,以恢复出整数变换前的数据。
- 一种数据变换装置,包括:配置模块,用于获取预先配置的一个整数矩阵,其中,所述整数矩阵可逆且逆矩阵为有理数矩阵;变换模块,用于利用所述整数矩阵对待变换数据进行整数变换。
- 一种数据恢复装置,包括:数据获取模块,用于获取待恢复数据,其中,所述待恢复数据为利用一个整数矩阵对原始数据进行整数变换后的数据,所述整数矩阵可逆且逆矩阵为有理数矩阵;逆变换模块,用于利用所述整数矩阵的逆矩阵,对所述待恢复数据进行逆变换,以恢复出整数变换前的数据。
- 一种数据恢复装置,包括:数据获取模块,用于获取待恢复数据,其中,所述待恢复数据为利用一个整数矩阵对原始数据进行整数变换后的数据,所述整数矩阵可逆且逆矩阵为有理数矩阵;逆变换模块,用于利用对所述逆矩阵进行整形后的整数矩阵,对所述待恢复数据进行逆变换,以恢复出整数变换前的数据。
- 一种图像压缩系统,包括:第一编码模块和第一解码模块;所述第一编码模块,用于获取预先配置的一个整数矩阵,利用所述整数矩阵对图像数据进行整数变换,其中,所述整数矩阵可逆且逆矩阵为有理数矩阵;所述第一解码模块,用于利用所述整数矩阵的逆矩阵或对所述逆矩阵进行整形后的整数矩阵,对整数变换后的数据进行逆变换,恢复出整数变换前的图像数据。
- 根据权利要求15所述的图像压缩系统,其中:所述第一编码模块还用于,对整数变换后的数据进行编码,将编码后的数据传输至所述第一解码模块;所述第一解码模块还用于,对来自第一编码模块的数据进行解码,利用所述整数矩阵的逆矩阵或对所述逆矩阵进行整形后的整数矩阵,对解码后的数据进行逆变换,恢复出整数变换前的数据。
- 根据权利要求16所述的图像压缩系统,其中,所述第一编码模块采用执行ZigZag扫描的编码方式或不执行ZigZag扫描的编码方式。
- 一种特征压缩系统,包括:第二编码模块和第二解码模块;所述第二编码模块,用于获取预先配置的一个整数矩阵,利用所述整数矩阵对特征数据进行整数变换,其中,所述整数矩阵可逆且逆矩阵为有理数矩阵;所述第二解码模块,用于利用所述整数矩阵的逆矩阵或对所述逆矩阵进行整形后的整数矩阵,对整数变换后的数据进行逆变换,恢复出整数变换前的数据。
- 根据权利要求18所述的特征压缩系统,其中:所述第二编码模块还用于,对整数变换后的数据进行编码,将编码后的数据传输至所述第二解码模块;所述第二解码模块还用于,对来自第二编码模块的数据进行解码,利用所述整数矩阵的逆矩阵或对所述逆矩阵进行整形后的整数矩阵,对解码后的数据进行逆变换,恢复出整数变换前的数据。
- 根据权利要求19所述的特征压缩系统,其中,所述第二编码模块采用执行ZigZag扫描的编码方式或不执行ZigZag扫描的编码方式。
- 根据权利要求18所述的特征压缩系统,其中:所述第二编码模块还用于,对特征数据进行量化处理,利用所述整数矩阵对量化后的 特征数据进行全整数运算的整数变换;所述第二解码模块还用于,利用对所述逆矩阵进行整形后的整数矩阵,对整数变换后的数据进行全整数运算的逆变换,并对逆变换后的数据进行反量化处理,得到原始特征数据。
- 根据权利要求18所述的特征压缩系统,其中:所述第二编码模块还用于,对特征数据进行整数变换,对整数变换后的特征数据进行量化处理;所述第二解码模块还用于,对量化后的特征数据进行反量化处理,利用所述整数矩阵的逆矩阵或对所述逆矩阵进行整形后的整数矩阵,对反量化处理后的数据进行逆变换,得到原始特征数据。
- 一种残差压缩系统,包括:第三编码模块和第三解码模块;所述第三编码模块,用于获取预先配置的一个整数矩阵,利用所述整数矩阵对残差数据进行整数变换,其中,所述整数矩阵可逆且逆矩阵为有理数矩阵;所述第三解码模块,用于利用所述整数矩阵的逆矩阵或对所述逆矩阵进行整形后的整数矩阵,对整数变换后的数据进行逆变换,恢复出整数变换前的数据。
- 根据权利要求23所述的残差压缩系统,其中:所述第三编码模块还用于,对整数变换后的数据进行编码,将编码后的数据传输至所述第三解码模块;所述第三解码模块还用于,对来自第三编码模块的数据进行解码,利用所述整数矩阵的逆矩阵或对所述逆矩阵进行整形后的整数矩阵,对解码后的数据进行逆变换,恢复出整数变换前的数据。
- 根据权利要求23所述的残差压缩系统,其中,所述第三编码模块采用执行ZigZag扫描的编码方式或不执行ZigZag扫描的编码方式。
- 一种电子设备,包括:处理器;以及存储器,用于存储所述处理器的可执行指令;其中,所述处理器配置为经由执行所述可执行指令来执行权利要求1~9中任意一项所述的数据变换方法,或权利要求10或11所述的数据恢复方法。
- 一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1~9中任意一项所述的数据变换方法,或权利要求10或11所述的数据恢复方法。
- 一种计算机程序,包括:指令,所述指令当由处理器执行时使所述处理器执行如权利要求1~9中任意一项所述的数据变换方法,或权利要求10或11所述的数据恢复方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111626735.1A CN116366867B (zh) | 2021-12-28 | 2021-12-28 | 数据变换与恢复方法、装置、系统、电子设备及存储介质 |
| CN202111626735.1 | 2021-12-28 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2023124602A1 true WO2023124602A1 (zh) | 2023-07-06 |
Family
ID=86914982
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2022/132143 Ceased WO2023124602A1 (zh) | 2021-12-28 | 2022-11-16 | 数据变换与恢复方法、装置、系统、电子设备及存储介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN116366867B (zh) |
| WO (1) | WO2023124602A1 (zh) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101261619A (zh) * | 2001-08-30 | 2008-09-10 | 诺基亚有限公司 | 变换及后续量化的实现 |
| CN102036063A (zh) * | 2009-09-29 | 2011-04-27 | 北京中星微电子有限公司 | 一种用于编码解码的图像变换方法及装置 |
| WO2011133008A2 (ko) * | 2010-04-23 | 2011-10-27 | 삼성전자 주식회사 | 영상의 변환 방법 및 장치, 역변환 방법 및 장치 |
| CN103125116A (zh) * | 2010-09-28 | 2013-05-29 | 三星电子株式会社 | 视频编码方法和装置以及解码方法和装置 |
| CN113439441A (zh) * | 2019-02-15 | 2021-09-24 | 北京字节跳动网络技术有限公司 | 基于块分割的变换参数推导 |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1210960C (zh) * | 2003-07-03 | 2005-07-13 | 浙江大学 | 运用于图像编码和视频编码的8×8整数变换方法和装置 |
| CN102413331A (zh) * | 2011-12-01 | 2012-04-11 | 上海大学 | 图像或视频的编码方法 |
| US8719321B2 (en) * | 2011-12-11 | 2014-05-06 | Hong Kong Applied Science and Technology Research Institute Company Limited | Adaptive block-size transform using LLMICT |
-
2021
- 2021-12-28 CN CN202111626735.1A patent/CN116366867B/zh active Active
-
2022
- 2022-11-16 WO PCT/CN2022/132143 patent/WO2023124602A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101261619A (zh) * | 2001-08-30 | 2008-09-10 | 诺基亚有限公司 | 变换及后续量化的实现 |
| CN102036063A (zh) * | 2009-09-29 | 2011-04-27 | 北京中星微电子有限公司 | 一种用于编码解码的图像变换方法及装置 |
| WO2011133008A2 (ko) * | 2010-04-23 | 2011-10-27 | 삼성전자 주식회사 | 영상의 변환 방법 및 장치, 역변환 방법 및 장치 |
| CN103125116A (zh) * | 2010-09-28 | 2013-05-29 | 三星电子株式会社 | 视频编码方法和装置以及解码方法和装置 |
| CN113439441A (zh) * | 2019-02-15 | 2021-09-24 | 北京字节跳动网络技术有限公司 | 基于块分割的变换参数推导 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN116366867A (zh) | 2023-06-30 |
| CN116366867B (zh) | 2024-11-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10909728B1 (en) | Learned lossy image compression codec | |
| WO2023159820A1 (zh) | 图像压缩方法、图像解压缩方法及装置 | |
| WO2021031877A1 (zh) | 图像编解码的方法、装置和芯片 | |
| CN113592966B (zh) | 图像处理方法及装置、电子设备和存储介质 | |
| CN115866253B (zh) | 一种基于自调制的通道间变换方法、装置、终端及介质 | |
| WO2023045420A1 (zh) | 图像处理方法及装置、电子设备和存储介质 | |
| JP2025506961A (ja) | 視覚データ処理のための方法、装置、及び媒体 | |
| CN116389752A (zh) | 视频编码方法及装置、视频解码方法及装置、电子设备 | |
| US12149265B2 (en) | Efficient update of cumulative distribution functions for image compression | |
| CN114286113B (zh) | 基于多头异构卷积自编码器的图像压缩恢复方法及系统 | |
| CN105163130B (zh) | 一种基于离散Tchebichef正交多项式的图像无损压缩方法 | |
| CN109474826B (zh) | 图片压缩方法、装置、电子设备及存储介质 | |
| WO2023124602A1 (zh) | 数据变换与恢复方法、装置、系统、电子设备及存储介质 | |
| CN113949867B (zh) | 一种图像处理的方法及装置 | |
| CN114827289A (zh) | 一种通信压缩方法、系统、电子装置和存储介质 | |
| CN116566397A (zh) | 编码、解码方法、编码器、解码器、电子设备及存储介质 | |
| CN115623207B (zh) | 一种基于多进多出技术的数据传输方法及相关设备 | |
| Al-hamid et al. | Optimized Image Compression Techniques for the Embedded Processors | |
| CN115499664A (zh) | 视频编码方法、视频解码方法以及编码端或/和解码端 | |
| CN116233471A (zh) | 基于渲染和传统编码相结合的图像或视频压缩方法及装置 | |
| CN109756735A (zh) | 用于视频播放的方法及装置 | |
| CN116366070B (zh) | 小波系数编码方法、装置、系统、设备及介质 | |
| CN116418997A (zh) | 特征数据压缩方法、装置、系统、电子设备及存储介质 | |
| US10628165B2 (en) | Gain control for multiple description coding | |
| CN115174908B (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: 22913861 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: 22913861 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 1205 DATED 15/10/2024) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 22913861 Country of ref document: EP Kind code of ref document: A1 |











