An image display method and device
By using preset jitter pattern library and reset jitter pattern technology in the low-bit module screen display device, the problem of uneven grayscale distribution is solved, and high-quality high-bit image display is achieved, eliminating the grayscale fault feeling and improving the visual effect.
Patent Information
- Application Number
- CN202211025752.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-25
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2042-08-25
AI Technical Summary
When using a low-bit module screen to display high-bit image data, the gray scale distribution of the jitter pattern is uneven, resulting in poor visual effects of the output display image and a gray scale fault feeling.
By obtaining the first jitter pattern matching the target image data from the preset jitter pattern library and resetting the jitter pattern when matching the feature image template, a second jitter pattern is obtained to ensure balanced grayscale jitter distribution, and a high-quality image is output using a low-bit display device.
The low-bit module screen visually presents a smoother and more delicate image effect, eliminating the gray-scale fault feeling and improving the display quality.
Smart Images

Figure CN115346463B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of image processing, and particularly to an image display method and apparatus. Background Art
[0002] In the technical field of image processing, in order to reduce the display cost, generally, the "frame rate control - spatial dithering" technology is used to implement the display of high-bit image data using a low-bit (i.e., "bit") module screen. For example, a 6-bit module screen is used to display 8-bit image data.
[0003] Now, taking the implementation process of the "frame rate control - spatial dithering" technology, for example, "using a 6-bit module screen to display 8-bit image data", in short, it is mainly as follows: for each input 8-bit image, a dither pattern with two gray levels (i.e., the high 6-bit gray level and the high 6-bit + 1 gray level) is obtained through a spatial dithering operation, and such a dither pattern is applied to the display image to be output, so that 256 gray levels are displayed spatially (i.e., 8-bit image gray level display) is achieved; in addition, to avoid the difference or sense of discontinuity between different gray levels in the visual appearance of the display image to be output due to the dither pattern, then based on the frame rate control operation, multiple dither images with the same size as the display image to be output can be inserted, and each dither image has a regular change in gray level dithering based on the gray level dithering distribution of the dither pattern. Thus, when these dither images are output using a display device with a 6-bit module screen, a smoother, finer, and non-discontinuous image effect can be obtained visually.
[0004] Currently, in the implementation process of the "frame rate control - spatial dithering" technology, the conventional primary operation is to ensure that the distribution of pixel points with an increase in gray level dithering (such as the high 6-bit + 1 gray level above) in the corresponding dither pattern spatially is balanced. Otherwise, a dither pattern with low quality will be obtained, which will have an adverse impact on the visual effect of the finally output display image.
[0005] However, for some specially arranged input images, although the pixel points with an increase in gray level dithering in the dither pattern are evenly arranged statistically in space, due to the influence of the actual brightness of each pixel point, the distribution of the increase in gray level dithering presented in the dither pattern visually (such as the pixel points with the high 6-bit + 1 gray level mentioned above) is unbalanced. In this way, the quality of the dither pattern is difficult to guarantee, and ultimately, the visual effect of the output display image will also be greatly affected. Summary of the Invention
[0006] In view of this, the present application provides an image display method and apparatus, and the main purpose is to obtain a spatially corresponding high-quality dither pattern by resetting the dither pattern for the input feature image data with high bit depth, so as to facilitate the display image output by the display device with a low-bit module to visually present a smoother and more delicate image effect without gray-scale discontinuity.
[0007] To achieve the above object, the present application mainly provides the following technical solutions:
[0008] In a first aspect of the present application, an image display method is provided, and the method includes:
[0009] Obtain target image data to be displayed, where the target image data is image data with a first bit depth;
[0010] Obtain a first dither pattern matching the target image data from a preset dither pattern library, where the first dither pattern is a gray-scale dither adjustment pattern corresponding to the target image data in space;
[0011] If the target image data matches a preset feature image template, reset the first dither pattern to obtain a second dither pattern;
[0012] Based on the second dither pattern, use a display device with a second-bit display module to output a display image corresponding to the target image data, where the second bit depth is lower than the first bit depth.
[0013] In a second aspect of the present application, an image display apparatus is provided, and the apparatus includes:
[0014] A first acquisition unit for acquiring target image data to be displayed, where the target image data is image data with a first bit depth;
[0015] A second acquisition unit for acquiring a first dither pattern matching the target image data from a preset dither pattern library, where the first dither pattern is a gray-scale dither adjustment pattern corresponding to the target image data in space;
[0016] A reset unit for resetting the first dither pattern to obtain a second dither pattern if the target image data matches a preset feature image template;
[0017] An output unit for outputting a display image corresponding to the target image data based on the second dither pattern by using a display device with a second-bit display module, where the second bit depth is lower than the first bit depth.
[0018] In a third aspect of the present application, a computer-readable storage medium is provided. A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the above-described image display method is implemented.
[0019] In a fourth aspect of the present application, an electronic device is provided, including: a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the above-described image display method is implemented.
[0020] By means of the above technical solutions, the technical solutions provided by the present application at least have the following advantages:
[0021] The present application provides an image display method and device. The present application uses a display device with a low-bit module to output and display high-bit target image data. In the present application, a first dither pattern matching the target image data is obtained from a preset dither pattern library. If it is determined that the target image data matches a preset feature image template, it is determined that the target image data represents a specially arranged image, and then the first dither pattern needs to be reset to obtain a second dither pattern. The purpose is to obtain a high-quality dither pattern with a balanced gray-scale dither distribution in space as much as possible based on the reset dither pattern, and then complete the output of the corresponding display image based on the second dither pattern.
[0022] Compared with the prior art, the technical problem that the visual presentation effect of the output display image is affected due to the low quality of the dither pattern in space is solved. For the input high-bit feature image data, the present application obtains a high-quality dither pattern adapted in space by resetting the dither pattern. Therefore, when using a display device with a low-bit module to output a display image, it is beneficial to visually present an image effect that is smoother, more delicate, and without gray-scale discontinuity.
[0023] The above description is only an overview of the technical solutions of the present application. In order to be able to understand the technical means of the present application more clearly, it can be implemented according to the content of the specification. And in order to make the above and other purposes, features, and advantages of the present application more obvious and understandable, the specific embodiments of the present application are specifically exemplified below. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] By reading the detailed description of the preferred embodiments below, various other advantages and benefits will become clear to those of ordinary skill in the art. The drawings are only for the purpose of showing the preferred embodiments and are not considered to be a limitation of the present application. And throughout the drawings, the same reference numerals are used to represent the same components. In the drawings:
[0025] Figure 1 It is a flowchart of an image display method provided by an embodiment of the present application;
[0026] Figure 2 The dither pattern constructed for LSB = 0011 exemplified in the embodiments of the present application;
[0027] Figure 3 The gray-scale dither distribution effect diagram of applying the dither pattern with LSB = 0011 exemplified in the embodiments of the present application to a specially arranged image;
[0028] Figure 4 Another flowchart of the image display method provided by the embodiments of the present application;
[0029] Figure 5 The flowchart of the implementation method for constructing a preset dither pattern library provided by the embodiments of the present application;
[0030] Figure 6a The schematic diagram of the preset dither pixel matrix of the preset dither strategy planning and each matrix unit included therein exemplified in the embodiments of the present application;
[0031] Figure 6b The schematic diagram of the gray-scale dither distribution scheme constructed for LSB = 0001 exemplified in the embodiments of the present application;
[0032] Figure 6c The schematic diagram of the gray-scale dither distribution scheme constructed for LSB = 0011 exemplified in the embodiments of the present application;
[0033] Figure 6d The schematic diagram of the gray-scale dither distribution scheme constructed for LSB = 1111 exemplified in the embodiments of the present application;
[0034] Figure 7 The flowchart of the implementation method for obtaining the first dither pattern matching the target image data based on the preset dither pattern library provided by the embodiments of the present application;
[0035] Figure 8 The schematic diagram of the first dither pattern constructed for LSB = 0011 exemplified in the embodiments of the present application;
[0036] Figure 9a The effect diagram of applying the first dither pattern corresponding to LSB = 0011 to a specially arranged image exemplified in the embodiments of the present application;
[0037] Figure 9b The schematic diagram of adding serial numbers to each matrix unit in the first dither pattern exemplified in the embodiments of the present application;
[0038] Figure 9c The schematic diagram of resetting the positions of each matrix unit by adjusting the sorting between the serial numbers of each matrix unit in the first dither pattern exemplified in the embodiments of the present application;
[0039] Figure 9dThe effect diagram of applying the second dither pattern reset based on the first dither pattern to a special arrangement image exemplified in the embodiment of the present application;
[0040] Figure 10 The flowchart of the implementation method for outputting the display image corresponding to the target image data based on the second dither pattern provided in the embodiment of the present application;
[0041] Figure 11 The block diagram of a composition of an image display device provided in the embodiment of the present application;
[0042] Figure 12 The block diagram of another composition of an image display device provided in the embodiment of the present application. Detailed implementation manners
[0043] Hereinafter, exemplary embodiments of the present application will be described in more detail with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided so that the present application can be more thoroughly understood and the scope of the present application can be fully conveyed to those skilled in the art.
[0044] The embodiment of the present application provides an image display method. As Figure 1 shown, for the input high-bit feature image data, a high-quality dither pattern corresponding in space is obtained by resetting the dither pattern, and based on this dither pattern, an image effect that is visually smoother and finer and has no gray-scale break feeling is finally output for the display image.
[0045] 101. Obtain target image data to be displayed, where the target image data is image data with a first bit.
[0046] In the embodiment of the present application, the image display device used can be, but is not limited to, a liquid crystal display, an organic electroluminescent display (Organic Light-Emitting Diode, OLED), etc. The embodiment of the present application is a solution for using a low-bit (bit) module display device to display high-bit image data. For example, a 6-bit module screen is used to display 8-bit image data.
[0047] It should be noted that, for the convenience of clearly explaining the solution provided in the embodiment of the present application later, "image data with a first bit" is used to refer to high-bit (i.e., "bit") image data, and "second-bit display module" is used to refer to a low-bit display module.
[0048] 102. Obtain a first dither pattern matching the target image data from a preset dither pattern library.
[0049] Among them, the first dither pattern is a grayscale dither adjustment pattern corresponding to the target image data in space. The embodiments of the present application will first explain the dither pattern as follows:
[0050] In the field of image display technology, the number of image colors is represented by bits (bit). For example, an 8-bit image can display 256 colors (i.e., 256 grayscale levels), and a 6-bit image can display 64 colors (i.e., 64 grayscale levels). Therefore, if a low-bit module screen is used to display high-bit image data, such as using a 6-bit module screen to display 8-bit image data, the 6-bit module screen can actually only support displaying 64 grayscale levels (i.e., the basic grayscale levels).
[0051] Then, in order to implement a low-cost display solution, the "frame rate control - spatial dithering" technology can be adopted. First, a dither pattern of each frame of the display image to be output is constructed in space. In this dither pattern, the grayscale of some pixel points will be dithered up, so that the dither pattern can achieve high-bit grayscale display.
[0052] Exemplarily, taking the use of a 6-bit module screen to display 8-bit image data for explanation, first, the chip in the display device will process the 8-bit image data into 10-bit binary bit data. Since the 6-bit module screen actually only supports 6-bit binary bit data, only 6-bit binary bit data in the 10-bit binary bit data can actually be projected onto the display module. Therefore, the least significant bit (LSB) part is selected from the 10-bit binary bit data, that is, LSB = 4 bits, for constructing the spatial dither pattern.
[0053] For example, as Figure 2 shown, if LSB = 0011 and the corresponding constructed dither pattern (dither pattern), such as Figure 2 shown, the 16*16 pixel matrix is divided into 16 4*4 small matrices, and 3 pixel points with increased grayscale dithering are marked in each small matrix, such as adding the mark "1". It should be noted that since the pixel points of the 6-bit module screen applying the dither pattern display 6-bit grayscale and its adjacent grayscale, and the basic grayscale actually supported by the 6-bit module screen is the most significant bit part (Most Significant Bit, MSB) of the 10-bit data expanded by the chip, that is, MSB6bit, the aforementioned "adjacent grayscale" is the grayscale with increased dithering, which can be expressed as (MSB6bit + 1) grayscale. Thus, the dither pattern contains MSB6bit grayscale and (MSB6bit + 1) grayscale. Therefore, through the increase of grayscale dithering, the dither pattern can achieve 256 grayscale display, that is, reach 8-bit grayscale display.
[0054] In the embodiments of the present application, different dither patterns are pre-constructed based on different low-bit binary bit data, and a preset dither pattern library is stored. In fact, each dither pattern is equivalent to a gray-scale dither elevation strategy. Therefore, constructing a preset dither pattern library is also equivalent to constructing a gray-scale dither elevation strategy library. The purpose is to facilitate finding a strategy for displaying on a low-bit module screen for any high-bit image data to be displayed through this preset dither pattern library.
[0055] It should be noted that in the embodiments of the present application, for the convenience of explanation, the dither pattern found from the preset dither pattern library that matches the target image data is referred to as the "first dither pattern".
[0056] 103. If the target image data matches the preset feature image template, reset the first dither pattern to obtain a second dither pattern.
[0057] In the embodiments of the present application, for the first dither pattern found from the preset dither pattern library that matches the target image data, the rendering effect of the first dither pattern may be very poor due to the special arrangement of each pixel point in the target image data, making it difficult to ensure that the elevated gray levels of the dither are evenly arranged. In this case, the dither pattern needs to be reset. To distinguish and refer to it, the embodiments of the present application refer to the reset dither pattern as the "second dither pattern", and the specific explanation is as follows:
[0058] In the embodiments of the present application, as Figure 2 shown, the number of "1" pixel points marked in each 4*4 small matrix is equal, and the positions are scattered and almost evenly distributed. As a result, the spatial distribution of the "1" pixel points on the dither pattern is also balanced as a whole. After frame rate control, this is beneficial for the display device to output a final display image with a smooth, delicate, and high-quality image effect visually.
[0059] However, if the image input to the display device is some special arrangement images, then the influence brought by the "special arrangement" has to be considered when constructing the dither pattern.
[0060] Exemplarily, for example, for an input image with an alternating bright and dark display effect for each pixel point, still taking the example of using a 6-bit module screen to display 8-bit image data, the principle of specifically constructing the dither pattern will not be elaborated. But assuming that still taking LSB = 0011 as an example, the matching dither pattern found from the preset dither pattern library is as Figure 2 shown. However, if it is applied to this special arrangement image, the rendering effect of the dither pattern as shown in Figure 3 will appear.
[0061] As Figure 3As shown, in a 16*16 pixel matrix, the black grid represents a pixel grayscale of 0 (i.e., the pixel does not emit light), and the white grid represents a pixel grayscale of non-0, and the mark "1" is used to refer to a pixel with a grayscale of (MSB6bit+1). The jitter pattern spatially arranges 4 8*8 pixel matrices (identified in order as ①②③④). According to statistics, although the number of squares marked with "1" is equal in each 8*8 pixel matrix, falling into the black grid will not increase the grayscale. Therefore, if only the number of white grids carrying the mark "1" is counted, that is, the corresponding numbers of the four 8*8 pixel matrices are 8, 5, 4, and 7, respectively, then in fact, the effective grayscale jitter increase arrangement on the jitter pattern is unbalanced. In order to ensure the quality of the jitter pattern, such a jitter pattern should be reset. The specific implementation method of the reset is not limited in the embodiment of the present application.
[0062] Therefore, the embodiment of the present application uses a preset feature image template to perform preliminary screening of the input target image data. If a match is found, it indicates that the matched first jitter pattern needs to be reset to obtain a second jitter pattern. The embodiment of the present application does not limit the number of resets. The purpose of the reset is to make the jitter pattern present a balanced arrangement of effective grayscale jitter increase as much as possible.
[0063] 104. Based on the second jitter pattern, use a display device having a second bit display module to output a display image corresponding to the target image data.
[0064] In an embodiment of the present application, the increased distribution of grayscale jitter in the second jitter pattern can be applied to the entire image to be output and displayed, and then based on the frame rate control operation, multiple frames of jitter images with the same size as the display image to be output are added and inserted in time, and each jitter image is regularly changed based on the grayscale jitter distribution of the jitter pattern, so as to achieve the averaging of each pixel frame. When these jitter images are output using a display device with a low-bit module screen, a smoother and more delicate image effect without a sense of discontinuity can be visually obtained.
[0065] As described above, the embodiment of the present application provides an image display method. The embodiment of the present application is a scheme for outputting and displaying high-bit target image data using a display device of a low-bit module. In the embodiment of the present application, a first jitter pattern matching the target image data is obtained from a preset jitter pattern library. If it is determined that the target image data matches the preset feature image template, it is determined that the target image data represents a special arrangement image, and it is necessary to reset the first jitter pattern to obtain a second jitter pattern. The purpose is to obtain a high-quality jitter pattern with a balanced grayscale jitter distribution as much as possible in space based on the reset jitter pattern, and then output the corresponding display image based on the second jitter pattern. Compared with the prior art, the technical problem of affecting the visual presentation effect of the output display image due to the low quality of the jitter pattern obtained in space is solved. The embodiment of the present application obtains a high-quality jitter pattern that is spatially adapted to the input high-bit feature image data by resetting the jitter pattern, so that when the display device with a low-bit module is used to output the display image, it is conducive to visually presenting a smoother and more delicate image effect without a sense of grayscale discontinuity.
[0066] In order to explain the above embodiment in more detail, the present application embodiment also provides another image display method, such as Figure 4 As shown, the present application embodiment provides the following specific steps:
[0067] 201. Obtain target image data to be displayed, where the target image data is image data having a first bit.
[0068] The embodiment of the present application explains step 201, see step 101, and will not be repeated here.
[0069] 202. Acquire a first dithering pattern matching the target image data from a preset dithering pattern library, where the first dithering pattern is a grayscale dithering adjustment pattern spatially corresponding to the target image data.
[0070] In the embodiment of the present application, the specific implementation method of constructing the preset jitter pattern library is as follows: Figure 5 As shown, the embodiment of the present application provides the following specific steps:
[0071] 301. According to a binary counting rule, a plurality of preset bit numbers are set, each preset bit number corresponds to a unique preset dithering strategy, and the preset dithering strategy is used to plan a preset dithering pixel matrix and each preset matrix unit included in the preset dithering pixel matrix.
[0072] The preset number of bits is set to construct different LSB bits. For example, the LSB may be 3 bits, 4 bits, or 5 bits.
[0073] The solution adopted in the embodiments of this application is to construct a dither pattern based on the LSB bit. Based on the diverse LSB bits, correspondingly, the constructed dither patterns are also diverse. And for any kind of LSB (such as LSB = 4 bits), for different binary values corresponding to the LSB, such as 16 values of LSB = 0001, 0011... etc., different dither patterns can be constructed for each different LSB value.
[0074] It should be noted that in order to standardize the rich and numerous dither patterns constructed based on different LSB bits, and at the same time to reduce the storage of some redundant or low-quality dither patterns, the embodiments of this application construct corresponding preset dither strategies based on the number of LSB bits. For example, when LSB = 3 bits, 4 bits or 5 bits, etc., corresponding preset bit strategies are constructed respectively, and under the preset bit strategies, a preset dither pixel matrix and each preset matrix unit included in the preset dither pixel matrix are planned. This preset dither pixel matrix is equivalent to a preset dither template, so that corresponding dither patterns can be constructed based on different binary values of the LSB under this preset dither template.
[0075] For example, taking the preset number of bits as 4 bits, we get LSB = 4 bits. An example of the preset dither pixel matrix planned according to the corresponding preset dither strategy is as Figure 6a shown, which is a 16*16 pixel matrix, and this pixel matrix plans 16 preset matrix units, and each preset matrix unit is actually a 4*4 pixel matrix.
[0076] As Figure 6a shown in the preset dither pixel matrix, since each preset matrix unit contains 16 pixel points, it can support 16 binary values of LSB = 4 bits (LSB = 0000, 0001,..., 0011,..., 1111). Therefore, this preset dither pixel matrix is equivalent to a dither template that supports the construction of dither patterns for LSB = 4 bits. Accordingly, in the embodiments of this application, after determining the number of LSB bits, a dither template can be constructed to support its dither strategy, without the need to construct multiple dither templates, thus greatly saving the cost of constructing dither templates and facilitating the subsequent planning of the expression style of constructing dither patterns.
[0077] It should be noted that in order to use the dither pattern to achieve the average of gray-scale dither distribution in space, when planning the preset dither pixel matrix and the preset matrix unit using the preset dither strategy, the preferred implementation is to construct a square preset dither pixel matrix and a square preset matrix unit, so as to facilitate using the preset dither pixel matrix as a dither template to further construct a square dither pattern.
[0078] 302. Construct multiple preset least significant bit sequences corresponding to the preset number of bits, and obtain the first association relationship between the preset dithering strategy and the preset least significant bit sequences.
[0079] In the embodiments of the present application, based on the determined preset number of bits, e.g., LSB = 4 bits, according to different binary values of LSB, multiple preset least significant bit sequences will be obtained, such as LSB = 0000, 0001,..., 0011,..., 1111, a total of 16 preset least significant bit sequences.
[0080] For the embodiments of the present application, since each constructed preset number of bits uniquely corresponds to a preset dithering strategy, and a preset number of bits corresponds to multiple preset least significant bit sequences, based on these two corresponding relationships, the association relationship between the preset dithering strategy and the preset least significant bit sequences can be obtained. For the sake of convenient description, it is simply referred to as the "first association relationship".
[0081] 303. Based on the first association relationship, according to the bit values corresponding to the preset least significant bit sequences, set the gray-scale dithering distribution corresponding to each preset matrix unit in the preset dithering pixel matrix planned by the corresponding associated preset dithering strategy, so as to generate a dithering pattern corresponding to each preset least significant bit sequence.
[0082] In the embodiments of the present application, taking the preset least significant bit sequence (LSB sequence) of 4 bits as an example for explanation, as Figure 6a shows that when LSB = 4 bits, the corresponding preset dithering strategy plans a preset dithering pixel matrix of 16 * 16 pixels and each preset matrix unit is a 4 * 4 pixel matrix. In the embodiments of the present application, according to the 16 binary values of LSB (LSB = 0000, 0001,..., 0011,..., 1111), pixel points with increased gray-scale dithering are selected in each matrix unit included in the preset dithering pixel matrix. For example, taking LSB = 0001, 0011, 1111 as examples, the corresponding gray-scale dithering distribution schemes are respectively exemplified as Figure 6b 、 6c and the gray-scale dithering distribution scheme shown in 6d, where the mark "1" is used to represent the pixel points with increased gray-scale dithering in each matrix unit.
[0083] It should be noted that, as Figure 6b 、 6cThe gray-scale dither distribution schemes shown in FIGS. 6d, as the dither schemes corresponding to LSB = 0001, 0011, and 1111 respectively. Taking LSB = 0011 as an example, the pixel points marked with "1" in each matrix unit are evenly distributed, and there will be no situation of three adjacent ones. Moreover, the distribution of pixel points marked with "1" in different matrix units is different. The purpose of setting the gray-scale dither distribution in this way is to make the gray-scale dither distribution presented on the entire dither pattern be balanced.
[0084] And it should also be noted that for the dither pattern corresponding to LSB = 0001, if the "1" is set to be inverted, the dither pattern corresponding to LSB = 1111 can be obtained. Therefore, in order to save storage space, for the two dither patterns that can be obtained through the inversion operation of the "1" mark, only one of the dither patterns is stored. And when it is necessary to obtain the other dither pattern from the preset dither pattern library, it is obtained according to the inversion operation. Thus, the embodiment of the present application reduces the storage quantity of the dither patterns by adding an inversion operation.
[0085] 304. Based on the first association relationship, according to the dither pattern corresponding to each preset least significant bit sequence, obtain the second association relationship between the preset dither strategy and multiple dither patterns.
[0086] 305. Construct a preset dither pattern library according to the first association relationship and the second association relationship.
[0087] In the embodiment of the present application, the preset dither pattern library constructed based on the first association relationship and the second association relationship is equivalent to storing: the preset number of bits corresponding to the preset least significant bit sequence, and the dither pattern corresponding to each preset least significant bit sequence. Thus, in practical applications, when using a low-module screen to display high-bit image data, the required dither pattern can be directly found from the preset dither pattern library based on the number of bits corresponding to the LSB.
[0088] Next, the embodiment of the present application gives the specific implementation method of "obtaining the first dither pattern matching the target image data based on the preset dither pattern library", as Figure 7 shown, the embodiment of the present application provides the following specific steps:
[0089] 401. Obtain the least significant bit sequence from the binary bit data corresponding to the target image data.
[0090] In the embodiment of the present application, this step can be refined and explained as follows:
[0091] First, process the target image data using digital gamma correction to convert the target image data into binary bit data. Secondly, determine the most significant bit sequence from the binary bit data according to the bit number corresponding to the display module. Finally, remove the most significant bit sequence from the binary bit data to obtain the least significant bit sequence.
[0092] Exemplarily, taking the use of a 6-bit module screen to display 8-bit image data as an example, for the input 8-bit image data, the red, green, and blue color component data of each pixel is processed by a digital gamma correction (Digital Gamma Adjustment, DGA) module in the display device chip to obtain extended 10-bit binary bit data. Since the 6-bit module screen actually only supports 6-bit binary bit data, the most significant bit (MSB) sequence is selected from the 10-bit binary bit data, that is, the 6-bit binary bit data can be projected onto the display module as the basic gray scale of the output. The remaining 4-bit binary bit data, that is, the least significant bit (LSB) sequence, where LSB = 4 bits, is used to construct a dithering pattern in space.
[0093] 402. Based on the first association relationship, search for a preset dithering strategy in the preset dithering pattern library that matches the bit number of the least significant bit sequence.
[0094] 403. Based on the second association relationship, search for a dithering pattern that matches the bit value of the least significant bit sequence from multiple dithering patterns associated with the preset dithering strategy as the first dithering pattern corresponding to the target image data.
[0095] In the embodiment of the present application, according to the association among the preset least significant bit sequence, preset dithering strategy, and dithering pattern existing in the preset dithering pattern library, the dithering pattern corresponding to the target image data is obtained through a data relationship retrieval operation. For the convenience of explanation, it is simply referred to as the first dithering pattern.
[0096] 203. If the target image data matches the preset feature image template, it is determined that a dithering pattern reset operation needs to be performed. In the preset dithering pattern library, obtain the dithering strategy associated with the first dithering pattern. The dithering strategy includes the dithering pixel matrix corresponding to the first dithering pattern and each matrix unit included in the dithering pixel matrix.
[0097] In the embodiments of the present application, some characteristic image templates can be preset in advance for comparing and determining whether the target image data conforms to a specially arranged image. For example, the specially arranged image can be, but is not limited to: an input image with a bright-dark alternating display effect for each pixel, where the dark pixel represents a pixel with a gray level of 0 (i.e., not emitting light), and the bright pixel represents a pixel with a non-zero gray level (i.e., emitting light). For a specially arranged image like this, when constructing a dither pattern, if the pixel with a gray level of 0 is set as the pixel with an increased gray-level dither, such a setting is invalid. However, if a dither pattern is constructed in this way, a dither pattern reset operation needs to be performed, aiming to make the dither pattern present a balanced arrangement with an effective increased gray-level dither as much as possible.
[0098] For the embodiments of the present application, if it is determined that the target characteristic image conforms to the preset characteristic image template, it is determined that a dither pattern reset operation needs to be performed. Exemplarily, the dither pixel matrix planned by the dither strategy associated with the first dither pattern and each matrix unit included therein can be rearranged to obtain a reset pattern.
[0099] 204. In the dither pixel matrix corresponding to the first dither pattern, sort each matrix unit and add a serial number to obtain a unique serial number corresponding to each matrix unit.
[0100] 205. By adjusting the arrangement order between the serial numbers, rearrange the positions of the matrix units corresponding to each serial number in the first dither pattern to obtain the reset pattern corresponding to the first dither pattern.
[0101] In the embodiments of the present application, the operation process of obtaining the reset pattern is given in combination with steps 204-205. Taking the dither pixel matrix planned by the dither strategy corresponding to LSB = 0011 and each matrix unit therein as an example, as Figure 8 shown, the first dither pattern is obtained. If this dither pattern is directly applied to a specially arranged bright-dark alternating image (where the dark pixel represents a pixel with a gray level of 0 (i.e., not emitting light), and the bright pixel represents a pixel with a non-zero gray level (i.e., emitting light)), then the dither pattern effect diagram as Figure 9a shown is obtained.
[0102] As Figure 9aAs shown, in a 16*16 pixel matrix, black grids represent pixels with a grayscale of 0 (i.e., the pixel does not emit light), while white grids represent pixels with a grayscale of non-0, and the mark "1" is used to refer to pixels with a grayscale of (MSB6bit+1). The dithering pattern spatially arranges four 8*8 pixel matrices (identified in order as ①②③④). According to statistics, although the number of squares marked with "1" is equal in each 8*8 pixel matrix, since falling into a black grid will not increase the grayscale, if only the number of white grids carrying the mark "1" is counted, that is, the corresponding numbers of the four 8*8 pixel matrices are 8, 5, 4, and 7, respectively, then in fact, the effective grayscale dithering increase arrangement on the dithering pattern is unbalanced.
[0103] Such a first jitter pattern should be reset. Specifically, a sequence number 1-16 can be added to each matrix unit, such as Figure 9b As shown, the arrangement order of each matrix unit is adjusted accordingly by adjusting the sequence number. In fact, the adjustment operation is equivalent to implementing operations such as rotation, shifting, mirroring, position exchange, and reordering of the matrix units in the first jitter pattern. For example, the position of the matrix unit with sequence number 6 is adjusted to the last position, and the positions of the matrix units with sequence numbers 7-16 are adjusted accordingly, such as Figure 9c As shown, a reset pattern corresponding to the first jitter pattern is obtained.
[0104] Furthermore, Figure 9c The reset pattern is applied to the previously mentioned special arrangement of light and dark pixels (dark pixels represent pixels with a grayscale of 0 (i.e., not bright), and bright pixels represent pixels with a grayscale of non-0 (i.e., bright)), and the following is obtained: Figure 9d The dither pattern effect diagram shown counts the white cells marked with "1" in four 8*8 pixel matrices. There are six "1"s in each of the four pixel matrices, so that the effective grayscale dither arrangement in the reset pattern is balanced, and can be used as the second dither pattern corresponding to the reset first dither pattern.
[0105] It should be noted that, in fact, resetting the pattern is to change the grayscale distribution in the original dither pattern, such as changing Figure 9b The position of "1" in the image and the reset pattern are required to achieve a more uniform distribution of grayscale jitter in space. Figure 9d As shown, the reset pattern presentation effect is to count the white cells marked with "1" in four 8*8 pixel matrices, and there are 6 "1"s in each of the four pixel matrices, so as to determine that the grayscale jitter distribution in the reset pattern is balanced. In order to achieve this purpose, the above steps 203-205 are the preferred implementation methods adopted in the embodiment of the present application.
[0106] But in the case of the one-finger reset pattern, since it actually changes Figure 9bIf it is the position of "1" in the [description], then based on this dither pattern, the implementation methods of the reset pattern can be diverse. Exemplarily, it can include but is not limited to: translating a 2*16 pixel matrix in a specified direction to change the grayscale distribution; swapping the grayscale distributions of equal pixel regions on the left and right or up and down; rotating the grayscale distribution within each matrix unit; and so on. Similar methods such as rotation, shifting, mirroring, position swapping, and reordering can be used to achieve the change of the position of "1".
[0107] 206. Use the reset pattern as the second dither pattern corresponding to the first dither pattern.
[0108] In the embodiments of the present application, before using the dither pattern corresponding to one reset operation as the second dither pattern, a verification operation on the reset pattern can also be performed. The purpose is to determine whether the reset pattern achieves the effective grayscale arrangement balance as much as possible. Specifically, the verification operation includes the following steps:
[0109] First, divide the reset pattern into multiple pixel blocks on average according to the rule of forming corresponding pixel blocks by combining a preset number of adjacent matrix units.
[0110] Exemplarily, as in Figure 9b a 16*16 pixel matrix is divided into 4 8*8 pixel matrices, and each 8*8 pixel matrix is actually a pixel block.
[0111] Second, count the number of pixel points with increased grayscale dither in each pixel block.
[0112] Third, determine whether the difference between the number of pixel points with increased grayscale dither corresponding to any two pixel blocks is within the preset threshold range. If so, use the reset pattern as the second dither pattern corresponding to the first dither pattern.
[0113] In the embodiments of the present application, the preset threshold range can be but is not limited to 0 or 1. The purpose is to make the number of pixel points with increased grayscale dither in each pixel block approximately equal as much as possible through reset adjustment.
[0114] If not, re-adjust the positions of each matrix unit in the first dither pattern to form new pixel blocks until the difference between the number of pixel points with increased grayscale dither corresponding to any two new pixel blocks is within the preset threshold range, and use the new reset pattern constructed based on the new pixel blocks as the second dither pattern corresponding to the first dither pattern.
[0115] 207. Based on the second dither pattern, use a display device with a second-bit display module to output a display image corresponding to the target image data, where the second bit is lower than the first bit.
[0116] In the embodiments of the present application, this step can be explained in detail as followsFigure 10 As shown, the following specific steps are provided:
[0117] 501. Obtain the dither pixel matrix corresponding to the second dither pattern.
[0118] 502. Based on the dither pixel matrix corresponding to the second dither pattern, derive multiple derived pixel matrices with the same gray-scale dither distribution.
[0119] In the embodiment of the present application, the second dither pattern is equivalent to giving a dither scheme applied to the display image to be output. For example, Figure 9b as shown in the 16*16 pixel matrix corresponding to the second dither pattern, which is far from the actual pixel size of the display image to be output. Therefore, in the embodiment of the present application, multiple derived dither patterns can be generated based on the second dither pattern, aiming to apply these dither patterns to the entire display image to be output.
[0120] Then the preferred implementation is to perform at least one of the following derivation operations on the dither pixel matrix corresponding to the second dither pattern: rotation, mirroring; so as to obtain diverse derived dither pixel matrices, and at the same time, still ensure that the gray-scale dither distribution within each dither pixel matrix is balanced.
[0121] 503. According to the pixel size corresponding to the target image data, determine the pixel size corresponding to the image to be output by the display device.
[0122] 504. According to the pixel size corresponding to the image to be output, use multiple derived pixel matrices to cover the image to be output in a tiling manner to obtain the dither image to be output by the display device.
[0123] In the embodiment of the present application, since the gray-scale dither distribution within each derived pixel matrix is balanced, then for the dither image obtained by covering the entire display image to be output based on these dither patterns, its gray-scale dither distribution is also balanced.
[0124] 505. In terms of time, generate multiple frames of derived dither images corresponding to the dither image based on frame rate control.
[0125] 506. Based on multiple frames of derived dither images, use the display device to output the display image corresponding to the target image data.
[0126] In the embodiment of the present application, in order to avoid the difference or sense of discontinuity between different gray levels visually presented by the display image to be output due to the dither pattern, based on the frame rate control operation, multiple dither images with the same size as the display image to be output can be inserted, and each dither image is regularly changed based on the gray level dither distribution within the spatially corresponding dither image. Thus, when outputting these dither images using a display device with a low-bit module screen, an image effect that is smoother, finer, and without a sense of discontinuity can be obtained visually.
[0127] Further, for the implementation of the methods shown in the above Figure 1 , Figure 4 , Figure 5 , Figure 7 and Figure 10 an image display device is provided in the embodiment of the present application. The device embodiment corresponds to the foregoing method embodiment. For the convenience of reading, the details in the foregoing method embodiment will not be described one by one in this device embodiment. However, it should be clear that the device in this embodiment can correspondingly implement all the contents in the foregoing method embodiment. This device is applied to output high-quality high-bit image data using a low-bit module display device, specifically as shown in Figure 11 and includes:
[0128] A first acquisition unit 61, configured to acquire target image data to be displayed, where the target image data is image data with a first bit;
[0129] A second acquisition unit 62, configured to acquire a first dither pattern matching the target image data from a preset dither pattern library, where the first dither pattern is a gray level dither adjustment pattern corresponding to the target image data spatially;
[0130] A reset unit 63, configured to reset the first dither pattern to obtain a second dither pattern if the target image data matches a preset feature image template;
[0131] An output unit 64, configured to output a display image corresponding to the target image data based on the second dither pattern using a display device with a second-bit display module, where the second bit is lower than the first bit.
[0132] Further, as shown in Figure 12 , the reset unit 63 includes:
[0133] An acquisition module 631, configured to acquire a dither strategy associated with the first dither pattern in a preset dither pattern library, where the dither strategy includes a dither pixel matrix corresponding to the first dither pattern and each matrix unit included in the dither pixel matrix;
[0134] A sorting module 632 is used to sort each matrix unit in the dither pixel matrix corresponding to the first dither pattern and add a serial number to obtain a unique serial number corresponding to each matrix unit.
[0135] An adjustment module 633 is used to rearrange the positions of the matrix units corresponding to each serial number in the first dither pattern by adjusting the arrangement order between the serial numbers to obtain a reset pattern corresponding to the first dither pattern.
[0136] A determination module 634 is used to use the reset pattern as the second dither pattern corresponding to the first dither pattern.
[0137] Further, as Figure 12 shown, the reset unit 63 further includes:
[0138] A division module 635 is used to evenly divide the reset pattern into a plurality of pixel blocks according to the rule of forming corresponding pixel blocks by combining a preset number of adjacent matrix units.
[0139] A statistics module 636 is used to count the number of pixel points with an increase in effective gray-scale dither within each pixel block.
[0140] A judgment module 637 is used to judge whether the difference between the number of pixel points with an increase in effective gray-scale dither corresponding to any two pixel blocks is within a preset threshold range.
[0141] The determination module 634 is further used to, when the difference between the number of pixel points with an increase in effective gray-scale dither corresponding to any two pixel blocks is within the preset threshold range, use the reset pattern as the second dither pattern corresponding to the first dither pattern.
[0142] An execution module 638 is used to, when the difference between the number of pixel points with an increase in effective gray-scale dither corresponding to any two pixel blocks is not within the preset threshold range, readjust the positions of the matrix units in the first dither pattern to form new pixel blocks until the difference between the number of pixel points with an increase in effective gray-scale dither corresponding to any two new pixel blocks is within the preset threshold range, and use the new reset pattern constructed based on the new pixel blocks as the second dither pattern corresponding to the first dither pattern.
[0143] Further, as Figure 12 shown, the device further includes:
[0144] A setting unit 65 is configured to set a plurality of preset bit numbers according to binary counting rules, and each of the preset bit numbers corresponds to a unique preset dithering strategy, and the preset dithering strategy is used to plan a preset dithering pixel matrix and each preset matrix unit included in the preset dithering pixel matrix;
[0145] A first determination unit 66 is configured to construct a plurality of preset least significant bit sequences corresponding to the preset bit numbers, and obtain a first association relationship between the preset dithering strategy and the preset least significant bit sequences;
[0146] A generation unit 67 is configured to, based on the first association relationship, according to the bit values corresponding to the preset least significant bit sequences, set the gray-scale dithering distribution corresponding to each preset matrix unit in the preset dithering pixel matrix planned by the corresponding associated preset dithering strategy, so as to generate a dithering pattern corresponding to each preset least significant bit sequence;
[0147] A second determination unit 68 is configured to, based on the first association relationship, obtain a second association relationship between the preset dithering strategy and the plurality of dithering patterns according to the dithering pattern corresponding to each preset least significant bit sequence;
[0148] A construction unit 69 is configured to construct a preset dithering pattern library according to the first association relationship and the second association relationship.
[0149] Further, as Figure 12 shown, the second acquisition unit 62 includes:
[0150] An acquisition module 621 is configured to acquire a least significant bit sequence from the binary bit data corresponding to the target image data;
[0151] A search module 622 is configured to, based on the first association relationship, search for a preset dithering strategy that matches the bit number of the least significant bit sequence from the preset dithering pattern library;
[0152] A determination module 623 is configured to, based on the second association relationship, search for a dithering pattern that matches the bit value of the least significant bit sequence from the plurality of dithering patterns associated with the preset dithering strategy, and use it as the first dithering pattern corresponding to the target image data.
[0153] Further, as Figure 12 shown, the acquisition module 621 includes:
[0154] A conversion sub-module 6211 is configured to process the target image data by using digital gamma correction, and convert the target image data into binary bit data;
[0155] A determination sub-module 6212, configured to determine a most significant bit sequence from the binary bit data according to the number of bits corresponding to the display module;
[0156] The determination sub-module 6212 is further configured to remove the most significant bit sequence from the binary bit data to obtain a least significant bit sequence.
[0157] Further, as Figure 12 shown, the output unit 64 includes:
[0158] An acquisition module 641, configured to acquire a dither pixel matrix corresponding to the second dither pattern;
[0159] A derivation module 642, configured to derive a plurality of derived pixel matrices with the same gray-scale dither distribution based on the dither pixel matrix corresponding to the second dither pattern;
[0160] A determination module 643, configured to determine a pixel size corresponding to an image to be output by the display device according to the pixel size corresponding to the target image data;
[0161] The determination module 643 is further configured to use the plurality of derived pixel matrices to tile-cover the image to be output according to the pixel size corresponding to the image to be output, so as to obtain a dither image to be output by the display device;
[0162] A generation module 644, configured to generate a plurality of frames of derived dither images corresponding to the dither image based on frame rate control in time;
[0163] An output module 645, configured to output a display image corresponding to the target image data by using the display device based on the plurality of frames of derived dither images.
[0164] Further, as Figure 12 shown, the derivation module 642 includes:
[0165] An execution sub-module 6421, configured to perform at least one of the following derivation operations on the dither pixel matrix corresponding to the second dither pattern: rotation, mirroring, and reordering;
[0166] An acquisition sub-module 6422, configured to obtain a derived pixel matrix corresponding to the dither pixel matrix corresponding to the second dither pattern according to the derivation operation.
[0167] In summary, the embodiments of the present application provide an image display method and device. The embodiments of the present application utilize a display device with a low-bit module to output and display high-bit target image data. First, the embodiments of the present application use a preset dither pattern library to obtain a first dither pattern that matches the target image data. If it is determined that the target image data conforms to a preset characteristic image template, it is determined that the target image data represents a characteristic arrangement image, and then the first dither pattern does not meet the requirement of balanced gray-scale dither distribution and needs to be reset. The embodiments of the present application mainly perform operations such as rotation, shifting, mirroring, position swapping, and reordering on each matrix unit in the first dither pattern to finally reset the corresponding second dither pattern of the first dither pattern. The purpose is to obtain a high-quality dither pattern with balanced gray-scale dither distribution in space as much as possible, and then complete the output of the corresponding display image based on the second dither pattern. For the input high-bit characteristic image data, the embodiments of the present application obtain a corresponding high-quality dither pattern in space by resetting the dither pattern, which is beneficial for the display image output by the display device with a low-bit module to present a smoother, more delicate image effect without gray-scale breakage in vision.
[0168] The image display device includes a processor and a memory. The above-mentioned first acquisition unit, second acquisition unit, reset unit, output unit, etc. are all stored in the memory as program units, and the processor executes the above program units stored in the memory to implement corresponding functions.
[0169] The processor contains a kernel, and the kernel retrieves the corresponding program unit from the memory. One or more kernels can be set. By adjusting the kernel parameters, for the input high-bit characteristic image data, a corresponding high-quality dither pattern in space is obtained by resetting the dither pattern, which is beneficial for the display image output by the display device with a low-bit module to present a smoother, more delicate image effect without gray-scale breakage in vision.
[0170] The embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the image display method described above is implemented.
[0171] The embodiments of the present application provide an electronic device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the image display method described above is implemented.
[0172] This application is described with reference to the flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram, and the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processors of general-purpose computers, special-purpose computers, embedded processors, or other programmable data processing devices to generate a machine, such that the instructions executed by the processors of the computer or other programmable data processing devices produce means for implementing the functions specified in one or more of the flows Figure 1 one or more of the flows and / or blocks Figure 1 or a combination of flows and / or blocks and means for implementing the functions specified in one or more of the blocks.
[0173] In a typical configuration, the device includes one or more processors (CPUs), a memory, and a bus. The device may also include an input / output interface, a network interface, etc.
[0174] The memory may include non-permanent memory in the form of computer-readable media, random access memory (RAM), and / or non-volatile memory such as read-only memory (ROM) or flash memory (flash RAM), and the memory includes at least one storage chip. The memory is an example of computer-readable media.
[0175] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can store information by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media such as modulated data signals and carrier waves.
[0176] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0177] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0178] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent insertion, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. An image display method, characterized in that, The method includes: Obtaining target image data to be displayed, where the target image data is image data with a first bit; Obtaining a first dithering pattern matching the target image data from a preset dithering pattern library, where the first dithering pattern is a grayscale dithering adjustment pattern corresponding to the target image data spatially; If the target image data matches a preset feature image template, resetting the first dithering pattern to obtain a second dithering pattern, including: obtaining, in the preset dithering pattern library, a dithering strategy associated with the first dithering pattern, where the dithering strategy includes a dithering pixel matrix corresponding to the first dithering pattern and each matrix unit included in the dithering pixel matrix; sorting and numbering each matrix unit in the dithering pixel matrix corresponding to the first dithering pattern to obtain a unique number for each matrix unit; rearranging the positions of the matrix units corresponding to each number in the first dithering pattern by adjusting the arrangement order between the numbers to obtain a reset pattern corresponding to the first dithering pattern; using the reset pattern as the second dithering pattern corresponding to the first dithering pattern; Based on the second dithering pattern, outputting a display image corresponding to the target image data by using a display device with a display module having a second bit, where the second bit is lower than the first bit.
2. The method according to claim 1, wherein After obtaining the reset pattern corresponding to the first dithering pattern, the method further includes: Evenly dividing the reset pattern into a plurality of pixel blocks according to a rule of forming corresponding pixel blocks by combining a preset number of adjacent matrix units; Counting the number of pixel points with an increased effective grayscale dither in each pixel block; Determining whether the difference between the numbers of pixel points with an increased effective grayscale dither corresponding to any two pixel blocks is within a preset threshold range; If so, using the reset pattern as the second dithering pattern corresponding to the first dithering pattern; If not, readjusting the positions of each matrix unit in the first dithering pattern to form new pixel blocks until the difference between the numbers of pixel points with an increased effective grayscale dither corresponding to any two new pixel blocks is within the preset threshold range, and using a new reset pattern constructed based on the new pixel blocks as the second dithering pattern corresponding to the first dithering pattern.
3. The method according to claim 1 or 2, characterized in that, Before obtaining the first dithering pattern matching the target image data from the preset dithering pattern library, the method further includes: Setting a plurality of preset bit numbers according to binary counting rules, where each preset bit number corresponds to a unique preset dithering strategy for planning a preset dithering pixel matrix and each preset matrix unit included in the preset dithering pixel matrix; Constructing a plurality of preset least significant bit sequences corresponding to the preset bit numbers to obtain a first association relationship between the preset dithering strategy and the preset least significant bit sequences; Based on the first association relationship, according to the bit values corresponding to the preset least significant bit sequence, in the preset dither pixel matrix planned by the corresponding associated preset dither strategy, set the gray-scale dither distribution corresponding to each preset matrix unit to generate a dither pattern corresponding to each preset least significant bit sequence; Based on the first association relationship, according to the dither pattern corresponding to each preset least significant bit sequence, obtain a second association relationship between the preset dither strategy and the multiple dither patterns; Construct a preset dither pattern library according to the first association relationship and the second association relationship.
4. The method according to claim 3, characterized in that The obtaining of the first dither pattern matching the target image data from the preset dither pattern library includes: Obtain the least significant bit sequence from the binary bit data corresponding to the target image data; Based on the first association relationship, search in the preset dither pattern library for a preset dither strategy that matches the number of bits of the least significant bit sequence; Based on the second association relationship, search in the multiple dither patterns associated with the preset dither strategy for a dither pattern that matches the bit value of the least significant bit sequence, and use it as the first dither pattern corresponding to the target image data.
5. The method according to claim 4, characterized in that, The obtaining of the least significant bit sequence from the binary bit data corresponding to the target image data includes: Process the target image data using digital gamma correction to convert the target image data into binary bit data; According to the number of bits corresponding to the display module, determine the most significant bit sequence from the binary bit data; Remove the most significant bit sequence from the binary bit data to obtain the least significant bit sequence.
6. The method according to claim 1, wherein The outputting of the display image corresponding to the target image data using a display device having a second-bit display module based on the second dither pattern includes: Obtain the dither pixel matrix corresponding to the second dither pattern; Based on the dither pixel matrix corresponding to the second dither pattern, derive multiple derived pixel matrices having the same gray-scale dither distribution; According to the pixel size corresponding to the target image data, determine the pixel size corresponding to the image to be output by the display device; According to the pixel size corresponding to the image to be output, use the multiple derived pixel matrices to cover the image to be output in a tiled manner to obtain the dither image to be output by the display device; Temporally, generate multiple frames of derived dither images corresponding to the dither image based on frame rate control; Based on the multiple frames of derived dither images, use the display device to output the display image corresponding to the target image data.
7. The method according to claim 6, wherein The deriving of multiple derived pixel matrices having the same gray-scale dither distribution based on the dither pixel matrix corresponding to the second dither pattern includes: Perform at least one of the following derivation operations on the dither pixel matrix corresponding to the second dither pattern: rotation, mirroring; According to the derivation operation, obtain the derived pixel matrix corresponding to the dither pixel matrix corresponding to the second dither pattern.
8. An image display device, characterized in that, The apparatus includes: A first acquisition unit, configured to acquire target image data to be displayed, where the target image data is image data having a first bit; A second acquisition unit, configured to acquire a first dithering pattern matching the target image data from a preset dithering pattern library, where the first dithering pattern is a grayscale dithering adjustment pattern corresponding to the target image data spatially; A reset unit, configured to reset the first dithering pattern to obtain a second dithering pattern if the target image data matches a preset feature image template; The reset unit includes: An acquisition module, configured to acquire a dithering strategy associated with the first dithering pattern in a preset dithering pattern library, where the dithering strategy includes a dithering pixel matrix corresponding to the first dithering pattern and each matrix unit included in the dithering pixel matrix; A sorting module, configured to sort and number each of the matrix units in the dithering pixel matrix corresponding to the first dithering pattern to obtain a unique number corresponding to each matrix unit; An adjustment module, configured to rearrange the positions of the matrix units corresponding to each number in the first dithering pattern by adjusting the arrangement order between the numbers to obtain a reset pattern corresponding to the first dithering pattern; A determination module, configured to use the reset pattern as the second dithering pattern corresponding to the first dithering pattern; An output unit, configured to output a display image corresponding to the target image data based on the second dithering pattern by using a display device having a second-bit display module, where the second bit is lower than the first bit.
9. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the image display method according to any one of claims 1-7 is implemented.
10. An electronic device, characterized in that, Including: A memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the image display method according to any one of claims 1-7 is implemented.
Citation Information
Patent Citations
Display device
CN101661724A
Image processing method based on rotation dithering matrix processing
CN105678707A