CN114138224B - Rendering method and device for sub-pixels in image, computer equipment and storage medium - Google Patents

Rendering method and device for sub-pixels in image, computer equipment and storage medium Download PDF

Info

Publication number
CN114138224B
CN114138224B CN202111484277.2A CN202111484277A CN114138224B CN 114138224 B CN114138224 B CN 114138224B CN 202111484277 A CN202111484277 A CN 202111484277A CN 114138224 B CN114138224 B CN 114138224B
Authority
CN
China
Prior art keywords
pixel
sub
image
pixel point
rendered
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111484277.2A
Other languages
Chinese (zh)
Other versions
CN114138224A (en
Inventor
黄曾�
魏佳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen China Star Optoelectronics Semiconductor Display Technology Co Ltd
Original Assignee
Shenzhen China Star Optoelectronics Semiconductor Display Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen China Star Optoelectronics Semiconductor Display Technology Co Ltd filed Critical Shenzhen China Star Optoelectronics Semiconductor Display Technology Co Ltd
Priority to CN202111484277.2A priority Critical patent/CN114138224B/en
Publication of CN114138224A publication Critical patent/CN114138224A/en
Application granted granted Critical
Publication of CN114138224B publication Critical patent/CN114138224B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/147Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/22Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
    • G09G3/30Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
    • G09G3/32Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]
    • G09G3/3208Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED] organic, e.g. using organic light-emitting diodes [OLED]
    • G09G3/3225Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED] organic, e.g. using organic light-emitting diodes [OLED] using an active matrix
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/02Improving the quality of display appearance
    • G09G2320/0233Improving the luminance or brightness uniformity across the screen

Abstract

The application relates to a rendering method, a rendering device, computer equipment and a storage medium of sub-pixels in an image. The method comprises the following steps: acquiring a first image, wherein the first image comprises a plurality of first pixel points, and each first pixel point comprises three basic sub-pixels; converting the first image into a second image, wherein the second image comprises a plurality of second pixel points respectively corresponding to the first pixel points, and each second pixel point comprises two sub-pixels to be rendered; determining the brightness value of each sub-pixel to be rendered in the second pixel point according to the brightness value of a basic sub-pixel which is contained in the target first pixel point and has the same color as the sub-pixel to be rendered in the second pixel point; and displaying the second image according to the determined brightness value of the sub-pixel to be rendered of each second pixel point. The method can improve the resolution of the screen and ensure the display effect of the image.

Description

