Image processing method and system

By using a checkerboard pattern to sample the ARGB four-channel image on the encoding side, the Alpha channel data and the RGB three-channel data are allocated to different channels, and the ARGB four-channel image is reconstructed on the decoding side. This solves the problems of large data volume and distortion in the existing technology, and achieves efficient image restoration and quality improvement.

CN120956911APending Publication Date: 2025-11-14BEIJING JILANG SEMICON TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510962068.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-11
Publication Date
2025-11-14

AI Technical Summary

Technical Problem

Existing ARGB four-channel image processing methods suffer from excessive data requirements and image distortion during transmission. In particular, when using common video transmission media, they cannot effectively transmit Alpha channel data, resulting in color cast and insufficient smoothness in the recovered ARGB four-channel image.

Method used

A checkerboard pattern is used to sample the Alpha channel data and RGB three-channel data of the ARGB four-channel image. Half of the information of the Alpha channel data and half of the information of the first channel data of the RGB three-channel data are encoded in the first channel, and the other half of the information and the second channel data of the RGB three-channel data are encoded in the second channel. The ARGB four-channel image is then reconstructed on the decoding side using the checkerboard pattern.

Benefits of technology

By reducing data transmission volume and improving the distortion problem of the recovered ARGB four-channel image, effective alpha channel data recovery is achieved during transmission, reducing data transmission requirements and improving image quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120956911A_ABST
    Figure CN120956911A_ABST
Patent Text Reader

Abstract

The invention provides an image processing method and system. According to the method, on a coding side, information of Alpha channel data is equally divided into first Alpha channel sampling data and second Alpha channel sampling data through a first checkerboard pattern and a second checkerboard pattern, and half of information of first channel data in RGB three-channel data is divided into the first channel sampling data according to the first checkerboard pattern; dividing the other half of information of second channel data in the RGB three-channel data into second channel sampling data according to a second checkerboard pattern, and recoding the first Alpha channel sampling data, the first channel sampling data and the first checkerboard pattern into first channel data, and recoding the second Alpha channel sampling data, the second channel sampling data and the second checkerboard pattern into second channel data and sending the second channel data to the decoding side, and reconstructing an ARGB four-channel image on the decoding side. According to the method, the problem of different degrees of distortion of the reconstructed ARGB four-channel image can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of video image and UI interface processing, and in particular relates to an image processing method and system. Background Technology

[0002] An ARGB four-channel image adds an alpha channel to the RGB three-channel image to represent pixel transparency. Because of its transparency capability, it is very useful in scenarios requiring transparent effects and is therefore widely used in graphical user interfaces, game development, multimedia processing, web design, mobile application development, virtual reality, augmented reality, scientific visualization, and art design. In an ARGB four-channel image, the color of each pixel is typically represented by four bytes (32 bits): one byte for the alpha channel data, one byte for the red channel data, one byte for the green channel data, and one byte for the blue channel data.

[0003] However, common video transmission media (HDMI, MIPI) only support the transmission of RGB three-channel image data, not alpha channel data. One solution is to use two separate images to transmit RGB three-channel image data and alpha channel data, and then process the received images to reconstruct the ARGB four-channel image. This solution requires twice the bandwidth. Another solution is to embed the alpha channel data into the RGB channels on the encoding side through some mapping relationship, for example, by adjusting the RGB channel data to implicitly contain the alpha channel data and transmitting it. Then, on the decoding side, the alpha channel data is recovered to obtain the ARGB four-channel image. This solution reduces the amount of data transmitted, but currently, the ARGB four-channel image recovered using this solution will have varying degrees of distortion, such as color cast and insufficient smoothness in transparency.

[0004] Therefore, it is necessary to improve image processing for ARGB four-channel images to at least alleviate the aforementioned problems. Summary of the Invention

[0005] In view of this, the purpose of this disclosure is to provide an image processing method and system that can at least improve the above-mentioned problems.

[0006] In a first aspect, embodiments of this disclosure provide an image processing method, including encoding operations on the encoding side, the encoding operations including:

