Compression method and system for Degamma conversion data

By first and second compression encoding of Degamma converted data, a lookup table is generated and stored in hardware registers, the problem of low storage efficiency during Degamma conversion is solved, and high-precision image processing and reasonable storage space are achieved Allocation reduces data transmission and storage costs.

CN119071497APending Publication Date: 2024-12-03HEFEI SHENGCHUANG MICROELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411282374.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-13
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

The prior art is difficult to improve storage efficiency while retaining high computing accuracy during the Degamma conversion process, resulting in large storage space required for lookup tables and increased computing overhead.

Method used

By obtaining the image data accuracy and the output accuracy of the Degamma module, the Degamma initial output value of each input grayscale is calculated, and the first and second compression encoding is performed based on the statistical information, a Degamma lookup table is generated, and stored in the hardware register. Decompress image data during reading.

Benefits of technology

On the premise of ensuring data accuracy, the storage space requirement is effectively reduced, 40% of the storage space is saved, and the efficiency of data transmission and storage is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071497A_ABST
    Figure CN119071497A_ABST
Patent Text Reader

Abstract

The invention discloses a compression method and system for Degamma conversion data. The method comprises the following steps: acquiring the data precision of an image to be processed and the output precision of a Degamma module; according to a preset gamma parameter, a Degamma initial output value corresponding to each input gray scale is calculated; performing first compression coding on the Degamma initial output value based on the statistical information of the Degamma initial output value to obtain a Degamma primary coding output value; evaluating a precision error generated by the first compression coding, and performing second compression coding on the Degamma initial output value according to a preset compression error threshold to obtain a Degamma secondary coding output value; based on the Degamma secondary coding output value, obtaining a Degamma lookup table, and storing the lookup table in a hardware register; and reading the stored lookup table data, decompressing the lookup table data, and processing the input image data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an image compression algorithm, belongs to the field of image processing, and particularly relates to a compression method and system for Degamma conversion data. Background Art

[0002] In the field of image display technology, many algorithms need to process data in the linear domain, such as color gamut mapping algorithms, sub-pixel rendering algorithms, etc. Before such linear domain algorithms process data, we need to convert the input image data from the nonlinear domain to the linear domain. This process is called Degamma conversion.

[0003] The degamma conversion process involves data power operations. In order to reduce computational complexity and save hardware costs, the degamma conversion curve is usually stored in the hardware memory in the form of a one-dimensional lookup table. During the image processing process, the table lookup interpolation method is used to replace the original curve mapping calculation.

[0004] In order to ensure that all grayscales are not missing after being processed by the Degamma module and the linear domain algorithm module, the image data usually needs to retain as high precision as possible during the processing process. For example, the input image data to be processed is usually represented by 8-bit or 10-bit precision, and the output data after being processed by the Degamma module / linear domain algorithm module is usually 12-bit or higher data precision. The higher the precision of the output data of the Degamma module, the larger the storage space required for the lookup table, and the overhead required in the calculation process of the back-end linear domain algorithm module also increases accordingly. Therefore, there is an urgent need for a data compression method that can retain high calculation accuracy and improve storage efficiency. Summary of the invention

[0005] The present invention provides a compression method for Degamma conversion data, comprising:

[0006] Step 1: Obtain the accuracy of the image data to be processed and the output accuracy of the Degamma module;

[0007] Step 2: Calculate the initial Degamma output value corresponding to each input grayscale according to the preset gamma parameter;

[0008] Step 3: Based on the statistical information of the Degamma initial output value, the Degamma initial output value is compressed and encoded for the first time to obtain the Degamma primary encoding output value;

[0009] Step 4: Evaluate the precision error generated by the first compression coding, and perform a second compression coding on the Degamma initial output value according to a preset compression error threshold to obtain the Degamma secondary coding output value;

[0010] Step 5: Based on the Degamma secondary encoding output value, obtain the Degamma lookup table, and store the lookup table in the hardware register;

[0011] Step 6: Read the stored lookup table data, decompress it and process the input image data.

[0012] In step 1, assuming that the precision of the image data to be processed is mbit and the output precision of the Degamma module is nbit, the input grayscale of the Degamma module can be expressed as IN = 0, 1, ..., 2 m -1, where n>m.

