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

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

Info

Publication number
CN115512654A
CN115512654A CN202211201296.4A CN202211201296A CN115512654A CN 115512654 A CN115512654 A CN 115512654A CN 202211201296 A CN202211201296 A CN 202211201296A CN 115512654 A CN115512654 A CN 115512654A
Authority
CN
China
Prior art keywords
pixel
target
color
sub
color value
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.)
Pending
Application number
CN202211201296.4A
Other languages
Chinese (zh)
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.)
Beijing Eswin Computing Technology Co Ltd
Original Assignee
Beijing Eswin Computing 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 Beijing Eswin Computing Technology Co Ltd filed Critical Beijing Eswin Computing Technology Co Ltd
Priority to CN202211201296.4A priority Critical patent/CN115512654A/en
Publication of CN115512654A publication Critical patent/CN115512654A/en
Pending legal-status Critical Current

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/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]
    • 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/06Adjustment of display parameters
    • G09G2320/0666Adjustment of display parameters for control of colour parameters, e.g. colour temperature

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

The embodiment of the disclosure discloses an image display method and device, a display device, an electronic device and a storage medium, wherein the method comprises the following steps: determining position information of a first pixel in the image; determining a target sub-pixel rendering mode from a preset sub-pixel rendering library based on the position information of the first pixel; converting the first pixel into a second pixel based on the target sub-pixel rendering mode; driving a display panel with the second pixels to display the image in the display panel.

Description