[0007] According to the first checkerboard pattern, the Alpha channel data in the ARGB four-channel image and the first channel data in the RGB three-channel image are sampled to obtain the first Alpha channel sampled data and the first channel sampled data.

[0008] According to the second checkerboard pattern, the Alpha channel data in the ARGB four-channel image and the second channel data in the RGB three-channel image are sampled to obtain the second Alpha channel sampled data and the second channel sampled data. The first checkerboard pattern and the second checkerboard pattern are both composed of a first color checkerboard and a second color checkerboard, and the checkerboard colors at the same pixel position are opposite. The sampling process is to keep the channel value corresponding to the first color checkerboard in each row of the corresponding channel data at its original value, and replace the channel value corresponding to the second color checkerboard in each row of the corresponding channel data with the channel value corresponding to the first color checkerboard in the adjacent row.

[0009] Encode the first channel coded data using the first Alpha channel sampled data, the first channel sampled data, and the first checkerboard pattern;

[0010] Encode the second channel data using the second Alpha channel sample data, the second channel sample data, and the second checkerboard pattern to obtain the second channel encoded data;

[0011] A mixed RGB channel image, consisting of the first channel encoded data, the second channel encoded data, and the third channel data from the RGB three-channel data, is sent to the decoding side.

[0012] In some embodiments, the first channel data in the RGB three-channel data is one of the R channel data and the B channel data, and the second channel data is the other of the R channel data and the B channel data.

[0013] In some embodiments, the encoding is implemented using the following equation:

[0014] Enc_X = (Asx * Xs + (maxValue - Asx)*Ptx) / maxValue;

[0015] Wherein, Asx represents the first Alpha channel sampling data or the Alpha channel data, Xs represents the first channel sampling data or the second channel sampling data, Pt1 represents the first checkerboard pattern or the second checkerboard pattern, maxValue represents the maximum pixel value, and Enc_X represents the first channel encoded data or the second channel encoded data.

[0016] In some embodiments, the method further includes: a decoding operation on the decoding side, the decoding operation including:

[0017] Based on the mixed RGB channel image, recover the complete Alpha channel data, the first channel sample data, and the second channel sample data; and

[0018] The channel values ​​that were retained during the sampling process are used to construct the values ​​of the adjacent replaced channels.

[0019] In some embodiments, the method further includes filtering the Alpha channel data, the first channel data, and the second channel data generated by the decoding operation.

[0020] In some embodiments, the color difference constancy of adjacent pixels is utilized to construct the adjacent replaced channel values ​​using the channel values ​​that retain their original values ​​in the sampling process.

[0021] In some embodiments, constructing the values ​​of the adjacent replaced channels includes:

[0022] Calculate the horizontal and vertical gradients of the replaced channel value using the channel values ​​of the adjacent third channel; and

[0023] The value of the third channel used in calculating the value of the replaced channel is adjusted based on the comparison results of the horizontal and vertical gradients of the replaced channel value.

[0024] In some embodiments, the first channel data is one of R channel data and B channel data, the second channel data is the other of R channel data and B channel data, and the third channel data is G channel data.

[0025] In some embodiments, both the first checkerboard pattern and the second checkerboard pattern are black and white checkerboard patterns.

[0026] Secondly, this disclosure provides an image processing system, including an encoding module, a decoding module, and a transmission module. The encoding module uses the image processing method described above to encode the ARGB four-channel image to obtain the ARGB four-channel image.

[0027] The decoding module reconstructs four-channel data from the mixed RGB channel image using the image processing method described above.

[0028] The transmission module transmits the mixed RGB channel image from the encoding side to the decoding side.

[0029] Thirdly, embodiments of this disclosure provide an image processing chip that integrates the image processing system described above.

[0030] Fourthly, embodiments of this disclosure provide a computer-readable storage medium having a computer program stored thereon, characterized in that the program, when executed by a processor, implements the steps of the image processing method described above.