Rendering method and device for sub-pixels in image, computer equipment and storage medium
Technical Field
The present disclosure relates to the field of image processing and display technologies, and in particular, to a method and apparatus for rendering sub-pixels in an image, a computer device, and a storage medium.
Background
With the rapid development of display technology, active matrix active light emitting diodes (AMOLED) gradually replace Liquid Crystal Displays (LCDs) to become mainstream display panels of various electronic devices due to the characteristics of wide color gamut, high brightness, flexibility, and the like. In the current technical scheme, as the size of the sub-pixels is smaller, a series of technical problems of low aperture ratio, harsh manufacturing process and the like are accepted, so that the resolution of the screen is improved by adopting a sub-pixel rendering technology. However, the subpixel rendering technology is adopted to render subpixels, so that the situations such as broken lines, colored edges and the like are easy to occur, and therefore, how to improve the screen resolution and ensure the display effect of images becomes a technical problem to be solved urgently.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, apparatus, computer device, and storage medium for rendering subpixels in an image that can improve screen resolution and ensure display effects of the image.
A method of rendering subpixels in an image, the method comprising:
acquiring a first image, wherein the first image comprises a plurality of first pixel points, and each first pixel point comprises three basic sub-pixels;
converting the first image into a second image, wherein the second image comprises a plurality of second pixel points respectively corresponding to the first pixel points, and each second pixel point comprises two sub-pixels to be rendered;
determining the brightness value of each sub-pixel to be rendered in a second pixel point according to the brightness value of a basic sub-pixel which is contained in a target first pixel point and has the same color as the sub-pixel to be rendered of the second pixel point, wherein the target first pixel point comprises at least two different rows and columns of first pixel points positioned in a preset range of the first pixel point corresponding to the second pixel point;
and displaying the second image according to the determined brightness value of the sub-pixel to be rendered of each second pixel point.
Optionally, two sub-pixels to be rendered in the second pixel points are staggered, and colors of the missing sub-pixels in the adjacent three second pixel points are different.
Optionally, the target first pixel point includes a first pixel point corresponding to the second pixel point and another first pixel point located at an upper right corner thereof.
Optionally, the target first pixel point further includes a first pixel point located above and on the right side of the first pixel point corresponding to the second pixel point.
Optionally, determining the luminance value of each sub-pixel to be rendered in the second pixel point according to the luminance value of the base sub-pixel of the same color as the sub-pixel to be rendered in the second pixel point included in the target first pixel point includes:
and carrying out weighted sum operation according to the brightness value of the basic sub-pixel with the same color as the sub-pixel to be rendered of the second pixel point contained in the target first pixel point, so as to obtain the brightness value of each sub-pixel to be rendered in the second pixel point.
Optionally, in the target first pixel point, a weight value of a luminance value of a base sub-pixel of the first pixel point corresponding to the second pixel point is greater than a weight value of luminance values of base sub-pixels of other first pixel points.
Optionally, the acquiring the first image includes:
acquiring gray-scale data corresponding to each first pixel point in a first image; converting the gray-scale data corresponding to each first pixel point into brightness data;
the obtaining a target display image corresponding to the second image according to the determined brightness value of the sub-pixel to be rendered of each second pixel point includes:
and converting the determined brightness value of the sub-pixel to be rendered of each second pixel point into corresponding gray scale data so as to display the second image.
A rendering device for sub-pixels in an image, the device comprising:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a first image, the first image comprises a plurality of first pixel points, and each first pixel point comprises three basic sub-pixels;
the conversion module is used for converting the first image into a second image, the second image comprises a plurality of second pixel points corresponding to the first pixel points respectively, and each second pixel point comprises two sub-pixels to be rendered;
the determining module is used for determining the brightness value of each sub-pixel to be rendered in the second pixel according to the brightness value of the basic sub-pixel with the same color as the sub-pixel to be rendered of the second pixel, which is contained in the target first pixel, wherein the target first pixel comprises at least two different rows and columns of first pixel points positioned in a preset range of the first pixel corresponding to the second pixel;
and the processing module is used for displaying the second image according to the determined brightness value of the sub-pixel to be rendered of each second pixel point.
A computer device comprising a memory storing a computer program and a processor which when executing the computer program performs the steps of:
acquiring a first image, wherein the first image comprises a plurality of first pixel points, and each first pixel point comprises three basic sub-pixels;
converting the first image into a second image, wherein the second image comprises a plurality of second pixel points respectively corresponding to the first pixel points, and each second pixel point comprises two sub-pixels to be rendered;
determining the brightness value of each sub-pixel to be rendered in a second pixel point according to the brightness value of a basic sub-pixel which is contained in a target first pixel point and has the same color as the sub-pixel to be rendered of the second pixel point, wherein the target first pixel point comprises at least two different rows and columns of first pixel points positioned in a preset range of the first pixel point corresponding to the second pixel point;
and displaying the second image according to the determined brightness value of the sub-pixel to be rendered of each second pixel point.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
acquiring a first image, wherein the first image comprises a plurality of first pixel points, and each first pixel point comprises three basic sub-pixels;
converting the first image into a second image, wherein the second image comprises a plurality of second pixel points respectively corresponding to the first pixel points, and each second pixel point comprises two sub-pixels to be rendered;
determining the brightness value of each sub-pixel to be rendered in a second pixel point according to the brightness value of a basic sub-pixel which is contained in a target first pixel point and has the same color as the sub-pixel to be rendered of the second pixel point, wherein the target first pixel point comprises at least two different rows and columns of first pixel points positioned in a preset range of the first pixel point corresponding to the second pixel point;
and displaying the second image according to the determined brightness value of the sub-pixel to be rendered of each second pixel point.
One of the above technical solutions has the following advantages and beneficial effects:
according to the method, the device, the computer equipment and the storage medium for rendering the sub-pixels in the image, the first image is obtained, the first image comprises a plurality of first pixel points, each first pixel point comprises three basic sub-pixels, the first image is converted into the second image, the second image comprises a plurality of second pixel points corresponding to the first pixel points respectively, each second pixel point comprises two sub-pixels to be rendered, the brightness value of each sub-pixel to be rendered in the second pixel point is determined according to the brightness value of the basic sub-pixel with the same color as the sub-pixel to be rendered in the second pixel point, which is contained in the target first pixel point, the target first pixel point comprises at least two different rows and columns of first pixel points which are located in the preset range of the first pixel point corresponding to the second pixel point, and the second image is rendered according to the determined brightness value of the sub-pixels to be rendered in the second pixel point. Therefore, the brightness value of the sub-pixel to be rendered of the corresponding second pixel point is determined according to the brightness values of the basic pixels contained in the first pixel points of different rows and columns, the conditions of line breakage and color edges can be avoided, the screen resolution is improved, and the display effect of the image is ensured.
Drawings
Fig. 1 is a flow chart of a method for rendering sub-pixels in an image according to an embodiment of the present application.
Fig. 2 and 3 are schematic diagrams of calculation for determining sub-pixels to be rendered according to an embodiment of the present application.
Fig. 4 is a block diagram of a rendering device of sub-pixels in an image according to an embodiment of the present application.
Fig. 5 is an internal structural diagram of a computer device in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
Referring to fig. 1, fig. 1 illustrates a method for rendering sub-pixels in an image according to an embodiment of the present application, where the method may be applied to a server, and the server may be a physical server or a cloud server that provides various cloud services.
The number of servers is not limited in this application, and the servers may be independent servers, or may be a server cluster formed by a plurality of servers, or the like.
As shown in fig. 1, the method at least includes steps S110 to S140, and is described in detail as follows:
in step S110, a first image is acquired, where the first image includes a plurality of first pixel points, and each of the first pixel points includes three basic sub-pixels.
The first image may be an image adopting a common sub-pixel arrangement mode, and the first image may include a plurality of pixel points (i.e., first pixel points) arranged in a matrix manner. Each first pixel point may include three colors of base sub-pixels corresponding to red, green and blue.
In one example, the server may obtain the first image from a local storage space; in another example, the server may also obtain the first image from a cloud or third party storage space. Those skilled in the art may implement the corresponding acquisition mode according to actual implementation needs, which is not limited in this application.
In step S120, the first image is converted into a second image, where the second image includes a plurality of second pixel points corresponding to the first pixel points, and each of the second pixel points includes two sub-pixels to be rendered.
Wherein the second image may be an image employing a particular subpixel arrangement. The second image may include a plurality of second pixel points corresponding to the first pixel points respectively, and the second pixel points include only two sub-pixels, for example, may include red and green, or green and blue, or blue and red. And the luminance value of the two sub-pixels (i.e., the sub-pixels to be rendered) is determined based on the luminance value of the base pixel of the same color of the first pixel point corresponding to the second pixel point.
In an exemplary embodiment of the present application, a person skilled in the art may preset a pixel conversion rule, and after acquiring the first image, the server may convert the first image into the second image according to the pixel conversion rule. The second image may include a plurality of second pixel points, where positions of the second pixel points are corresponding to the first pixel points in the first image, respectively. For example, the first pixel points are arranged in a matrix form, the second pixel points are also arranged in a matrix form, and the second pixel points are respectively in one-to-one correspondence with the first pixel points.
In an exemplary embodiment of the present application, two sub-pixels to be rendered in the second pixel point may be disposed in an interleaved manner, and specifically, two sub-pixels to be rendered in the same second pixel point may be disposed in an diagonally opposite manner in the second pixel point. In addition, the color of the missing sub-pixel in the adjacent three second pixel points is different, for example, the first second pixel point adjacent to the missing sub-pixel of blue, the second pixel point missing the sub-pixel of red, the third second pixel point missing the sub-pixel of green, etc.
In an example, the sub-pixels to be rendered included in the second pixel point in the second image may be circularly arranged in the order of RG, GB, and BR. Thereby, the same color subpixels in the second image may be arranged obliquely downward. Compared with other arrangement modes, the arrangement mode of the sub-pixels in the oblique downward direction can ensure that the intervals among the sub-pixels are not too large, further ensure the resolution ratio during screen display and ensure the display effect of images.
Referring to fig. 1, in step S130, according to the luminance values of the base sub-pixels of the same color as the sub-pixels to be rendered of the second pixel point included in the target first pixel point, the luminance values of the sub-pixels to be rendered of the second pixel point are determined, where the target first pixel point includes at least two different rows and columns of first pixel points located in a predetermined range of the first pixel point corresponding to the second pixel point.
The target first pixel point may be a first pixel point used to determine a luminance value of a sub-pixel to be rendered of a second pixel point corresponding to the target first pixel point. In an example, the target first pixel point may include at least two different rows and columns of first pixel points within a predetermined range of the first pixel point corresponding to the second pixel point. It should be noted that the predetermined range may be a selection range preset by a person skilled in the art, for example, the predetermined range may be a selection range within one pixel adjacent to the first pixel corresponding to the second pixel, for example, the target first pixel may include the first pixel corresponding to the second pixel, and the first pixel located at the upper right of the first pixel, and so on.
It should be understood that the target pixel point includes first pixel points in different rows and columns, so that the determined brightness value of the sub-pixel to be rendered of the second pixel point includes the characteristic of the brightness value of the base sub-pixel with the same color of the first pixel points in different rows and columns, thereby effectively avoiding the occurrence of the conditions of line breakage or color edges and the like and further ensuring the display effect of the second image.
It should be noted that, the first pixel points of different rows and columns in the present application may be first pixel points of different rows, first pixel points of different columns, and first pixel points of different rows and columns, and a determination manner of a corresponding target first pixel point may be selected by a person skilled in the art according to actual implementation needs, which is not particularly limited in the present application.
In an exemplary embodiment of the present application, the server may determine the luminance value of the sub-pixel to be rendered in the second pixel point according to the luminance value of the base sub-pixel of the same color as the sub-pixel to be rendered of the corresponding second pixel point included in the target first pixel point. For example, if the second pixel point includes a red sub-pixel to be rendered, the luminance value of the red sub-pixel to be rendered in the second pixel point may be determined according to the luminance value of the red basic sub-pixel in the corresponding target first pixel point, and so on.
In an exemplary embodiment of the present application, the target first pixel includes a first pixel corresponding to the second pixel and another first pixel located at an upper right corner thereof, that is, the target first pixel includes two first pixels, one is a first pixel corresponding to the second pixel, and the other is a first pixel located at an upper right corner of the first pixel. Therefore, the target first pixel point comprises two oblique first pixel points, and the brightness value of the sub-pixel to be rendered of the second pixel point determined based on the brightness values of the basic sub-pixels of the two first pixel points can comprise the brightness characteristics of the two first pixel points, so that the occurrence of the condition of broken lines or colored edges can be avoided.
Based on the foregoing embodiment, the target first pixel point may further include a first pixel point located above and to the right of the first pixel point corresponding to the second pixel point. That is, the target first pixel point may include first pixel points corresponding to the second pixel point, and three first pixel points located at an upper, upper right corner and a right side of the first pixel point, for a total of four first pixel points. The brightness value of the sub-pixel to be rendered in the second pixel points determined based on the four first pixel points in the target first pixel points can avoid the occurrence of uneven line thickness, and meanwhile, the occurrence of line breakage can be further reduced, so that the display effect of the second image is ensured.
In step S140, the second image is displayed according to the determined brightness value of the sub-pixel to be rendered of each second pixel point.
In this embodiment, after determining the luminance value of the sub-pixel to be rendered in each second pixel point, the server may display the second image on the screen based on the luminance value, thereby determining the luminance value of the sub-pixel to be rendered of the corresponding second pixel point according to the luminance values of the base pixels included in the first pixel points of different rows and columns, so as to avoid the occurrence of line break and color edge conditions, and ensure the display effect of the image. In addition, the sub-pixels to be rendered of the second pixel points in the second image are arranged in a staggered mode, so that the size of the interval between the sub-pixels to be rendered can be ensured, the excessive interval between the sub-pixels to be rendered is avoided, and the resolution ratio during screen display can be improved.
Based on the embodiment shown in fig. 1, in an exemplary embodiment of the present application, determining, according to a luminance value of a base subpixel of the same color as a subpixel to be rendered of the second pixel included in a target first pixel, a luminance value of each subpixel to be rendered in the second pixel includes:
and carrying out weighted sum operation according to the brightness value of the basic sub-pixel with the same color as the sub-pixel to be rendered of the second pixel point contained in the target first pixel point, so as to obtain the brightness value of each sub-pixel to be rendered in the second pixel point.
In this embodiment, the server may perform a weighted sum operation based on the luminance values of the base sub-pixels of the same color as the sub-pixels to be rendered of the second pixel point included in the target first pixel point, so as to determine the luminance value of each sub-pixel to be rendered in the second pixel point. Specifically, the server may obtain, in advance, a weight value of a base subpixel included in each target first subpixel point, and perform a weighted sum operation based on a luminance value of the base subpixel and the weight value, so as to determine a luminance value of a subpixel to be rendered.
Referring to fig. 2, fig. 2 is a schematic diagram of calculation for determining a luminance value of a sub-pixel to be rendered according to an embodiment of the present application (taking the example that the target first pixel point includes a first pixel point corresponding to the second pixel point and a first pixel point located at an upper right corner thereof as an example).
As shown in fig. 2, the display schematic diagram of the first pixel point in the first image is located at the upper side, and the display schematic diagram of the second pixel point in the second image is located at the lower side. Based on the rendering method provided in the application, if the luminance value of the blue sub-pixel to be rendered included in the second pixel point located in the i-th row and the 1 st column in the second image is to be determined, the determination may be based on the luminance value of the blue base pixel value of the first pixel point corresponding to the second pixel point (i.e., the first pixel point located in the i-th row and the 1 st column in the first image) and the first pixel point located in the upper right corner of the first pixel point (i.e., the first pixel point located in the i-1 st row and the 2 nd column in the first image).
Specifically, the calculation may be performed with reference to the following formula:
B (i,1) =k 1 *Bb (i,1) +k 2 *Bb (i-1,2)
wherein k is 1 And k 2 Is the corresponding weight value, and k 1 +k 2 =1。
Fig. 3 shows a schematic calculation diagram for determining a luminance value of a sub-pixel to be rendered according to another embodiment of the present application (taking the example that the target first pixel point includes a first pixel point corresponding to the second pixel point and first pixel points located above, in the upper right corner and in the right side thereof as an example).
Referring to fig. 3, the top is a display schematic diagram of a first pixel in the first image, and the bottom is a display schematic diagram of a second pixel in the second image. Based on the rendering method provided in the application, if the luminance value of the red sub-pixel to be rendered included in the second pixel point located in the i-th row and the 2 nd column in the second image is to be determined, the luminance value of the red basic sub-pixel in the first pixel point corresponding to the second pixel point (i.e., the i-th row and the 2 nd column in the first image) and the first pixel point located above the first pixel point (i.e., the i-1 th row and the 2 nd column in the first image), the first pixel point located in the upper right corner of the first pixel point (i.e., the i-1 th row and the 3 rd column in the first image) and the first pixel point located on the right side of the first pixel point (i.e., the i-th row and the 3 rd column in the first image) may be determined.
Specifically, the calculation may be performed with reference to the following formula:
R (i,1) =k 1 *Rr (i-1,2) +k 2 *Rr (i-1,3) +k 3 *Rr (i,2) +k 4 *Rr (i,3)
wherein k is 1 、k 2 、k 3 、k 4 Is the corresponding weight value, and k 1 +k 2 +k 3 +k 4 =1。
In an exemplary embodiment of the present application, in the target first pixel point, a weight value of a luminance value of a base sub-pixel of the first pixel point corresponding to the second pixel point is greater than a weight value of luminance values of base sub-pixels of other first pixel points. Therefore, the calculated brightness value of the sub-pixel to be rendered of the second pixel point can better store the brightness characteristics of the same-color basic sub-pixel of the first pixel point corresponding to the calculated brightness value, and the display effect of the second image is ensured.
Based on the embodiment shown in fig. 1, in an exemplary embodiment of the present application, the acquiring the first image includes:
acquiring gray-scale data corresponding to each first pixel point in a first image;
and converting the gray-scale data corresponding to each first pixel point into brightness data.
Therefore, the gray-scale data are converted into the corresponding brightness data, so that the subsequent rendering process can be facilitated, and the accuracy of subsequent display is further ensured.
In addition, the displaying the second image according to the determined brightness value of the sub-pixel to be rendered of each second pixel point includes:
and converting the determined brightness value of the sub-pixel to be rendered of each second pixel point into corresponding gray scale data so as to display the second image.
In this embodiment, after the brightness value of the sub-pixel to be rendered of the second pixel point is obtained by calculation, the brightness value is converted into corresponding gray-scale data, so that the display effect of the second image can be ensured to correspond to the display effect of the first image.
It should be understood that, although the steps in the flowchart of fig. 1 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 1 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of other steps or sub-steps of other steps.
In one embodiment, as shown in fig. 4, there is provided a rendering apparatus of sub-pixels in an image, including:
an obtaining module 410, configured to obtain a first image, where the first image includes a plurality of first pixel points, and each of the first pixel points includes three basic sub-pixels;
the conversion module 420 is configured to convert the first image into a second image, where the second image includes a plurality of second pixel points corresponding to the first pixel points, and each of the second pixel points includes two sub-pixels to be rendered;
a determining module 430, configured to determine, according to luminance values of base sub-pixels of the same color as sub-pixels to be rendered of the second pixel included in a target first pixel, a luminance value of each sub-pixel to be rendered of the second pixel, where the target first pixel includes at least two different rows and columns of first pixel points located in a predetermined range of the first pixel corresponding to the second pixel;
and the processing module 440 is configured to display the second image according to the determined luminance value of the sub-pixel to be rendered of each second pixel point.
In one embodiment, two sub-pixels to be rendered in the second pixel points are staggered, and the colors of the missing sub-pixels in the adjacent three second pixel points are different.
In one embodiment, the target first pixel includes a first pixel corresponding to the second pixel and another first pixel located at an upper right corner thereof.
In one embodiment, the target first pixel point further includes a first pixel point located above and to the right of the first pixel point corresponding to the second pixel point.
In one embodiment, the determining module 430 is configured to: and carrying out weighted sum operation according to the brightness value of the basic sub-pixel with the same color as the sub-pixel to be rendered of the second pixel point contained in the target first pixel point, so as to obtain the brightness value of each sub-pixel to be rendered in the second pixel point.
In one embodiment, in the target first pixel point, a weight value of a luminance value of a base sub-pixel of the first pixel point corresponding to the second pixel point is greater than a weight value of luminance values of base sub-pixels of other first pixel points.
In one embodiment, the acquisition module 410 is configured to: acquiring gray-scale data corresponding to each first pixel point in a first image; converting the gray-scale data corresponding to each first pixel point into brightness data;
the processing module 440 is configured to: and converting the determined brightness value of the sub-pixel to be rendered of each second pixel point into corresponding gray scale data so as to display the second image.
For specific limitations of the rendering device for the sub-pixels in the image, reference may be made to the above limitation of the rendering method for the sub-pixels in the image, and the description thereof will not be repeated here. The above-described respective modules in the image subpixel rendering apparatus may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing data such as weight values corresponding to the basic sub-pixels in the first pixel point. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of rendering sub-pixels in an image.
It will be appreciated by those skilled in the art that the structure shown in fig. 5 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
acquiring a first image, wherein the first image comprises a plurality of first pixel points, and each first pixel point comprises three basic sub-pixels;
converting the first image into a second image, wherein the second image comprises a plurality of second pixel points respectively corresponding to the first pixel points, and each second pixel point comprises two sub-pixels to be rendered;
determining the brightness value of each sub-pixel to be rendered in a second pixel point according to the brightness value of a basic sub-pixel which is contained in a target first pixel point and has the same color as the sub-pixel to be rendered of the second pixel point, wherein the target first pixel point comprises at least two different rows and columns of first pixel points positioned in a preset range of the first pixel point corresponding to the second pixel point;
and displaying the second image according to the determined brightness value of the sub-pixel to be rendered of each second pixel point.
In one embodiment, two sub-pixels to be rendered in the second pixel points are staggered, and the colors of the missing sub-pixels in the adjacent three second pixel points are different.
In one embodiment, the target first pixel point includes a first pixel point corresponding to the second pixel point and another first pixel point located at an upper right corner thereof.
In one embodiment, the target first pixel point further includes a first pixel point located above and to the right of the first pixel point corresponding to the second pixel point.
In one embodiment, the processor when executing the computer program further performs the steps of: and carrying out weighted sum operation according to the brightness value of the basic sub-pixel with the same color as the sub-pixel to be rendered of the second pixel point contained in the target first pixel point, so as to obtain the brightness value of each sub-pixel to be rendered in the second pixel point.
In one embodiment, in the target first pixel point, a weight value of a luminance value of a base sub-pixel of the first pixel point corresponding to the second pixel point is larger than a weight value of luminance values of base sub-pixels of other first pixel points.
In one embodiment, the processor when executing the computer program further performs the steps of: acquiring gray-scale data corresponding to each first pixel point in a first image; converting the gray-scale data corresponding to each first pixel point into brightness data;
and converting the determined brightness value of the sub-pixel to be rendered of each second pixel point into corresponding gray-scale data so as to display the second image.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring a first image, wherein the first image comprises a plurality of first pixel points, and each first pixel point comprises three basic sub-pixels;
converting the first image into a second image, wherein the second image comprises a plurality of second pixel points respectively corresponding to the first pixel points, and each second pixel point comprises two sub-pixels to be rendered;
determining the brightness value of each sub-pixel to be rendered in a second pixel point according to the brightness value of a basic sub-pixel which is contained in a target first pixel point and has the same color as the sub-pixel to be rendered of the second pixel point, wherein the target first pixel point comprises at least two different rows and columns of first pixel points positioned in a preset range of the first pixel point corresponding to the second pixel point;
and displaying the second image according to the determined brightness value of the sub-pixel to be rendered of each second pixel point.
In one embodiment, two sub-pixels to be rendered in the second pixel points are staggered, and the colors of the missing sub-pixels in the adjacent three second pixel points are different.
In one embodiment, the target first pixel point includes a first pixel point corresponding to the second pixel point and another first pixel point located at an upper right corner thereof.
In one embodiment, the target first pixel point further includes a first pixel point located above and to the right of the first pixel point corresponding to the second pixel point.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and carrying out weighted sum operation according to the brightness value of the basic sub-pixel with the same color as the sub-pixel to be rendered of the second pixel point contained in the target first pixel point, so as to obtain the brightness value of each sub-pixel to be rendered in the second pixel point.
In one embodiment, in the target first pixel point, a weight value of a luminance value of a base sub-pixel of the first pixel point corresponding to the second pixel point is larger than a weight value of luminance values of base sub-pixels of other first pixel points.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring gray-scale data corresponding to each first pixel point in a first image; converting the gray-scale data corresponding to each first pixel point into brightness data;
and converting the determined brightness value of the sub-pixel to be rendered of each second pixel point into corresponding gray-scale data so as to display the second image.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the claims. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (10)

