Cholesteric phase LCD display screen image dithering processing method and device
By using an FPGA parallel computing architecture and the Sierra algorithm, image jitter processing for cholesteric LCD displays is achieved, solving the color layering and distortion problems caused by limited color depth, improving display effect and processing efficiency, and meeting real-time display requirements.
Patent Information
- Application Number
- CN202511860947.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-11
- Publication Date
- 2026-05-15
AI Technical Summary
Due to the limited color depth, cholesteric LCD displays suffer from severe color stratification and distortion when directly displaying 8-bit color depth images. Existing image jitter processing methods are inefficient and have high latency on MCUs or host computers, failing to meet real-time display requirements.
By employing an FPGA parallel computing architecture, combined with the Sierra algorithm and error diffusion factor matrix, cholesteric phase LCD screen images are processed through parallel error diffusion. The data caching logic is optimized, requiring only a small amount of adjacent row pixel information to be cached, thus enabling image quantization and error calculation to be performed simultaneously.
It significantly improves the image visual detail and color transition naturalness of the cholesteric LCD display, reduces processing latency and hardware resource consumption, meets real-time display requirements, and improves the user's visual experience.
Smart Images

Figure CN122050318A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of cholesteric LCD display technology, and more particularly to a method and apparatus for processing image jitter in cholesteric LCD displays. Background Technology
[0002] Due to the inherent arrangement characteristics of its liquid crystal molecules, cholesteric LCD displays only support two grayscale levels, resulting in extremely low color depth. This makes them unsuitable for directly adapting to the 8-bit color depth of mainstream digital images (8 bits per RGB channel, with values from 0 to 255). When directly displaying 8-bit color depth images, pixels must be forcibly mapped to a limited grayscale, easily leading to severe color stratification and distortion, failing to meet users' image quality requirements.
[0003] Image dithering is a core technology for solving image quality problems in low color depth display devices. It uses a "pixel quantization-error diffusion" mechanism to distribute the color error of a single pixel to neighboring pixels, visually simulating more grayscale and colors. Currently, implementing image dithering based on MCUs or host computers requires loading the entire image data into memory. Quantization and error diffusion are completed through serial logic. On the one hand, MCU memory usage is extremely high, and host computer processing requires additional data interaction overhead; on the other hand, in serial processing mode, the average processing time for a single pixel is long, resulting in a significantly high overall processing latency for a frame of image, far exceeding the frame latency requirements for real-time display in cholesteric LCD displays. Summary of the Invention
[0004] To address the technical problems existing in the background art, the present invention proposes a method and apparatus for processing image jitter on a cholesteric LCD display screen.
[0005] The present invention proposes a method for processing image jitter on a cholesteric phase LCD display, comprising the following steps: S1. Obtain the pixel data stream of the image to be displayed on the cholesteric phase LCD display screen. Each pixel in the pixel data stream contains the values of three channels: RGB, and the depth information of each channel is 8 bits. S2. For each pixel in the pixel data stream, select the RGB value of the target color that is closest to the color of each pixel from the preset color set; S3. Calculate the RGB error value of each pixel based on the RGB value of each pixel and the RGB value of the target color; S4. Based on the Sierra algorithm, the error diffusion factor matrix diffuses the RGB error value of each pixel in parallel to the adjacent pixels in the current row, the next row, and the row after the next, updating the RGB value of each pixel to generate the pixel data stream of the processed image to be displayed. S5. Output the processed pixel data stream of the image to be displayed to the cholesteric phase LCD display screen.
[0006] Preferably, the step of selecting the RGB value of the target color that is closest to the color of each pixel from the preset color set specifically includes: Calculate the Euclidean distance between the RGB value of each pixel and the corresponding channel value of each color in the preset color set; Choose the color with the smallest Euclidean distance as the target color for this pixel; The Euclidean distance calculation formula is as follows: ; Where R, G, and B are the channel values corresponding to the pixels respectively; The distance is Euclidean. , , This refers to the corresponding channel value of a color in a preset color set.
[0007] Preferably, the formula for calculating the RGB error value is:
[0008] Where R1, G1, and B1 are the target color channel values; R, G, and B are the channel values corresponding to the pixels respectively; , , This represents the RGB error value.
[0009] Preferably, the error diffusion factor matrix is specifically: ; in, Indicates the current pixel.
[0010] Preferably, the preset color set is {(0,0,0), (255,0,0), (0,255,0), (0,0,255), (255,255,0), (255,0,255), (0,255,255), (255,255,255)}.
[0011] Preferably, step S4 specifically includes: Based on the error diffusion factor matrix of the Sierra algorithm, determine the error diffusion factors of the current pixel corresponding to the right 1 pixel, right 2 pixel in the current row, left 2 pixels, left 1 pixel, bottom pixel, right 1 pixel and right 2 pixel in the next row, and left 1 pixel, bottom pixel and right 1 pixel in the next row. The RGB error value of the current pixel is retrieved and added to the diffusion factor of each adjacent pixel through a shift operation to obtain the RGB error compensation value of each adjacent pixel. Extract the original RGB values of each adjacent pixel and add them to the corresponding RGB error compensation values to update the RGB values of each adjacent pixel; After iterating through all pixels of the image to be displayed and repeating the above operation, integrate all the updated pixel data to generate the processed pixel data stream of the image to be displayed.
[0012] Preferably, the method further includes: Read the RGB values of the pixels in the next and the next-next rows stored in the BRAM cache during processing of the previous row; The RGB values of the next row of pixels are read as the current row, and the jitter image result is quantized and the error is calculated. The RGB error value of the current row of pixels is compensated according to the error matrix to the RGB value of the next row of pixels, and stored as the next row in BRAM; The RGB error value of the current row pixel is compensated to the RGB value of the next-next row pixel according to the error matrix, and then stored in BRAM as the next-next row.
[0013] The present invention provides an image jitter processing device for a cholesteric phase LCD display, comprising: The data acquisition module is used to acquire the pixel data stream of the image to be displayed on the cholesteric LCD display screen. Each pixel in the pixel data stream contains the values of three channels: RGB, and the depth information of each channel is 8 bits. The quantization module is used to select the RGB value of the target color that is closest to the color of each pixel in the pixel data stream from a preset color set; The data processing module is used to calculate the RGB error value of each pixel based on the RGB value of each pixel and the RGB value of the target color. The parallel error diffusion module is used to spread the RGB error value of each pixel in parallel to the neighboring pixels in the current row, the next row and the row after the next based on the error diffusion factor matrix of the Sierra algorithm, and update the RGB value of each pixel to generate the pixel data stream of the processed image to be displayed. The output module is used to output the processed pixel data stream of the image to be displayed to the cholesteric LCD display screen.
[0014] The proposed image jitter processing method and apparatus for cholesteric LCD displays utilizes the parallel computing architecture of an FPGA to simultaneously advance image quantization, error calculation, and multi-neighborhood error diffusion processes. This significantly improves the overall efficiency of image jitter processing, effectively meeting the real-time display requirements of cholesteric LCD displays and avoiding screen stuttering or display lag caused by processing delays. By optimizing the data caching logic, it eliminates the need to store the entire image data; only a small amount of pixel information from adjacent rows needs to be cached to support error diffusion operations. This significantly reduces the occupancy of internal FPGA storage resources, thereby reducing hardware resource consumption and related costs. The Sierra error diffusion algorithm effectively alleviates the color banding distortion phenomenon caused by the limited color depth of cholesteric LCD displays, resulting in a significant improvement in the visual delicacy, natural color transitions, and detail expression of the displayed image, thus enhancing the user's visual viewing experience. Attached Figure Description
[0015] Figure 1 This is a schematic diagram of the workflow of a cholesteric phase LCD display image jitter processing method proposed in this invention; Figure 2 This is a schematic diagram of the implementation architecture of one embodiment of the cholesteric phase LCD display image jitter processing method proposed in this invention; Figure 3 A schematic diagram of pixel diffusion in one embodiment of the cholesteric phase LCD display image jitter processing method proposed in this invention. Figure 1 ; Figure 4 A schematic diagram of pixel diffusion in one embodiment of the cholesteric phase LCD display image jitter processing method proposed in this invention. Figure 2 ; Figure 5 A schematic diagram of pixel diffusion in one embodiment of the cholesteric phase LCD display image jitter processing method proposed in this invention. Figure 3 ; Figure 6 This is a schematic diagram of the device architecture for a cholesteric LCD display image jitter processing device proposed in this invention. Detailed Implementation
[0016] Reference Figures 1-6 The present invention proposes a method for processing image jitter on a cholesteric phase LCD display, comprising the following steps: S1. Obtain the pixel data stream of the image to be displayed on the cholesteric phase LCD display. Each pixel in the pixel data stream contains the values of three channels: RGB, and the depth information of each channel is 8 bits.
[0017] S2. For each pixel in the pixel data stream, select the RGB value of the target color that is closest to the color of each pixel from the preset color set.
[0018] In this embodiment, the preset color set is {(0,0,0), (255,0,0), (0,255,0), (0,0,255), (255,255,0), (255,0,255), (0,255,255), (255,255,255)}.
[0019] In this embodiment, the RGB values of the target color that are closest to the color of each pixel are selected from a preset color set, specifically including: Calculate the Euclidean distance between the RGB value of each pixel and the corresponding channel value of each color in the preset color set; Choose the color with the smallest Euclidean distance as the target color for this pixel; The Euclidean distance calculation formula is: ; Where R, G, and B are the channel values corresponding to the pixels respectively; The distance is Euclidean. , , This refers to the corresponding channel value of a color in a preset color set.
[0020] S3. Calculate the RGB error value of each pixel based on the RGB value of each pixel and the RGB value of the target color.
[0021] In this embodiment, the formula for calculating the RGB error value is:
[0022] Where R1, G1, and B1 are the target color channel values; R, G, and B are the channel values corresponding to the pixels respectively; , , This represents the RGB error value.
[0023] S4. Based on the Sierra algorithm, the error diffusion factor matrix diffuses the RGB error value of each pixel in parallel to the adjacent pixels in the current row, the next row, and the row after that, updating the RGB value of each pixel to generate the pixel data stream of the processed image to be displayed.
[0024] In this embodiment, the error diffusion factor matrix is specifically as follows: ; in, Indicates the current pixel.
[0025] In this embodiment, step S4 specifically includes: Based on the error diffusion factor matrix of the Sierra algorithm, determine the error diffusion factors of the current pixel corresponding to the right 1 pixel, right 2 pixel in the current row, left 2 pixels, left 1 pixel, bottom pixel, right 1 pixel, right 2 pixel in the next row, and left 1 pixel, bottom pixel, and right 1 pixel in the next row. Retrieve the RGB error value of the current pixel and obtain the RGB error compensation value of each adjacent pixel by shifting and adding it with the diffusion factors corresponding to each adjacent pixel. Extract the original RGB values of each adjacent pixel and add them to the corresponding RGB error compensation values to update the RGB values of each adjacent pixel; After iterating through all pixels of the image to be displayed and repeating the above operation, integrate all the updated pixel data to generate the processed pixel data stream of the image to be displayed.
[0026] S5. Output the processed pixel data stream of the image to be displayed to the cholesteric phase LCD display screen.
[0027] In this embodiment, the method further includes: Read the RGB values of the pixels in the next and the next-next rows stored in the BRAM cache during processing of the previous row; The RGB values of the next row of pixels are read as the current row, and the jitter image result is quantized and the error is calculated. The RGB error value of the current row of pixels is compensated according to the error matrix to the RGB value of the next row of pixels, and stored as the next row in BRAM; The RGB error value of the current row pixel is compensated to the RGB value of the next-next row pixel according to the error matrix, and then stored in BRAM as the next-next row.
[0028] Example 1: Taking the Sierra algorithm as an example, its color set is:
[0029] Its diffusion error factor matrix is:
[0030] like Figure 2 As shown, the R, G, and B values of the current pixel are obtained and quantized. The colors R1, G1, and B1 that are closest to the color of this pixel are found from the color set. The error is calculated based on the quantization results. , , : .
[0031] like Figure 3As shown, the rightmost pixel of the current pixel is then calculated based on this error. , , value: ; in, , , The rightmost two pixels of the current pixel in the next row when processing the previous row.
[0032] Similarly, calculate the R, G, and B values of the current pixel: ; like Figure 4 As shown, the value of the rightmost two pixels in the next row is calculated similarly. , , ,in , , This refers to the third pixel from the right in the next row of data after the current pixel when processing the previous row.
[0033] ; Similarly, calculate the value of the rightmost pixel in the next row. , , : ; The remaining pixels in the second row , , , , , , , , The calculation is the same as above.
[0034] At the same time , , Store it in BRAM as the next row.
[0035] like Figure 5 As shown, the value of the rightmost pixel in the next row is calculated similarly. , , ,in , , It refers to the two pixels to the right of the current pixel in the next row of data to be processed.
[0036] ; Similarly, calculate the value of the pixel directly below the next row. , , : ; Similarly, calculate the value of the rightmost pixel in the next row. , , : ; At the same time , , Store it in BRAM as the next-next row.
[0037] In this embodiment, since all the above calculation steps are performed simultaneously, this implementation method can save processing time. Because the error matrix involves three rows of data, this implementation method only needs to store two rows of data, instead of storing the entire image data, thus saving storage space.
[0038] Reference Figures 1-6 The present invention provides an image jitter processing device for a cholesteric phase LCD display, comprising: The data acquisition module is used to acquire the pixel data stream of the image to be displayed on the cholesteric LCD screen. Each pixel in the pixel data stream contains the values of three channels: RGB, and the depth information of each channel is 8 bits. The quantization module is used to select the RGB value of the target color that is closest to the color of each pixel in the pixel data stream from a preset color set; The data processing module is used to calculate the RGB error value of each pixel based on the RGB value of each pixel and the RGB value of the target color. The parallel error diffusion module is used to spread the RGB error value of each pixel in parallel to the neighboring pixels in the current row, the next row and the row after the next based on the error diffusion factor matrix of the Sierra algorithm, and update the RGB value of each pixel to generate the pixel data stream of the processed image to be displayed. The output module is used to output the processed pixel data stream of the image to be displayed to the cholesteric LCD display screen.
[0039] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.
Claims
1. A method for processing image jitter on a cholesteric LCD display, characterized in that, Includes the following steps: S1. Obtain the pixel data stream of the image to be displayed on the cholesteric phase LCD display screen. Each pixel in the pixel data stream contains the values of three channels: RGB, and the depth information of each channel is 8 bits. S2. For each pixel in the pixel data stream, select the RGB value of the target color that is closest to the color of each pixel from the preset color set; S3. Calculate the RGB error value of each pixel based on the RGB value of each pixel and the RGB value of the target color; S4. Based on the Sierra algorithm, the error diffusion factor matrix diffuses the RGB error value of each pixel in parallel to the adjacent pixels in the current row, the next row, and the row after the next, updating the RGB value of each pixel to generate the pixel data stream of the processed image to be displayed. S5. Output the processed pixel data stream of the image to be displayed to the cholesteric phase LCD display screen.
2. The cholesteric phase LCD display image jitter processing method according to claim 1, characterized in that, The step of selecting the RGB value of the target color that is closest to the color of each pixel from the preset color set specifically includes: Calculate the Euclidean distance between the RGB value of each pixel and the corresponding channel value of each color in the preset color set; Choose the color with the smallest Euclidean distance as the target color for this pixel; The Euclidean distance calculation formula is as follows: ; Among them, R, G, and B are the 8-bit color depth values of the pixel's RGB three channels; The distance is Euclidean. , , This refers to the corresponding channel value of a color in a preset color set.
3. The cholesteric phase LCD display image jitter processing method according to claim 1, characterized in that, The formula for calculating the RGB error value is as follows: Where R1, G1, and B1 are the target color channel values; R, G, and B are the channel values corresponding to the pixels respectively; , , This represents the RGB error value.
4. The cholesteric phase LCD display image jitter processing method according to claim 1, characterized in that, The error diffusion factor matrix is specifically as follows: ; in, Indicates the current pixel.
5. The cholesteric phase LCD display image jitter processing method according to claim 1, characterized in that, The preset color set is {(0,0,0), (255,0,0), (0,255,0), (0,0,255), (255,255,0), (255,0,255), (0,255,255), (255,255,255)}.
6. The cholesteric phase LCD display image jitter processing method according to claim 1, characterized in that, Step S4 specifically includes: Based on the error diffusion factor matrix of the Sierra algorithm, determine the error diffusion factors of the current pixel corresponding to the right 1 pixel, right 2 pixel in the current row, left 2 pixels, left 1 pixel, bottom pixel, right 1 pixel and right 2 pixel in the next row, and left 1 pixel, bottom pixel and right 1 pixel in the next row. The RGB error value of the current pixel is retrieved and added to the diffusion factor of each adjacent pixel through a shift operation to obtain the RGB error compensation value of each adjacent pixel. Extract the original RGB values of each adjacent pixel and add them to the corresponding RGB error compensation values to update the RGB values of each adjacent pixel; After iterating through all pixels of the image to be displayed and repeating the above operation, integrate all the updated pixel data to generate the processed pixel data stream of the image to be displayed.
7. The cholesteric phase LCD display image jitter processing method according to claim 1, characterized in that, The method further includes: Read the RGB values of the pixels in the next and the next-next rows stored in the BRAM cache during processing of the previous row; The RGB values of the next row of pixels are read as the current row, and the jitter image result is quantized and the error is calculated. The RGB error value of the current row of pixels is compensated according to the error matrix to the RGB value of the next row of pixels, and stored as the next row in BRAM; The RGB error value of the current row pixel is compensated to the RGB value of the next-next row pixel according to the error matrix, and then stored in BRAM as the next-next row.
8. A cholesteric phase LCD display image jitter processing device, characterized in that, include: The data acquisition module is used to acquire the pixel data stream of the image to be displayed on the cholesteric LCD display screen. Each pixel in the pixel data stream contains the values of three channels: RGB, and the depth information of each channel is 8 bits. The quantization module is used to select the RGB value of the target color that is closest to the color of each pixel in the pixel data stream from a preset color set; The data processing module is used to calculate the RGB error value of each pixel based on the RGB value of each pixel and the RGB value of the target color. The parallel error diffusion module is used to spread the RGB error value of each pixel in parallel to the neighboring pixels in the current row, the next row and the row after the next based on the error diffusion factor matrix of the Sierra algorithm, and update the RGB value of each pixel to generate the pixel data stream of the processed image to be displayed. The output module is used to output the processed pixel data stream of the image to be displayed to the cholesteric LCD display screen.