[0013] In step 2, the degamma conversion process can be approximately expressed as an exponential function with gamma as the power. The setting of the gamma parameter depends on the color space to which the image to be processed belongs. The gamma parameter settings of different color spaces are different. The gamma parameter of the sRGB color space we commonly use is set to 2.2.

[0014] According to the preset gamma parameters, calculate the initial Degamma output value corresponding to each input grayscale:

[0015]

[0016] Step three includes:

[0017] (1) Assume that each Degamma has an initial output value DeOUT i The corresponding compression accuracy is Xbit, where X is the preset initial compression accuracy and should satisfy X <m

[0018] (2) Set each Degamma initial output value DeOUT i All divided into corresponding data sub-blocks 1: hblock i And data sub-block 2: lblock i , the specific calculation is as follows:

[0019]

[0020]

[0021] Among them, Floor means rounding down, and Round means rounding up.

[0022] (3) Based on the obtained data sub-block hblock i 、lblock i And compression accuracy X, the initial output value DeOUT of Degamma iPerform the first compression encoding to obtain the Degamma encoding output value:

[0023] DeOUT_Enc1 i =hblock i ×2 X +lblock i ; where i = 0, 1, ..., 2 m -1

[0024] (4) Check whether there are duplicate values ​​in all Degamma one-time encoding output values:

[0025] If there is no duplicate value, directly output DeOUT_Enc1 i As the Degamma one-time encoding output value, where i = 0, 1, ..., 2 m -1;

[0026] If there are repeated values, the initial output value DeOUT for each Degamma i Re-encode for the first time: 4-1. Update the initial output value DeOUT of each Degamma i Compression accuracy:

[0027] X=X+1

[0028] 4-2. Recalculate the data sub-block 1, data sub-block 2 and Degamma primary encoding output value based on the updated compression accuracy:

[0029]

[0030]

[0031]

[0032] Where i = 0, 1, ..., 2 m -1

[0033] 4-3. Execute step (4) again and check the updated DeOUT_Enc1 i Whether there are repeated values ​​in the output value, until there are no repeated values ​​in all Degamma one-time encoding output values, output the current DeOUT_Enc1 i As the Degamma one-time encoding output value, where i = 0, 1, ..., 2 m -1.

[0034] Step 4 includes:

[0035] Based on the compression accuracy X obtained in step 3, data sub-block 1: hblock i, Data sub-block 2: lblock i , perform the following decompression calculation:

[0036]

[0037] Calculate the actual compression error caused by the first compression encoding:

[0038] ER1 i =|DeOUT_Dec1 i -DeOUT i |

[0039] Where i = 0, 1, ..., 2 m -1

[0040] If the actual compression error of all data is ER1 i If the values ​​are not greater than the preset compression error threshold ε, the current DeOUT_Enc1 is directly output. i As Degamma secondary encoding output value DeOUT_Enc2 i , i = 1, 2, ..., 2 m -1

[0041] If the actual compression error of some data is greater than the compression error threshold ε, then the initial output value DeOUT of each Degamma i Perform the second compression encoding:

[0042] (1) Update each Degamma initial output value DeOUT i Compression accuracy:

[0043] X=X+1

[0044] (2) Recalculate the data sub-block 1, data sub-block 2, and Degamma encoding output value based on the updated compression accuracy

[0045]

[0046]

[0047]

[0048] Where i = 0, 1, ..., 2 m -1

[0049] (3) Execute step 4 again to calculate the updated Degamma primary encoding output value DeOUT_Enc1 i Until the actual compression error of all data is no greater than the compression error threshold ε, the current DeOUT_Enc1 is outputi As the Degamma secondary encoding output value DeOUT_Enc2 i , i = 1, 2, ..., 2 m -1.

[0050] Step five includes:

[0051] The degamma lookup table can be expressed as

[0052]

[0053] Step six includes:

[0054] Read the lookup table data stored in the hardware and decompress the data DeOUT_Enc2 i Perform decoding analysis according to the corresponding data sub-block 1: hblock2 i , Data sub-block 2: lblock2 i And the compression accuracy is X2, and the decompression calculation is performed as follows:

[0055]