1. A method of rendering subpixels in an image, comprising the steps of:
acquiring a first image, wherein the first image comprises a plurality of first pixel points, and each first pixel point comprises three basic sub-pixels;
converting the first image into a second image, wherein the second image comprises a plurality of second pixel points respectively corresponding to the first pixel points, and each second pixel point comprises two sub-pixels to be rendered;
determining the brightness value of each sub-pixel to be rendered in a second pixel point according to the brightness value of a basic sub-pixel which is contained in a target first pixel point and has the same color as the sub-pixel to be rendered of the second pixel point, wherein the target first pixel point comprises at least two different rows and columns of first pixel points positioned in a preset range of the first pixel point corresponding to the second pixel point;
and displaying the second image according to the determined brightness value of the sub-pixel to be rendered of each second pixel point.
2. The method for rendering sub-pixels in an image according to claim 1, wherein two sub-pixels to be rendered in the second pixel points are staggered, and colors of the missing sub-pixels in the adjacent three second pixel points are different.
3. The method of rendering sub-pixels in an image according to claim 2, wherein the target first pixel point includes a first pixel point corresponding to the second pixel point and another first pixel point located at an upper right corner thereof.
4. A method of rendering sub-pixels in an image according to claim 3, wherein the target first pixel further comprises a first pixel located above and to the right of the first pixel corresponding to the second pixel.
5. The method according to any one of claims 3 to 4, wherein determining the luminance value of each sub-pixel to be rendered in the second pixel point from the luminance value of the base sub-pixel of the same color as the sub-pixel to be rendered in the second pixel point included in the target first pixel point includes:
and carrying out weighted sum operation according to the brightness value of the basic sub-pixel with the same color as the sub-pixel to be rendered of the second pixel point contained in the target first pixel point, so as to obtain the brightness value of each sub-pixel to be rendered in the second pixel point.
6. The method according to claim 5, wherein the weight value of the luminance value of the base sub-pixel of the first pixel corresponding to the second pixel is larger than the weight value of the luminance values of the base sub-pixels of the other first pixels in the target first pixel.
7. The method of rendering sub-pixels in an image of claim 1, wherein the acquiring the first image comprises:
acquiring gray-scale data corresponding to each first pixel point in a first image;
converting the gray-scale data corresponding to each first pixel point into brightness data;
wherein displaying the second image according to the determined brightness value of the sub-pixel to be rendered of each second pixel point includes:
and converting the determined brightness value of the sub-pixel to be rendered of each second pixel point into corresponding gray scale data so as to display the second image.
8. A rendering device for sub-pixels in an image, the device comprising:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a first image, the first image comprises a plurality of first pixel points, and each first pixel point comprises three basic sub-pixels;
the conversion module is used for converting the first image into a second image, the second image comprises a plurality of second pixel points corresponding to the first pixel points respectively, and each second pixel point comprises two sub-pixels to be rendered;
the determining module is used for determining the brightness value of each sub-pixel to be rendered in the second pixel according to the brightness value of the basic sub-pixel with the same color as the sub-pixel to be rendered of the second pixel, which is contained in the target first pixel, wherein the target first pixel comprises at least two different rows and columns of first pixel points positioned in a preset range of the first pixel corresponding to the second pixel;
and the processing module is used for displaying the second image according to the determined brightness value of the sub-pixel to be rendered of each second pixel point.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
CN202111484277.2A 2021-12-07 2021-12-07 Rendering method and device for sub-pixels in image, computer equipment and storage medium Active CN114138224B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111484277.2A CN114138224B (en) 2021-12-07 2021-12-07 Rendering method and device for sub-pixels in image, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111484277.2A CN114138224B (en) 2021-12-07 2021-12-07 Rendering method and device for sub-pixels in image, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114138224A CN114138224A (en) 2022-03-04
CN114138224B true CN114138224B (en) 2023-05-30