[0031] In summary, the image processing method of this disclosure encodes half of the alpha channel data and half of the first channel data from the RGB three-channel data into a first channel on the encoding side, and encodes the other half of the alpha channel data and the other half of the second channel data from the RGB three-channel data into a second channel, thereby forming an RGB three-channel image sent to the decoding side. On the decoding side, an ARGB four-channel image is reconstructed according to the encoding process. This method only transmits the RGB three-channel image, and the distortion problem of varying degrees in the reconstructed ARGB four-channel image is also relatively improved. This method is particularly suitable for encoding and decoding of UI interfaces.

[0032] It should be noted that the above general description and the following detailed description are exemplary and explanatory only, and do not limit the present invention. Attached Figure Description

[0034] The above and other objects, features, and advantages of this application will become clearer from the following description of embodiments with reference to the accompanying drawings, in which:

[0035] Figure 1 This is a schematic diagram illustrating the general processing of video images and UI interface images;

[0036] Figure 2 This is an image processing method performed on the encoding side, provided in the embodiments of this disclosure;

[0037] Figure 3A and Figure 3B To define the first and second checkerboard patterns used in the embodiments of this disclosure;

[0038] Figure 4A The process of sampling and processing Alpha channel data based on the first and second checkerboard patterns is shown.

[0039] Figure 4B The process of sampling and processing R-channel data based on the second checkerboard pattern is shown.

[0040] Figure 4C The process of sampling and processing B-channel data according to the first checkerboard pattern is shown;

[0041] Figure 5 The processing procedure for the mixed RGB channel image received from the encoding side on the decoding side is given;

[0042] Figure 6 This is a schematic diagram of the structure of the image processing system provided in the embodiments of this disclosure. Detailed Implementation

[0043] The present application will now be described in more detail with reference to the accompanying drawings. In the various drawings, the same elements are indicated by similar reference numerals. For clarity, the various parts in the drawings are not drawn to scale. Furthermore, some well-known parts may not be shown.

[0044] Figure 1 This is a schematic diagram of the general video image and UI interface image processing process. As shown in the figure, on the encoding side, the ARGB four-channel image is first encoded into a mixed RGB three-channel image through encoding 101. Then, the mixed RGB three-channel image is compressed and transmitted through compression 102. On the decoding side, the compressed mixed RGB three-channel image is decompressed through decompression 103, and the ARGB four-channel image is obtained from the mixed RGB three-channel image through decoding 104.

[0045] Encoding 101 typically involves performing an alpha blending operation between a pre-designed pattern and the RGB image in ARGB, as shown in the following formula, to obtain a hybrid RGB three-channel image that incorporates the alpha channel data:

[0046] RGB' = (A * RGB + (maxValue - A) * Pt) / maxValue Equation (1)

[0047] Wherein, RGB' is the mixed RGB three-channel data, A is the Alpha channel data, RGB is the RGB channel data before encoding, Pt is the pre-designed pattern (usually all black or all white), and maxValue is the maximum value of the pixel value, for example, 255 for 8 bits and 1023 for 10 bits. Then, decoding 104 derives the Alpha channel data and RGB channel data in reverse based on RGB', equation (1), and Pt.

[0048] For example, when Pt is a completely black image, substituting Pt into equation (1) yields equation (2):

[0049] BOSD=(A*RGB+(maxValue-A)*0) / maxValue =A*RGB / maxValue =A'*RGB Equation (2)

[0050] When Pt is a completely white image, substituting Pt into equation (1) yields:

[0051] WOSD = (A*RGB + (maxValue-A)*maxValue) / maxValue = A * RGB / maxValue + (1-A / maxValue)*maxValue = A'*RGB+(1-A')*maxValue (3)

[0052] Where A' is the normalized value of A, which takes a value between 0 and 1.

[0053] In decoding 104, A' and A can be obtained by using WOSD-BOSD=(1-A')*maxValue. Then, by substituting WOSD or BOSD, the RGB channel data in the ARGB four-channel image can be recovered. However, the drawback of this method is that it requires transmitting both WOSD and BOSD images.

[0054] To reduce the amount of data transmitted, encoding 101 uses a checkerboard pattern to substitute into equation (1), while decoding 104 reconstructs the ARGB four-channel image based on the different effects of black and white checkerboards on each pixel value and the spatial correlation between RGB channel data.