Image display method and device, display device, electronic device and storage medium
Technical Field
The present disclosure relates to, but not limited to, the field of display technologies, and in particular, to an image display method and apparatus, a display device, an electronic device, and a storage medium.
Background
With the continuous pursuit of display effect, a display screen with high PPI (Pixels Per Inch, number of Pixels Per Inch) has become one of the indispensable configurations of various display terminals, for example, an OLED (Organic Light-Emitting Diode) screen. In order to achieve the effect of simulating high resolution with low resolution, a Sub-Pixel Rendering (SPR) method is required to be used when the OLED panel displays.
In the related art, most SPR uses color borrowing to four surrounding pixels, which causes a problem of color difference in a part of a boundary region, thereby causing color cast in a display screen and further reducing user experience.
Disclosure of Invention
The disclosed embodiments at least provide an image display method and apparatus, a display device, an electronic device, a storage medium, and a computer program product.
The technical scheme of the embodiment of the disclosure is realized as follows:
the embodiment of the present disclosure provides an image display method, including;
determining position information of a first pixel in the image;
determining a target sub-pixel rendering mode from a preset sub-pixel rendering library based on the position information of the first pixel, wherein the sub-pixel rendering library comprises at least two sub-pixel rendering modes;
converting the first pixel into a second pixel based on the target sub-pixel rendering mode;
driving a display panel with the second pixels to display the image in the display panel.
The disclosed embodiment provides an image display device, the device includes a detection module, a conversion module and a display module, wherein:
the detection module is used for detecting the position of a first pixel in an image to obtain the position information of the first pixel;
the conversion module is electrically connected with the detection module and is used for determining a target sub-pixel rendering mode from a preset sub-pixel rendering library based on the position information of the first pixel, wherein the sub-pixel rendering library comprises at least two sub-pixel rendering modes; converting the first pixel into a second pixel based on the target sub-pixel rendering mode; outputting the second pixel to an electrically connected display module;
and the display module is used for displaying the image.
The embodiment of the present disclosure provides a display device, including a driving apparatus and a display panel coupled with the driving apparatus, wherein:
the driving device is used for receiving a target image, converting a first pixel in the target image into a second pixel by adopting the method, and driving the display panel by using the second pixel so as to display the image in the display panel;
the display panel is used for displaying the image.
An embodiment of the present disclosure provides an electronic device, including a processor and a memory, where the memory stores a computer program executable on the processor, and the processor implements the above method when executing the computer program.
Embodiments of the present disclosure provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the above-described method.
Embodiments of the present disclosure provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program, which when read and executed by a computer, implements the above-described method.
In the disclosed embodiment, the position information of the first pixel in the image is determined; determining a target sub-pixel rendering mode from a preset sub-pixel rendering library based on the position information of the first pixel, wherein the sub-pixel rendering library comprises at least two sub-pixel rendering modes; converting the first pixel into a second pixel based on the target sub-pixel rendering mode; driving a display panel with the second pixels to display the image in the display panel. Therefore, on one hand, the pixel conversion is carried out by adopting a corresponding sub-pixel rendering mode according to the position information of the pixels in the image, so that the possibility of color deviation of the boundary region and the image display can be reduced, the aim of improving the definition and the display quality of the image is fulfilled, and the use experience of a user is improved; on the other hand, the image is displayed by utilizing a sub-pixel rendering mode, so that the number of pixels can be reduced, the effect of simulating high resolution by low resolution can be achieved, and the occupation of hardware or network resources can be reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure.
Fig. 1A is a schematic flow chart illustrating an implementation of an image display method according to an embodiment of the present disclosure;
fig. 1B is a schematic composition diagram of a first pixel of an image according to an embodiment of the disclosure;
fig. 1C is a schematic composition diagram of a second pixel of an image according to an embodiment of the disclosure;
fig. 2 is a schematic flow chart illustrating an implementation of an image display method according to an embodiment of the present disclosure;
fig. 3A is a schematic diagram of converting a first pixel of an image into a second pixel according to an embodiment of the disclosure;
fig. 3B is a schematic diagram illustrating an implementation flow of an image display method according to an embodiment of the present disclosure;
fig. 4A is a schematic structural diagram of an image display device according to an embodiment of the disclosure;
fig. 4B is a schematic structural diagram of an image display device according to an embodiment of the disclosure;
fig. 5 is a schematic diagram of a hardware entity of an electronic device according to an embodiment of the disclosure.
Detailed Description
To further clarify the objects, technical solutions and advantages of the present disclosure, the present disclosure will be described in further detail with reference to the accompanying drawings, and the described embodiments should not be construed as limiting the present disclosure, and all other embodiments that can be obtained by a person of ordinary skill in the art without making an inventive effort fall within the scope of protection of the present disclosure.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
In the following description, references to the terms "first \ second \ third" are only to distinguish between similar objects and do not denote a particular order or sequence of objects, and it is understood that "first \ second \ third" may be interchanged under appropriate circumstances such that embodiments of the present disclosure described herein may be practiced in other than the order shown or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs. The terminology used herein is for the purpose of describing embodiments of the disclosure only and is not intended to be limiting of the disclosure.
With the continuous pursuit of display effect, a display screen with high PPI has become one of the necessary configurations for various display terminals, for example, an OLED screen.
Because the OLED screen is limited by the evaporation process and the precise metal mask when the OLED screen is used for evaporating the luminescent material, the red, green and blue pixels need to keep a larger distance to avoid the loss of the yield, and the OLED screen is difficult to realize high-definition display.
In order to achieve the effect of simulating high resolution at low resolution, SPR is used, which means that the same resolution display is realized by using fewer sub-pixels. Due to different SPR and different arrangement modes, when an image is actually displayed, the mode that one pixel point borrows another color of the adjacent pixel point to form three primary colors is different, and the display effect and the performance of the screen have larger difference.
In the related art, most SPR adopts color borrowing to four surrounding pixels, but due to the particularity of the boundary position of the OLED panel, a color cast exists in a display picture due to the fact that a part of the boundary area has a different color problem, and the use experience of a user is reduced.
On one hand, according to the position information of the pixels in the image, the corresponding sub-pixel rendering mode is adopted for pixel conversion, so that the possibility of color difference in boundary areas and color cast of image display can be reduced, the purpose of improving the definition and the display quality of the image is achieved, and the use experience of a user is improved; on the other hand, the image is displayed by using a sub-pixel rendering mode, so that the number of pixels can be reduced, the effect of simulating high resolution by using low resolution can be achieved, and the occupation of hardware or network resources can be reduced. The image display method provided by the embodiment of the present disclosure may be executed by an electronic device, where the electronic device may be various types of terminals such as a notebook computer, a tablet computer, a desktop computer, a set-top box, a mobile device (e.g., a mobile phone, a portable music player, a personal digital assistant, a dedicated messaging device, and a portable game device), and may also be implemented as a server. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like.
In the following, the technical solutions in the embodiments of the present disclosure will be clearly and completely described with reference to the drawings in the embodiments of the present disclosure.
Fig. 1A is a schematic view of an implementation flow of an image display method provided in an embodiment of the present disclosure, as shown in fig. 1A, the method includes steps S11 to S14, where:
and S11, determining the position information of the first pixel in the image.
Here, the image may be an image in any suitable scene. The image includes at least one first pixel. For example, the image includes 576 first pixels.
In some embodiments, the image acquisition mode may be determined according to an actual application scenario. In implementation, a person skilled in the art may autonomously determine an image acquisition mode according to actual requirements, and the embodiment of the present disclosure is not limited. For example, the image may be an image captured by a camera module. The camera module can be a camera, a camera and the like, and can also be a wide-angle module with extreme wide-angle shooting. For another example, the image is an image transmitted by another device. For example, the image may be uploaded or set by a user on an operation interface through an input component of the electronic device. The input component may include, but is not limited to, a keyboard, a mouse, a touch screen, a touch pad, an audio input device, and the like. The operation interface comprises an interactive interface used for carrying out configuration operation and information display on the image. The operation interface can be displayed on any suitable electronic equipment with interface interaction function. In implementation, the electronic device displaying the operation interface may be the same as or different from the device executing the image display method, and is not limited herein. For example, the electronic device executing the image display method may be a notebook computer, the electronic device displaying the operation interface may also be the notebook computer, and the operation interface may be an interactive interface of a client running on the notebook computer, or a web page displayed in a browser running on the notebook computer. For another example, the electronic device executing the image display method may be a server, the electronic device displaying the operation interface may be a notebook computer, the operation interface may be an interactive interface of a client running on the notebook computer, or a web page displayed in a browser running on the notebook computer, and the notebook computer may access the server through the client or the browser.
The color coding method of the image may include, but is not limited to, RGB (Red, green, blue, red, green, blue), YUV (Luminance, chroma), and the like.
The first pixel may be any pixel point in the image. In some embodiments, the first pixel has at least three sub-pixels. For example, for the RGB encoding method, each first pixel has three sub-pixels, i.e., a first sub-pixel R, a second sub-pixel G, and a third sub-pixel B.
Fig. 1B is a schematic diagram illustrating a composition of first pixels of an image according to an embodiment of the disclosure, and as shown in fig. 1B, the image 100 includes 3 rows and 3 columns, and 9 first pixels, that is, the first pixels 101a to 109a. At this time, the position information includes the first pixel 103a and the first pixel 106a. The first pixel 103a and the first pixel 106a are respectively converted into corresponding second pixels by adopting a first sub-pixel rendering mode.
The location information may include, but is not limited to, coordinates, row and column values, and the like. In some embodiments, the image is divided into rows and columns, and coordinate information of each first pixel can be obtained separately, and the coordinate information is used as the position information of the first pixel. In some embodiments, a two-dimensional coordinate system is established with a vertex of the image, and a row and column value of each first pixel can be obtained separately, and the row and column value is used as the position information of the first pixel.
And S12, determining a target sub-pixel rendering mode from a preset sub-pixel rendering library based on the position information of the first pixel.
Here, the sub-pixel rendering library includes at least two sub-pixel rendering methods.
In some embodiments, each sub-pixel rendering mode corresponds to a different color borrowing mode. That is, the first pixel is converted into the second pixel by using different color borrowing methods. Wherein the second pixel has at least two sub-pixels. For example, for the RGBG coding scheme, each second pixel may include two sub-pixels, for example, a first sub-pixel R and a second sub-pixel G. For another example, the first sub-pixel B and the second sub-pixel G.
The color borrowing manner may include, but is not limited to, no color borrowing, one-sided color borrowing, two-sided color borrowing, multi-sided color borrowing, and the like. The single-side color borrowing may include, but is not limited to, left color borrowing, right color borrowing, upper color borrowing, lower color borrowing, upper left color borrowing, lower left color borrowing, upper right color borrowing, lower right color borrowing, and the like. The color borrowing on the two sides can be any two single-side color borrowing. The multi-edge color borrowing can be any three or more than three single-edge color borrowing.
Left borrowing refers to borrowing the color of the left pixel of the current first pixel. The right borrowing refers to borrowing the color of the right pixel of the current first pixel. The upper borrowing refers to borrowing the color of the upper side pixel of the current first pixel. The lower borrowing refers to borrowing the color of the lower side pixel of the current first pixel. And the upper left color borrowing refers to borrowing the color of the upper left corner pixel of the current first pixel. And the upper right color borrowing refers to borrowing the color of the upper right pixel of the current first pixel. The lower left borrowing refers to borrowing the color of the lower left corner pixel of the current first pixel. The lower right borrowing refers to borrowing the color of the lower right corner pixel of the current first pixel.
For example, the sub-pixel rendering library includes a first sub-pixel rendering manner and a second sub-pixel rendering manner. In some embodiments, the first sub-pixel rendering method and the second sub-pixel rendering method both include two single-side color lending. Wherein, the two single-side color borrowing in the first sub-pixel rendering mode are different from the two single-side color borrowing in the second sub-pixel rendering mode. For example, the first sub-pixel rendering method is left color borrowing and upper color borrowing, and the second sub-pixel rendering method is left color borrowing and right color borrowing. For another example, the first sub-pixel rendering manner represents that the first sub-pixel of the second pixel is upper borrowed color and the second sub-pixel of the second pixel is left borrowed color, the second sub-pixel rendering manner represents that the first sub-pixel of the second pixel adopts left borrowed color and the second sub-pixel of the second pixel adopts upper borrowed color. Wherein the second pixel comprises at least two sub-pixels.
For another example, the sub-pixel rendering library includes a first sub-pixel rendering manner, a second sub-pixel rendering manner, and a third sub-pixel rendering manner. The first sub-pixel rendering method includes single-side color borrowing, and the second sub-pixel rendering method may include, but is not limited to, two-side color borrowing, or multi-side color borrowing. For example, the second sub-pixel rendering manner may be three-edge color borrowing of the first sub-pixel of the second pixel, and two-edge color borrowing of the second sub-pixel of the second pixel. The third subpixel rendering manner may include, but is not limited to, multi-edge color blending, or no color blending, etc. For example, the third sub-pixel rendering manner may be three-edge color borrowing of the first sub-pixel of the second pixel, and no color borrowing of the second sub-pixel of the second pixel.
In implementation, a person skilled in the art may autonomously determine the corresponding relationship between the sub-pixel rendering manner and the color lending manner according to actual requirements, and the embodiment of the present disclosure is not limited thereto.
In some embodiments, the corresponding relationship between the sub-pixel rendering manner and the color lending manner may be determined based on a preset rule. The preset rules may include, but are not limited to, default configuration of the electronic device, user customization, user preferences, frequency of use, user operation information, and the like. In implementation, a person skilled in the art may autonomously set the preset rule according to actual requirements, and the embodiment of the disclosure is not limited.
For example, the electronic device provides a configuration option by which the user can customize the correspondence.
For another example, the corresponding relationship may be determined based on attribute information of the user operation, wherein the attribute information may include, but is not limited to, a type, a distance, a speed, a position, a duration, a number of times, and the like of the operation. In implementation, a person skilled in the art may autonomously set a relationship between the attribute information of the operation and the corresponding relationship according to actual requirements, and the embodiment of the present disclosure is not limited.
In some embodiments, the determination may be based on the type of operation, i.e., different types correspond to different correspondences. For example, when the operation gesture is a sliding operation, the corresponding relationship is a first corresponding relationship, where the first corresponding relationship includes that the first subpixel rendering manner corresponds to the first color borrowing scheme, the second subpixel rendering manner corresponds to the second color borrowing scheme, and the like; and under the condition that the operation gesture is multi-tap operation, the corresponding relation is a second corresponding relation, and the second corresponding relation comprises that the first sub-pixel rendering mode corresponds to the second color borrowing scheme, the second sub-pixel rendering mode corresponds to the first color borrowing scheme and the like. The first color borrowing scheme may include single-side color borrowing, and the second color borrowing scheme may include two-side color borrowing.
In some embodiments, the correspondence may be determined in real time based on the distance of the operation, i.e., different distances correspond to different correspondences. For example, when the sliding distance is a first distance interval, the corresponding relationship is a first corresponding relationship, and the first corresponding relationship includes that the first sub-pixel rendering manner corresponds to the first color lending scheme, the second sub-pixel rendering manner corresponds to the second color lending scheme, and the like; and under the condition that the sliding distance is a second distance interval, the corresponding relation is a second corresponding relation, and the second corresponding relation comprises a first sub-pixel rendering mode corresponding to a second color borrowing scheme, a second sub-pixel rendering mode corresponding to a third color borrowing scheme, a third sub-pixel rendering mode corresponding to a fourth color borrowing scheme and the like. The third color borrowing scheme may include no color borrowing, and the fourth color borrowing scheme may include multi-edge color borrowing.
In some embodiments, the correspondence between the position information and the target subpixel rendering manner may be established in advance and stored in the electronic device, or other electronic devices. And when the corresponding relation is stored in the electronic equipment, the electronic equipment determines a target sub-pixel rendering mode matched with the position information in the corresponding relation according to the position information. And under the condition that the corresponding relation is stored in other electronic equipment, the electronic equipment sends the position information to other electronic equipment, so that the other electronic equipment determines a target sub-pixel rendering mode matched with the position information in the corresponding relation according to the position information, and returns the target sub-pixel rendering mode to the electronic equipment. In implementation, a person skilled in the art may autonomously determine a corresponding relationship between the position information and the target subpixel rendering mode according to actual requirements, and the embodiment of the disclosure is not limited.
For example, the first image includes M × N pixels, where M and N are the number of rows and columns, respectively, and the first subpixel rendering manner is determined as the target SPR when the position information of the first pixel is that a row value is less than M and a column value is equal to N, or that a row value is equal to M and a column value is less than N; determining a second sub-pixel rendering mode as a target SPR under the condition that the position information of the first pixel is that the row value is equal to M and the column value is equal to N; when the position information of the first pixel is other positions, the third subpixel rendering mode is determined as the target SPR.
In some embodiments, a default subpixel rendering mode may be set in advance, and the default subpixel rendering mode may be switched to the corresponding target SPR based on the position information. For example, the default subpixel rendering mode is the third subpixel rendering mode, and when the position information is that the row value is equal to M and the column value is less than N, the third subpixel rendering mode is switched to the second subpixel rendering mode.
And S13, converting the first pixel into a second pixel based on the target sub-pixel rendering mode.
Here, the second pixel includes at least two sub-pixels. For example, for RGBG coding, each second pixel may include two sub-pixels. For example, the second pixel includes a first sub-pixel R and a second sub-pixel G. For another example, the second pixel includes a first sub-pixel B and a second sub-pixel G.
Fig. 1C is a schematic composition diagram of a second pixel of an image according to an embodiment of the disclosure, and as shown in fig. 1C, the image 100 includes 3 rows and 3 columns, and 9 second pixels, that is, the pixels 101b to 109b. At this time, the pixel 101B has a first subpixel R1 and a second subpixel G1, and the pixel 102B has a first subpixel B2 and a second subpixel G2.
And S14, driving a display panel by using the second pixels to display the image in the display panel.
Here, the display panel may be any product or component having a display function, such as an OLED panel, an OLED display, or the like. In some embodiments, the display panel includes at least one display driving circuit therein, and each second pixel is used to drive the corresponding display driving circuit, so that the image is rendered and displayed in the display panel.
In the disclosed embodiment, the position information of the first pixel in the image is determined; determining a target sub-pixel rendering mode from a preset sub-pixel rendering library based on the position information of the first pixel; converting the first pixel into a second pixel based on the target sub-pixel rendering mode; driving a display panel with the second pixels to display the image in the display panel. Therefore, on one hand, the pixel conversion is carried out by adopting a corresponding sub-pixel rendering mode according to the position information of the pixels in the image, so that the possibility of color deviation of the boundary region and the image display can be reduced, the aim of improving the definition and the display quality of the image is fulfilled, and the use experience of a user is improved; on the other hand, the image is displayed by utilizing a sub-pixel rendering mode, so that the number of pixels can be reduced, the effect of simulating high resolution by low resolution can be achieved, and the occupation of hardware or network resources can be reduced.
In some embodiments, the step S12 includes steps S121 to S123, wherein:
step S121, determining that the target subpixel rendering mode includes a first subpixel rendering mode when the position information belongs to the first area, where the first subpixel rendering mode includes single-sided color lending.
Here, the first region may be a region in at least one row or at least one column including the boundary. E.g., the last two columns, the last row, etc.
In some embodiments, the image includes M × N pixels, M is a number of rows and N is a number of columns, both M and N are positive integers, and the first region includes a region having a row value smaller than M and a column value N, or a region having a row value M and a column value smaller than N.
Here, the first region characterizes the first pixel as either a right boundary and not a lower right corner, or a lower boundary and not a lower right corner. For example, as shown in fig. 1B, the first region includes a first pixel 103a, a first pixel 106a, a first pixel 107a, and a first pixel 108a. The first pixel 103a, the first pixel 107a, the first pixel 108a and the first pixel 109a are respectively converted into corresponding second pixels by adopting a first sub-pixel rendering manner.
Step S122, when the position information belongs to a second area, determining that the target subpixel rendering manner includes a second subpixel rendering manner, where the second subpixel rendering manner includes two-side color blending or multi-side color blending.
Here, the second region may be a region including at least one vertex. E.g., lower right corner, upper left corner, etc.
In some embodiments, the image includes M × N pixels, M is a number of rows and N is a number of columns, both M and N are positive integers, and the second region includes a region having a row value of M and a column value of N.
Here, the second region characterizes the first pixel as the lower right corner. As shown in fig. 1B, the second region includes the first pixels 109a. The first pixel 109a is converted to a corresponding second pixel by using a second sub-pixel rendering approach.
Step S123, determining that the target subpixel rendering mode includes a third subpixel rendering mode when the position information belongs to a third area, where the third subpixel rendering mode includes no color lending or multi-edge color lending.
Here, the third area may include areas of at least one row or at least one column. For example, the first L rows, L being a positive integer.
In some embodiments, the image includes M × N pixels, M is a number of rows and N is a number of columns, both M and N are positive integers, and the third region includes a region having a row value less than M and a column value less than N.
Here, the third area characterizes the first pixel as a non-right border, or a non-lower border. As shown in fig. 1B, the third region includes a first pixel 101a, a first pixel 102a, a first pixel 104a, and a first pixel 105a. The first pixel 101a, the first pixel 102a, the first pixel 104a and the first pixel 105a are respectively converted into corresponding second pixels by adopting a third sub-pixel rendering mode.
In the embodiment of the disclosure, the first pixels at different positions are subjected to pixel conversion by adopting different target sub-pixel rendering modes, so that the possibility of color difference in boundary areas and color cast of image display can be reduced, the purpose of improving the definition and display quality of images is achieved, and the use experience of a user is improved.
Fig. 2 is a schematic view of an implementation flow of an image display method provided in an embodiment of the present disclosure, and as shown in fig. 2, the method includes steps S21 to S26, where:
and S21, determining the position information of the first pixel in the image.
And S22, determining a target sub-pixel rendering mode from a preset sub-pixel rendering library based on the position information of the first pixel.
Here, the steps S21 to S22 correspond to the steps S11 to S12, respectively, and in the implementation, specific embodiments of the steps S11 to S12 may be referred to.
And S23, determining a first target pixel associated with the first pixel based on the target sub-pixel rendering mode.
Here, the first target pixels associated with different subpixel rendering manners are different.
For example, for the first sub-pixel rendering mode, the associated first target pixels may include, but are not limited to, a first pixel, a fourth pixel adjacent to an upper side of the first pixel, and a third pixel adjacent to a left side of the first pixel. For example, in fig. 1B, for the first pixel 103a, since the upper pixel of the first pixel 103a is empty, the associated first target pixel includes the first pixel 103a and the first pixel 102a. For the first pixel 106a, the associated first target pixel includes the first pixel 106a, the first pixel 103a and the first pixel 105a.
For another example, for the third sub-pixel rendering manner, the associated first target pixels may include, but are not limited to, the first pixel, a third pixel adjacent to the left side of the first pixel, a fourth pixel adjacent to the upper side of the first pixel, and a fifth pixel adjacent to the left side of the fourth pixel. For example, in fig. 1B, for the first pixel 109a, the associated first target pixel includes the first pixel 109a, the first pixel 105a, the first pixel 106a and the first pixel 108a.
In some embodiments, the step S23 includes steps S231 to S232, wherein:
step S231, in a case that the target subpixel rendering manner is a first subpixel rendering manner, the first target pixel includes the first pixel, a third pixel adjacent to a left side of the first pixel, and a fourth pixel adjacent to an upper side of the first pixel.
Here, the different sub-pixel rendering manners may correspond to the same or different first target pixels. For example, for the first pixel 107a in fig. 1B, since the pixel on the left side of the first pixel 107a is empty, the associated first target pixel includes the first pixel 107a and the first pixel 108a, and the first pixel 107a is converted into the second pixel by adopting the first sub-pixel rendering manner.
Step S232, when the target subpixel rendering manner is a second subpixel rendering manner or a third subpixel rendering manner, the first target pixel includes the first pixel, the third pixel, the fourth pixel, and a fifth pixel adjacent to a left side of the fourth pixel.
Here, different subpixel rendering manners may correspond to the same or different first target pixels. For example, for the first pixel 102a in fig. 1B, since the upper side and the upper left corner of the first pixel 102a are empty, the associated first target pixel includes the first pixel 102a and the first pixel 101a, and the first pixel 102a is converted into the second pixel by adopting the third sub-pixel rendering manner.
Step S24, determining second color information of the second pixel based on the first color information of the first target pixel.
Here, the first color information may include at least two color values. For example, the first color information may include R, G, B, and the like. For another example, the first color information includes a first color value and a second color value, and in this case, for RGB, the first color value may be R or B, and the second color value may be G.
The second color information may comprise at least two color values. For example, the second color information may include R, G, and B, or R and G, or B and G, and the like. For another example, the second color information includes a third color value and a fourth color value. At this time, for RGBG, the third color value may be R or B, and the fourth color value may be G. For example, as shown in fig. 1C, the second pixel 101B has a third color value R1 and a fourth color value G1, and the second pixel 102B has a third color value B2 and a fourth color value G2.
And step S25, converting the first pixel into the second pixel.
Here, the first pixel having the first color information is converted into the second pixel having the second color information by conversion. For example, a first pixel having RGB is converted into a second pixel having RGBG. For another example, a first pixel having RGB is converted into a second pixel having RGBW.
And S26, driving a display panel by using the second pixels to display the image in the display panel.
Here, the step S25 corresponds to the step S14, and in the implementation, reference may be made to a specific embodiment of the step S14.
In the disclosed embodiment, the position information of the first pixel in the image is determined; determining a target sub-pixel rendering mode from a preset sub-pixel rendering library based on the position information of the first pixel; determining a first target pixel associated with the first pixel based on the target sub-pixel rendering mode; determining second color information of the second pixel based on the first color information of the first target pixel; converting the first pixel into the second pixel; driving a display panel with the second pixels to display the image in the display panel. Therefore, the color information of the second pixel is determined through the target sub-pixel rendering mode, the accuracy of the color information of the pixel can be improved, the possibility of different colors of a display area and color cast of image display can be reduced, and the use experience of a user is improved.
In some embodiments, the first color information comprises at least a first color value and a second color value, the second color information comprises a third color value and a fourth color value, and the step S24 comprises steps S241 to S242, wherein:
step S241, determining a third color value of the second pixel based on the first color value of the first target pixel.
Here, the first color value may be a color of one sub-pixel in the first target pixel. For example, for RGB, the first color value may be R, or B.
The third color value may be a color of one of the sub-pixels in the second pixel. For example, for RGBG, the third color value may be R, or B. For example, in fig. 1C, the second pixel 103B has the third color value R3, and the second pixel 104B has the third color value B4.
The manner of determining the third color value may include, but is not limited to, a certain first color value, a mean/variance/mean square error of each first color value after being weighted, a mean/variance/mean square error of a luminance value corresponding to each first color value after being weighted, and the like. In practice, a person skilled in the art may determine the third color value according to actual requirements, and the embodiment of the present disclosure is not limited.
For example, the average value of each first color value is taken as the third color value. For example, for the second pixel 105b in fig. 1C, since the third sub-pixel rendering manner may be that the first sub-pixel of the second pixel is upper borrowed color, left borrowed color and upper left borrowed color, and the second sub-pixel is not borrowed color, the average value of the first color values of the four first pixels, i.e., the first pixel 101a, the first pixel 102a, the first pixel 104a and the first pixel 105a, may be used as the third color value R5 of the second pixel 105 b.
Step S242, determining a fourth color value of the second pixel based on the second color value of the first target pixel.
Here, the second color value may be a color of one sub-pixel in the first target pixel. For example, for RGB, the second color value may be G.
The fourth color value may be a color of one sub-pixel in the second pixel. For example, for RGBG, the fourth color value may be G. For example, in fig. 1C, the second pixel 105b has a fourth color value G5.
The manner of determining the fourth color value may include, but is not limited to, a certain second color value, a mean/variance/mean square error of each weighted second color value, a mean/variance/mean square error of a luminance value corresponding to each second color value weighted, and the like. In implementation, a person skilled in the art may determine the fourth color value according to actual requirements, and the embodiment of the present disclosure is not limited.
For example, the average value of each second color value is taken as the fourth color value. For example, for the second pixel 106b in fig. 1C, since the first sub-pixel rendering manner may be that the first sub-pixel of the second pixel is a top-borrowed color and the second sub-pixel is a left-borrowed color, the average value of the luminance values corresponding to the second color values of the two pixels, i.e., the first pixel 106a and the first pixel 105a, may be used as the fourth color value G6 of the second pixel 106 b.
In an embodiment of the disclosure, the third color value of the second pixel is determined by determining the third color value of the second pixel based on the first color value of the first target pixel; determining a fourth color value of the second pixel based on the second color value of the first target pixel. In this way, the color values of the second pixels are respectively determined by the different color values of the first target pixels, so that the accuracy of the color values of the second pixels can be improved, and the possibility of color variation of the display area and color deviation of the image display can be reduced.
In some embodiments, the step S241 includes steps S251 to S253, in which:
step S251, determining a third target pixel from the first target pixels.
Here, the third target pixel may include at least one pixel of the first target pixels.
For example, the first target pixel may include a first pixel, a third pixel adjacent to a left side of the first pixel, and a fourth pixel adjacent to an upper side of the first pixel. At this time, the third target pixel may include the first pixel, and a fourth pixel adjacent to an upper side of the first pixel. For example, in fig. 1B, for the first pixel 106a, the associated first target pixel includes the first pixel 106a, the first pixel 103a and the first pixel 105a, and the third target pixel may include the first pixel 106a and the first pixel 103a.
In some embodiments, the third target pixel may be determined based on a preset rule. The preset rule may include, but is not limited to, a subpixel rendering manner, a default configuration, a customization, user operation information, and the like. In implementation, a person skilled in the art may set the preset rule autonomously according to actual requirements, and the embodiment of the present disclosure is not limited.
In some embodiments, the step S251 includes steps S2511 to S2512, wherein:
step S2511, when the target sub-pixel rendering manner is the first sub-pixel rendering manner, the third target pixel includes the first pixel, and a fourth pixel adjacent to the upper side of the first pixel or a third pixel adjacent to the left side of the first pixel.
Here, the first sub-pixel rendering manner may include that the first sub-pixel of the second pixel is color-up borrowed or color-left borrowed, and the second sub-pixel is color-left borrowed or color-up borrowed.
For example, in fig. 1B, for the first pixel 103a, since the upper side of the first pixel 103a is empty, the associated first target pixel includes the first pixel 103a and the first pixel 102a, and the third target pixel may include the first pixel 103a at this time.
For another example, in fig. 1B, for the first pixel 108a, the associated first target pixel includes the first pixel 108a, the first pixel 105a and the first pixel 107a, and in this case, the third target pixel may include the first pixel 108a and the first pixel 107a.
Step S2512, when the target sub-pixel rendering manner is the second sub-pixel rendering manner or the third sub-pixel rendering manner, the third target pixel includes the first pixel, the third pixel, the fourth pixel and the fifth pixel adjacent to the left side of the fourth pixel.
The second sub-pixel rendering mode includes that the first sub-pixel of the second pixel is of left color borrowing, upper color borrowing and upper left color borrowing, and the second sub-pixel is of upper color borrowing and left color borrowing. The third sub-pixel rendering mode comprises that the first sub-pixel of the second pixel is subjected to left color borrowing, upper color borrowing and upper left color borrowing, and the second sub-pixel is subjected to no color borrowing.
For example, in fig. 1B, for the first pixel 102a, since the upper side and the upper left corner of the first pixel 102a are empty, the associated first target pixel includes the first pixel 102a and the first pixel 101a, and at this time, the third target pixel may include the first pixel 102a and the first pixel 101a.
Step S252, determining a conversion mode based on the number of the third target pixels.
Here, the different numbers of third target pixels correspond to different conversion manners, where the conversion manners may include, but are not limited to, a first conversion manner, a second conversion manner, and the like, and the first conversion manner and the second conversion manner correspond to different conversion formulas. Each conversion formula is used for representing the first color values of the corresponding number of third target pixels or the mean/variance/mean variance between the luminance values corresponding to the first color values, and the like. In implementation, a person skilled in the art may autonomously determine the corresponding relationship between the number of the third target pixels and the conversion mode according to actual requirements, and the embodiment of the present disclosure is not limited. For example, in the case where the number of the third target pixels is two, the conversion manner is the first conversion manner, that is, the conversion formula is the first conversion formula f1; in the case where the number of the third target pixels is plural, the conversion manner is a second conversion manner, that is: the conversion formula is a second conversion formula f2.
In some embodiments, the following equation (1-1) may be defined as the first conversion equation f1:
z=f1(m,n) (1-1);
where z represents the third color value of the second pixel, m represents the first color value of the first third target pixel, n represents the first color value of the second third target pixel, and f1 represents the average function of m and n.
For example, in fig. 1C, for the third color value in the second pixel 103b being R3, since the third target pixel includes the first pixel 103a, R3 is f1 (0, R3). For the third color value of B6 in the second pixel 106B, since the third target pixel includes the first pixel 103a and the first pixel 106a, B6 is f1 (B3, B6).
In some embodiments, the following equation (1-2) may be defined as a first conversion equation f2:
z=f2(m,n,p,q) (1-2);
where z represents the third color value of the second pixel, m represents the first color value of the first third target pixel, n represents the first color value of the second third target pixel, p represents the first color value of the third target pixel, q represents the first color value of the fourth third target pixel, and f2 represents an averaging function taking m, n, p, and q.
For example, in fig. 1C, the third color value of the second pixel 102B is B2, and since the third target pixel includes the first pixel 101a and the first pixel 102a, B2 is f2 (0, B1, B2). For the third color value in the second pixel 109b is R9, since the third target pixel includes the first pixel 105a, the first pixel 106a, the first pixel 108a and the first pixel 109a, then R9 is f2 (R5, R6, R8, R9).
In some embodiments, the correspondence between the number of third target pixels and the conversion manner may be determined based on a preset rule. The preset rule may include, but is not limited to, a default mode, a customization, user operation information, and the like of the electronic device. In implementation, a person skilled in the art may autonomously set the preset rule according to actual requirements, and the embodiment of the disclosure is not limited.
For example, the default modes include: in the case where the number of the third target pixels is two, the conversion manner is the first conversion manner; in the case where the number of the third target pixels is plural, the conversion manner is the second conversion manner.
Step S253, converting the first color value of the third target pixel into the third color value of the second pixel by using the conversion method.
Here, the third color value of the second pixel can be obtained by the above-described formula (1-1) or (1-2).
For example, in fig. 1C, the third color value in the second pixel 105b is R5, and since the third target pixel includes the first pixel 101a, the first pixel 102a, the first pixel 104a and the first pixel 105a, R5 is f2 (R1, R2, R4, R5). For the third color value of the second pixel 108B being B8, since the third target pixel includes the first pixel 107a and the first pixel 108a, B8 is f1 (B7, B8).
In the embodiment of the present disclosure, the first target pixel is determined by determining a third target pixel from the first target pixel; determining a conversion mode based on the number of the third target pixels; and converting the first color value of the third target pixel into the third color value of the second pixel by using the conversion mode. Therefore, on one hand, the third target pixel is determined from the first target pixel, so that the accuracy of the target pixel can be improved, the accuracy of the third color value of the second pixel can be improved, and the possibility of different colors of a display area and color cast of image display can be reduced; on the other hand, the interference of the first color values of a part of the first target pixels can be reduced by corresponding different conversion modes to different numbers of the third target pixels, so that the accuracy of the third color values of the second pixels can be further improved.
In some embodiments, the step S241 includes steps S261 to S262, in which:
step S261 determines a target weight value based on the second color value of the first target pixel.
Here, the target weight value is a value not greater than 1.
In some embodiments, the manner of determining the target weight value may include, but is not limited to, a first ratio between a sixth color value and a fifth color value, a second ratio for weighting the first ratio, and the like, wherein the sixth color value may be a second color value or a luminance value of the first pixel, and the fifth color value may be a sum of the second color values or corresponding luminance values of at least two first target pixels. In implementation, a person skilled in the art may autonomously determine the target weight value according to actual requirements, and the embodiments of the present disclosure are not limited.
Step S262, determining the fourth color value of the second pixel based on the second color value of the first pixel and the target weight value.
Here, the manner of determining the fourth color value may include, but is not limited to, a product of the second color value and the target weight value respectively weighted, and the like. In implementation, a person skilled in the art may autonomously determine the fourth color value according to actual requirements, and the embodiments of the present disclosure are not limited.
In some embodiments, the fourth color value W may be obtained by the following equation (1-3):
W=p*α (1-3);
where p represents the second color value of the first pixel and α represents the target weight value.
For example, in fig. 1C, for the fourth color value of the second pixel 108b being G8, since the second target pixel includes the first pixel 105a and the first pixel 108a, the target weight value α is obtained based on the second color value G5 of the first pixel 105a and the second color value G8 of the first pixel 108 a; the product of the target weight value α and the second color value G8 of the first pixel 108a is used as the fourth color value G8 of the second pixel 108 b.
In the disclosed embodiments, the target weight value is determined by a second color value based on the first target pixel; determining the fourth color value of the second pixel based on a second color value of the first pixel and the target weight value. Therefore, on one hand, the target weight value is determined through the second color value of the first target pixel, so that the accuracy of the target weight value can be improved, and the accuracy of the fourth color value of the second pixel can be improved; on the other hand, the fourth color value of the second pixel is obtained through the second color value of the first target pixel and the target weight value, the accuracy of the fourth color value of the second pixel can be improved, and therefore the possibility of display area heterochrosis and image display color cast can be reduced.
In some embodiments, the step S261 includes steps S271 to S273, in which:
step S271, determining a second target pixel from the first target pixels.
Here, the second target pixel may include at least one pixel of the first target pixels.
For example, the first target pixel may include a first pixel, a third pixel adjacent to a left side of the first pixel, and a fourth pixel adjacent to an upper side of the first pixel. At this time, the second target pixel may include the first pixel and a third pixel adjacent to a left side of the first pixel. For example, in fig. 1B, for the first pixel 106a, the associated first target pixel includes the first pixel 106a, the first pixel 103a and the first pixel 105a, and at this time, the second target pixel may include the first pixel 106a and the first pixel 105a.
For another example, the first target pixel includes a first pixel, a third pixel adjacent to a left side of the first pixel, a fourth pixel adjacent to an upper side of the first pixel, and a fifth pixel adjacent to a left side of the fourth pixel. At this time, the second target pixel may include the first pixel. For example, in fig. 1B, for the first pixel 102a, the associated first target pixel includes the first pixel 102a and the first pixel 101a, and in this case, the second target pixel may include the first pixel 102a.
In some embodiments, the second target pixel may be determined based on a preset rule. The preset rule may include, but is not limited to, a subpixel rendering manner, a default configuration, a customization, user operation information, and the like. In implementation, a person skilled in the art may autonomously set the preset rule according to actual requirements, and the embodiment of the disclosure is not limited.
In some embodiments, the step S271 includes steps S2711 to S2713, wherein:
step S2711, in a case that the target subpixel rendering manner is a first subpixel rendering manner, the second target pixel includes the first pixel, and a third pixel adjacent to a left side of the first pixel or a fourth pixel adjacent to an upper side of the first pixel.
Here, the first sub-pixel rendering manner may include that the first sub-pixel of the second pixel is color-up borrowed or color-left borrowed, and the second sub-pixel is color-left borrowed or color-up borrowed.
For example, in fig. 1B, for the first pixel 103a, since the upper side of the first pixel 103a is empty, the associated first target pixel includes the first pixel 103a and the first pixel 102a, and at this time, the second target pixel may include the first pixel 103a and the first pixel 102a.
For another example, in fig. 1B, for the first pixel 107a, since the left side of the first pixel 107a is empty, the associated first target pixel includes the first pixel 107a and the first pixel 104a, and at this time, the second target pixel may include the first pixel 107a and the first pixel 104a.
Step S2712, where the target subpixel rendering manner is a second subpixel rendering manner, the second target pixel includes the first pixel, the third pixel, and the fourth pixel.
Here, the second sub-pixel rendering manner includes that the first sub-pixel of the second pixel is left color borrowing, upper color borrowing and upper left color borrowing, and the second sub-pixel is upper color borrowing and left color borrowing.
For example, in fig. 1B, for the first pixel 109a, the associated first target pixel includes the first pixel 109a, the first pixel 105a, the first pixel 106a and the first pixel 108a, and the second target pixel may include the first pixel 109a, the first pixel 106a and the first pixel 108a.
Step S2713, when the target subpixel rendering manner is a third subpixel rendering manner, the second target pixel includes the first pixel.
Here, the third sub-pixel rendering mode includes that the first sub-pixel of the second pixel is left-borrowed color, top-borrowed color and top-left borrowed color, and the second sub-pixel is not borrowed color.
For example, in fig. 1B, for the first pixel 104a, since the left side of the first pixel 104a is empty, the associated first target pixel includes the first pixel 104a and the first pixel 101a, and the second target pixel may include the first pixel 104a at this time.
Step S272, determining a fifth color value based on the second color value of the second target pixel.
Here, the manner of determining the fifth color value may include, but is not limited to, a certain second color value, a sum of squared and/or squared sum of each second color value, a sum of squared and/or squared sum of luminance values corresponding to each second color value, and the like. In implementation, a person skilled in the art may autonomously determine the fifth color value according to actual requirements, and the embodiments of the present disclosure are not limited.
For example, the sum of each second color value is taken as the fifth color value. For example, in fig. 1C, for the second pixel 108b, since the second target pixel includes the first pixel 105a and the first pixel 108a, the sum of the second color value g5 of the first pixel 105a and the second color value g8 of the first pixel 108a is taken as the fifth color value C.
In some embodiments, the fifth color value c may be obtained by the following equations (1-4):
c=∑g i (1-4);
wherein, g i And a second color value representing the ith first pixel, wherein i represents the serial number of a second target pixel associated with the first pixel, and belongs to (1, M) N, and M and N respectively represent the row number and the column number of the image.
For example, in fig. 1C, for the second pixel 106b, since the second target pixel includes the first pixel 105a and the first pixel 106a, at this time, the sum between the second color value g5 of the first pixel 105a and the second color value g6 of the first pixel 106a may be taken as the fifth color value C, i.e., C is g5+ g6.
For another example, in fig. 1C, since the second target pixel includes the first pixel 106a, the first pixel 108a, and the first pixel 109a, in the second pixel 109b, the sum of the second color value g6 of the first pixel 106a, the second color value g8 of the first pixel 108a, and the second color value g9 of the first pixel 109a may be set as the fifth color value C, that is, C is g6+ g8+ g9.
Step S273, determining a ratio between the second color value and the fifth color value of the first pixel as the target weight value.
In some embodiments, the target weight value α can be obtained by the following formula (1-5):
α=g/c (1-5);
wherein g represents the second color value of the first pixel and c represents the fifth color value.
For example, in fig. 1C, for the second pixel 106b, since the fifth color value C is g5+ g6, the corresponding target weight value α may be g 6/(g 5+ g 6). For the second pixel 109b, since the fifth color value c is g6+ g8+ g9, the corresponding target weight value α may be g 9/(g 6+ g8+ g 9).
In the disclosed embodiment, the second target pixel is determined by determining the second target pixel from the first target pixel; determining a fifth color value based on a second color value of the second target pixel; determining a ratio between a second color value and the fifth color value of the first pixel as the target weight value. Therefore, on one hand, the accuracy of the second target pixel can be improved by determining the second target pixel from the first target pixel, so that the accuracy of the target weight value can be improved, and the accuracy of the fourth color value of the second pixel can be improved; on the other hand, the target weight value is obtained through the second color value and the fifth color value of the second target pixel, so that the accuracy of the target weight value can be improved, the accuracy of the fourth color value of the second pixel can be improved, and the possibility of display region heterochromosis and image display color cast can be reduced.
The following describes an application of the image display method provided by the embodiment of the present disclosure in an actual scene, so as to convert a first pixel of an image into a second pixel. The first pixels have an RGB coding mode, the second pixels have an RGBG coding mode, the number of G pixels in the second pixels is consistent with that of the G pixels in the first pixels, the number of R pixels in the second pixels is half of that of the R pixels in the first pixels, and the number of B pixels in the second pixels is half of that of the B pixels in the first pixels.
In the related art, most SPR adopts color borrowing to four surrounding pixels, but due to the particularity of the boundary position of the OLED panel, a color cast exists in a display picture due to the fact that a part of the boundary area has a different color problem, and the use experience of a user is reduced.
On one hand, according to the position information of the pixels in the image, the corresponding sub-pixel rendering mode is adopted for pixel conversion, so that the possibility of color difference in boundary areas and color cast of image display can be reduced, the purpose of improving the definition and the display quality of the image is achieved, and the use experience of a user is improved; on the other hand, the image is displayed by utilizing a sub-pixel rendering mode, so that the number of pixels can be reduced, the effect of simulating high resolution by low resolution can be achieved, and the occupation of hardware or network resources can be reduced.
Fig. 3A is a schematic diagram of converting a first pixel of an image into a second pixel according to an embodiment of the disclosure, and as shown in fig. 3A, the image 300 includes 3 rows and 4 columns, and 12 first pixels, that is, a first pixel 301a to a first pixel 312a.
Based on the position information of each first pixel, determining the target SPR corresponding to each first pixel as:
the target SPR of the first pixel 304a and the first pixel 308a is the first sub-pixel rendering method, that is: R/B of the second pixel is upper color borrow, G of the second pixel is left color borrow;
determining the target SPR of the first pixel 309 to the first pixel 311 as another first sub-pixel rendering mode, that is: R/B of the second pixel is left borrowed color, and G of the second pixel is upper borrowed color;
determining the target SPR of the first pixel 312a as the second subpixel rendering mode, that is: R/B of the second pixel is upper color borrowing, left color borrowing and upper left color borrowing, and G of the second pixel is upper color borrowing and left color borrowing;
determining the target SPR of the first pixel 301a to the first pixel 303a and the first pixel 305a to the first pixel 307a as the third sub-pixel rendering mode, that is: R/B of the second pixel is upper color borrow, left color borrow and upper left color borrow, and G of the second pixel is not color borrow.
The first pixels 301a to 312a are converted into corresponding second pixels 301b to 312b by corresponding target SPRs, respectively. Namely:
the third color value R1 for the second pixel 301b can be calculated by the above equation (1-2), i.e.: f2 (0, r 1); the fourth color value G1 of the second pixel 301b, because G of the second pixel 301b is black, G1 is G1;
the third color value B2 of the second pixel 302B can be calculated by the above equation (1-2), i.e.: f2 (0, b1, b 2); the fourth color value G2 of the second pixel 302b, since G of the second pixel 302b is "no borrow", G2 is G2;
the third color value R3 for the second pixel 303b can be calculated by the above equation (1-2), i.e.: f2 (0, r2, r 3); the fourth color value G3 of the second pixel 303b is G3 because G of the second pixel 303b is black, and G3 is G3;
the third color value B4 for the second pixel 304B may be calculated by the above equation (1-1), i.e.: f1 (0,b4); the fourth color value G4 of the second pixel 304b, which can be calculated by the above formula (1-3), is G4 × G4/(G3 + G4);
the third color value R5 for the second pixel 305b can be calculated by the above equation (1-2), i.e.: f2 (0, r1,0, r 5); the fourth color value G5 of the second pixel 305b is G5 because G of the second pixel 305b is undried, and G5 is G5;
the third color value B6 for the second pixel 306B may be calculated by the above equation (1-2), i.e.: f2 (b 1, b2, b5, b 6); the fourth color value G6 of the second pixel 306b is G6 because G of the second pixel 306b is black, and G6 is G6;
the third color value R7 for the second pixel 307b may be calculated by the above equation (1-2), i.e.: f2 (r 2, r3, r6, r 7); the fourth color value G7 of the second pixel 307b, G7 is G7 because G of the second pixel 307b is no borrow color;
the third color value B8 for the second pixel 308B may be calculated by the above equation (1-1), i.e.: f1 (b 4, b 8); the fourth color value G8 of the second pixel 308b, which can be calculated by the above formula (1-3), is G8 × G8/(G7 + G8);
the third color value R9 for the second pixel 309b may be calculated by the above equation (1-1), i.e.: f1 (0, r9); the fourth color value G9 of the second pixel 309b, which can be calculated by the above formula (1-3), is G9 × G9/(G4 + G9);
the third color value B10 for the second pixel 310B can be calculated by the above equation (1-1), i.e.: f1 (b 9, b 10); the fourth color value G10 of the second pixel 310b, which can be calculated by the above formula (1-3), is G10 × G10/(G6 + G10);
the third color value R11 of the second pixel 311b can be calculated by the above formula (1-1), that is: f1 (r 10, r 11); the fourth color value G11 of the second pixel 311b, which can be calculated by the above formula (1-3), is G11 × G11/(G7 + G11);
the third color value B12 for the second pixel 312B can be calculated by the above equation (1-2), i.e.: f2 (b 7, b8, b11, b 12); the fourth color value G12 of the second pixel 312b, which can be calculated by the above formula (1-3), is G12 × G12/(G8 + G11+ G12).
Fig. 3B is a schematic diagram illustrating an implementation flow of an image display method according to an embodiment of the present disclosure, and as shown in fig. 3B, the method includes steps S31 to S36, where:
step S31, inputting a target image of RGB data, wherein the target image comprises at least one first pixel;
step S32, converting the RGB data of each first pixel into corresponding first brightness data through a Degamma algorithm;
s33, determining the position information of the first pixel and a corresponding target sub-pixel rendering mode;
here, when the position information is a right boundary and not a lower right corner, or a lower boundary and not a lower right corner, the target subpixel rendering manner is a first subpixel rendering manner; under the condition that the position information is in the lower right corner, the target sub-pixel rendering mode is a second sub-pixel rendering mode; when the position is other position, the target sub-pixel rendering mode is the third sub-pixel rendering mode.
Step S34, aiming at each first pixel, obtaining second brightness data of a corresponding second pixel based on first brightness data of a first target pixel associated with the first pixel by using a target sub-pixel rendering mode corresponding to the first pixel;
step S35, converting the second brightness data of each second pixel into corresponding color data through a Regamma algorithm;
step S36, driving the display panel with each second pixel to display the target image in the display panel.
In the embodiment of the disclosure, firstly, according to the position information of the pixels in the image, the corresponding sub-pixel rendering mode is adopted to perform pixel conversion, so that the possibility of color difference in the boundary area and color cast of image display can be reduced, the purpose of improving the definition and display quality of the image is achieved, and the use experience of a user is improved; secondly, color value conversion is carried out through different conversion modes, so that the interference of the color values of a part of first pixels can be reduced; thirdly, color data are converted into brightness data through a Degamma algorithm, bit width can be improved, and a coding form which accords with a human eye curve can be improved, so that the influence of data loss on image quality can be reduced; finally, the image is displayed by utilizing a sub-pixel rendering mode, so that the number of pixels can be reduced, the effect of simulating high resolution by low resolution can be achieved, and the occupation of hardware or network resources can be reduced.
Based on the above embodiments, an image display device is provided in the embodiments of the present disclosure, fig. 4A is a schematic diagram of a composition structure of an image display device provided in the embodiments of the present disclosure, as shown in fig. 4A, the device 40 includes a detection module 41, a conversion module 42, and a display module 43, where:
the detecting module 41 is configured to detect a position of a first pixel in an image, so as to obtain position information of the first pixel;
the conversion module 42 is electrically connected to the detection module, and configured to determine a target subpixel rendering manner from a preset subpixel rendering library based on the position information of the first pixel, where the subpixel rendering library includes at least two subpixel rendering manners; converting the first pixel into a second pixel based on the target sub-pixel rendering mode; outputting the second pixel to an electrically connected display module;
the display module 43 is configured to display the image.
Here, the detection module 41 may be any module capable of implementing a position detection function. Such as detectors, detection circuits, counters, etc. In implementation, a person skilled in the art may autonomously determine an implementation manner of the detection module according to actual requirements, and the embodiment of the present disclosure is not limited.
The conversion module 42 may be any module capable of implementing a pixel conversion function. Such as a conversion chip, conversion circuitry, selectors, selection circuitry, etc. In implementation, a person skilled in the art may autonomously determine an implementation manner of the conversion module according to actual requirements, and the embodiment of the present disclosure is not limited.
The display module 43 may be a display panel, a display, or the like. The display panel may include, but is not limited to, a liquid crystal display panel, an OLED, a quantum dot display panel, and the like.
In some embodiments, the conversion module 42 may include a calculation module configured to convert the first pixel into the sixth pixel by using each sub-pixel rendering manner, and a selection module configured to determine one pixel from the plurality of sixth pixels as the second pixel by using the position information of the first pixel.
Here, the calculation block may be any block capable of realizing a pixel conversion function. Such as conversion chips, conversion circuits, etc. In implementation, a person skilled in the art may autonomously determine an implementation manner of the computing module according to actual requirements, and the embodiments of the present disclosure are not limited.
The selection module may be any module capable of implementing the selection function. Such as selectors, selection circuits, and the like. In implementation, a person skilled in the art may autonomously determine an implementation manner of the selection module according to actual requirements, and the embodiment of the present disclosure is not limited.
In some embodiments, the conversion module 42 is further configured to: determining that the target sub-pixel rendering mode comprises a first sub-pixel rendering mode under the condition that the position information belongs to a first area, wherein the first sub-pixel rendering mode comprises single-side color borrowing; determining that the target sub-pixel rendering mode comprises a second sub-pixel rendering mode under the condition that the position information belongs to a second area, wherein the second sub-pixel rendering mode comprises two-side color lending or multi-side color lending; and under the condition that the position information belongs to a third area, determining that the target sub-pixel rendering mode comprises a third sub-pixel rendering mode, wherein the third sub-pixel rendering mode comprises no color borrowing or multi-edge color borrowing.
In some embodiments, the image includes M × N pixels, M is a number of rows and N is a number of columns, both M and N are positive integers, the first region includes a region having a row value smaller than M and a column value N, or a region having a row value M and a column value smaller than N, the second region includes a region having a row value M and a column value N, and the third region includes a region having a row value smaller than M and a column value smaller than N.
In some embodiments, the conversion module 42 is further configured to: determining a first target pixel associated with the first pixel based on the target sub-pixel rendering mode; determining second color information of the second pixel based on the first color information of the first target pixel; converting the first pixel into the second pixel.
In some embodiments, the conversion module 42 is further configured to: when the target subpixel rendering manner is a first subpixel rendering manner, the first target pixel includes the first pixel, a third pixel adjacent to a left side of the first pixel, and a fourth pixel adjacent to an upper side of the first pixel; when the target subpixel rendering manner is a second subpixel rendering manner or a third subpixel rendering manner, the first target pixel includes the first pixel, the third pixel, the fourth pixel, and a fifth pixel adjacent to a left side of the fourth pixel.
Here, the image display apparatus may include a memory for storing at least one pixel. In some embodiments, the memory may store other first target pixels in addition to the first pixel. For example, a third pixel, a fourth pixel, and a fifth pixel. In some embodiments, the memory is for storing at least one pixel of a previous row. For example, for the first pixel, the memory may store a fourth pixel and a fifth pixel.
In some embodiments, the first color information comprises at least a first color value and a second color value, the second color information comprising a third color value and a fourth color value; the conversion module 42 is further configured to: determining a third color value of the second pixel based on the first color value of the first target pixel; determining a fourth color value of the second pixel based on the second color value of the first target pixel.
In some embodiments, the conversion module 42 includes a weight determination module and a color value determination module, wherein: the weight determination module is used for determining a target weight value based on the second color value of the first target pixel; the color value determination module is configured to determine the fourth color value of the second pixel based on a second color value of the first pixel and the target weight value.
Here, the weight determination module may be any module capable of implementing a weight value. Such as digital selectors, digital circuits, etc. In implementation, a person skilled in the art may autonomously determine an implementation manner of the weight determination module according to actual requirements, and the embodiments of the present disclosure are not limited.
The color value determination module may be any module capable of calculating a color value. Such as calculators, digital computing circuitry, and the like. In implementation, a person skilled in the art may autonomously determine an implementation manner of the color value determination module according to actual requirements, and the embodiment of the present disclosure is not limited.
In some embodiments, the weight determination module is further configured to: determining a second target pixel from the first target pixel; determining a fifth color value based on a second color value of the second target pixel; determining a ratio between a second color value and the fifth color value of the first pixel as the target weight value.
In some embodiments, the weight determination module is further configured to: when the target subpixel rendering mode is a first subpixel rendering mode, the second target pixel includes the first pixel and a third pixel adjacent to the left side of the first pixel or a fourth pixel adjacent to the upper side of the first pixel; when the target sub-pixel rendering manner is a second sub-pixel rendering manner, the second target pixel includes the first pixel, the third pixel, and the fourth pixel; and under the condition that the target sub-pixel rendering mode is a third sub-pixel rendering mode, the second target pixel comprises the first pixel.
In some embodiments, the weight determination module is further configured to: determining a third target pixel from the first target pixels; determining a conversion mode based on the number of the third target pixels; the color value determination module is further configured to: and converting the first color value of the third target pixel into the third color value of the second pixel by using the conversion mode.
In some embodiments, the weight determining module is further configured to: when the target subpixel rendering mode is a first subpixel rendering mode, the third target pixel includes the first pixel and a fourth pixel adjacent to the upper side of the first pixel or a third pixel adjacent to the left side of the first pixel; when the target subpixel rendering manner is a second subpixel rendering manner or a third subpixel rendering manner, the third target pixel includes the first pixel, the third pixel, the fourth pixel, and a fifth pixel adjacent to the left side of the fourth pixel.
Fig. 4B is a schematic diagram illustrating a composition structure of an image display apparatus according to an embodiment of the disclosure, and as shown in fig. 4B, the image display apparatus 400 includes a detection module 41, a conversion module 42, and a display module 43, where the conversion module 42 includes a luminance converter 421, a memory 422, a weight determination module 423, at least one color value determination module 424, a selector 425, and a color value converter 426.
The luminance converter 421 for converting color information of a first pixel of an image into luminance information;
a memory 422 for storing luminance information of at least one pixel on a previous line;
a weight determining module 423, configured to determine a weight coefficient (corresponding to the target weight value and the conversion manner described above);
each color value determining module 424, configured to obtain a corresponding color value by using the corresponding weight coefficient, the first pixel, and other pixels (corresponding to the third pixel, the fourth pixel, and the fifth pixel) associated with the first pixel, where the color value is represented by luminance information;
a selector 425 configured to determine a target color value as the color value of the second pixel from the color values output from each color value determination module 424 based on the position information of the first pixel obtained by the detection module;
a color value converter 426 for converting the color value of the second pixel from the luminance information to corresponding color information.
The above description of the apparatus embodiments, similar to the above description of the method embodiments, has similar beneficial effects as the method embodiments. For technical details not disclosed in the embodiments of the apparatus of the present disclosure, reference is made to the description of the embodiments of the method of the present disclosure.
It should be noted that, in the embodiment of the present disclosure, if the method is implemented in the form of a software functional module and sold or used as a standalone product, the method may also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing an electronic device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the present disclosure are not limited to any specific combination of hardware and software.
The embodiment of the present disclosure provides a display device, including a driving apparatus and a display panel coupled with the driving apparatus, wherein:
the driving device is configured to receive a target image, convert a first pixel in the target image into a second pixel by using any one of the above methods, and drive the display panel by using the second pixel to display the image on the display panel;
the display panel is used for displaying the image.
Here, the driving means may be any means capable of realizing the functions of the above-described method. Such as driver chips, source drivers, etc. In implementation, a person skilled in the art may autonomously determine an implementation manner of the driving device according to actual requirements, and the embodiments of the present disclosure are not limited.
The display panel may include, but is not limited to, a liquid crystal display panel, an OLED, a quantum dot display panel, and the like.
An embodiment of the present disclosure provides an electronic device, which includes a memory and a processor, where the memory stores a computer program that can run on the processor, and the processor implements the method when executing the computer program.
Embodiments of the present disclosure provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the above-described method. The computer readable storage medium may be transitory or non-transitory.
The disclosed embodiments provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program, which when read and executed by a computer, performs some or all of the steps of the above method. The computer program product may be embodied in hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied in a computer storage medium, and in another alternative embodiment, the computer program product is embodied in a Software product, such as a Software Development Kit (SDK), or the like.
It should be noted that fig. 5 is a schematic diagram of a hardware entity of an electronic device in an embodiment of the present disclosure, and as shown in fig. 5, the hardware entity of the electronic device 500 includes: a processor 501, a communication interface 502, and a memory 503, wherein:
the processor 501 generally controls the overall operation of the electronic device 500.
The communication interface 502 may enable the electronic device to communicate with other terminals or servers via a network.
The Memory 503 is configured to store instructions and applications executable by the processor 501, and may also buffer data (e.g., image data, audio data, voice communication data, and video communication data) to be processed or already processed by the processor 501 and modules in the electronic device 500, and may be implemented by a FLASH Memory (FLASH) or a Random Access Memory (RAM). Data may be transferred between the processor 501, the communication interface 502, and the memory 503 via the bus 504.
Here, it should be noted that: the above description of the storage medium and device embodiments is similar to the description of the method embodiments above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and the apparatus of the present disclosure, reference is made to the description of the embodiments of the method of the present disclosure.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present disclosure. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present disclosure, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present disclosure. The above-mentioned serial numbers of the embodiments of the present disclosure are merely for description, and do not represent the advantages or disadvantages of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one of 8230, and" comprising 8230does not exclude the presence of additional like elements in a process, method, article, or apparatus comprising the element.
In the several embodiments provided in the present disclosure, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only one logical function division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated unit of the present disclosure may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing an electronic device (which may be a personal computer, a server, or a network device) to execute all or part of the methods according to the embodiments of the present disclosure. And the aforementioned storage medium includes: various media that can store program code, such as removable storage devices, ROMs, magnetic or optical disks, etc.
The above description is only an embodiment of the present disclosure, but the scope of the present disclosure is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present disclosure, and all the changes or substitutions should be covered by the scope of the present disclosure.

Claims (25)

1. An image display method, characterized in that the method comprises:
determining position information of a first pixel in the image;
determining a target sub-pixel rendering mode from a preset sub-pixel rendering library based on the position information of the first pixel, wherein the sub-pixel rendering library comprises at least two sub-pixel rendering modes;
converting the first pixel into a second pixel based on the target sub-pixel rendering mode;
driving a display panel with the second pixels to display the image in the display panel.
2. The method of claim 1, wherein determining a target subpixel rendering style from a preset subpixel rendering library based on the position information of the first pixel comprises:
determining that the target sub-pixel rendering mode comprises a first sub-pixel rendering mode under the condition that the position information belongs to a first area, wherein the first sub-pixel rendering mode comprises single-side color borrowing;
determining that the target sub-pixel rendering mode comprises a second sub-pixel rendering mode under the condition that the position information belongs to a second area, wherein the second sub-pixel rendering mode comprises two-side color borrowing or multi-side color borrowing;
and under the condition that the position information belongs to a third area, determining that the target sub-pixel rendering mode comprises a third sub-pixel rendering mode, wherein the third sub-pixel rendering mode comprises no color borrowing or multi-edge color borrowing.
3. The method of claim 2, wherein the image comprises M x N pixels, M is the number of rows and N is the number of columns, M and N are both positive integers, the first region comprises a region with a row value less than M and a column value N or a region with a row value M and a column value less than N, the second region comprises a region with a row value M and a column value N, and the third region comprises a region with a row value less than M and a column value less than N.
4. The method of claim 1, wherein converting the first pixel to a second pixel based on the target subpixel rendering mode comprises:
determining a first target pixel associated with the first pixel based on the target sub-pixel rendering mode;
determining second color information of the second pixel based on the first color information of the first target pixel;
converting the first pixel into the second pixel.
5. The method of claim 4, wherein the first color information comprises at least a first color value and a second color value, and wherein the second color information comprises a third color value and a fourth color value;
the determining second color information of the second pixel based on the first color information of the first target pixel comprises:
determining a third color value of the second pixel based on the first color value of the first target pixel;
determining a fourth color value of the second pixel based on the second color value of the first target pixel.
6. The method of claim 5, wherein determining the fourth color value of the second pixel based on the second color value of the first target pixel comprises:
determining a target weight value based on a second color value of the first target pixel;
determining the fourth color value of the second pixel based on a second color value of the first pixel and the target weight value.
7. The method of claim 6, wherein determining a target weight value based on the second color value of the first target pixel comprises:
determining a second target pixel from the first target pixel;
determining a fifth color value based on a second color value of the second target pixel;
determining a ratio between a second color value and the fifth color value of the first pixel as the target weight value.
8. The method of claim 7, wherein determining a second target pixel from the first target pixel comprises:
when the target subpixel rendering mode is a first subpixel rendering mode, the second target pixel includes the first pixel and a third pixel adjacent to the left side of the first pixel or a fourth pixel adjacent to the upper side of the first pixel;
when the target sub-pixel rendering manner is a second sub-pixel rendering manner, the second target pixel includes the first pixel, the third pixel, and the fourth pixel;
and under the condition that the target sub-pixel rendering mode is a third sub-pixel rendering mode, the second target pixel comprises the first pixel.
9. The method of any of claims 5 to 8, wherein determining the third color value of the second pixel based on the first color value of the first target pixel comprises:
determining a third target pixel from the first target pixels;
determining a conversion mode based on the number of the third target pixels;
and converting the first color value of the third target pixel into the third color value of the second pixel by using the conversion mode.
10. The method of claim 9, wherein determining a third target pixel from the first target pixel comprises:
when the target subpixel rendering mode is a first subpixel rendering mode, the third target pixel includes the first pixel and a fourth pixel adjacent to the upper side of the first pixel or a third pixel adjacent to the left side of the first pixel;
when the target subpixel rendering manner is a second subpixel rendering manner or a third subpixel rendering manner, the third target pixel includes the first pixel, the third pixel, the fourth pixel, and a fifth pixel adjacent to the left side of the fourth pixel.
11. The method according to any one of claims 4 to 8, wherein the determining a first target pixel associated with the first pixel based on the target subpixel rendering manner comprises:
when the target subpixel rendering manner is a first subpixel rendering manner, the first target pixel includes the first pixel, a third pixel adjacent to a left side of the first pixel, and a fourth pixel adjacent to an upper side of the first pixel;
when the target subpixel rendering manner is a second subpixel rendering manner or a third subpixel rendering manner, the first target pixel includes the first pixel, the third pixel, the fourth pixel, and a fifth pixel adjacent to a left side of the fourth pixel.
12. An image display apparatus, comprising a detection module, a conversion module, and a display module, wherein:
the detection module is used for detecting the position of a first pixel in an image to obtain the position information of the first pixel;
the conversion module is electrically connected with the detection module and used for determining a target sub-pixel rendering mode from a preset sub-pixel rendering library based on the position information of the first pixel, wherein the sub-pixel rendering library comprises at least two sub-pixel rendering modes; converting the first pixel into a second pixel based on the target sub-pixel rendering mode; outputting the second pixel to an electrically connected display module;
and the display module is used for displaying the image.
13. The apparatus of claim 12,
the conversion module is further configured to: determining that the target sub-pixel rendering mode comprises a first sub-pixel rendering mode under the condition that the position information belongs to a first area, wherein the first sub-pixel rendering mode comprises single-side color borrowing; determining that the target sub-pixel rendering mode comprises a second sub-pixel rendering mode under the condition that the position information belongs to a second area, wherein the second sub-pixel rendering mode comprises two-side color lending or multi-side color lending; and under the condition that the position information belongs to a third area, determining that the target sub-pixel rendering mode comprises a third sub-pixel rendering mode, wherein the third sub-pixel rendering mode comprises no color borrowing or multi-edge color borrowing.
14. The device of claim 13, wherein the image comprises M x N pixels, M is the number of rows and N is the number of columns, M and N are both positive integers, the first region comprises a region with a row value less than M and a column value N or a region with a row value M and a column value less than N, the second region comprises a region with a row value M and a column value N, and the third region comprises a region with a row value less than M and a column value less than N.
15. The apparatus of claim 13,
the conversion module is further configured to: determining a first target pixel associated with the first pixel based on the target sub-pixel rendering mode; determining second color information of the second pixel based on the first color information of the first target pixel; converting the first pixel into the second pixel.
16. The apparatus of claim 15, wherein the first color information comprises at least a first color value and a second color value, and wherein the second color information comprises a third color value and a fourth color value;
the conversion module is further configured to: determining a third color value of the second pixel based on the first color value of the first target pixel; determining a fourth color value of the second pixel based on the second color value of the first target pixel.
17. The apparatus of claim 16, wherein the conversion module comprises a weight determination module and a color value determination module, wherein:
the weight determination module is used for determining a target weight value based on the second color value of the first target pixel;
the color value determination module is configured to determine the fourth color value of the second pixel based on a second color value of the first pixel and the target weight value.
18. The apparatus of claim 17,
the weight determination module is further configured to: determining a second target pixel from the first target pixel; determining a fifth color value based on a second color value of the second target pixel; determining a ratio between a second color value and the fifth color value of the first pixel as the target weight value.
19. The apparatus of claim 18,
the weight determination module is further configured to: when the target subpixel rendering manner is a first subpixel rendering manner, the second target pixel includes the first pixel, and a third pixel adjacent to a left side of the first pixel or a fourth pixel adjacent to an upper side of the first pixel; when the target sub-pixel rendering manner is a second sub-pixel rendering manner, the second target pixel includes the first pixel, the third pixel, and the fourth pixel; and under the condition that the target sub-pixel rendering mode is a third sub-pixel rendering mode, the second target pixel comprises the first pixel.
20. The apparatus of any one of claims 17 to 19,
the weight determination module is further configured to: determining a third target pixel from the first target pixels; determining a conversion mode based on the number of the third target pixels;
the color value determination module is further configured to: and converting the first color value of the third target pixel into the third color value of the second pixel by using the conversion mode.
21. The apparatus of claim 20,
the weight determination module is further configured to: when the target subpixel rendering manner is a first subpixel rendering manner, the third target pixel includes the first pixel, and a fourth pixel adjacent to an upper side of the first pixel or a third pixel adjacent to a left side of the first pixel; when the target subpixel rendering manner is a second subpixel rendering manner or a third subpixel rendering manner, the third target pixel includes the first pixel, the third pixel, the fourth pixel, and a fifth pixel adjacent to the left side of the fourth pixel.
22. The apparatus of any one of claims 15 to 19,
the conversion module is further configured to: when the target subpixel rendering manner is a first subpixel rendering manner, the first target pixel includes the first pixel, a third pixel adjacent to a left side of the first pixel, and a fourth pixel adjacent to an upper side of the first pixel; when the target subpixel rendering manner is a second subpixel rendering manner or a third subpixel rendering manner, the first target pixel includes the first pixel, the third pixel, the fourth pixel, and a fifth pixel adjacent to a left side of the fourth pixel.
23. A display device comprising a driving means and a display panel coupled to the driving means, wherein:
the driving device is used for receiving a target image, converting a first pixel in the target image into a second pixel by adopting the method of any one of claims 1 to 11, and driving the display panel by using the second pixel to display the image in the display panel;
the display panel is used for displaying the target image.
24. An electronic device comprising a processor and a memory, said memory storing a computer program operable on the processor, wherein said processor implements the method of any of claims 1 to 11 when executing said computer program.
25. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method of any one of claims 1 to 11.
CN202211201296.4A 2022-09-29 2022-09-29 Image display method and device, display device, electronic device and storage medium Pending CN115512654A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211201296.4A CN115512654A (en) 2022-09-29 2022-09-29 Image display method and device, display device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211201296.4A CN115512654A (en) 2022-09-29 2022-09-29 Image display method and device, display device, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN115512654A true CN115512654A (en) 2022-12-23

Family

ID=84509112

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211201296.4A Pending CN115512654A (en) 2022-09-29 2022-09-29 Image display method and device, display device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN115512654A (en)

Cited By (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

Cited By (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

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
KR20220156669A (en) Display processing circuitry
CN101360250B (en) Immersion method and system, factor dominating method, content analysis method and parameter prediction method
US7864193B2 (en) RGB color conversion palettes
WO2018072270A1 (en) Method and device for enhancing image display
CN101248443B (en) Image processing using saltating samples
TWI777536B (en) Enhanced training method and device for image recognition model
WO2022068293A1 (en) Page display method and apparatus
JP2022520264A (en) Image brightness adjustment methods and devices, electronic devices and computer programs
CN115512654A (en) Image display method and device, display device, electronic device and storage medium
US20230074060A1 (en) Artificial-intelligence-based image processing method and apparatus, electronic device, computer-readable storage medium, and computer program product
CN112037160B (en) Image processing method, device and equipment
CN110767197A (en) Display control method, difference information determination device, and display device
CN113314079A (en) Picture display method and device, electronic equipment and storage medium
CN112750086A (en) Image processing method and device, electronic equipment and storage medium
WO2022042232A1 (en) Dark mode generation method for user interface, electronic device, and storage medium
WO2022120799A1 (en) Image processing method and apparatus, electronic device, and storage medium
Jing [Retracted] Design and Realization of Animation Composition and Tone Space Conversion Algorithm
US10013908B2 (en) Display devices and displaying methods
CN114898718B (en) Real-time color conversion method for color electrowetting electronic paper
CN114374830B (en) Image white balance method, electronic device and computer readable storage medium
TWI356394B (en) Image data generating device, image data generatin
Schaefer et al. A hybrid color quantization algorithm incorporating a human visual perception model
CN113496529A (en) Display control method, device and electronic system
TWI840116B (en) Display device and display method

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