Family

ID=80385012

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111484277.2A Active CN114138224B (en) 2021-12-07 2021-12-07 Rendering method and device for sub-pixels in image, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114138224B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116129816A (en) * 2023-02-06 2023-05-16 格兰菲智能科技有限公司 Pixel rendering method, device, computer equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008299040A (en) * 2007-05-31 2008-12-11 Epson Imaging Devices Corp Image display device
CN103956134A (en) * 2014-02-17 2014-07-30 友达光电股份有限公司 Driving method of display
CN104461440A (en) * 2014-12-31 2015-03-25 上海天马有机发光显示技术有限公司 Rendering method, rendering device and display device
CN105261321A (en) * 2015-09-18 2016-01-20 深圳市华星光电技术有限公司 Pixel rendering method, pixel rendering device and display
CN110599962A (en) * 2019-09-23 2019-12-20 深圳清华大学研究院 Rendering method of Delta type sub-pixel display panel with different color sequences
CN110945582A (en) * 2019-10-31 2020-03-31 北京集创北方科技股份有限公司 Sub-pixel rendering method, driving chip and display device
CN111009026A (en) * 2019-12-24 2020-04-14 腾讯科技(深圳)有限公司 Object rendering method and device, storage medium and electronic device
CN112426711A (en) * 2020-10-23 2021-03-02 杭州电魂网络科技股份有限公司 Bloom effect processing method, system, electronic device and storage medium
CN112687235A (en) * 2019-10-20 2021-04-20 联詠科技股份有限公司 Image processing apparatus and image processing method
CN113112950A (en) * 2021-04-27 2021-07-13 合肥维信诺科技有限公司 Image display method, signal generation device, display device, and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4261739B2 (en) * 2000-06-15 2009-04-30 キヤノン株式会社 Image processing apparatus, image processing method, storage medium, and image processing system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008299040A (en) * 2007-05-31 2008-12-11 Epson Imaging Devices Corp Image display device
CN103956134A (en) * 2014-02-17 2014-07-30 友达光电股份有限公司 Driving method of display
CN104461440A (en) * 2014-12-31 2015-03-25 上海天马有机发光显示技术有限公司 Rendering method, rendering device and display device
CN105261321A (en) * 2015-09-18 2016-01-20 深圳市华星光电技术有限公司 Pixel rendering method, pixel rendering device and display
CN110599962A (en) * 2019-09-23 2019-12-20 深圳清华大学研究院 Rendering method of Delta type sub-pixel display panel with different color sequences
CN112687235A (en) * 2019-10-20 2021-04-20 联詠科技股份有限公司 Image processing apparatus and image processing method
CN110945582A (en) * 2019-10-31 2020-03-31 北京集创北方科技股份有限公司 Sub-pixel rendering method, driving chip and display device
CN111009026A (en) * 2019-12-24 2020-04-14 腾讯科技(深圳)有限公司 Object rendering method and device, storage medium and electronic device
CN112426711A (en) * 2020-10-23 2021-03-02 杭州电魂网络科技股份有限公司 Bloom effect processing method, system, electronic device and storage medium
CN113112950A (en) * 2021-04-27 2021-07-13 合肥维信诺科技有限公司 Image display method, signal generation device, display device, and storage medium