[0055] Figure 2 This disclosure provides an image processing method performed on the encoding side, which includes the following steps.

[0056] In step S201, the Alpha channel data in the ARGB four-channel image and the first channel data in the RGB three-channel image are sampled according to the first checkerboard pattern to obtain the first Alpha channel sampled data and the first channel sampled data.

[0057] In step S202, the Alpha channel data in the ARGB four-channel image and the second channel data in the RGB three-channel image are sampled according to the second checkerboard pattern to obtain the second Alpha channel sampled data and the second channel sampled data.

[0058] The first and second checkerboard patterns are composed of checkerboards of a first color and a checkerboard of a second color, but the checkerboard colors at the same pixel position are opposite. Sampling processing means that the channel value corresponding to the first-color checkerboard in each row of the corresponding channel data remains unchanged, while the channel value corresponding to the second-color checkerboard in each row of the corresponding channel data is replaced with the channel value corresponding to the adjacent first-color checkerboard.

[0059] In step S203, the first Alpha channel sampled data, the first channel sampled data, and the first checkerboard pattern are used for encoding to obtain the first channel encoded data.

[0060] In step S204, the second Alpha channel sampled data, the second channel sampled data, and the second checkerboard pattern are used for encoding to obtain the second channel encoded data.

[0061] In step S205, a mixed RGB channel image composed of the first channel encoded data, the second channel encoded data, and the third channel data from the RGB three-channel data is sent to the decoding side.

[0062] The following is for reference. Figures 3A to 3B as well as Figures 4A to 4C This embodiment will be explained and described. First, this embodiment is set to use... Figure 3A The black and white checkerboard pattern shown is used as the first checkerboard pattern. Figure 3B The black and white checkerboard pattern shown is used as the second checkerboard pattern. However, the first and second checkerboard patterns used in the various embodiments of this disclosure are not necessarily black and white checkerboard patterns.

[0063] Figure 4A The process of sampling alpha channel data based on a first and a second checkerboard pattern is illustrated. As shown in the figure, the sampling process involves retaining the alpha channel value corresponding to a white checkerboard cell at a pixel location, and replacing the alpha channel value corresponding to a black checkerboard cell with the adjacent alpha channel value corresponding to a white checkerboard cell. Since the checkerboard cell colors at the same pixel location in the first and second checkerboard patterns are opposite, the resulting... and Each contains half of the information from the Alpha channel data.

[0064] Figure 4B The flowchart illustrates the sampling process for R-channel data based on the second checkerboard pattern. As shown in the figure, the R-channel values ​​corresponding to pixel positions on white checkerboard squares are retained, while the R-channel values ​​corresponding to pixel positions on black checkerboard squares are replaced with the adjacent R-channel values ​​corresponding to white checkerboard squares, thus obtaining... . It contains half of the information from the R channel data.

[0065] Figure 4C The process of sampling B-channel data according to the first checkerboard pattern is illustrated. As shown in the figure, the B-channel values ​​corresponding to pixel positions on white checkerboard squares are retained, while the B-channel values ​​corresponding to pixel positions on black checkerboard squares are replaced with the adjacent B-channel values ​​corresponding to white checkerboard squares, thus obtaining... . It contains half of the information from the B channel data.

[0066] Then, the following equation is used for encoding to obtain the encoded data for the B and R channels:

[0067] Enc_B = ( * + (maxValue - )* Equation (4) / maxValue

[0068] Enc_R = ( * + (maxValue - )* Equation (5) / maxValue

[0069] Where maxValue is the maximum value of a pixel, such as 255 for 8 bits and 1023 for 10 bits. This represents the first checkerboard pattern. This represents the second checkerboard pattern, with Enc_B and Enc_R representing the encoded data for channels B and R, respectively.

[0070] Next, a new mixed RGB channel image consisting of Enc_B, Enc_R, and G channel data (which remain unchanged) is sent to the decoding side.

[0071] Figure 5 The processing procedure for the mixed RGB channel image received from the encoding side on the decoding side is given. As shown in the figure, step S501 inputs Enc_B and reconstructs the image with... and The corresponding dec_ and dec_ Then, step S502 is used to process dec_ Color difference correction is performed, and finally, in step S503, smoothing filtering is performed and the final B channel data dec_B is output; in step S511, Enc_R is input to reconstruct the color difference. and The corresponding dec_ and dec_ Then, step S512 is used to process dec_ Color difference correction is performed, and finally, step S513 performs smoothing filtering and outputs the final R channel data dec_R; while dec_ and dec_ The A-channel data is then smoothed and filtered in step S520, and the final A-channel data dec_A is output. The G-channel data on the decoding and encoding sides remain unchanged, so the G-channel data can be directly extracted from the mixed RGB channel image received on the decoding side.

[0072] Specifically, S511 is as follows.

[0073] During encoding, two adjacent R values ​​in the same row are used. 00 For example, substituting into the formula yields equations (6) and (7):

[0074] Enc_R 00 =(A 00 *R 00 +(255-A 00 Equation (6) is ()*255) / 255

[0075] Enc_R 01 =A 00 *R 00 Equation (7) / 255

[0076] Then solve A 00 Equation (8):

[0077] A 00 = 255 - Enc_R 00 + Enc_R 01 Equation (8)

[0078] If A 00 If R is less than the set threshold, then 00 If the value is 0, then solve for R. 00 Equation (9):

[0079] R 00 = 255*Enc_R 01 / A 00 Equation (9)

[0080] Similarly, based on the result after encoding the B channel, we can solve for:

[0081] A 01 = 255 - Enc_B 01 + Enc_B 00 Equation (10)

[0082] If A 01 If it is less than the set threshold, then B 01 =0, otherwise

[0083] B 01 = 255*Enc_B 00 / A 01 Equation (11)

[0084] By following this process, the complete A can eventually be recovered. and .

[0085] Due to the recovery from the above operations and With only half of the information from the R and B channels (the points superimposed on the white checkerboard during encoding), the other half still needs to be recovered based on the already recovered half. Figure 4B In For example, the R values ​​of the four white squares above, below, left, and right are known, so the value of the current point can be calculated using the reconstructed R values ​​of the neighborhood.

[0086] Utilizing the color difference constancy of adjacent pixels, such as adjacent pixels - = - You can get = - + To achieve more accurate calculations, the edge direction is calculated using the G channel values, and the pixel count along the edge direction and the color difference constancy criterion are used for calculation. .

[0087] Specifically, the Sobel operator is used for computation. horizontal gradient and vertical gradient :

[0088] = abs(- +2* - Equation (12)

[0089] = abs(- +2* - Equation (13)

[0090] like >T* , then it is in the horizontal direction:

[0091] =(( - + )+( - + Equation (14) is )) / 2

[0092] if >T* , then it is the vertical direction:

[0093] =(( - + )+( - + Equation (15)

[0094] otherwise, = (( - + ) + ( - + ) + ( - + ) + ( - + Equation (16) )) / 4.

[0095] Where T is the set threshold. Similarly, the other half of the data in channel B can be recovered.

[0096] It should be understood that the determination of edge direction is not limited to the gradient calculation method mentioned above, and the selection of neighborhood points is not limited to the four points mentioned above.

[0097] To reduce noise in the recovered ARGB four-channel image, edge-preserving filtering is applied to the A, R, and B channels. This can be done through bilateral filtering, or by calculating the average value of pixels in the neighborhood whose difference from the current pixel is less than a set threshold, and using this average as the value of the current pixel. The filtering window size can be selected based on the specific situation; for example, a 3x3 window size.

[0098] In summary, the image processing method and system of this disclosure, on the encoding side, evenly distributes the information of the Alpha channel data into the first Alpha channel sample data and the second Alpha channel sample data using a first checkerboard pattern and a second checkerboard pattern. Half of the information of the first channel data in the RGB three-channel data is distributed into the first channel sample data according to the first checkerboard pattern, and the other half of the information of the second channel data in the RGB three-channel data is distributed into the second channel sample data according to the second checkerboard pattern. Then, the first Alpha channel sample data, the first channel sample data, and the first checkerboard pattern are re-encoded into first channel data, and the second Alpha channel sample data, the second channel sample data, and the second checkerboard pattern are re-encoded into second channel data, thereby forming an RGB three-channel image sent to the decoding side. On the decoding side, an ARGB four-channel image is reconstructed according to the encoding process. This method only transmits the RGB three-channel image, and the varying degrees of distortion in the reconstructed ARGB four-channel image are relatively improved.

[0099] Figure 6 This is a functional schematic diagram of an image processing system provided in an embodiment of this disclosure. As shown in the figure, the image processing system 600 includes an encoding module 601, a decoding module 602, and a transmission module 603.

[0100] The encoding module 601 is used to sample the Alpha channel data and the first channel data of the RGB three-channel data in the ARGB four-channel image according to the first checkerboard pattern, to obtain the first Alpha channel sampled data and the first channel sampled data; and to sample the Alpha channel data and the second channel data of the RGB three-channel data in the ARGB four-channel image according to the second checkerboard pattern, to obtain the second Alpha channel sampled data and the second channel sampled data. Both the first and second checkerboard patterns are composed of first-color checkerboard patterns and second-color checkerboard patterns, but the checkerboard patterns at the same pixel position are of opposite colors. The process involves keeping the original values ​​of the channel values ​​corresponding to the first color checkerboard grid in each row of the corresponding channel data, replacing the channel values ​​corresponding to the second color checkerboard grid in each row of the corresponding channel data with the channel values ​​corresponding to the adjacent first color checkerboard grid, and then encoding the first Alpha channel sample data, the first channel sample data, and the first checkerboard pattern to obtain the first channel encoded data. The second Alpha channel sample data, the second channel sample data, and the second checkerboard pattern are then encoded to obtain the second channel encoded data. Finally, the first channel encoded data, the second channel encoded data, and the third channel data from the RGB three-channel data are combined to form a mixed RGB channel image.

[0101] The decoding module 602 is used to first recover the complete Alpha channel data, the first channel sampling data and the second channel sampling data from the mixed RGB channel image, and then construct the values ​​of the adjacent replaced channels based on the channel values ​​that retain their original values ​​in the sampling process.

[0102] The transmission module 603 is used to transmit a mixed RGB three-channel image from the encoding side to the decoding side.

[0103] In some embodiments, the encoding module 601 may also send an indication flag to the decoding module 602 to indicate whether the currently transmitted image data is mixed RGB data or RGB data.

[0104] Each module of the image processing system in this embodiment corresponds to the corresponding steps in the embodiment of the image processing method described above, and the various modules of the image processing system can be understood by referring to the corresponding steps in the embodiment of the image processing method described above. Therefore, the various modules of the image processing system are described in a relatively brief manner here.

[0105] Accordingly, this disclosure also provides an image processing chip, which may include an image signal processor (ISP) capable of performing image data processing and optimization, such as depigmentation, black level correction, lens shading correction, bad pixel correction, noise reduction, automatic white balance, color correction, and gamma correction. The image processing chip may also include a processor core for executing image processing algorithms and controlling chip operation. The image processing chip also requires a memory to store image data and program code, such as SRAM (Static Random Access Memory), DDR SDRAM (Dynamic Random Access Memory), or Flash memory. The image processing chip may also be equipped with various peripheral interfaces for communication and data transmission with other devices, such as a DVP (Digital Video Parallel Interface), a UART (Universal Asynchronous Receive / Transmit Interface), an SPI (Serial Peripheral Interface), or an I2C (Two-Wire Serial Bus Interface). The image processing chip may also include... Figure 6 The encoding module 601 and decoding module 602 shown are used to implement image and video encoding and decoding.

[0106] Accordingly, this disclosure also provides a computer-readable storage medium that stores one or more computer instructions, which, when executed, implement the functions of the steps or modules described in the above embodiments.

[0107] It should be understood that the methods, systems, computer-readable storage media, and image processing chips of the embodiments of this disclosure are all based on the same conceptual idea and therefore can be referenced to each other.

[0108] Although the embodiments of this application are disclosed above with reference to preferred embodiments, they are not intended to limit the claims. Any person skilled in the art can make possible changes and modifications without departing from the spirit and scope of this application. Therefore, the scope of protection of this application shall be determined by the scope defined by the claims of this application.

[0109] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. An image processing method, characterized in that, This includes encoding operations on the encoding side, the encoding operations including: According to the first checkerboard pattern, the Alpha channel data in the ARGB four-channel image and the first channel data in the RGB three-channel image are sampled to obtain the first Alpha channel sampled data and the first channel sampled data. According to the second checkerboard pattern, the Alpha channel data in the ARGB four-channel image and the second channel data in the RGB three-channel image are sampled to obtain the second Alpha channel sampled data and the second channel data. The first checkerboard pattern and the second checkerboard pattern are composed of a first color checkerboard and a second color checkerboard, but the checkerboard colors at the same pixel position are opposite. The sampling process is to keep the channel value corresponding to the first color checkerboard in each row of the corresponding channel data at its original value, and replace the channel value corresponding to the second color checkerboard in each row of the corresponding channel data with the channel value corresponding to the first color checkerboard in the adjacent row. Encode the first channel coded data using the first Alpha channel sampled data, the first channel sampled data, and the first checkerboard pattern; Encode the second channel data using the second Alpha channel sample data, the second channel sample data, and the second checkerboard pattern to obtain the second channel encoded data; The first channel encoded data, the second channel encoded data, and the third channel data from the RGB three-channel data are combined to form a mixed RGB channel image.

2. The image processing method according to claim 1, characterized in that, The following equation is used for encoding: Enc_X = (A sx * X s + (maxValue - A sx )*P tx ) / maxValue; Where x equals 1 or 2, A s1 This represents the sampled data of the first Alpha channel, A. s2 This represents the sampled data of the second Alpha channel, where X equals R, G, or B. s P represents the sampled data of the R, G, or B channels. t1 P represents the first chessboard pattern. t2 This represents the second chessboard pattern, where maxValue represents the maximum pixel value, and Enc_X represents the R, G, or B channel encoded data.

3. The image processing method according to claim 1, characterized in that, Also includes: The decoding operation on the decoding side includes: The complete Alpha channel data, the first channel sample data, and the second channel sample data are recovered from the mixed RGB channel image. as well as The channel values ​​that were retained during the sampling process are used to construct the values ​​of the adjacent replaced channels.

4. The image processing method according to claim 3, characterized in that, Also includes: The Alpha channel data, the first channel data, and the second channel data generated by the decoding operation are filtered.

5. The image processing method according to claim 3, characterized in that, By utilizing the color difference constancy of adjacent pixels, the channel values ​​that are replaced are constructed using the channel values ​​that retain their original values ​​in the sampling process.

6. The image processing method according to claim 5, characterized in that, The values ​​of the replaced channels that are constructed to be adjacent include: Calculate the horizontal and vertical gradients of the replaced channel value using the channel values ​​of the adjacent third channel; and The value of the third channel used in calculating the value of the replaced channel is adjusted based on the comparison results of the horizontal and vertical gradients of the replaced channel value.

7. The image processing method according to any one of claims 1 to 6, characterized in that, The first channel data is one of the R channel data and the B channel data, the second channel data is the other of the R channel data and the B channel data, and the third channel data is the G channel data.

8. The image processing method according to any one of claims 1 to 6, characterized in that, Both the first and second checkerboard patterns are black and white checkerboard patterns.

9. An image processing system, characterized in that, It includes an encoding module, a decoding module, and a transmission module. The encoding module uses the image processing method described in any one of claims 1, 2, 7, and 8 to encode the ARGB four-channel image to obtain the ARGB four-channel image. The decoding module reconstructs four-channel data from the mixed RGB channel image using the image processing method described in any one of claims 3 to 6; The transmission module transmits the mixed RGB channel image from the encoding side to the decoding side.

10. An image processing chip, characterized in that, It integrates the image processing system as described in claim 9.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by a processor, it implements the steps of the image processing method according to any one of claims 1-8.