CN111710279B - Image rendering method and device, display device, storage medium and electronic device - Google Patents

Image rendering method and device, display device, storage medium and electronic device Download PDF

Info

Publication number
CN111710279B
CN111710279B CN202010612048.3A CN202010612048A CN111710279B CN 111710279 B CN111710279 B CN 111710279B CN 202010612048 A CN202010612048 A CN 202010612048A CN 111710279 B CN111710279 B CN 111710279B
Authority
CN
China
Prior art keywords
pixel
initial
color
sub
pixel unit
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
CN202010612048.3A
Other languages
Chinese (zh)
Other versions
CN111710279A (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.)
BOE Technology Group Co Ltd
Beijing BOE Optoelectronics Technology Co Ltd
Original Assignee
BOE Technology Group Co Ltd
Beijing BOE Optoelectronics 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 BOE Technology Group Co Ltd, Beijing BOE Optoelectronics Technology Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN202010612048.3A priority Critical patent/CN111710279B/en
Publication of CN111710279A publication Critical patent/CN111710279A/en
Application granted granted Critical
Publication of CN111710279B publication Critical patent/CN111710279B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/2003Display of colours
    • 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/2007Display of intermediate tones
    • G09G3/2074Display of intermediate tones using sub-pixels
    • 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/0271Adjustment of the gradation levels within the range of the gradation scale, e.g. by redistribution or clipping
    • 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/06Adjustment of display parameters
    • G09G2320/0666Adjustment of display parameters for control of colour parameters, e.g. colour temperature
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention provides an image rendering method, which comprises the following steps: acquiring an initial image, wherein the initial image comprises an initial pixel unit, the initial pixel unit comprises initial sub-pixels, and the colors of the initial sub-pixels are respectively as follows: a first color, a second color, and a third color; processing the initial image to obtain an intermediate image, wherein the intermediate image comprises an intermediate pixel unit, the intermediate pixel unit comprises intermediate sub-pixels, and the colors of the intermediate sub-pixels are respectively as follows: a first color, a second color, a third color, and a fourth color; determining the color type of the initial pixel unit according to the pixel information of the initial sub-pixel; determining a rendering rule in a target image to be generated according to the color type of the initial pixel unit and the color type of at least one initial pixel unit positioned on at least one side of the initial pixel unit; and generating a target image according to the rendering rule of each target pixel unit. The invention also provides an image rendering device, a display device, a computer-readable storage medium and an electronic device.

Description