[0056] Where i = 1, ..., 2 m -1

[0057] Using the decompressed DeOUT_Dec2 i The data can be processed by performing Degamma table lookup interpolation calculation and linear domain processing on the input image data to be processed.

[0058] The present invention also provides a compression system for Degamma conversion data, including a Degamma initial value calculation module, a first compression encoding module, a second compression encoding module, and a Degamma lookup table generation module;

[0059] Degamma initial value calculation module: calculates the Degamma initial output value corresponding to each input grayscale according to the input image data accuracy, Degamma output accuracy and preset gamma parameters;

[0060] First compression coding module: Analyze the actual distribution of Degamma initial output value, determine the corresponding compression accuracy and data sub-block splitting method, perform the first compression coding, and obtain Degamma first coding output value;

[0061] Second compression coding module: evaluates the precision error generated by the first compression coding, and performs a second compression coding on the Degamma initial output value according to a preset compression error threshold to obtain the Degamma secondary coding output value;

[0062] Degamma lookup table generation module: Based on the Degamma secondary encoding output value, the final Degamma lookup table is obtained after discrete sampling and the lookup table is stored in the hardware register. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] Figure 1 Shown is a data compression flow chart of the present invention;

[0064] Figure 2 Shown is a linear domain processing flow chart of the present invention;

[0065] Figure 3 The binary representation of decimal data 3718 is shown as an example of the encoding of the present invention;

[0066] Figure 4 The binary representation of the decimal number 250 is shown as an example of the encoding of the present invention;

[0067] Figure 5 Shown is the structural diagram of the Degamma conversion data compression system of the present invention. DETAILED DESCRIPTION

[0068] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0069] See also Figure 1 , shown as a compression method for degamma-converted data, including:

[0070] Step 1: Obtain the accuracy of the image data to be processed and the output accuracy of the Degamma module;

[0071] Step 2: Calculate the initial Degamma output value corresponding to each input grayscale according to the preset gamma parameter;

[0072] Step 3: Based on the statistical information of the Degamma initial output value, the Degamma initial output value is compressed and encoded for the first time to obtain the Degamma primary encoding output value;

[0073] Step 4: Evaluate the precision error generated by the first compression coding, and perform a second compression coding on the Degamma initial output value according to a preset compression error threshold to obtain the Degamma secondary coding output value;

[0074] Step 5: Based on the Degamma secondary encoding output value, obtain the Degamma lookup table, and store the lookup table in the hardware register;

[0075] Step 6: Read the stored lookup table data, decompress it and process the input image data.

[0076] See also Figure 2 , obtain the accuracy of the image data to be processed and the output accuracy of the Degamma module

[0077] Assuming that the precision of the image data to be processed is mbit and the output precision of the Degamma module is nbit, the input grayscale of the Degamma module can be expressed as IN = 0, 1, ..., 2 m -1, where n>m.

[0078] In step 2:

[0079] The degamma conversion process can be approximately expressed as an exponential function with gamma as the power. The setting of the gamma parameter depends on the color space to which the image to be processed belongs. The gamma parameter settings of different color spaces are different. The gamma parameter of the sRGB color space we commonly use is set to 2.2.

[0080] According to the preset gamma parameters, calculate the initial Degamma output value corresponding to each input grayscale:

[0081]

[0082] Next, the initial output value of Degamma is compressed and encoded for the first time to obtain the Degamma first-encoded output value:

[0083] (1) Assume that each Degamma has an initial output value DeOUT i The corresponding compression accuracy is Xbit, where X is the preset initial compression accuracy and should satisfy X <m

[0084] (2) Set each Degamma initial output value DeOUT i All divided into corresponding data sub-blocks 1: hblock i And data sub-block 2: lblock i , the specific calculation is as follows:

[0085]

[0086]

[0087] Among them, Floor means rounding down, and Round means rounding up.

[0088] (3) Based on the obtained data sub-block hblock i 、lblock i And compression accuracy X, the initial output value DeOUT of Degamma i Perform the first compression encoding to obtain the Degamma encoding output value:

[0089] DeOUT_Enc1 i =hblock i ×2 x +lblock i ; where i = 0, 1, ..., 2 m -1, the encoding example is as follows:

[0090] Assume that the initial output value of Degamma to be encoded is the decimal data 3718 with 15-bit precision, and the initial compression precision is set to 5 bits. The binary representation of the decimal data 3718 is as follows: Figure 3 After calculation, the value of data sub-block 1 should be decimal data 7, the value of data sub-block 2 should be decimal data 26, and the output result of the compressed encoding should be a decimal number 250 with 9-bit precision. Its binary representation is as follows Figure 4 As shown, data sub-block 1 is represented by Bit8 to Bit5, and data sub-block 2 is represented by Bit4 to Bit0.

[0091] (4) Check whether there are duplicate values ​​in all Degamma one-time encoding output values:

[0092] If there is no duplicate value, directly output DeOUT_Enc1 i As the Degamma one-time encoding output value, where i = 0, 1, ..., 2 m -1;

[0093] If there are repeated values, the initial output value DeOUT for each Degamma i Re-encode the first compression:

[0094] 4-1. Update each Degamma initial output value DeOUT i Compression accuracy:

[0095] X=X+1

[0096] 4-2. Recalculate the data sub-block 1, data sub-block 2 and Degamma primary encoding output value based on the updated compression accuracy:

[0097]

[0098]

[0099]

[0100] Where i = 0, 1, ..., 2 m -1

[0101] 4-3. Execute step (4) again, that is, check whether there are duplicate values ​​in all Degamma one-time encoding output values. Check the updated DeOUT_Enc1 i Whether there are repeated values ​​in the output value, until there are no repeated values ​​in all Degamma one-time encoding output values, output the current DeOUT_Enc1 i As the Degamma one-time encoding output value, where i =

[0102] 0, 1, …, 2 m -1.

[0103] Next, the accuracy error generated by the first compression coding is evaluated, and the Degamma initial output value is compressed and coded for the second time according to the preset compression error threshold ε to obtain the Degamma secondary coding output value:

[0104] Based on the compression accuracy X obtained in step 3, data sub-block 1: hblock i , Data sub-block 2: lblock i , perform the following decompression calculation:

[0105]

[0106] Calculate the actual compression error caused by the first compression encoding:

[0107] ER1 i =|DeOUT_Dec1 i -DeOUT i |

[0108] Where i = 0, 1, ..., 2 m -1, taking the decimal data 3718 with 15-bit precision as an example, the output result of the first compression encoding is the decimal number 250 with 9-bit precision. Among them, the value of data sub-block 1 is decimal data 7, the value of data sub-block 2 is decimal data 26, and the compression precision is 5 bits. Therefore, the decompressed result is the decimal number 3712 with 15-bit precision, and the actual compression error caused by the first compression encoding is 6.

[0109] If the actual compression error of all data is ER1 i If the values ​​are not greater than the preset compression error threshold ε, the current DeOUT_Enc1 is directly output. iAs Degamma secondary encoding output value DeOUT_Enc2 i , i = 1, 2, ..., 2 m -1.

[0110] If the actual compression error of some data is greater than the compression error threshold ε, then the initial output value DeOUT of each Degamma i Perform the second compression encoding:

[0111] (1) Update each Degamma initial output value DeOUT i Compression accuracy:

[0112] X=X+1

[0113] (2) Recalculate the data sub-block 1, data sub-block 2, and Degamma encoding output value based on the updated compression accuracy

[0114]

[0115]

[0116]

[0117] Where i = 0, 1, ..., 2 m -1

[0118] (3) Execute step 4 again to calculate the updated Degamma primary encoding output value DeOUT_Enc1 i Until the actual compression error of all data is no greater than the compression error threshold ε, the current DeOUT_Enc1 is output i As the Degamma secondary encoding output value DeOUT_Enc2 i , i = 1, 2, ..., 2 m -1.

[0119] Next, based on the Degamma secondary encoding output value, the Degamma lookup table DeLUT is obtained and the lookup table is stored in the hardware register:

[0120] The degamma lookup table can be expressed as

[0121]

[0122] Taking the input image data to be processed with an accuracy of 8 bits and the Degamma module output data with an accuracy of 15 bits as an example, the data processing method proposed in the present invention can compress the 15-bit data to 9 bits, thereby saving 40% of the storage space while retaining the 15-bit data accuracy.

[0123] Discrete sampling is performed on the Degamma lookup table to reduce the number of binding points of the lookup table that needs to be stored, which can further save storage space and will not be described in detail here.

[0124] Next, read the stored lookup table data, decompress it and process the input image data:

[0125] Read the lookup table data stored in the hardware and decompress the data DeOUT_Enc2 i Perform decoding analysis according to the corresponding data sub-block 1: hblock2 i , Data sub-block 2: lblock2 i And the compression accuracy is X2, and the decompression calculation is performed as follows:

[0126]

[0127] Where i = 1, ..., 2 m -1

[0128] Using the decompressed DeOUT_Dec2 i The data can be processed by performing Degamma table lookup interpolation calculation and linear domain processing on the input image data to be processed.

[0129] See also Figure 5 , a structure of a compression system for Degamma conversion data, including a Degamma initial value calculation module, a first compression encoding module, a second compression encoding module, and a Degamma lookup table generation module;

[0130] Degamma initial value calculation module: calculates the Degamma initial output value corresponding to each input grayscale according to the input image data accuracy, Degamma output accuracy and preset gamma parameters;

[0131] First compression coding module: Analyze the actual distribution of Degamma initial output value, determine the corresponding compression accuracy and data sub-block splitting method, perform the first compression coding, and obtain Degamma first coding output value;

[0132] Second compression coding module: evaluates the precision error generated by the first compression coding, and performs a second compression coding on the Degamma initial output value according to a preset compression error threshold to obtain the Degamma secondary coding output value;

[0133] Degamma lookup table generation module: Based on the Degamma secondary encoding output value, the final Degamma lookup table is obtained after discrete sampling and the lookup table is stored in the hardware register.

[0134] The present invention can compress, store and decompress data according to the actual distribution characteristics of Degamma data. Under the premise of ensuring data accuracy, storage space can be effectively and reasonably allocated, greatly reducing the cost of data transmission and storage. At the same time, the data compression and decompression method proposed by the present invention is simple to implement, occupies less system resources, and has a faster compression and decompression speed.

[0135] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0136] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is limited by the appended claims and their equivalents.

Claims

1. A compression method for Degamma conversion data, characterized in that: include: Step 1: Obtain the accuracy of the image data to be processed and the output accuracy of the Degamma module; Step 2: Calculate the initial Degamma output value corresponding to each input grayscale according to the preset gamma parameter; Step 3: Based on the statistical information of the Degamma initial output value, the Degamma initial output value is compressed and encoded for the first time to obtain the Degamma primary encoding output value; Step 4: Evaluate the precision error generated by the first compression coding, and perform a second compression coding on the Degamma initial output value according to a preset compression error threshold to obtain the Degamma secondary coding output value; Step 5: Based on the Degamma secondary encoding output value, obtain the Degamma lookup table, and store the lookup table in the hardware register; Step 6: Read the stored lookup table data, decompress it and process the input image data.

2. A compression method for Degamma conversion data according to claim 1, characterized in that: In the step 1, assuming that the precision of the image data to be processed is mbit and the output precision of the Degamma module is nbit, the input grayscale of the Degamma module is represented as IN=0, 1, ..., 2 m -1, where n>m.

3. A compression method for Degamma conversion data according to claim 1, characterized in that: In the step 2, the degamma conversion process can be approximately expressed as an exponential function with gamma as the power. The setting of the gamma parameter depends on the color space to which the image to be processed belongs. The gamma parameter settings of different color spaces are different. The gamma parameter of the sRGB color space is set to 2.

2. According to the preset gamma parameters, calculate the initial Degamma output value corresponding to each input grayscale:

4. A compression method for Degamma conversion data according to claim 1, characterized in that: The step three comprises: (1) Assume that each Degamma has an initial output value DeOUT i The corresponding compression accuracy is Xbit, where X is the preset initial compression accuracy and should satisfy X <m; (2) Set each Degamma initial output value DeOUT i All divided into corresponding data sub-blocks 1: hblock i And data sub-block 2: lblock i , the specific calculation is as follows: Among them, Floor means the operation of rounding down, and Round means the operation of rounding up. (3) Based on the obtained data sub-block hblock i 、lblock i And compression accuracy X, the initial output value DeOUT of Degamma i Perform the first compression encoding to obtain the Degamma encoding output value: DeOUT_Enc1 i =hblock i ×2 X +lblock i ; where i = 0, 1, ..., 2 m -1; (4) Check whether there are duplicate values ​​in all Degamma one-time encoding output values: If there is no duplicate value, directly output DeOUT_Enc1 i As the Degamma one-time encoding output value, where i = 0, 1, ..., 2 m -1; If there are repeated values, the initial output value DeOUT for each Degamma i Re-encode the first compression: 4-1. Update each Degamma initial output value DeOUT i Compression accuracy: X=X+1 4-2. Recalculate the data sub-block 1, data sub-block 2 and Degamma primary encoding output value based on the updated compression accuracy: Where i = 0, 1, ..., 2 m -1; 4-3. Execute step (4) again and check the updated DeOUT_Enc1 i Whether there are repeated values ​​in the output value, until there are no repeated values ​​in all Degamma one-time encoding output values, output the current DeOUT_Enc1 i As the Degamma one-time encoding output value, where i = 0, 1, ..., 2 m -1.

5. A compression method for Degamma conversion data according to claim 1, characterized in that: The fourth step comprises: Based on the compression accuracy X obtained in step 3, data sub-block 1: hblock i , Data sub-block 2: lblock i , perform the following decompression calculation: Calculate the actual compression error caused by the first compression encoding: ER1 i =|DeOUT_Dec1 i -DeOUT i | Where i = 0, 1, ..., 2 m -1 If the actual compression error of all data is ER1 i If the values ​​are not greater than the preset compression error threshold ε, the current DeOUT_Enc1 is directly output. i As Degamma secondary encoding output value DeOUT_Enc2 i , i=1,2,…,2 m -1 If the actual compression error of some data is greater than the compression error threshold ε, then the initial output value DeOUT of each Degamma i Perform the second compression encoding: (1) Update each Degamma initial output value DeOUT i Compression accuracy: X=X+1 (2) Recalculate the data sub-block 1, data sub-block 2, and Degamma encoding output value based on the updated compression accuracy Where i = 0, 1, ..., 2 m -1 (3) Execute step 4 again to calculate the updated Degamma primary encoding output value DeOUT_Enc1 i The corresponding actual compression error, until the actual compression error of all data is no greater than the compression error threshold ε, output the current DeOUT_Enc1 i As the Degamma secondary encoding output value DeOUT_Enc2 i , i=1,2,…,2 m -1.

6. A compression method for Degamma conversion data according to claim 1, characterized in that: The step five comprises: The degamma lookup table is expressed as 7. A compression method for Degamma conversion data according to claim 1, characterized in that: The step six comprises: Read the lookup table data stored in the hardware and decompress the data DeOUT_Enc2 i Perform decoding analysis according to the corresponding data sub-block 1: hblock2 i , Data sub-block 2: lblock2 i And the compression accuracy is X2, and the decompression calculation is performed as follows: Where i = 1, ..., 2 m -1 Using the decompressed DeOUT_Dec2 i The data performs Degamma table lookup interpolation calculation and linear domain processing on the input image data to be processed.

8. A compression system for degamma conversion data, according to any one of the degamma conversion data compression methods according to claims 1-7, characterized in that: It includes a Degamma initial value calculation module, a first compression encoding module, a second compression encoding module, and a Degamma lookup table generation module; Degamma initial value calculation module: calculates the Degamma initial output value corresponding to each input grayscale according to the input image data accuracy, Degamma output accuracy and preset gamma parameters; First compression coding module: Analyze the actual distribution of Degamma initial output value, determine the corresponding compression accuracy and data sub-block splitting method, perform the first compression coding, and obtain Degamma first coding output value; Second compression coding module: evaluates the precision error generated by the first compression coding, and performs a second compression coding on the Degamma initial output value according to a preset compression error threshold to obtain the Degamma secondary coding output value; Degamma lookup table generation module: Based on the Degamma secondary encoding output value, the final Degamma lookup table is obtained after discrete sampling and the lookup table is stored in the hardware register.