A quantized compression and decompression method with high compression rate, high efficiency and low distortion
Through the quantization compression method based on brightness mapping and binary coding, the problem of brightness difference loss in image compression is solved, high compression rate and efficient image processing are achieved, information loss and storage requirements are reduced, and it is suitable for a variety of image formats.
Patent Information
- Application Number
- CN202410734793.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-06-07
AI Technical Summary
The existing technology fails to fully consider the difference in data loss at different brightness levels in image compression, resulting in the possibility of a 'pseudo-contour' phenomenon during decompression, and it is difficult to achieve a quantized compression method with high compression rate, high efficiency, and low distortion.
Using a method that combines quantization compression and binary coding based on brightness mapping, the image is quantized, compressed and decompressed by setting brightness mapping parameters and binary compression rules, using brightness mapping functions and inverse mapping functions to process pixel values, and through binary coding and False contour removal algorithm optimizes image quality.
It achieves high compression rate, low distortion and high-efficiency image compression and decompression, reduces storage and transmission costs, maintains high fidelity and details of images, and is suitable for a variety of image formats and application scenarios.
Smart Images

Figure CN118314224B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of digital image processing, and in particular to a quantization compression and decompression method with high compression rate, high efficiency and low distortion. Background Art
[0002] As an important carrier of visual information, digital images play a vital role in various fields, from social sharing in daily life to medical imaging and satellite remote sensing in professional fields. The acquisition, processing, storage and transmission of image data have become an indispensable part of information technology. Digital image acquisition is to convert light signals in nature into electrical signals through high-precision cameras and other photoelectric sensors, and finally store and transmit them in digital form. Digital image processing is to optimize the collected digital images according to the purpose and scene of use. Common methods include: image enhancement and restoration, image coding compression, image description, etc. This process requires not only high efficiency, but also high fidelity to ensure the integrity and availability of image information.
[0003] In the practice of digital image processing, image compression and storage are indispensable links, especially for applications such as inter-frame processing and image playback. Quantization compression is a widely used method that achieves effective savings in storage space by moderately sacrificing some data accuracy. Traditional quantization techniques are mostly based on truncation or rounding after dividing by a fixed value. However, this method does not fully consider the difference in data loss under different brightness levels, resulting in the introduction of "pseudo-contours" in the image when the corresponding values are re-multiplied during the decompression stage; the appearance of such pseudo-contours is usually due to the loss of image details at high quantization ratios, which makes originally different areas quantized into color blocks with the same pixel value, thus forming edges that did not originally exist in the display.
[0004] With the increasing application of image processing technology in smart cars, smart homes, smart monitoring and other fields, the requirements for image quality are becoming increasingly stringent. Whether it is 3D noise reduction, wide dynamic range processing, or advanced functions such as image playback, there is an urgent need for an image compression technology that can achieve high efficiency, low distortion, and real-time processing. Therefore, it is urgent to develop a high compression rate, high efficiency, low distortion quantitative compression and decompression method. This method needs to achieve high-efficiency data processing and reduce the burden of storage and transmission while ensuring image quality; at the same time, it should also be able to adapt to different image content and application requirements, and provide flexible compression strategies and parameter adjustments to achieve the best compression effect.
[0005] Currently, no effective solution has been proposed for the problems in the related technologies. Summary of the invention
[0006] In response to the problems in the related technology, the present invention proposes a quantization compression and decompression method with high compression rate, high efficiency and low distortion. The method has the advantages of high efficiency, efficient and real-time compression and decompression, better preservation of image information and low information loss, thereby solving the problem that the existing technology does not take into account the difference in data loss under different brightness.
[0007] To this end, the specific technical solution adopted by the present invention is as follows:
[0008] According to one aspect of the present invention, a quantization compression method with high compression rate, high efficiency and low distortion is provided. The quantization compression method with high compression rate, high efficiency and low distortion includes quantization compression based on brightness mapping and compression based on binary coding. The compression based on binary coding is performed after the quantization compression based on brightness mapping is performed.
[0009] The quantization compression based on brightness mapping includes the following steps:
[0010] Set the brightness mapping parameters and use the brightness mapping function to process each pixel of the original image;
[0011] Based on the processed image, the pixel value of each pixel is quantized and compressed to obtain a brightness mapping compressed image;
[0012] Compression based on binary encoding consists of the following steps:
[0013] Use binary code to represent each pixel of the original image and store the corresponding pixel value;
[0014] The pixel value stored in each pixel point is classified, truncated and encoded using binary compression rules, and the n-bit pixel value is reduced to m bits to obtain a binary coded compressed image.
[0015] Furthermore, setting the brightness mapping parameters and using the brightness mapping function to process each pixel of the original image includes the following steps:
[0016] Based on the original image, record the pixel value of each pixel;
[0017] Determine brightness mapping parameters and construct brightness mapping function;
[0018] The original image is processed using the brightness mapping function, and the pixel value of each pixel after processing is recorded.
[0019] Furthermore, the expression of the brightness mapping function is:
[0020] ;
[0021] In the formula, Represents the pixel value of each pixel in the image after brightness mapping processing;
[0022] p represents the pixel value of each pixel in the original image;
[0023] γ represents the brightness mapping parameter, which is used to determine the degree of quantitative difference between the light and dark parts of the image.
[0024] Furthermore, using the binary compression rule to classify and truncate the pixel values stored in each pixel point, reducing the n-bit pixel value to m-bit, and obtaining a binary coded compressed image includes the following steps:
[0025] Using binary compression rules, the pixel value of each pixel is mapped to a binary code with fewer bits;
[0026] Based on the positional relationship, the pixel value of each pixel after mapping is stored;
[0027] A compressed image is generated based on the stored mapped pixel values of each pixel.
[0028] Furthermore, binary compression rules include:
[0029] Based on the stored pixel values, select the pixel points whose first two digits of the pixel value are 00, truncate the last nm-1 digits of the pixel value, and remove the first digit of the pixel value;
[0030] Based on the stored pixel values, select the pixel points whose first two digits of the pixel value are 01, truncate the last nm digits of the pixel value, and modify the first two digits of the pixel value;
[0031] Based on the stored pixel values, select the pixel points whose first two digits of the pixel value are 10 or 11, truncate the last n-m+1 digits of the pixel value, and add 1 to the first digit of the pixel value.
[0032] According to another aspect of the present invention, a high compression rate, high efficiency and low distortion decompression method is also provided, the high compression rate, high efficiency and low distortion decompression method comprising decompression based on inverse mapping and decompression based on binary coding, the decompression based on binary coding is performed after the decompression based on inverse mapping is performed;
[0033] The decompression based on the inverse mapping includes the following steps:
[0034] Based on the brightness mapping parameters, an inverse mapping function is constructed;
[0035] The pixel value of each pixel in the brightness mapping compressed image is processed by using the inverse mapping function to obtain the decompressed pixel value, and the inverse mapping decompressed image is generated, and the de-pseudo contour operation is used to improve the quality of the decompressed image;
[0036] Decompression based on binary encoding consists of the following steps:
[0037] Re-encode each pixel in the binary-coded compressed image using a binary decompression rule, and generate a binary-coded decompressed image;
[0038] The image is decompressed based on binary coding, and the de-aliasing operation is used to improve the quality of the decompressed image.
[0039] Furthermore, the expression of the inverse mapping function is:
[0040] ;
[0041] In the formula, Represents the pixel value of each pixel in the decompressed image;
[0042] Represents the pixel value of each pixel in the image to be decompressed;
[0043] γ represents the brightness mapping parameter, which is used to determine the degree of quantization difference between the light and dark parts of the image, and is the same as the parameter γ used in compression.
[0044] Furthermore, binary decompression rules include:
[0045] Traverse every pixel in the binary coded compressed image;
[0046] Based on the traversal results, select the pixel whose first pixel value is 0, and fill the first pixel value with 0, and fill the last pixel value with nm-1 bits of 0, where n represents the number of bits of binary data of each pixel in the image before compression, and m represents the number of bits of binary code of each pixel in the image after compression;
[0047] Based on the traversal results, select the pixel point whose first digit of the pixel value is 1. If the second digit of the pixel value is 0, modify the first two digits of the pixel value to 01, and add nm digits of 0 after the last digit of the pixel value. If the second digit of the pixel value is 1, remove the first digit of the pixel value, and add n-m+1 digits of 0 after the last digit of the pixel value.
[0048] Further, improving the quality of the decompressed image by removing the pseudo contour operation includes the following steps:
[0049] Select the filter kernel size and create a guidance image using mean filtering;
[0050] Based on the guide image processed by mean filtering, the decompressed image is optimized using the pseudo contour removal algorithm to obtain a high-quality decompressed image.
[0051] Furthermore, the calculation formula of the pseudo contour removal algorithm is:
[0052] ;
[0053] In the formula, Represents the pixel value of the corresponding point of the image after removing the false contour;
[0054] Represents the pixel value corresponding to the pixel point in the decompressed image;
[0055] Represents the pixel value corresponding to the pixel point in the image after mean filtering;
[0056] θ represents the parameter that determines the weight.
[0057] The beneficial effects of the present invention are:
[0058] (1) Achieving high compression rate: The present invention significantly improves the compression rate through sophisticated brightness mapping and quantization strategies. The realization of such high compression rate not only reduces the demand for storage space, but also reduces the cost and time of data transmission.
[0059] (2) High-efficiency compression and decompression: The present invention can achieve compression and decompression efficiently and in real time, which is extremely important for application scenarios that require fast response, such as video surveillance systems, real-time video communications, and online image editing.
[0060] (3) High fidelity of image information: The present invention can well preserve image information and reduce information loss. Even after compression, the quality and details of the image can be well maintained, meeting the needs of high-quality image applications.
[0061] (4) Wide compatibility with image formats: The present invention is not only applicable to single-channel images, but is also compatible with RGB color images and images with Bayer sampling patterns. This wide applicability enables the present invention to serve various image processing requirements and is applicable to a variety of image formats and application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0063] Figure 1 It is a schematic diagram of a process of quantization compression based on brightness mapping in a quantization compression method with high compression rate, high efficiency and low distortion according to an embodiment of the present invention;
[0064] Figure 2 It is a schematic diagram of a compression process based on binary coding in a quantization compression method with high compression rate, high efficiency and low distortion according to an embodiment of the present invention;
[0065] Figure 3 It is a schematic diagram of a decompression process based on inverse mapping in a decompression method with high compression rate, high efficiency and low distortion according to an embodiment of the present invention;
[0066] Figure 4 The present invention is a flowchart of decompression based on binary coding in a decompression method with high compression rate, high efficiency and low distortion according to an embodiment of the present invention. DETAILED DESCRIPTION
[0067] To further illustrate each embodiment, the present invention provides drawings, which are part of the disclosure of the present invention and are mainly used to illustrate the embodiments. They can be used in conjunction with the relevant descriptions in the specification to explain the operating principles of the embodiments. With reference to these contents, ordinary technicians in this field should be able to understand other possible implementation methods and advantages of the present invention.
[0068] According to an embodiment of the present invention, a quantization compression and decompression method with high compression rate, high efficiency and low distortion is provided.
[0069] The present invention is further described with reference to the accompanying drawings and specific embodiments. Figure 1-Figure 2 As shown, according to an embodiment of the present invention, a quantization compression method with high compression rate, high efficiency and low distortion is provided, wherein the quantization compression method with high compression rate, high efficiency and low distortion comprises quantization compression based on brightness mapping and compression based on binary coding, wherein the compression based on binary coding is performed after the quantization compression based on brightness mapping is performed;
[0070] The quantization compression based on brightness mapping includes the following steps:
[0071] S101, setting brightness mapping parameters, and using the brightness mapping function to process each pixel of the original image;
[0072] Specifically, during compression, brightness mapping is performed on the image, stronger quantization is adopted for high brightness areas, and weaker quantization is adopted for low brightness areas.
[0073] Specifically, first, the image is brightness mapped; since the human eye has different sensitivities to different brightness areas of the image, the same degree of quantization will cause more obvious distortion in darker areas and less impact on bright areas. Taking this factor into consideration, a higher degree of quantization is performed on the bright areas and a lower degree of quantization is performed on the dark areas. The highest possible compression rate can be obtained with a low degree of distortion, and this process can be easily achieved through brightness mapping.
[0074] Specifically, for an image obtained, gamma mapping is performed on it, that is, for each pixel point P, its pixel value is recorded as p, and through mapping A new image P' is obtained, where γ is a parameter that determines the degree of quantitative difference between the light and dark parts. Its value range is [1 / 4, 1], and its general value is 1 / 2.2. This is consistent with the parameters of the gamma correction module commonly used in image processing, and resources can be further saved by reusing modules.
[0075] S102, based on the processed image, quantize and compress the pixel value of each pixel to obtain a brightness mapping compressed image;
[0076] Specifically, secondly, the image is quantized and compressed; quantization compression is usually achieved by dividing the pixel value by a constant and then rounding it off. For computational efficiency, in this embodiment, the constant selected for quantization is a power of 2, which can be achieved through a shift operation of binary data.
[0077] Compression based on binary encoding consists of the following steps:
[0078] S201, using binary code to represent each pixel of the original image, and storing the corresponding pixel value;
[0079] S202, using binary compression rules to classify, truncate and encode the pixel value stored in each pixel point, reducing the n-bit pixel value to m-bit, and obtaining a binary-coded compressed image.
[0080] Specifically, based on the binary encoding format, the brightness mapping is adjusted so that it can be performed through operations such as shifting and truncating binary data, which greatly saves computing resources.
[0081] Specifically, the brightness mapping and quantization compression of the image are simplified based on the characteristics of binary data so that they are realized only through the shifting, truncating, padding and exchanging operations of binary data, which greatly improves the computing efficiency.
[0082] Specifically, for an image to be compressed, it is denoted as I. Its storage method is to store the pixel value of each pixel at each position. The pixel value is represented and stored in binary in practical applications. The number of bits of binary data of each pixel in the original image is n. In this embodiment, the pixel value of each pixel is mapped to a binary code with fewer bits through a given mapping relationship (mapping rule), and is also stored by position to achieve compression. The number of bits of binary code of each pixel in the compressed image is m (m <n)。
[0083] Specifically, for each pixel point P in the image, let its pixel value be p, and the compressed binary code is obtained through the following mapping rule:
[0084] when When the first two bits of p are 00, p is truncated to (nm-1) bits and the first 0 is removed to obtain p'. At this time, the first bit of p' is 0.
[0085] when When the first two digits of p are 01, p is truncated to (nm) digits and the first two digits are modified to 10 to obtain p'. At this time, the first digit of p' is 1 and the second digit is 0.
[0086] when When the first two digits of p are 10 or 11, p is truncated to (n-m+1) digits and 1 is added to the first digit to obtain p'. At this time, the first digit of p' is 1 and the second digit is 1.
[0087] Thus, the n-bit data p is compressed into m-bit data p' through quantization, and for the three cases of brightness from low to high, the quantization degree increases successively, and the first two bits of the quantized data can determine the data range for restoration.
[0088] In one embodiment, setting brightness mapping parameters and processing each pixel of the original image using the brightness mapping function includes the following steps:
[0089] Based on the original image, record the pixel value of each pixel;
[0090] Determine brightness mapping parameters and construct brightness mapping function;
[0091] The original image is processed using the brightness mapping function, and the pixel value of each pixel after processing is recorded.
[0092] In one embodiment, the brightness mapping function is expressed as:
[0093] ;
[0094] In the formula, Represents the pixel value of each pixel in the image after brightness mapping processing;
[0095] p represents the pixel value of each pixel in the original image;
[0096] γ represents the brightness mapping parameter, which is used to determine the degree of quantitative difference between the light and dark parts of the image.
[0097] In one embodiment, using a binary compression rule to classify and truncate the pixel value stored in each pixel point to reduce the n-bit pixel value to m-bit, and obtaining a binary coded compressed image includes the following steps:
[0098] Using binary compression rules, the pixel value of each pixel is mapped to a binary code with fewer bits;
[0099] Based on the positional relationship, the pixel value of each pixel after mapping is stored;
[0100] A compressed image is generated based on the stored mapped pixel values of each pixel.
[0101] In one embodiment, the binary compression rules include:
[0102] Based on the stored pixel values, select the pixel points whose first two digits of the pixel value are 00, truncate the last nm-1 digits of the pixel value, and remove the first digit of the pixel value;
[0103] Based on the stored pixel values, select the pixel points whose first two digits of the pixel value are 01, truncate the last nm digits of the pixel value, and modify the first two digits of the pixel value;
[0104] Based on the stored pixel values, select the pixel points whose first two digits of the pixel value are 10 or 11, truncate the last n-m+1 digits of the pixel value, and add 1 to the first digit of the pixel value.
[0105] like Figure 3-Figure 4 As shown, according to another embodiment of the present invention, a high compression rate, high efficiency and low distortion decompression method is further provided, the high compression rate, high efficiency and low distortion decompression method comprising decompression based on inverse mapping and decompression based on binary coding, the decompression based on binary coding is performed after the decompression based on inverse mapping is performed;
[0106] The decompression based on the inverse mapping includes the following steps:
[0107] S301, constructing an inverse mapping function based on brightness mapping parameters;
[0108] S302, using an inverse mapping function to process the pixel value of each pixel in the brightness mapping compressed image to obtain a decompressed pixel value, and generating an inverse mapping decompressed image, and using a pseudo contour removal operation to improve the quality of the decompressed image.
[0109] Specifically, the first step in decompression is to inverse map the image.
[0110] Specifically, when general gamma mapping is used for quantization compression, decompression is performed in the following manner: gamma inverse mapping is performed, that is, for each pixel point P(x, y), the code to be decompressed is recorded, that is, the pixel value is p', and the gamma inverse mapping is performed. Get the new image after decompression The decompressed value corresponding to the point , γ is the parameter in the compression step.
[0111] Decompression based on binary encoding consists of the following steps:
[0112] S401, re-encoding each pixel in the binary-coded compressed image using a binary decompression rule, and generating a binary-coded decompressed image;
[0113] Specifically, when compression based on binary data is used, decompression is performed in the following manner:
[0114] For each pixel point P (x, y), record its code to be decompressed, that is, the pixel value is p', and perform the following decompression operation based on the first two bits of p':
[0115] When the first bit of p' is 0, add 0 to the first bit of p' and add nm-1 bits of 0 to the end, and we get ;
[0116] When the first bit of p' is 1, if the second bit is 0, modify the first two bits to 01 and add nm bits 0 at the end to get ;
[0117] If the second bit is 1, remove the first 1 and add n-m+1 0s at the end to get .
[0118] Specifically, after performing the above operation on each pixel, a new decompressed image is obtained.
[0119] S402, decompressing the image based on the binary code, and improving the quality of the decompressed image by removing pseudo contours.
[0120] Specifically, in the second step of decompression, a filtering-based method is used to remove pseudo contours to further reduce distortion.
[0121] Specifically, based on the decompressed image, a pseudo-contour removal operation can be further performed to improve the image quality. In this embodiment, in order to save resources, the pseudo-contour removal operation can also be omitted. Considering that the mapping method in the aforementioned steps greatly reduces the impact of pseudo-contours, a simplified method is used to remove pseudo-contours to reduce resource consumption.
[0122] Specifically, mean filtering replaces the original pixel value with the pixel average value of the pixel block centered on the pixel point. This is a prior art and will not be described in detail here.
[0123] Specifically, first of all, the image Perform mean filtering and get , wherein the size of the filter kernel is selected as 5x5 or 7x7 in this embodiment; The role of is to serve as a guide image, using the properties of the mean filter to blur the edge of the image. For the pixels at the actual edge, the obtained pixel value is quite different from the original pixel value, while the pseudo contour generated by quantization is slightly different from the original pixel value. This quantitative relationship is used to distinguish and restore the image without pseudo contours.
[0124] Specifically, then and The pixels of each pixel point are removed by using the pseudo contour removal algorithm to obtain the image after pseudo contour removal.
[0125] In one embodiment, the expression of the inverse mapping function is:
[0126] ;
[0127] In the formula, Represents the pixel value of each pixel in the decompressed image;
[0128] Represents the pixel value of each pixel in the image to be decompressed;
[0129] γ represents the brightness mapping parameter, which is used to determine the degree of quantization difference between the light and dark parts of the image, and is the same as the parameter γ used in compression.
[0130] In one embodiment, the binary decompression rules include:
[0131] Traverse every pixel in the binary coded compressed image;
[0132] Based on the traversal results, select the pixel whose first pixel value is 0, and fill the first pixel value with 0, and fill the last pixel value with nm-1 bits of 0, where n represents the number of bits of binary data of each pixel in the image before compression, and m represents the number of bits of binary code of each pixel in the image after compression;
[0133] Based on the traversal results, select the pixel point whose first digit of the pixel value is 1. If the second digit of the pixel value is 0, modify the first two digits of the pixel value to 01, and add nm digits of 0 after the last digit of the pixel value. If the second digit of the pixel value is 1, remove the first digit of the pixel value, and add n-m+1 digits of 0 after the last digit of the pixel value.
[0134] In one embodiment, improving the quality of a decompressed image using a de-aliasing operation includes the following steps:
[0135] Select the filter kernel size and create a guidance image using mean filtering;
[0136] Based on the guide image processed by mean filtering, the decompressed image is optimized using the pseudo contour removal algorithm to obtain a high-quality decompressed image.
[0137] In this embodiment, the decompression based on inverse mapping and the decompression based on binary coding both adopt the same pseudo contour removal operation, thereby improving the decompressed image quality.
[0138] In one embodiment, the calculation formula of the pseudo contour removal algorithm is:
[0139] ;
[0140] In the formula, Represents the pixel value of the corresponding point of the image after removing the false contour;
[0141] Represents the pixel value corresponding to the pixel point in the decompressed image;
[0142] Represents the pixel value corresponding to the pixel point in the image after mean filtering;
[0143] θ represents the parameter that determines the weight.
[0144] Specifically, the decompressed image includes an inverse mapping decompressed image and a binary encoding decompressed image.
[0145] Specifically, and They are and The pixel value at this point, is the pixel value of the corresponding point of the image after the false contour is removed, θ is the parameter for determining the weight, and in this embodiment, 2 n-m , where m and n are the number of bits of the data before and after quantization, and their physical meaning is Measure the difference in pixels on both sides of the edge to distinguish the edge generated by the pseudo contour from the original edge; the difference in pixel values on both sides of the pseudo contour is mainly caused by quantization. The value is small, giving Larger weights are used to reduce the impact of pseudo contours. When the pixel difference is large, Small weights to preserve edges.
[0146] In summary, with the help of the above-mentioned technical scheme of the present invention, the compression rate is significantly improved through fine brightness mapping and quantization strategies. The realization of such a high compression rate not only reduces the demand for storage space, but also reduces the cost and time of data transmission. At the same time, the present invention can realize compression and decompression efficiently and in real time, which is extremely important for application scenarios that require fast response, such as video surveillance systems, real-time video communications, and online image editing. The present invention can also well preserve image information and reduce information loss. Even after compression, the quality and details of the image can be well maintained, meeting the needs of high-quality image applications. In addition, the present invention is not only suitable for single-channel images, but also compatible with RGB color images and Bayer sampling mode images. This wide applicability enables the present invention to serve various image processing needs and is suitable for a variety of image formats and application scenarios.
[0147] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A quantization compression method with high compression rate, high efficiency and low distortion. It is characterized in that The high compression rate, high efficiency and low distortion quantization compression method comprises quantization compression based on brightness mapping and compression based on binary coding, wherein the compression based on binary coding is performed after the quantization compression based on brightness mapping is performed; The quantization compression based on brightness mapping includes the following steps: Set the brightness mapping parameters and use the brightness mapping function to process each pixel of the original image; Based on the processed image, the pixel value of each pixel is quantized and compressed to obtain a brightness mapping compressed image; The compression based on binary encoding comprises the following steps: Use binary code to represent each pixel of the original image and store the corresponding pixel value; The pixel value stored in each pixel point is classified and truncated by using binary compression rules, and the n-bit pixel value is reduced to m bits to obtain a binary coded compressed image; The step of setting the brightness mapping parameters and processing each pixel of the original image using the brightness mapping function comprises the following steps: Based on the original image, record the pixel value of each pixel; Determine brightness mapping parameters and construct brightness mapping function; Use the brightness mapping function to process the original image and record the pixel value of each pixel after processing; The expression of the brightness mapping function is: ; In the formula, Represents the pixel value of each pixel in the image after brightness mapping processing; p represents the pixel value of each pixel in the original image; γ represents the brightness mapping parameter, which is used to determine the degree of quantitative difference between the light and dark parts of the image; The method of classifying, truncating and encoding the pixel values stored at each pixel point by using a binary compression rule, reducing the n-bit pixel value to m-bit, and obtaining a binary coded compressed image comprises the following steps: Using binary compression rules, the pixel value of each pixel is mapped to a binary code with fewer bits; Based on the positional relationship, the pixel value of each pixel after mapping is stored; Generate a compressed image based on the stored pixel value of each pixel after mapping; The binary compression rules include: Based on the stored pixel values, select the pixel points whose first two digits of the pixel value are 00, truncate the last nm-1 digits of the pixel value, and remove the first digit of the pixel value; Based on the stored pixel values, select the pixel points whose first two digits of the pixel value are 01, truncate the last nm digits of the pixel value, and modify the first two digits of the pixel value; Based on the stored pixel values, select the pixel points whose first two digits of the pixel value are 10 or 11, truncate the last n-m+1 digits of the pixel value, and add 1 to the first digit of the pixel value.
2. A decompression method with high compression rate, high efficiency and low distortion, It is characterized in that The high compression rate, high efficiency and low distortion decompression method comprises decompression based on inverse mapping and decompression based on binary coding, wherein the decompression based on binary coding is performed after the decompression based on inverse mapping is performed; The decompression based on inverse mapping comprises the following steps: Based on the brightness mapping parameters, an inverse mapping function is constructed; The pixel value of each pixel in the brightness mapping compressed image is processed by using the inverse mapping function to obtain the decompressed pixel value, and the inverse mapping decompressed image is generated, and the de-pseudo contour operation is used to improve the quality of the decompressed image; The decompression based on binary encoding comprises the following steps: Re-encode each pixel in the binary-coded compressed image using a binary decompression rule, and generate a binary-coded decompressed image; Decompress the image based on binary coding and improve the quality of the decompressed image by removing pseudo contours; The expression of the inverse mapping function is: ; In the formula, Represents the pixel value of each pixel in the decompressed image; Represents the pixel value of each pixel in the image to be decompressed; γ represents the brightness mapping parameter, which is used to determine the degree of quantization difference between the light and dark parts of the image, and is the same as the parameter γ used in compression; The binary decompression rules include: Traverse every pixel in the binary coded compressed image; Based on the traversal results, select the pixel whose first pixel value is 0, and fill the first pixel value with 0, and fill the last pixel value with nm-1 bits of 0, where n represents the number of bits of binary data of each pixel in the image before compression, and m represents the number of bits of binary code of each pixel in the image after compression; Based on the traversal results, select the pixel point whose first digit of the pixel value is 1. If the second digit of the pixel value is 0, modify the first two digits of the pixel value to 01, and add nm digits of 0 after the last digit of the pixel value. If the second digit of the pixel value is 1, remove the first digit of the pixel value, and add n-m+1 digits of 0 after the last digit of the pixel value.
3. A decompression method with high compression rate, high efficiency and low distortion according to claim 2, It is characterized in that The method of improving the quality of decompressed images by removing pseudo contours comprises the following steps: Select the filter kernel size and create a guidance image using mean filtering; Based on the guide image processed by mean filtering, the decompressed image is optimized using the pseudo contour removal algorithm to obtain a high-quality decompressed image.
4. A decompression method with high compression rate, high efficiency and low distortion according to claim 3, It is characterized in that The calculation formula of the pseudo contour removal algorithm is: ; In the formula, Represents the pixel value of the corresponding point of the image after removing the false contour; Represents the pixel value corresponding to the pixel point in the decompressed image; Represents the pixel value corresponding to the pixel point in the image after mean filtering; θ represents the parameter that determines the weight.