Image rendering method and device, display device, storage medium and electronic device
Technical Field
The present invention relates to the field of display technologies, and in particular, to an image rendering device, an image rendering method, a display device, a computer readable storage medium, and an electronic device.
Background
The four-primary-color (RGBW) display technology is a display technology in which white sub-pixels are added on the basis of RGB three-primary-color sub-pixels, the high transmittance of the white sub-pixels can obviously improve the brightness of a display, especially in an outdoor strong light environment, the four-primary-color display technology can obviously improve the brightness of a screen or save power consumption under the same brightness, the problems caused by outdoor environment light are overcome, and the contrast is improved, so that the user experience and the user experience are improved.
At present, since the input color signals only include RGB signals, the RGB signals need to be converted into RGBW signals and transmitted to the display, but during the process of transmitting the RGBW signals to the display, a part of the color signals are lost, so that display colors are diluted, and the display effect is affected.
Disclosure of Invention
The invention aims to at least solve one of the technical problems in the prior art, and provides an image rendering device, an image rendering method, a display device, a computer readable storage medium and an electronic device.
In order to achieve the above object, the present invention provides an image rendering method for providing image information of a target image to be displayed for a display substrate, the display substrate including a plurality of sub-pixels distributed in an array, the plurality of sub-pixels being divided into a plurality of groups, each group including two rows and four columns of the sub-pixels; in the same group, the colors of the four sub-pixels in each row include: the first color, the second color, the third color and the fourth color, and the colors of two adjacent sub-pixels in the same column are different; in the same group, the colors of the four sub-pixels located in two adjacent rows and two adjacent columns include: the first color, the second color, the third color, and the fourth color; wherein for a plurality of the sub-pixels of the same line, every three of the sub-pixels constitute one pixel, the image rendering method comprises:
obtaining image information of an initial image, wherein the initial image comprises a plurality of initial pixel units corresponding to a plurality of pixels in the display substrate one by one, each initial pixel unit comprises a plurality of initial sub-pixels, and the colors of the initial sub-pixels are respectively as follows: the first color, the second color, and the third color;
Processing the initial image to obtain an intermediate image, wherein the intermediate image comprises a plurality of intermediate pixel units corresponding to the initial pixel units in the initial image one by one, each intermediate pixel unit comprises a plurality of intermediate sub-pixels, and the colors of the intermediate sub-pixels are respectively as follows: the first color, the second color, the third color, and the fourth color;
determining the color type of each initial pixel unit according to the pixel information of each initial sub-pixel in each initial pixel unit;
for each initial pixel unit, determining a rendering rule of a target pixel unit corresponding to the initial pixel unit in the target image according to the color type of the initial pixel unit and the color type of at least one initial pixel unit positioned on at least one side of the initial pixel unit; the rendering rule includes: a mapping relationship between the pixel information of each intermediate sub-pixel in the intermediate pixel unit and the pixel information of each target sub-pixel in the target pixel unit;
and generating image information of the target image according to the rendering rule of each target pixel unit.
Optionally, the pixel information of the initial sub-pixels includes gray scale, and determining the color type of each initial pixel unit according to the pixel information of each initial sub-pixel in each initial pixel unit includes: for each of said initial pixel cells,
when the gray scale of each initial sub-pixel in the initial pixel unit is smaller than a preset threshold value, determining the color type of the initial pixel unit as a first type;
when the gray level of each initial sub-pixel in the initial pixel unit is larger than or equal to the preset threshold value and the gray level of each initial sub-pixel is equal, determining that the color type of the initial pixel unit is a second type;
and when the gray level of each initial sub-pixel in the initial pixel unit is larger than or equal to the preset threshold value and the gray levels of at least two of the initial sub-pixels are unequal, determining that the color type of the initial pixel unit is a third type.
Optionally, the pixel information of the intermediate sub-pixel includes a first color value, the pixel information of the target sub-pixel includes a second color value, and for each of the initial pixel units, determining a rendering rule of a target pixel unit corresponding to the initial pixel unit in the target image to be generated according to a color type of the initial pixel unit and color types of a plurality of initial pixel units located on at least one side of the initial pixel unit, including:
For the jth initial pixel unit in the ith row, when the color type of the initial pixel unit is the first type or the second type, taking the jth-1 initial pixel unit to the jth-m initial pixel unit in the ith row as a first group of initial pixel units, taking the (j+1) th initial pixel unit to the (j+m) th initial pixel unit in the ith row as a second group of initial pixel units, and detecting the color type of each initial pixel unit in the first group of initial pixel units and the color type of each initial pixel unit in the second group of initial pixel units;
judging whether the first group of initial pixel units and the second group of initial pixel units are stripe pixel groups or not according to the color types of the initial pixel units in the first group of initial pixel units and the second group of initial pixel units;
when at least one of the first group of initial pixel units and the second group of initial pixel units is the stripe pixel group, determining a rendering rule of the target pixel unit corresponding to the jth initial pixel unit in the ith row as a first rendering rule, wherein the first rendering rule is as follows: in the ith row and the jth of the target pixel units, the second color value of the first target sub-pixel is x times of the first color value of the middle sub-pixel with the same color in the ith row and the jth of the middle pixel units, the second color value of the third target sub-pixel is x times of the first color value of the middle sub-pixel with the same color in the ith row and the jth of the middle pixel units, and the second color value of the second target sub-pixel is equal to the first color value of the middle sub-pixel with the same color in the ith row and the jth of the middle pixel units, and 0 < x < 1.
Optionally, the pixel information of the intermediate sub-pixel includes a first color value, the pixel information of the target sub-pixel includes a second color value, and when the first group of initial pixel units and the second group of initial pixel units are both non-striped pixel groups, the rendering rule of the target pixel unit corresponding to the jth initial pixel unit in the ith row is determined to be a second rendering rule, where the second rendering rule is:
in the ith row and the jth of the target pixel units, the second color value of the second target sub-pixel is equal to the first color value of the middle sub-pixel with the same color in the ith row and the jth of the middle pixel units, and the second color value of the first target sub-pixel is determined by the first color value of the middle sub-pixel with the same color in the ith row and the jth of the middle pixel units; the second color value of the third target sub-pixel is determined by the first color value of the intermediate sub-pixel with the same color in the j+1th intermediate pixel unit in the ith row and the j intermediate pixel unit in the ith row.
Optionally, in the second rendering rule, for the jth target pixel unit in the ith row, the second color value of the first target subpixel is an average value of the first color values of the same-color intermediate subpixels in the jth intermediate pixel unit in the ith row and the jth intermediate pixel unit in the ith row; the second color value of the third target sub-pixel is the average value of the first color values of the intermediate sub-pixels with the same color in the j+1th intermediate pixel unit in the ith row and the j intermediate pixel unit in the ith row.
Optionally, for each of the initial pixel units, determining a rendering rule of a target pixel unit corresponding to the initial pixel unit in the target image according to a color type of the initial pixel unit and a color type of a plurality of initial pixel units located on at least one side of the initial pixel unit, and further including:
for the jth initial pixel unit of the ith row, when the color type of the initial pixel unit is the third type, judging whether the color type of at least one of the jth-1 initial pixel unit of the ith row and the (j+1) th initial pixel unit of the ith row is the first type, if so, determining that the rendering rule of the target pixel unit corresponding to the jth initial pixel unit of the ith row is a third rendering rule, and if not, determining that the rendering rule of the target pixel unit corresponding to the jth initial pixel unit of the ith row is the second rendering rule;
wherein the third rendering rule is: in the ith row and the jth of the target pixel units, the second color value of the second target sub-pixel is a first color value of the middle sub-pixel with the same color in the ith row and the jth of the middle pixel units, and the second color value of the first target sub-pixel is the maximum value of the first color values of the middle sub-pixels with the same color in the ith row and the jth of the middle pixel units; the second color value of the third target sub-pixel is the maximum value of the first color values of the intermediate sub-pixels with the same color in the j+1th intermediate pixel unit of the ith row and the j intermediate pixel unit of the ith row.
The present invention also provides an image rendering apparatus for providing image information of a target image to be displayed for a display substrate, the display substrate including: a plurality of sub-pixels distributed in an array, wherein the sub-pixels are divided into a plurality of groups, and each group comprises two rows and four columns of the sub-pixels; in the same group, the colors of the four sub-pixels in each row include: the first color, the second color, the third color and the fourth color, and the colors of two adjacent sub-pixels in the same column are different; in the same group, the colors of the four sub-pixels located in two adjacent rows and two adjacent columns include: the first color, the second color, the third color, and the fourth color; wherein for a plurality of the sub-pixels of the same line, every three of the sub-pixels constitute one pixel, the image rendering apparatus comprises:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring an initial image, the initial image comprises a plurality of initial pixel units which are in one-to-one correspondence with a plurality of pixels in the display substrate, each initial pixel unit comprises a plurality of initial sub-pixels, and the colors of the plurality of initial sub-pixels are respectively as follows: the first color, the second color, and the third color;
The processing module is used for processing the initial image to obtain an intermediate image, the intermediate image comprises a plurality of intermediate pixel units which are in one-to-one correspondence with the initial pixel units in the initial image, each intermediate pixel unit comprises a plurality of intermediate sub-pixels, and the colors of the intermediate sub-pixels are respectively as follows: the first color, the second color, the third color, and the fourth color;
the classification module is used for determining the color type of each initial pixel unit according to the pixel information of each initial sub-pixel in each initial pixel unit;
the rendering module is used for determining a rendering rule of a target pixel unit corresponding to the initial pixel unit in the target image according to the color type of the initial pixel unit and the color type of at least one initial pixel unit positioned on at least one side of the initial pixel unit for each initial pixel unit; the rendering rule includes: a mapping relationship between the pixel information of each intermediate sub-pixel in the intermediate pixel unit and the pixel information of each target sub-pixel in the target pixel unit;
And the generation module is used for generating the image information of the target image according to the rendering rule of each target pixel unit.
The invention also provides a display device, which comprises a display substrate, an image rendering device and a driving device;
the driving device is configured to: and providing a driving signal for the display substrate according to the image information of the target image output by the image rendering device so as to enable the display substrate to display the target image.
The present invention also provides a computer-readable storage medium in which the computer program, when executed by a processor, implements the image rendering method described above.
The invention also provides an electronic device, wherein the electronic device comprises:
a processor and a memory;
the memory stores a computer program; the computer program, when executed by the processor, implements an image rendering method as described above.
Drawings
The accompanying drawings are included to provide a further understanding of the invention, and are incorporated in and constitute a part of this specification, illustrate the invention and together with the description serve to explain, without limitation, the invention. In the drawings:
fig. 1 is a schematic layout diagram of sub-pixels of a display substrate according to an embodiment of the present invention;
FIG. 2a is a schematic diagram of processing an input initial image into an intermediate image provided in an embodiment of the present invention;
FIG. 2b is a schematic diagram of a target pixel unit and an intermediate pixel unit according to an embodiment of the present invention;
FIG. 3 is a flowchart of an image rendering method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a row of initial pixel units according to an embodiment of the present invention;
FIG. 5a is one of the maps between the middle pixel unit and the target pixel unit;
FIG. 5b is a second mapping relationship between the middle pixel unit and the target pixel unit;
fig. 6a and fig. 6b are schematic diagrams of displaying images with alternating black and white on a display substrate according to an embodiment of the present invention;
fig. 7a and fig. 7b are schematic diagrams showing an image of a white vertical line displayed on a display substrate according to an embodiment of the present invention;
fig. 8 is a functional block diagram of an image rendering apparatus according to an embodiment of the present invention.
Detailed Description
The following describes specific embodiments of the present invention in detail with reference to the drawings. It should be understood that the detailed description and specific examples, while indicating and illustrating the invention, are not intended to limit the invention.
Unless defined otherwise, technical or scientific terms used in the embodiments of the present invention should be given the ordinary meaning as understood by one of ordinary skill in the art to which the present invention belongs. The terms "first," "second," and the like, as used herein, do not denote any order, quantity, or importance, but rather are used to distinguish one element from another. Likewise, the word "comprising" or "comprises", and the like, means that elements or items preceding the word are included in the element or item listed after the word and equivalents thereof, but does not exclude other elements or items. The terms "connected" or "connected," and the like, are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", etc. are used merely to indicate relative positional relationships, which may also be changed when the absolute position of the object to be described is changed.
Fig. 1 is a schematic diagram of arrangement of sub-pixels of a display substrate according to an embodiment of the present invention, fig. 2a is a schematic diagram of processing an input initial image into an intermediate image according to an embodiment of the present invention, wherein a left image in fig. 2 is the initial image, a right image is the intermediate image as shown in fig. 1, the display substrate includes a plurality of sub-pixels distributed in an array, and an aspect ratio of the sub-pixels is 3:1, the plurality of sub-pixels are divided into a plurality of groups, each group comprises two rows and four columns of sub-pixels, and in the same group, the colors of the four sub-pixels in each row comprise: the colors of two adjacent sub-pixels in the same column are different, and in the same group, the colors of four sub-pixels located in two adjacent rows and two adjacent columns include: a first color, a second color, a third color, and a fourth color. The first color may be red R, the second color may be green G, the third color may be blue B, and the fourth color may be white W. As can be seen from fig. 1 and 2a, the number of sub-pixels in the display substrate is the same as the number of sub-pixels in the initial image, but is only 1/4 of the number of sub-pixels in the intermediate image, and the conventional image rendering method will lose 1/4 of the pixel information in the process of transmitting the intermediate image to the display substrate, so that the display color is diluted, and the display effect is affected.
In view of the above, an embodiment of the present invention provides an image rendering method applied to the above display substrate, by which image information of a target image to be displayed can be provided for the display substrate, wherein in the above display substrate, for a plurality of sub-pixels in a same row, every three sub-pixels form a pixel. Fig. 2b is a schematic diagram of a target pixel unit and an intermediate pixel unit according to an embodiment of the present invention, and fig. 3 is a flowchart of an image rendering method according to an embodiment of the present invention, and the image rendering method includes, in combination with fig. 1 to 3:
s1, acquiring image information of an initial image, wherein the initial image comprises a plurality of initial pixel units corresponding to a plurality of pixels in a display substrate one by one, each initial pixel unit comprises a plurality of initial sub-pixels, and the colors of the plurality of initial sub-pixels are respectively as follows: a first color, a second color, and a third color.
In this step, the one-to-one correspondence between the plurality of initial pixel units in the initial image and the plurality of pixels in the display substrate means that, when a certain target pixel unit in the initial image is the ith row, the pixel in the display substrate corresponding to the initial pixel unit is also the ith row. Each of the initial pixel units may include three initial sub-pixels having colors of red, green, and blue, respectively.
S2, processing the initial image to obtain an intermediate image, wherein the intermediate image comprises a plurality of intermediate pixel units corresponding to a plurality of initial pixel units in the initial image one by one, each intermediate pixel unit comprises a plurality of intermediate sub-pixels, and the colors of the intermediate sub-pixels are respectively as follows: a first color, a second color, a third color, and a fourth color.
In this step, the one-to-one correspondence between the plurality of initial pixel units in the initial image and the plurality of intermediate pixel units in the intermediate image means that, when a certain initial pixel unit in the initial image is the ith row and the jth, the intermediate pixel unit in the intermediate image corresponding to the initial pixel unit is also the ith row and the jth. Each intermediate pixel unit may include four intermediate sub-pixels, the colors of which are red, green, blue, and white, respectively. In each intermediate pixel unit, an intermediate sub-pixel corresponding to white may be determined according to an initial sub-pixel corresponding to red, an initial sub-pixel corresponding to green, and an initial sub-pixel corresponding to blue in the initial pixel unit corresponding to the intermediate pixel unit.
S3, determining the color type of each initial pixel unit according to the pixel information of each initial sub-pixel in each initial pixel unit.
In this step, the pixel information of each initial sub-pixel includes a gray scale, the range of the gray scale may be 0 to 255, and the color type of the initial pixel unit may include black, white, and color, for example, when the gray scale of each initial sub-pixel in the initial pixel unit is low, the color type of the initial pixel unit may be classified as black, and when the gray scale of each initial sub-pixel in the initial pixel unit is high, the color type of the initial pixel unit may be classified as white or color.
S4, for each initial pixel unit, determining a rendering rule of a target pixel unit corresponding to the initial pixel unit in the target image to be generated according to the color type of the initial pixel unit and the color type of at least one initial pixel unit positioned on at least one side of the initial pixel unit. The rendering rules include: and the mapping relation between the pixel information of each intermediate sub-pixel in the intermediate pixel unit and the pixel information of each target sub-pixel in the target pixel unit.
S5, generating image information of the target image according to rendering rules of each target pixel unit.
The initial image in the embodiment of the invention can be regarded as being spliced by a plurality of initial sub-pixels, and in the initial pixel unit, when each initial sub-pixel presents a certain gray level, the pixel areas with a certain color are formed in a mixed mode. The image information of the initial image may include pixel information of each initial sub-pixel, and the pixel information may include information of gray scale or color value, which will be described later. Similarly, the target pixel can be regarded as being formed by stitching a plurality of target sub-pixels.
In the embodiment of the present invention, a plurality of target pixel units in a target image are in one-to-one correspondence with a plurality of initial pixel units in an initial image, and therefore, the plurality of target pixel units in the target image are in one-to-one correspondence with a plurality of pixels in a display substrate, and for each target pixel unit, the target pixel unit may include three target sub-pixels, and the arrangement manner of the colors of the target sub-pixels in the target pixel unit is the same as the arrangement manner of the colors of the sub-pixels of the pixels in the display substrate corresponding thereto, for example, when the arrangement manner of the colors of the sub-pixels of the pixels in the display substrate is red, green, and blue, the arrangement manner of the colors of the three target sub-pixels in the target pixel unit is red, green, and blue.
In the embodiment of the invention, the rendering rule of the target pixel unit corresponding to the initial pixel unit in the target image to be generated can be determined according to the color type of the initial pixel unit and the color type of at least one initial pixel unit positioned at least one side of the initial pixel unit, for example, when the jth initial pixel unit and the initial pixel unit at one side of the jth initial pixel unit in the ith row are continuous black-white stripes, the mapping relationship between the pixel information of the middle sub-pixel of the jth middle pixel unit in the ith row and the pixel information of the target sub-pixel corresponding to the same color in the jth target pixel unit in the ith row can be established, and at this time, the obtained jth target pixel unit in the ith row and the target pixel unit at one side of the jth target pixel unit are also continuous black-white stripes and have higher contrast; when the jth initial pixel unit in the ith row and the initial pixel unit at one side of the jth initial pixel unit are not continuous black and white stripes, that is, when a picture is displayed normally, a mapping relationship can be established between pixel information of an intermediate sub-pixel corresponding to the same color in a plurality of adjacent intermediate pixel units and pixel information of one target sub-pixel in the jth target pixel unit in the ith row, and at this time, the obtained jth target pixel unit in the ith row considers the influence of the plurality of adjacent intermediate pixel units, so that the finally formed picture is softer and finer.
In summary, by adopting the image rendering method provided by the embodiment of the invention, one target sub-pixel in the target pixel unit can be rendered according to the intermediate sub-pixel corresponding to the same color in the adjacent plurality of intermediate pixel units in the same row, so that each intermediate sub-pixel in the intermediate image can be fully utilized, the loss of pixel information is prevented, the problem of resolution reduction after the white sub-pixel is added in the display substrate is effectively solved, and the display effect is further enhanced.
In the following, a detailed description of an image rendering method according to an embodiment of the present invention is given, where the pixel information of the intermediate sub-pixel includes a first color value, and the pixel information of the target sub-pixel includes a second color value, and first, a process of processing an initial image to obtain the intermediate image according to the embodiment of the present invention is given, by taking an initial pixel unit in the initial image as an example, specifically:
converting the gray scale of each initial sub-pixel in the initial image into a linear signal and performing normalization processing, specifically referring to formula (1):
Figure BDA0002562389470000101
where Rin is the gray level of the initial subpixel corresponding to red, gin is the gray level of the initial subpixel corresponding to green, bin is the gray level of the initial subpixel corresponding to blue, and γ=2.2.
And according to the processed signal values R0, G0 and B0, calculating to obtain a first color value of each intermediate sub-pixel of the intermediate pixel unit corresponding to the initial pixel unit, thereby determining the intermediate pixel unit. See specifically formulas (2) to (4):
W1=min(R0,G0,B0) (2)
Figure BDA0002562389470000111
(R1,G1,B1)=gain*(R0,G0,B0)-W1 (4)
wherein W1 is the first color value of the intermediate sub-pixel corresponding to white, R1 is the first color value of the intermediate sub-pixel corresponding to red, G1 is the first color value of the intermediate sub-pixel corresponding to green, B1 is the first color value of the intermediate sub-pixel corresponding to blue, and gain is the intermediate coefficient.
And processing each initial pixel unit in the initial image according to the formulas (1) to (4) to obtain an intermediate image.
In some embodiments, step S3 includes: for each of the initial pixel cells,
when the gray scale of each initial sub-pixel in the initial pixel unit is smaller than a preset threshold value, determining the color type of the initial pixel unit as a first type.
When the gray level of each initial sub-pixel in the initial pixel unit is larger than or equal to a preset threshold value and the gray level of each initial sub-pixel is equal, determining that the color type of the initial pixel unit is the second type.
When the gray level of each initial sub-pixel in the initial pixel unit is larger than or equal to a preset threshold value and the gray levels of at least two of the initial sub-pixels are unequal, determining that the color type of the initial pixel unit is a third type.
For example, the preset threshold is 50, and step S3 may be expressed by equation (5):
Figure BDA0002562389470000112
wherein i is the line number of the initial pixel unit, j is the line number of the initial pixel unit, label (i, j) is the color type of the i-th line and j-th column initial pixel unit, and when Label=0, the color type of the initial pixel unit is the first type (black); label=1, the color type of the initial pixel unit is the second type (white); label=3, the color type of the initial pixel unit is indicated as the third type (color).
In some embodiments, step S4 includes:
for the jth initial pixel unit in the ith row, when the color type of the initial pixel unit is the first type or the second type, the jth-1 initial pixel unit to the jth-m initial pixel unit in the ith row are taken as a first group of initial pixel units, the jth+1 initial pixel unit to the jth+m initial pixel unit in the ith row are taken as a second group of initial pixel units, and the color type of each initial pixel unit in the first group of initial pixel units and the color type of each initial pixel unit in the second group of initial pixel units are detected.
And judging whether the first group of initial pixel units and the second group of initial pixel units are stripe pixel groups or not according to the color types of the initial pixel units in the first group of initial pixel units and the second group of initial pixel units.
When at least one of the first group of initial pixel units and the second group of initial pixel units is a stripe pixel group, determining a rendering rule of a target pixel unit corresponding to a j-th initial pixel unit in an i-th row as a first rendering rule, wherein the first rendering rule is as follows: in the jth target pixel unit of the ith row, the second color value of the first target subpixel is x times the first color value of the same-color intermediate subpixel in the jth intermediate pixel unit of the ith row, and the second color value of the third target subpixel is x times the first color value of the same-color intermediate subpixel in the jth intermediate pixel unit of the ith row, wherein 0 < x < 1, for example, x=1/2, and the second color value of the second target subpixel is equal to the first color value of the same-color intermediate subpixel in the jth intermediate pixel unit of the ith row.
Fig. 4 is a schematic diagram of a row of initial pixel units according to an embodiment of the present invention, as shown in fig. 4, specifically, a stripe pixel group may refer to: for any two adjacent initial pixel units in the group, one of the color types is of a first type and the other of the color types is of a second type, i.e. the plurality of initial pixel units in the group are continuous black and white stripes. In the embodiment of the present invention, since in step S3, the first color type (black) is marked as label=0 and the second color type (white) is marked as label=1, when determining whether the first and second sets of initial pixel units are stripe pixel groups, it may be determined whether the set of initial pixel units are stripe pixel groups according to the accumulated sum of the Label values of the plurality of initial pixel units in the set of initial pixel units and the Label value of the initial pixel unit a of the color type to be confirmed. Referring to formula (6), taking an example that the first and second groups of initial pixel units each include 9 initial pixel units, when the sum of the Label value of the group of initial pixel units located at the left side and the Label value of the initial pixel unit a of the color type to be confirmed is 341, the arrangement mode of the Label value of the group of initial pixel units and the Label value of the initial pixel unit a of the color type to be confirmed is 0101010101, that is, the color type of the ith row of j-9 initial pixel units is black, the color type of the ith row of j-8 initial pixel units is white, the color type of the ith row of j-7 initial pixel units is black, the color type of the ith row of j-6 initial pixel units is white, and so on. Thus, the set of initial pixel cells can be determined as a continuous black and white stripe, i.e., a striped pixel set. When the sum of the Label values of the group of initial pixel units located at the left side and the Label value of the initial pixel unit A of the color type to be confirmed is 682, the arrangement mode of the Label values of the group of initial pixel units and the Label values of the initial pixel unit A of the color type to be confirmed is 1010101010, namely, the color type of the j-9 th initial pixel unit of the i-th row is white, the color type of the j-8 th initial pixel unit of the i-th row is black, the color type of the j-7 th initial pixel unit of the i-th row is white, the color type of the j-6 th initial pixel unit of the i-th row is black, and so on. Thus, the set of initial pixel cells may also be determined to be a continuous black and white stripe, i.e., a striped pixel set. Similarly, when the sum of the Label values of the set of initial pixel units located on the right side and the Label value of the initial pixel unit a of the color type to be confirmed is 341, the arrangement manner of the Label values of the set of initial pixel units and the Label values of the initial pixel unit a of the color type to be confirmed is "0101010101", and when the sum of the Label values of the set of initial pixel units located on the right side and the Label values of the initial pixel unit a of the color type to be confirmed is 682, the arrangement manner of the Label values of the set of initial pixel units and the Label values of the initial pixel unit a of the color type to be confirmed is "1010101010", which is not described herein.
Figure BDA0002562389470000131
It should be noted that, if the initial pixel unit a of the color type to be confirmed is at the edge of the initial image, the number of the plurality of initial pixel units on one side thereof may be less than 9, and at this time, the color types of the missing initial pixel units are complemented with Label=0. Of course, the number of the initial pixel units in each group in the above embodiment is merely illustrative, and specific values thereof may be determined according to actual needs and are not limited herein.
Fig. 5a is one of the mapping relationship diagrams between the intermediate pixel units and the target pixel units, as shown in fig. 5a, in the embodiment of the present invention, an ith row of a jth target pixel unit and an ith row of a jth intermediate pixel unit are taken as examples, where the ith row of a jth target pixel unit includes a target sub-pixel Ra corresponding to red, a target sub-pixel Ga corresponding to green, and a target sub-pixel Ba corresponding to blue; the jth intermediate pixel unit of the ith row includes an intermediate subpixel Rb corresponding to red, an intermediate subpixel Gb corresponding to green, an intermediate subpixel Bb corresponding to blue, and an intermediate subpixel Wb corresponding to white. Referring to formula (7), flag represents a rendering rule of a target pixel unit, and if Flag (i, j) =1, that is, the rendering rule of the jth target pixel unit in the ith row is the first rendering rule, in the jth target pixel unit in the ith row, the second color value R of the target sub-pixel Ra corresponding to red is 1/2 of the first color value R1 of the intermediate sub-pixel Rb corresponding to red in the jth intermediate pixel unit in the ith row, and the second color value B of the target sub-pixel Ba corresponding to blue is 1/2 of the first color value B1 of the intermediate sub-pixel Bb corresponding to blue in the jth intermediate pixel unit in the ith row. The second color value G of the target subpixel Ga corresponding to green is the first color value G1 of the intermediate subpixel Gb corresponding to green in the j-th intermediate pixel unit of the i-th row.
If Flag (i, j) =1, then
Figure BDA0002562389470000141
In some embodiments, when the first set of initial pixel units and the second set of initial pixel units are both non-striped pixel units, determining a rendering rule of a target pixel unit corresponding to the j-th initial pixel unit in the i-th row as a second rendering rule, where the second rendering rule is:
in the ith row and the jth target pixel unit, the second color value of the second target sub-pixel is equal to the first color value of the middle sub-pixel with the same color in the ith row and the jth middle pixel unit, and the second color value of the first target sub-pixel is determined by the first color values of the middle sub-pixels with the same color in the ith row and the jth middle pixel unit and the ith row and the jth middle pixel unit. The second color value of the third target subpixel is determined by the first color value of the same-color intermediate subpixel in the j+1th intermediate pixel unit of the ith row and the j intermediate pixel unit of the ith row.
Specifically, in the second rendering rule, for the jth target pixel unit in the ith row, the second color value of the first target subpixel is an average value of the first color values of the intermediate subpixels of the same color in the jth-1 intermediate pixel unit in the ith row and the jth intermediate pixel unit in the ith row.
The second color value of the third target subpixel is an average value of the first color values of the same-color intermediate subpixels in the ith row of the jth+1th intermediate pixel unit and the ith row of the jth intermediate pixel unit.
Fig. 5b is a second mapping relationship diagram between an intermediate pixel unit and a target pixel unit, as shown in fig. 5b, in the embodiment of the present invention, an ith row of an ith target pixel unit, an ith row of an ith intermediate pixel unit, an ith row of an ith-1 th intermediate pixel unit, and an ith row of an ith-1 th intermediate pixel unit are taken as examples, where the ith row of an ith target pixel unit includes a target sub-pixel Ra corresponding to red, a target sub-pixel Ga corresponding to green, and a target sub-pixel Ba corresponding to blue, and the ith row of an ith intermediate pixel unit, an ith row of an ith-1 th intermediate pixel unit, and an ith row of an ith-1 th intermediate pixel unit include an intermediate sub-pixel Rb corresponding to red, an intermediate sub-pixel Gb corresponding to green, an intermediate sub-pixel Bb corresponding to blue, and an intermediate sub-pixel Wb corresponding to white. Referring to formula (8), when Flag (i, j) =0, that is, the rendering rule of the ith row of jth target pixel units is the second rendering rule, in the ith row of jth target pixel units, the second color value R of the target sub-pixel Ra corresponding to red is the average of the first color value R1 of the intermediate sub-pixel Rb corresponding to red in the ith row of jth intermediate pixel units and the first color value R1 of the intermediate sub-pixel Rb corresponding to red in the ith row of jth-1 intermediate pixel units, and the second color value B of the target sub-pixel Ba corresponding to blue is the average of the first color value B1 of the intermediate sub-pixel Bb corresponding to blue in the ith row of jth intermediate pixel units and the first color value B1 of the intermediate sub-pixel Bb corresponding to blue in the ith row of jth+1th intermediate pixel units. The second color value G of the target subpixel Ga corresponding to green is the first color value G1 of the intermediate subpixel Gb corresponding to green in the j-th intermediate pixel unit of the i-th row.
If Flag (i, j) =0, then
Figure BDA0002562389470000151
In some embodiments, for each initial pixel unit, determining a rendering rule of a target pixel unit corresponding to the initial pixel unit in the target image to be generated according to a color type of the initial pixel unit and a color type of a plurality of initial pixel units located on at least one side of the initial pixel unit, and further includes:
for the jth initial pixel unit of the ith row, when the color type of the initial pixel unit is the third type, judging whether at least one of the jth-1 initial pixel unit of the ith row and the jth+1th initial pixel unit of the ith row is the first type, if so, determining that the rendering rule of the target pixel unit corresponding to the jth initial pixel unit of the ith row is the third rendering rule, and if not, determining that the rendering rule of the target pixel unit corresponding to the jth initial pixel unit of the ith row is the second rendering rule, wherein the third rendering rule is as follows: in the ith row and the jth target pixel unit, the second color value of the second target sub-pixel is the first color value of the intermediate sub-pixel with the same color in the ith row and the jth intermediate pixel unit, and the second color value of the first target sub-pixel is the maximum value of the first color values of the intermediate sub-pixels with the same color in the ith row and the jth intermediate pixel unit and the ith row and the jth intermediate pixel unit. The second color value of the third target subpixel is the maximum value of the first color values of the intermediate subpixels of the same color in the jth intermediate pixel unit of the ith row and the jth intermediate pixel unit of the ith row.
As shown in fig. 5b, in the embodiment of the present invention, an ith row of a jth target pixel unit, an ith row of a jth intermediate pixel unit, an ith row of a jth-1 intermediate pixel unit, and an ith row of a jth+1th intermediate pixel unit are taken as examples, wherein the ith row of a jth target pixel unit includes a target sub-pixel Ra corresponding to red, a target sub-pixel Ga corresponding to green, and a target sub-pixel Ba corresponding to blue, and the ith row of a jth intermediate pixel unit, the ith row of a jth-1 intermediate pixel unit, and the ith row of a jth+1th intermediate pixel unit each include an intermediate sub-pixel Rb corresponding to red, an intermediate sub-pixel Gb corresponding to green, an intermediate sub-pixel Bb corresponding to blue, and an intermediate sub-pixel Wb corresponding to white. Referring to formula (9), when Flag (i, j) =2, that is, the rendering rule of the ith row of jth target pixel units is the third rendering rule, in the ith row of jth target pixel units, the second color value R of the target sub-pixel Ra corresponding to red is the larger of the first color value R1 of the intermediate sub-pixel Rb corresponding to red in the ith row of jth intermediate pixel units and the first color value R1 of the intermediate sub-pixel Rb corresponding to red in the ith row of jth-1 intermediate pixel units, and the second color value B of the target sub-pixel Ba corresponding to blue is the larger of the first color value B1 of the intermediate sub-pixel Bb corresponding to blue in the ith row of jth intermediate pixel units and the first color value B1 of the intermediate sub-pixel Bb corresponding to blue in the ith row of jth-1 intermediate pixel units. The second color value G of the target subpixel Ga corresponding to green is the first color value G1 of the intermediate subpixel Gb corresponding to green in the j-th intermediate pixel unit of the i-th row.
If Flag (i, j) =2, then
Figure BDA0002562389470000161
In the above embodiment, only the ith row and jth target pixel unit includes the target sub-pixel Ra corresponding to red, the target sub-pixel Ga corresponding to green, and the target sub-pixel Ba corresponding to blue as an example, and in practice, the ith row and jth target pixel unit may include the target sub-pixel Wa corresponding to white, the target sub-pixel Ra corresponding to red, and the target sub-pixel Ga corresponding to green, where the second color value W of the target sub-pixel Wa corresponding to white in the ith row and jth target pixel unit is the larger of the first color value W1 of the intermediate sub-pixel Wb corresponding to white in the jth intermediate pixel unit and the first color value W1 of the intermediate sub-pixel Wb corresponding to white in the ith row and jth-1 intermediate pixel unit. The second color value G corresponding to the target subpixel Ga of green is the larger of the first color value G1 corresponding to the intermediate subpixel Gb of green in the jth intermediate pixel unit of the ith row and the first color value G1 corresponding to the intermediate subpixel Gb of green in the jth+1th intermediate pixel unit of the ith row. The second color value R of the target subpixel Ra corresponding to red is the first color value R1 of the intermediate subpixel Rb corresponding to red in the j-th intermediate pixel unit of the i-th row.
Fig. 6a and fig. 6b are schematic diagrams of displaying images with alternating black and white on a display substrate according to an embodiment of the present invention, and in conjunction with fig. 6a and fig. 6b, at this time, the color types of a plurality of initial pixel units on one side of the initial pixel units are continuous black and white stripes, so that a target image may be generated by using a first rendering rule, and the display substrate may be driven to display according to the target image, and each three sub-pixels in the display substrate may be displayed as one pixel, thereby implementing a vertical line with alternating black and white. Fig. 7a and fig. 7b are schematic diagrams of displaying an image of a white vertical line on the display substrate according to the embodiment of the present invention, and in conjunction with fig. 7a and fig. 7b, at this time, the color types of the plurality of initial pixel units on both sides of the initial pixel unit are not continuous black-white stripes, so that a target image can be generated by using a second rendering rule, and the display substrate is driven to display according to the target image, where in fig. 7a and fig. 7b, the main pixel for displaying the white vertical line is a part circled by a dotted line, and because of using the second rendering rule, two sub-pixels close to the main pixel in two pixels on both sides of the main pixel are also turned on, and at this time, a total of five sub-pixels are turned on, so that the contrast of the vertical line can be enhanced, and the definition of the image can be improved.
The embodiment of the invention also provides an image rendering device, which is used for providing image information of a target image to be displayed for a display substrate, wherein the display substrate comprises: a plurality of sub-pixels distributed in an array, wherein the plurality of sub-pixels are divided into a plurality of groups, and each group comprises two rows and four columns of sub-pixels; in the same group, the colors of the four subpixels in each row include: the first color, the second color, the third color and the fourth color, and the colors of two adjacent sub-pixels in the same column are different; in the same group, the colors of four sub-pixels located in two adjacent rows and two adjacent columns include: a first color, a second color, a third color, and a fourth color. For a plurality of sub-pixels in the same row, each three sub-pixels form a pixel, and fig. 8 is a functional block diagram of an image rendering apparatus according to an embodiment of the present invention, as shown in fig. 8, the image rendering apparatus includes:
the acquiring module 11 is configured to acquire an initial image, where the initial image includes a plurality of initial pixel units corresponding to a plurality of pixels in the display substrate one by one, each of the initial pixel units includes a plurality of initial sub-pixels, and colors of the plurality of initial sub-pixels are respectively: a first color, a second color, and a third color.
The processing module 12 is configured to process the initial image to obtain an intermediate image, where the intermediate image includes a plurality of intermediate pixel units corresponding to a plurality of initial pixel units in the initial image one by one, each intermediate pixel unit includes a plurality of intermediate sub-pixels, and colors of the plurality of intermediate sub-pixels are respectively: a first color, a second color, a third color, and a fourth color.
The classification module 13 is configured to determine a color type of each initial pixel unit according to pixel information of each initial sub-pixel in each initial pixel unit.
The rendering module 14 is configured to determine, for each initial pixel unit, a rendering rule of a target pixel unit corresponding to the initial pixel unit in the target image according to a color type of the initial pixel unit and a color type of a plurality of initial pixel units located on at least one side of the initial pixel unit. The rendering rules include: and the mapping relation between the pixel information of each intermediate sub-pixel in the intermediate pixel unit and the pixel information of each target sub-pixel in the target pixel unit.
A generating module 15, configured to generate image information of the target image according to the rendering rule of each target pixel unit.
The embodiment of the invention also provides display equipment, which comprises a display substrate, an image rendering device and a driving device.
The driving device is configured to: and providing a driving signal for the display substrate according to the target image output by the image rendering device so as to enable the display substrate to display the target image.
The embodiment of the invention also provides a computer readable storage medium, wherein the computer program realizes the image rendering method when being executed by a processor.
The embodiment of the invention also provides electronic equipment, which comprises:
a processor and a memory.
The memory stores a computer program. The computer program, when executed by a processor, implements the image rendering method described above.
The computer readable storage medium includes, but is not limited to, the following readable media: such as Random Access Memory (RAM), read Only Memory (ROM), non-volatile random access memory (NVRAM), programmable Read Only Memory (PROM), erasable Programmable Read Only Memory (EPROM), electrically Erasable PROM (EEPROM), flash memory, magnetic or optical data storage, registers, magnetic disk or tape, optical storage medium such as a Compact Disc (CD) or DVD (digital versatile disc), and other non-transitory media. Examples of processors include, but are not limited to, general purpose processors, central Processing Units (CPUs), microprocessors, digital Signal Processors (DSPs), controllers, microcontrollers, state machines, and the like.
It is to be understood that the above embodiments are merely illustrative of the application of the principles of the present invention, but not in limitation thereof. Various modifications and improvements may be made by those skilled in the art without departing from the spirit and substance of the invention, and are also considered to be within the scope of the invention.

Claims (10)

1. An image rendering method is used for providing image information of a target image to be displayed for a display substrate, wherein the display substrate comprises a plurality of sub-pixels distributed in an array, the plurality of sub-pixels are divided into a plurality of groups, and each group comprises two rows and four columns of sub-pixels; in the same group, the colors of the four sub-pixels in each row include: the first color, the second color, the third color and the fourth color, and the colors of two adjacent sub-pixels in the same column are different; in the same group, the colors of the four sub-pixels located in two adjacent rows and two adjacent columns include: the first color, the second color, the third color, and the fourth color; wherein for a plurality of the sub-pixels of the same line, every three of the sub-pixels constitute one pixel, the image rendering method comprises:
Obtaining image information of an initial image, wherein the initial image comprises a plurality of initial pixel units corresponding to a plurality of pixels in the display substrate one by one, each initial pixel unit comprises a plurality of initial sub-pixels, and the colors of the initial sub-pixels are respectively as follows: the first color, the second color, and the third color;
processing the initial image to obtain an intermediate image, wherein the intermediate image comprises a plurality of intermediate pixel units corresponding to the initial pixel units in the initial image one by one, each intermediate pixel unit comprises a plurality of intermediate sub-pixels, and the colors of the intermediate sub-pixels are respectively as follows: the first color, the second color, the third color, and the fourth color;
determining the color type of each initial pixel unit according to the pixel information of each initial sub-pixel in each initial pixel unit;
for each initial pixel unit, determining a rendering rule of a target pixel unit corresponding to the initial pixel unit in the target image according to the color type of the initial pixel unit and the color type of at least one initial pixel unit positioned on at least one side of the initial pixel unit; the rendering rule includes: a mapping relationship between pixel information of each intermediate sub-pixel in the intermediate pixel unit and pixel information of each target sub-pixel in the target pixel unit;
And generating image information of the target image according to the rendering rule of each target pixel unit.
2. The image rendering method of claim 1, wherein the pixel information of the initial sub-pixel includes a gray scale,
the determining the color type of each initial pixel unit according to the pixel information of each initial sub-pixel in each initial pixel unit includes: for each of said initial pixel cells,
when the gray scale of each initial sub-pixel in the initial pixel unit is smaller than a preset threshold value, determining the color type of the initial pixel unit as a first type;
when the gray level of each initial sub-pixel in the initial pixel unit is larger than or equal to the preset threshold value and the gray level of each initial sub-pixel is equal, determining that the color type of the initial pixel unit is a second type;
and when the gray level of each initial sub-pixel in the initial pixel unit is larger than or equal to the preset threshold value and the gray levels of at least two of the initial sub-pixels are unequal, determining that the color type of the initial pixel unit is a third type.
3. The image rendering method of claim 2, wherein the pixel information of the intermediate sub-pixel includes a first color value, the pixel information of the target sub-pixel includes a second color value,
For each initial pixel unit, determining a rendering rule of a target pixel unit corresponding to the initial pixel unit in a target image to be generated according to a color type of the initial pixel unit and color types of a plurality of initial pixel units positioned on at least one side of the initial pixel unit, including:
for the jth initial pixel unit in the ith row, when the color type of the initial pixel unit is the first type or the second type, taking the jth-1 initial pixel unit to the jth-m initial pixel unit in the ith row as a first group of initial pixel units, taking the (j+1) th initial pixel unit to the (j+m) th initial pixel unit in the ith row as a second group of initial pixel units, and detecting the color type of each initial pixel unit in the first group of initial pixel units and the color type of each initial pixel unit in the second group of initial pixel units;
judging whether the first group of initial pixel units and the second group of initial pixel units are stripe pixel groups or not according to the color types of the initial pixel units in the first group of initial pixel units and the second group of initial pixel units;
When at least one of the first group of initial pixel units and the second group of initial pixel units is the stripe pixel group, determining a rendering rule of the target pixel unit corresponding to the jth initial pixel unit in the ith row as a first rendering rule, wherein the first rendering rule is as follows: in the ith row and the jth of the target pixel units, the second color value of the first target sub-pixel is x times of the first color value of the middle sub-pixel with the same color in the ith row and the jth of the middle pixel units, the second color value of the third target sub-pixel is x times of the first color value of the middle sub-pixel with the same color in the ith row and the jth of the middle pixel units, and the second color value of the second target sub-pixel is equal to the first color value of the middle sub-pixel with the same color in the ith row and the jth of the middle pixel units, and 0 < x < 1.
4. The image rendering method according to claim 3, wherein the pixel information of the intermediate sub-pixel includes a first color value, the pixel information of the target sub-pixel includes a second color value, and when the first and second sets of initial pixel units are each a non-striped pixel group, the rendering rule of the target pixel unit corresponding to the j-th initial pixel unit in the i-th row is determined to be a second rendering rule, where the second rendering rule is:
In the ith row and the jth of the target pixel units, the second color value of the second target sub-pixel is equal to the first color value of the middle sub-pixel with the same color in the ith row and the jth of the middle pixel units, and the second color value of the first target sub-pixel is determined by the first color value of the middle sub-pixel with the same color in the ith row and the jth of the middle pixel units; the second color value of the third target sub-pixel is determined by the first color value of the intermediate sub-pixel with the same color in the j+1th intermediate pixel unit in the ith row and the j intermediate pixel unit in the ith row.
5. The image rendering method according to claim 4, wherein in the second rendering rule, for the ith row of the jth target pixel unit, the second color value of the first target subpixel is an average value of the first color values of the intermediate subpixels of the same color in the ith row of the jth-1 th intermediate pixel unit and the ith row of the jth intermediate pixel unit; the second color value of the third target sub-pixel is the average value of the first color values of the intermediate sub-pixels with the same color in the j+1th intermediate pixel unit in the ith row and the j intermediate pixel unit in the ith row.
6. The method according to claim 4, wherein for each of the initial pixel units, determining a rendering rule of a target pixel unit corresponding to the initial pixel unit in the target image according to a color type of the initial pixel unit and a color type of a plurality of initial pixel units located at least one side of the initial pixel unit, further comprises:
for the jth initial pixel unit of the ith row, when the color type of the initial pixel unit is the third type, judging whether the color type of at least one of the jth-1 initial pixel unit of the ith row and the (j+1) th initial pixel unit of the ith row is the first type, if so, determining that the rendering rule of the target pixel unit corresponding to the jth initial pixel unit of the ith row is a third rendering rule, and if not, determining that the rendering rule of the target pixel unit corresponding to the jth initial pixel unit of the ith row is the second rendering rule;
wherein the third rendering rule is: in the ith row and the jth of the target pixel units, the second color value of the second target sub-pixel is a first color value of the middle sub-pixel with the same color in the ith row and the jth of the middle pixel units, and the second color value of the first target sub-pixel is the maximum value of the first color values of the middle sub-pixels with the same color in the ith row and the jth of the middle pixel units; the second color value of the third target sub-pixel is the maximum value of the first color values of the intermediate sub-pixels with the same color in the j+1th intermediate pixel unit of the ith row and the j intermediate pixel unit of the ith row.
7. An image rendering apparatus for providing image information of a target image to be displayed for a display substrate, the display substrate comprising: a plurality of sub-pixels distributed in an array, wherein the sub-pixels are divided into a plurality of groups, and each group comprises two rows and four columns of the sub-pixels; in the same group, the colors of the four sub-pixels in each row include: the first color, the second color, the third color and the fourth color, and the colors of two adjacent sub-pixels in the same column are different; in the same group, the colors of the four sub-pixels located in two adjacent rows and two adjacent columns include: the first color, the second color, the third color, and the fourth color; wherein for a plurality of the sub-pixels of the same line, every three of the sub-pixels constitute one pixel, the image rendering apparatus comprises:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring an initial image, the initial image comprises a plurality of initial pixel units which are in one-to-one correspondence with a plurality of pixels in the display substrate, each initial pixel unit comprises a plurality of initial sub-pixels, and the colors of the plurality of initial sub-pixels are respectively as follows: the first color, the second color, and the third color;
The processing module is used for processing the initial image to obtain an intermediate image, the intermediate image comprises a plurality of intermediate pixel units which are in one-to-one correspondence with the initial pixel units in the initial image, each intermediate pixel unit comprises a plurality of intermediate sub-pixels, and the colors of the intermediate sub-pixels are respectively as follows: the first color, the second color, the third color, and the fourth color;
the classification module is used for determining the color type of each initial pixel unit according to the pixel information of each initial sub-pixel in each initial pixel unit;
the rendering module is used for determining a rendering rule of a target pixel unit corresponding to the initial pixel unit in the target image according to the color type of the initial pixel unit and the color type of at least one initial pixel unit positioned on at least one side of the initial pixel unit for each initial pixel unit; the rendering rule includes: a mapping relationship between pixel information of each intermediate sub-pixel in the intermediate pixel unit and pixel information of each target sub-pixel in the target pixel unit;
And the generation module is used for generating the image information of the target image according to the rendering rule of each target pixel unit.
8. A display device comprising a display substrate, the image rendering apparatus of claim 7, and a driving apparatus;
the driving device is configured to: and providing a driving signal for the display substrate according to the image information of the target image output by the image rendering device so as to enable the display substrate to display the target image.
9. 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 image rendering method according to any one of claims 1 to 6.
10. An electronic device, the electronic device comprising:
a processor and a memory;
the memory stores a computer program; the computer program, when executed by the processor, implements the image rendering method as claimed in any one of claims 1 to 6.
CN202010612048.3A 2020-06-30 2020-06-30 Image rendering method and device, display device, storage medium and electronic device Active CN111710279B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010612048.3A CN111710279B (en) 2020-06-30 2020-06-30 Image rendering method and device, display device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010612048.3A CN111710279B (en) 2020-06-30 2020-06-30 Image rendering method and device, display device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN111710279A CN111710279A (en) 2020-09-25
CN111710279B true CN111710279B (en) 2023-07-04

Family

ID=72544963

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010612048.3A Active CN111710279B (en) 2020-06-30 2020-06-30 Image rendering method and device, display device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN111710279B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113035126B (en) 2021-03-10 2022-08-02 京东方科技集团股份有限公司 Pixel rendering method and system, readable storage medium and display panel

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060008132A (en) * 2004-07-23 2006-01-26 삼성전자주식회사 Apparatus and method for rendering image
CN101802698A (en) * 2007-09-13 2010-08-11 夏普株式会社 Multiple-primary-color liquid crystal display device
CN103956134A (en) * 2014-02-17 2014-07-30 友达光电股份有限公司 Driving method of display
CN105261321A (en) * 2015-09-18 2016-01-20 深圳市华星光电技术有限公司 Pixel rendering method, pixel rendering device and display
CN105741720A (en) * 2016-04-29 2016-07-06 厦门天马微电子有限公司 Image rendering method and display device
CN106409266A (en) * 2016-12-14 2017-02-15 Tcl集团股份有限公司 Sub-pixel rendering and rendering device
CN109461400A (en) * 2018-12-17 2019-03-12 青岛海信电器股份有限公司 Sub-pixel rendering method and device for the conversion of RGB to RGBW image
CN110599954A (en) * 2019-08-02 2019-12-20 北京集创北方科技股份有限公司 Sub-pixel rendering method and display driving device
CN110945582A (en) * 2019-10-31 2020-03-31 北京集创北方科技股份有限公司 Sub-pixel rendering method, driving chip and display device
CN110992867A (en) * 2019-12-18 2020-04-10 京东方科技集团股份有限公司 Image processing method and display device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4131205B2 (en) * 2003-07-23 2008-08-13 セイコーエプソン株式会社 Image processing apparatus and image processing program causing computer to execute image processing
KR101587606B1 (en) * 2009-09-07 2016-01-25 삼성디스플레이 주식회사 Data processing device display system having the same and method of processing data
US10395579B2 (en) * 2014-09-05 2019-08-27 Linmi Tao Display panel, display apparatus and sub-pixel rendering method
US9679398B2 (en) * 2015-10-19 2017-06-13 Chaos Software Ltd. Rendering images using color contribution values of render elements

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060008132A (en) * 2004-07-23 2006-01-26 삼성전자주식회사 Apparatus and method for rendering image
CN101802698A (en) * 2007-09-13 2010-08-11 夏普株式会社 Multiple-primary-color liquid crystal display device
CN103956134A (en) * 2014-02-17 2014-07-30 友达光电股份有限公司 Driving method of display
CN105261321A (en) * 2015-09-18 2016-01-20 深圳市华星光电技术有限公司 Pixel rendering method, pixel rendering device and display
CN105741720A (en) * 2016-04-29 2016-07-06 厦门天马微电子有限公司 Image rendering method and display device
CN106409266A (en) * 2016-12-14 2017-02-15 Tcl集团股份有限公司 Sub-pixel rendering and rendering device
CN109461400A (en) * 2018-12-17 2019-03-12 青岛海信电器股份有限公司 Sub-pixel rendering method and device for the conversion of RGB to RGBW image
CN110599954A (en) * 2019-08-02 2019-12-20 北京集创北方科技股份有限公司 Sub-pixel rendering method and display driving device
CN110945582A (en) * 2019-10-31 2020-03-31 北京集创北方科技股份有限公司 Sub-pixel rendering method, driving chip and display device
CN110992867A (en) * 2019-12-18 2020-04-10 京东方科技集团股份有限公司 Image processing method and display device

Also Published As

Publication number Publication date
CN111710279A (en) 2020-09-25

Similar Documents

Publication Publication Date Title
US11037523B2 (en) Display method of display panel that uses different display algorithms for different display areas, display panel and display device
US11545099B2 (en) Display apparatus having driving circuit for deriving actual data signal based on theoretical data signal
US9620050B2 (en) Display method and display device
US20160027359A1 (en) Display method and display device
WO2020093685A1 (en) Compensation method and compensation device used for display screen, and display device
US8354986B2 (en) Displaying method
WO2016197450A1 (en) Liquid crystal panel and driving method therefor
WO2020150963A1 (en) Pixel arrangement structure, display panel and display apparatus
US20140362127A1 (en) Display device, pixel array, and color compensating method
US20080056604A1 (en) Method, medium and system processing image signals
CN110349528B (en) Pixel array, driving method thereof and display device
US10210788B2 (en) Displaying method and display with subpixel rendering
CN101471063B (en) Color signal generating device
US20130120468A1 (en) Four-Primary Color Display Device and Method for Calculating Relative Brightness of Fourth Primary Color
JP2016145982A (en) Display device
CN105489177A (en) Sub-pixel rendering method and rendering device
CN112542142A (en) Compensation method and compensation device of display panel
WO2020042317A1 (en) Display panel and image control device and method thereof
US10847079B2 (en) Method of driving display panel and driving device
CN111710279B (en) Image rendering method and device, display device, storage medium and electronic device
CN105096884A (en) Sub-pixel rendering method and display apparatus
US20190043433A1 (en) Display method and display device
US11011095B2 (en) Display panel, and image control device and method thereof
CN114495812B (en) Display panel brightness compensation method and device, electronic equipment and readable storage medium
TW201712637A (en) Displaying method and display panel utilizing the same

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