Also Published As

Publication number Publication date
CN114138224A (en) 2022-03-04

Similar Documents

Publication Publication Date Title
US11069286B2 (en) Color compensation method, compensation device, and display device
US9620050B2 (en) Display method and display device
CN108877740B (en) Method and device for acquiring Mura compensation data, computer equipment and storage medium
US20160027359A1 (en) Display method and display device
CN111326121B (en) Driving method, driving chip, display device and storage medium
CN109147644B (en) Display panel and display method
US10957282B2 (en) Luminance compensation method for a display panel
US20190326365A1 (en) Pixel arrangement of oled display panel, and oled display panel
WO2020103243A1 (en) Pixel driving method, pixel driving device, and computer device
CN106856084B (en) Display method and display device of display panel
US20160300519A1 (en) Display Method, Display Panel and Display Device
US9483971B2 (en) Display method of display panel
WO2020103242A1 (en) Array substrate and display panel
US20170162096A1 (en) Array substrate, display panel, display device and driving method
WO2020103244A1 (en) Pixel drive method, pixel drive apparatus, and computer device
CN110599962B (en) Rendering method of Delta type sub-pixel display panel with different color sequences
US10115333B2 (en) Image display method and display apparatus
US11335236B2 (en) Image processing method and display device
CN110379370B (en) RGB-Delta type display panel sub-pixel rendering method based on threshold comparison
CN114138224B (en) Rendering method and device for sub-pixels in image, computer equipment and storage medium
US20160314735A1 (en) Image display method and display apparatus
CN113920917A (en) Display panel compensation method and compensation device
US10290252B2 (en) Image display method, image display apparatus and delta pixel arrangement display device
CN110176207B (en) Image data determination method and device and electronic equipment
CN114822397A (en) Data processing method and device and display panel compensation method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant