A pattern simulation method for a rhombic pixel projection chip
By simulating the diamond cell projection chip in a one-to-one correspondence method in the square cell image system, the problems of large resource consumption and large errors in the prior art are solved, and high-quality simulated image generation is achieved.
Patent Information
- Application Number
- CN202210689088.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-16
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2042-06-16
AI Technical Summary
In the prior art, when simulating a diamond cell projection chip, there are problems such as large resource consumption, large errors and inability to eliminate aliasing.
A pattern simulation method of a diamond cell projection chip is adopted to determine the position and grayscale values of the diamond cell and the square cell in a square cell image system through a one-to-one corresponding method to generate a simulated image.
It effectively eliminates errors and jagging problems in simulated images, improves image quality and reduces system development needs.
Smart Images

Figure CN115187655B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of digital image processing, and particularly refers to a pattern simulation method for a rhombic pixel projection chip. Background Art
[0002] In a digital light processing system (DLP), in order to compress the system volume, a DMD projection display device with a rhombic pixel arrangement distribution is used instead of a DMD projection chip with a traditional square pixel distribution arrangement for image simulation, which enables the digital light processing system (DLP) to display images or videos with a higher resolution.
[0003] The main differences between a DMD projection display device with a rhombic pixel arrangement distribution and a traditional DMD projection chip with a square pixel distribution arrangement are the pixel shape differences and the position definitions of rows, columns, and diagonal lines for projection display. Since the pixels of the rhombic pixel chip and the square pixel chip still have a one-to-one correspondence, the image displayed in the rectangular pixel system will change greatly when displayed in the rhombic pixel system. For example, for an image of 1140 rows * 912 columns, the aspect ratio of the image in the rectangular pixel image system is 4:5, while in the rhombic pixel system, the aspect ratio of the image becomes close to 16:9. In the prior art, when simulating the image of a rhombic pixel device in a square image system, the high-resolution method is often used. Due to the geometric shape differences between square pixels and rhombic pixels, multiple square pixels are often required to approximately simulate 1 rhombic pixel / pixel. Moreover, the high-resolution method directly uses square pixels to simulate rhombic pixels, and only approximate simulation results can be obtained, and absolute accurate results cannot be obtained, and there is also a problem of inability to eliminate jaggedness. Summary of the Invention
[0004] To overcome the problems of large resource consumption and large error in the images obtained by simulation in the prior art, the present invention provides a pattern simulation method for a rhombic pixel projection chip.
[0005] To achieve the above object, the present invention adopts the following technical solutions:
[0006] A pattern simulation method for a rhombic pixel projection chip, used to simulate the image of a rhombic pixel device in a square pixel image system, and the generated image is defined as a simulation image, including the following steps:
[0007] S1: Determine that the resolution of the image of the rhombic pixel device is M rows * N columns, and, the resolution of the square pixel image in the corresponding square pixel image system is also M rows * N columns, and, the resolution of the corresponding simulation image is also M rows * N columns, and, the pixels in the three images of the rhombic pixel device image, the square pixel image, and the simulation image are in one-to-one correspondence;
[0008] S2: Generate a simulation image in the square pixel image system. Select the square pixel at the a-th row and b-th column of the square pixel image as the pixel at the first row and first column of the simulation image. This pixel corresponds to the diamond pixel at the first row and first column of the diamond pixel device image;
[0009] S3: Define the direction of the line connecting the centers of the diagonal pixels of a square pixel in the square pixel image as the row direction of the pixels in the simulation image. Define the two diagonally adjacent square pixels in the same diagonal pixel direction of the square pixel image as two adjacent pixels in the row direction of the simulation image. These two adjacent pixels correspond to two diagonally adjacent diamond pixels in the same row of the diamond pixel device image;
[0010] S4: Correspond the position of each diamond pixel in the diamond pixel device image to the position of each square pixel in the square pixel image system one by one, and finally confirm the positions of the M rows * N columns of pixels in the simulation image;
[0011] S5: Set the gray value of each pixel in the simulation image in the square pixel image system to be consistent with the gray value of the corresponding diamond pixel in the diamond pixel device image, and finally obtain the simulation image in the square pixel image system.
[0012] Preferably, in the step of S4, it specifically includes:
[0013] Correspond the diamond pixel at the i-th row and j-th column in the diamond pixel device image to the square pixel at the [a + floor(i / 2) - j + 1]-th row and [b + ceil(i / 2) + j - 2]-th column in the square pixel image, where floor() is the function of taking the integer downward, and ceil() is the function of taking the integer upward.
[0014] Preferably, all four inner angles of the diamond pixels in the diamond pixel device image are 90°. The directions of the two diagonals of the diamond pixels in the diamond pixel device image are respectively the row direction and column direction of the diamond pixel device image.
[0015] Preferably, the outer contour of the square pixels in the square pixel image is square. The directions of two adjacent sides of the square pixels in the square pixel image are respectively the row direction and column direction of the square pixel image.
[0016] Preferably, the number of rows of the resolution of the diamond pixel device image is at least one row.
[0017] The prominent and beneficial technical effects of the present invention compared with the prior art are:
[0018] In the present invention, based on the above method, the square pixels in the direction of the line connecting the centers of the diagonal pixels in the square pixel image are used as the pixels in the row direction of the simulation image, and the square pixels in the square pixel image correspond to the pixels in the simulation image one by one, and the image error during image simulation and the jagged problem caused by simulation can be effectively eliminated.
[0019] The present invention is implemented based on the traditional square pixel image system, which reduces the system development requirements and is conducive to the popularization of the present invention. Moreover, the quality of the obtained simulation image is consistent with the quality of the original square pixel image. Therefore, the present invention has the advantages of high image quality and no error. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 is a schematic diagram of the step flow of the present invention;
[0021] Figure 2 is a schematic diagram of the row and column geometric distribution of a traditional square pixel digital image;
[0022] Figure 3 is a schematic diagram of the row and column geometric distribution officially defined by a rhombus pixel device;
[0023] Figure 4 is a schematic diagram of the row and column geometric distribution defined when generating a simulation image on a square pixel digital image according to the present invention;
[0024] Figure 5 is a square pixel image of 1140 rows * 912 columns of pixels in a square pixel image system;
[0025] Figure 6 is corresponding to the present invention Figure 5 simulation image of 1140 rows * 912 columns of pixels; DETAILED DESCRIPTION OF THE INVENTION
[0026] For the convenience of understanding by those skilled in the art, the present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.
[0027] It should be noted that in the prior art, when a square pixel image system generates an image corresponding to a rhombus pixel device DMD, the rhombus pixel device image pixels are directly projected onto the square pixel image. The square pixel image includes a plurality of square pixels, and the plurality of square pixels are arranged together in the form of an orthogonal array. The two adjacent side directions of the square pixel are the row direction and the column direction of the square pixel image respectively. The rhombus pixel device includes a plurality of rhombus DMD units, and the rhombus DMD units can also be called digital micromirrors. The plurality of rhombus DMD units are arranged together to form a rhombus pixel device, and the end angle of any one rhombus DMD unit faces the end angle of the adjacent rhombus DMD unit. The pair of diagonal directions of the rhombus DMD unit is the row direction of the rhombus pixel device. During image simulation, due to the shape and position deviations between the square pixels in the square pixel image and the rhombus DMD units of the rhombus pixel device, the images simulated by the prior art have a problem of large row-column ratio changes, seriously reducing the quality of the simulated images and increasing the image error.
[0028] To solve the above problems, as Figure 1 shown, this embodiment provides a pattern simulation method for a rhombus pixel projection chip, which is executed in a traditional square pixel image system, and includes the following steps:
[0029] S1: The square pixel image system determines that the resolution of the rhombus pixel device image is M rows * N columns, and correspondingly, the resolution of the square pixel image in the square pixel image system is also M rows * N columns, and correspondingly, the resolution of the simulated image is also M rows * N columns. And the pixels in the three images of the rhombus pixel device image, the square pixel image, and the simulated image correspond one by one;
[0030] S2: Generate a simulated image in the square pixel image system. Select the square pixel at the a-th row and the b-th column of the square pixel image as the pixel at the 1st row and the 1st column of the simulated image, and this pixel corresponds to the rhombus pixel at the 1st row and the 1st column of the rhombus pixel device image;
[0031] S3: Define the direction of the center connection line of the diagonal pixels of a square pixel in the square pixel image as the row direction of the pixels in the simulated image. Define the 2 diagonally adjacent square pixels in the direction of the diagonal pixels of the same square pixel in the square pixel image as the 2 adjacent pixels in the row direction of the simulated image, and these 2 adjacent pixels correspond to the 2 diagonally adjacent rhombus pixels in the same row of the rhombus pixel device image;
[0032] S4: Correspond the position of each rhombus pixel in the rhombus pixel device image to the position of each square pixel in the square pixel image system one by one, and finally confirm the positions of the M rows * N columns of pixels in the simulated image;
[0033] S5: Set the gray value of each pixel in the simulated image of the square pixel image system to be consistent with the gray value of the diamond pixel of the corresponding diamond pixel device image, and finally obtain the simulated image in the square pixel image system.
[0034] Among them, as Figure 2 shown, the outer contour of the square pixel is square, and the square pixel image is formed by the orthogonal arrangement of a number of square pixels, so that it can be known that the rows of the square pixel image and the columns of the square pixel image are perpendicular to each other. As Figure 3 shown, the outer contour of the diamond pixel of the diamond DMD device is diamond-shaped, and the diamond pixel device is formed by the arrangement of a number of diamond pixels.
[0035] In the step of S4, it specifically includes:
[0036] Correspond each diamond pixel in the diamond pixel device image to the position of a square pixel in the square pixel image system one by one.
[0037] After adopting the specific steps of S4 above, the square pixels in the square pixel image correspond to the diamond pixels in the diamond pixel device image one by one. Avoid the problem of misalignment between pixels when simulating the image.
[0038] The row of the diamond pixel device image includes at least one diamond DMD pixel.
[0039] In the step of S4, it specifically includes:
[0040] Correspond the diamond pixel in the i-th row and j-th column of the diamond pixel device image to the square pixel in the [a + floor(i / 2) - j + 1]-th row and [b + ceil(i / 2) + j - 2]-th column of the square pixel image, where floor() is the floor function and ceil() is the ceiling function.
[0041] In the specific steps of S4 above, the square pixel in the a-th row and b-th column can be any square pixel in the square pixel image. The square pixel in the [a + floor(i / 2) - j + 1]-th row and [b + ceil(i / 2) + j - 2]-th column of the square pixel image corresponds to the diamond pixel in the i-th row and j-th column of the diamond pixel device image. By using the above mapping relationship, the positions of the square pixels in the square pixel image can be efficiently corresponded to the positions of the diamond pixels in the diamond pixel device image one by one.
[0042] The four inner angles of the diamond pixel in the diamond pixel device image are all 90°, and the directions of the two diagonals of the diamond pixel in the diamond pixel device image are the row direction and column direction of the diamond pixel device image respectively.
[0043] In the square pixel image, the outer contour of the square pixel is square, and the directions of two adjacent sides of the square pixel in the square pixel image are the row direction and the column direction of the square pixel image, respectively.
[0044] The number of rows of the resolution of the rhombic pixel component image is at least 1 row, and the number of columns of the resolution of the rhombic pixel component image is also at least 1 column.
[0045] To verify the simulation effect of the present invention, the process of the simulation experiment of the present invention is introduced in detail below:
[0046] As Figure 2 shown, it is a traditional square pixel image with 4 rows and 4 columns. The dotted lines of Col 1, Col 2... Col 4 and Row1, Row 2... Row 4 represent the perpendicular bisectors of the square pixels. Col 1, Col 2... Col 4 can be used to represent the respective columns of the square pixel image. For example, the square pixels on Col 1 represent the square pixels on the first column of the square pixel image,... the square pixels on Col 4 represent the square pixels on the fourth column of the square pixel image. Row 1, Row2... Row 4 can be used to represent the respective rows of the square pixel image. For example, the square pixels on Row 1 represent the square pixels on the first row of the square pixel image,... the square pixels on Row 4 represent the square pixels on the fourth row of the square pixel image.
[0047] As Figure 3 shown, it is a rhombic pixel component with 5 rows and 2 columns. The serrated dotted lines of Col 1 and Col 2 represent the respective columns of the rhombic pixel component. For example, the rhombic DMD units on Col 1 represent the rhombic DMD units on the first column of the rhombic pixel component, and the rhombic DMD units on Col 2 represent the rhombic DMD units on the second column of the rhombic pixel component. Row1, Row 2... Row 4 can be used to represent the rows of the rhombic pixel component. The dotted lines of Row 1, Row 2... Row 5 represent the respective rows from the first row to the fifth row of the rhombic pixel component. For example, the rhombic DMD units on Row 1 represent the rhombic DMD units on the first row of the rhombic pixel component,... the rhombic DMD units on Row 5 represent the rhombic DMD units on the fifth row of the rhombic pixel component.
[0048] Establish a rectangular coordinate system on the traditional square pixel digital image. The position of the square pixel in the first column and the first row in the rectangular coordinate system is (1, 1), the position of the square pixel in the a-th row and the b-th column in the rectangular coordinate system is (a, b), and the position of the square pixel in the i-th row and the j-th column in the rectangular coordinate system is (i, j). The positions of the respective square pixels in the square pixel image in the rectangular coordinate system can be defined as:
[0049] (1, 1), (1, 2), (1, 3), (1, 4);
[0050] (2, 1), (2, 2), (2, 3), (2, 4);
[0051] (3, 1), (3, 2), (3, 3), (3, 4);
[0052] (4, 1), (4, 2), (4, 3), (4, 4).
[0053] Similarly, on the rhombus-like component, according to the official definition, the positions of the respective rhombus DMD units of the rhombus-like component can be defined as:
[0054] (1, 1), (1, 2);
[0055] (2, 1), (2, 2);
[0056] (3, 1), (3, 2);
[0057] (4, 1), (4, 2).
[0058] Moreover, the positions of the respective pixels on the simulation image are consistent with the positions of the respective rhombus pixels on the rhombus-like component.
[0059] Step 1: As Figure 4 shown, the square pixel image system generates the top-left pixel of the simulation image. First, select the pixel (2, 1) in the square pixel image as the pixel (1, 1) in the simulation image. It can be known that a = 2 and b = 1;
[0060] Step 2: The square pixel image system substitutes a = 2 into [a + floor(i / 2) - j + 1] and substitutes b = 1 into [b + ceil(i / 2) + j - 2]. Then, through the above formulas, the remaining respective square pixels in the square pixel image are used as the pixels in the simulation image, and the gray value of the corresponding pixel is set to be the same as the gray value of the pixel of the rhombus-like component. Thus, the square pixel image system completes the conversion of the square pixel image into the simulation image.
[0061] As Figure 5 and Figure 6 shown, Figure 5 is the square pixel image of 1140 rows * 912 columns of pixels in the square pixel image system, Figure 6 is the simulation image of 1140 rows * 912 columns of pixels generated on the square pixel image system corresponding to Figure 5 . By comparing the above simulation image with the original square pixel image, it can be found that the quality of the simulation image obtained by the present invention is the same as the quality of the original square pixel image. Therefore, the present invention has the advantages of high image quality and no error.
[0062] The above embodiments are only preferred embodiments of the present invention, and do not limit the protection scope of the present invention accordingly. Therefore, all equivalent changes made according to the structure, shape and principle of the present invention shall be covered within the protection scope of the present invention.
Claims
1. A pattern simulation method for a rhombic pixel projection chip, characterized in that It includes the following steps: S1: Determine that the resolution of the rhombus-like component image is M rows * N columns, and in the corresponding square pixel image system, the resolution of the square pixel image is also M rows * N columns, and the resolution of the corresponding simulation image is also M rows * N columns. Moreover, the pixels in the three images of the rhombus-like component image, the square pixel image, and the simulation image correspond one-to-one; S2: Generate a simulation image in the square pixel image system. Select the square pixel at the a-th row and b-th column of the square pixel image as the pixel at the 1st row and 1st column of the simulation image, and this pixel corresponds to the rhombus pixel at the 1st row and 1st column of the rhombus-like component image; S3: Define the direction of the center connection line of the diagonal pixels of a square pixel in the square pixel image as the row direction of the pixels in the simulation image, and define 2 diagonally adjacent square pixels in the same diagonal pixel direction of the square pixel image as 2 adjacent pixels in the row direction of the simulation image. These 2 adjacent pixels correspond to 2 diagonally adjacent rhombus pixels in the same row of the rhombus-like component image; S4: Correspond the position of each rhombus pixel in the rhombus-like component image to the position of each square pixel in the square pixel image system one by one, and finally confirm the positions of the M rows * N columns of pixels in the simulation image; In the step of S4, it specifically includes: Correspond the rhombus pixel at the i-th row and j-th column in the rhombus-like component image to the square pixel at the [a + floor(i / 2) - j + 1]-th row and [b + ceil(i / 2) + j - 2]-th column in the square pixel image, where floor( ) is the floor function and ceil( ) is the ceiling function; The four interior angles of the rhombus pixels in the rhombus-like component image are all 90°. The directions of the 2 diagonals of the rhombus pixels in the rhombus-like component image are the row direction and column direction of the rhombus-like component image respectively; S5: Set the gray value of each pixel in the simulation image in the square pixel image system to be the same as the gray value of the corresponding rhombus pixel in the rhombus-like component image, and finally obtain the simulation image in the square pixel image system.
2. The pattern simulation method of a rhombic pixel projection chip according to claim 1, characterized in that: The outer contour of the square pixel in the square pixel image is square. The directions of two adjacent sides of the square pixel in the square pixel image are the row direction and column direction of the square pixel image respectively.
3. The pattern simulation method of a rhombic pixel projection chip according to claim 1, characterized in that: The number of rows of the resolution of the rhombus-like component image is at least 1 row.
Citation Information
Patent Citations
Volume rendering method for diamond pixel arrangement
CN113409436A
System and method for enhancing graphic features produced by marking engines
WO1995034873A1