WO2017063227A1 - 显示设备及其显示方法 - Google Patents

显示设备及其显示方法 Download PDF

Info

Publication number
WO2017063227A1
WO2017063227A1 PCT/CN2015/092897 CN2015092897W WO2017063227A1 WO 2017063227 A1 WO2017063227 A1 WO 2017063227A1 CN 2015092897 W CN2015092897 W CN 2015092897W WO 2017063227 A1 WO2017063227 A1 WO 2017063227A1
Authority
WO
WIPO (PCT)
Prior art keywords
pixel
sub
current
original
pixels
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.)
Ceased
Application number
PCT/CN2015/092897
Other languages
English (en)
French (fr)
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.)
TCL China Star Optoelectronics Technology Co Ltd
Original Assignee
Shenzhen China Star Optoelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen China Star Optoelectronics Technology Co Ltd filed Critical Shenzhen China Star Optoelectronics Technology Co Ltd
Priority to US14/896,728 priority Critical patent/US10013908B2/en
Publication of WO2017063227A1 publication Critical patent/WO2017063227A1/zh
Anticipated expiration legal-status Critical
Ceased 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
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/02Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the way in which colour is displayed

Definitions

  • the present invention relates to the field of display technologies, and in particular, to a display device and a display method thereof.
  • high-resolution content is often displayed on a low-physical resolution device, such as lowering the high-resolution 4K2K data content to a low-resolution 2K1K and displaying it. Display on the panel, while also ensuring the spatial resolution and detail clarity of the output image.
  • Sub-pixel rendering and sub-pixel multiplexing can improve display spatial resolution.
  • the RGBW sub-pixels are separately sampled at each spatial position of the original pixel, and then combined into a new image.
  • This sub-pixel sampling method is called direct sub-pixel down sampling (DSD, Direct). Subpixel-based Down-sampling).
  • DSD direct sub-pixel down sampling
  • Subpixel-based Down-sampling can effectively improve the spatial display resolution, the image edge region is prone to color aliasing, resulting in image blur.
  • the technical problem to be solved by the present invention is to provide a display device and a display method thereof, which can effectively eliminate color aliasing and obtain a clear image.
  • a technical solution adopted by the present invention is to provide a display method of a display device, comprising: acquiring grayscale values of a current original pixel of an original image and a plurality of sub-pixels of the adjacent original pixel; a grayscale value of each of the primary color sub-pixels of the current original pixel, determining whether the current original pixel is a solid color pixel; if it is a solid color pixel, according to the sub-pixel of the current original pixel having a grayscale value greater than zero a position in the current original pixel and a position of the current sub-pixel of the current sampling pixel at a position of the current sampling pixel, selectively filling a grayscale value of the sub-pixel with a grayscale value greater than zero to the current sampling pixel or a corresponding sub-pixel of the previous sample pixel; if not a solid color pixel, performing the following steps: calculating a gray gradient of the primary color sub-pixel in the plurality of sub-pixels of
  • the method further includes: selecting a maximum gray of the fourth sub-pixel of the current original pixel and its adjacent original pixel a step value to obtain a grayscale value of the fourth subpixel of the current sampled pixel; filling a grayscale value of the fourth subpixel of the current sampled pixel to a fourth subsample of the current sampled pixel Su.
  • the step of selectively filling the grayscale value of the sub-pixel with the grayscale value greater than zero to the corresponding subpixel of the current sampling pixel or the previous sampling pixel includes: if the grayscale value in the current original pixel a sub-pixel greater than zero is the first sub-pixel or the second sub-pixel of the current original pixel, and the current sub-pixel of the current sampling pixel is the first sub-pixel or the second sub-pixel of the current sampling pixel, Filling a grayscale value of the first subpixel and the second subpixel in the current original pixel to a first subpixel and a second subpixel of the current sampling pixel; if the gray in the current original pixel The sub-pixel whose order value is greater than zero is the first sub-pixel or the second sub-pixel of the current original pixel, and the current sub-pixel of the current sampling pixel is the third sub-pixel or the fourth sub-pixel of the current sampling pixel Filling a grayscale value of the first sub-pixel and the second sub-pixel in the current original pixel to the
  • the current sampling pixel is divided into at least two groups of sub-pixels, wherein a sub-pixel of the group of sub-pixels is a current sub-pixel of the current sampling pixel, and the current original pixel and the current sampling pixel include a current sub-pixel A set of sub-pixels of a pixel correspond.
  • the calculating the gray gradient of the primary color sub-pixels of the plurality of sub-pixels of the current original pixel comprises: calculating the gray gradient according to the following formula:
  • GL G_max max ⁇
  • the R i , G i , B i are grayscale values of the first sub-pixel, the second sub-pixel, and the third sub-pixel of the current original pixel, and the R i-1 , G i-1 , B i-1 , a grayscale value of the first sub-pixel, the second sub-pixel, and the third sub-pixel of the previous adjacent original pixel of the current original pixel, the R i+1 , G i+1 , B i +1 is a grayscale value of the first sub-pixel, the second sub-pixel, and the third sub-pixel of the next adjacent original pixel of the current original pixel, and the GL R_max , GL G_max , and GL B_max are respectively the current a gray gradient of the first sub-pixel, the second sub-pixel, and the third sub-pixel of the original pixel; the step of selecting a maximum gray gradient value from the gray gradient includes: from the GL R_max , GL G_max , The maximum gray gradient value is selected among
  • GL C_max max ⁇ GL R_max , GL G_max , GL B_max ⁇
  • the GL C_max is a maximum gray gradient value.
  • the step of determining, according to the maximum gray gradient value, a plurality of weighting weights corresponding to current sampling pixels of the sampled image includes:
  • the five weighting weights w 1 , w 2 , w 3 , w 4 , w 5 corresponding to the current sampling pixel are determined according to the following calculation formula:
  • f(x) ax 3 +bx 2 +cx+d
  • x k/255 ⁇ [0,1]
  • a, b, c, d are the fitting coefficients of the f(x)
  • ⁇ 1 , ⁇ 2 , ⁇ 3 , ⁇ 4 , ⁇ 5 are weight assignment adjustment coefficients
  • the gray scale values of the primary color pixels of the current original pixel and its adjacent original pixels are performed by using the plurality of weight weights
  • the weighting summation to obtain the grayscale value of the primary color subpixel of the current subpixel of the current sampling pixel includes: acquiring the grayscale value of the primary color subpixel of the current subpixel of the current sampling pixel according to the following formula:
  • h o w 1 *h i-2 +w 2 *h i-1 +w 3 *h i +w 4 *h i+1 +w 5 *h i+2
  • h o represents a grayscale value of a primary color sub-pixel of a current sub-pixel of the current sampling pixel
  • h i represents a grayscale value of the primary color sub-pixel of the current original pixel
  • h i-2 , h i- 1 respectively indicating grayscale values of primary color sub-pixels of the first two adjacent original pixels of the current original pixel
  • h i+1 , h i+2 respectively representing the last two adjacent original pixels of the current original pixel
  • another technical solution adopted by the present invention is to provide a display method of a display device, including: acquiring grayscale values of a current original pixel of an original image and a plurality of sub-pixels of the adjacent original pixel; a gray gradient of the primary color sub-pixels of the plurality of sub-pixels of the current original pixel, and selecting a maximum gray gradient value from the gray gradient; determining a current sampling pixel of the sampled image according to the maximum gray gradient value Corresponding multiple weighting weights; weighting and summing the grayscale values of the primary color pixels and the primary color pixels of the adjacent original pixels by using the plurality of weighting weights to obtain a current sub-pixel of the current sampling pixel a grayscale value of the primary color sub-pixel; the grayscale value of the primary color sub-pixel of the current sub-pixel of the current sampling pixel is respectively corresponding to the primary color sub-pixel filled to the current sampling pixel.
  • the method includes: determining, according to the grayscale value of each of the primary color subpixels of the current original pixel, Whether the current original pixel is a solid color pixel; if not a solid color pixel, performing the step of calculating a gray level of the primary color sub-pixel of the plurality of sub-pixels of the current original pixel; if it is a solid color pixel, according to the current a position of a sub-pixel having a grayscale value greater than zero in the original pixel in the current original pixel and a position of the current sub-pixel of the current sampling pixel at the current sampling pixel, the child whose grayscale value is greater than zero
  • the grayscale value of the pixel is selectively filled to the corresponding subpixel of the current sampled pixel or the previous sampled pixel.
  • the current original pixel and the current sampling pixel respectively include a first sub-pixel, a second sub-pixel, a third sub-pixel, and a fourth sub-pixel, which are sequentially arranged, wherein the sub-matrix value is greater than zero
  • the step of selectively filling the grayscale value of the pixel to the corresponding subpixel of the current sample pixel or the previous sample pixel includes: if the gray pixel value in the current original pixel is greater than zero, the current original pixel is a first sub-pixel or a second sub-pixel, and the current sub-pixel of the current sampling pixel is the first sub-pixel or the second sub-pixel of the current sampling pixel, then the first sub-pixel in the current original pixel And the grayscale value of the second subpixel is filled to the first subpixel and the second subpixel of the current sampling pixel; if the grayscale value in the current original pixel is greater than zero, the current primitive is the current original a first sub-pixel or a second sub-pixel of the pixel, and the current
  • the current original pixel and the current sampling pixel respectively include a first sub-pixel, a second sub-pixel, a third sub-pixel, and a fourth sub-pixel, which are sequentially arranged, the first sub-pixel and the second sub-pixel.
  • the third sub-pixel is a primary color sub-pixel
  • the fourth sub-pixel is a non-primary color sub-pixel
  • the step of acquiring the grayscale value of the current original pixel of the original image and the plurality of sub-pixels of the adjacent original pixel includes Selecting a maximum grayscale value of the fourth subpixel of the current original pixel and its neighboring original pixel to obtain a grayscale value of the fourth subpixel of the current sampling pixel; and fourth of the current sampling pixel
  • the grayscale value of the subpixel is filled to the fourth subpixel of the current sampled pixel.
  • the current original pixel and the current sampling pixel respectively include a first sub-pixel, a second sub-pixel, a third sub-pixel, and a fourth sub-pixel, which are sequentially arranged, and the current sampling pixel is divided into at least two groups of sub-pixels.
  • a pixel wherein a sub-pixel of the group of sub-pixels is a current sub-pixel of the current sample pixel, and the current original pixel corresponds to a group of sub-pixels of the current sample pixel that include a current sub-pixel.
  • the current original pixel and the current sampling pixel respectively include a first sub-pixel, a second sub-pixel, a third sub-pixel, and a fourth sub-pixel, which are sequentially arranged, the first sub-pixel and the second sub-pixel.
  • the third sub-pixel is a primary color sub-pixel
  • the calculating the gray gradient of the primary color sub-pixel of the plurality of sub-pixels of the current original pixel comprises: calculating the gray gradient according to the following formula:
  • GL G_max max ⁇
  • the R i , G i , B i are grayscale values of the first sub-pixel, the second sub-pixel, and the third sub-pixel of the current original pixel, and the R i-1 , G i-1 , B i-1 , a grayscale value of the first sub-pixel, the second sub-pixel, and the third sub-pixel of the previous adjacent original pixel of the current original pixel, the R i+1 , G i+1 , B i +1 is a grayscale value of the first sub-pixel, the second sub-pixel, and the third sub-pixel of the next adjacent original pixel of the current original pixel, and the GL R_max , GL G_max , and GL B_max are respectively the current a gray gradient of the first sub-pixel, the second sub-pixel, and the third sub-pixel of the original pixel; the step of selecting a maximum gray gradient value from the gray gradient includes: from the GL R_max , GL G_max , The maximum gray gradient value is selected among
  • GL C_max max ⁇ GL R_max , GL G_max , GL B_max ⁇
  • the GL C_max is a maximum gray gradient value.
  • f(x) ax 3 +bx 2 +cx+d
  • x k/255 ⁇ [0,1]
  • a, b, c, d are the fitting coefficients of the f(x)
  • ⁇ 1 , ⁇ 2 , ⁇ 3 , ⁇ 4 , ⁇ 5 are weight assignment adjustment coefficients
  • the gray scale values of the primary color pixels of the current original pixel and its adjacent original pixels are performed by using the plurality of weight weights
  • the weighting summation to obtain the grayscale value of the primary color subpixel of the current subpixel of the current sampling pixel includes: acquiring the grayscale value of the primary color subpixel of the current subpixel of the current sampling pixel according to the following formula:
  • h o w 1 *h i-2 +w 2 *h i-1 +w 3 *h i +w 4 *h i+1 +w 5 *h i+2
  • h o represents a grayscale value of a primary color sub-pixel of a current sub-pixel of the current sampling pixel
  • h i represents a grayscale value of the primary color sub-pixel of the current original pixel
  • h i-2 , h i- 1 respectively indicating grayscale values of primary color sub-pixels of the first two adjacent original pixels of the current original pixel
  • h i+1 , h i+2 respectively representing the last two adjacent original pixels of the current original pixel
  • a display device including: a grayscale value acquiring unit, configured to acquire a current original pixel of an original image and a plurality of subpixels of the adjacent original pixel thereof a gray scale value calculation unit, configured to calculate a gray gradient of the primary color sub-pixels of the plurality of sub-pixels of the current original pixel, and select a maximum gray gradient value from the gray gradient; the weight determination unit And determining, according to the maximum gray gradient value, a current sampling of the sampled image And a plurality of weighting weights corresponding to the sample pixels, wherein the summing unit is configured to perform weighted summation on the grayscale values of the primary color pixels and the primary color pixels of the adjacent original pixels by using the plurality of weighting weights to obtain a grayscale value of the primary color sub-pixel of the current sub-pixel of the current sampling pixel; a filling unit, configured to respectively fill the grayscale value of the primary color sub-pixel of
  • the method further includes: a determining unit, configured to determine, according to the grayscale value of each of the primary color sub-pixels of the current original pixel, whether the current original pixel is a solid color pixel, wherein the gray gradient degree calculating unit is used in the When the current original pixel is not a solid color pixel, the gray level of the primary color sub-pixel in the plurality of sub-pixels of the current original pixel is calculated; and the control unit is configured to: when the current original pixel is a solid color pixel, according to the current a position of a sub-pixel having a grayscale value greater than zero in the original pixel in the current original pixel and a position of the current sub-pixel of the current sampling pixel at the current sampling pixel, the child whose grayscale value is greater than zero
  • the grayscale value of the pixel is selectively filled to the corresponding subpixel of the current sampled pixel or the previous sampled pixel.
  • the current original pixel and the current sampling pixel respectively include a first sub-pixel, a second sub-pixel, a third sub-pixel, and a fourth sub-pixel, which are sequentially arranged, and the control unit is configured to: in the current a sub-pixel having a grayscale value greater than zero in the original pixel is a first sub-pixel or a second sub-pixel of the current original pixel, and a current sub-pixel of the current sampling pixel is a first sub-pixel of the current sampling pixel Or the second sub-pixel, the grayscale values of the first sub-pixel and the second sub-pixel in the current original pixel are filled to the first sub-pixel and the second sub-pixel of the current sampling pixel; a sub-pixel in which a grayscale value in the current original pixel is greater than zero is a first sub-pixel or a second sub-pixel of the current original pixel, and a current sub-pixel of the current sampling pixel is a third of the current sampling pixel a sub-pixel or a fourth sub-pixel
  • the beneficial effects of the present invention are: different from the prior art, in the present invention, first obtaining the gray gradient of the primary color sub-pixels in the plurality of sub-pixels of the original pixel, and selecting the maximum gray gradient value, and then according to the maximum gray ladder
  • the degree value determines a plurality of weighting weights corresponding to the current sampling pixel of the sampled image, and uses a plurality of weighting weights to weight and sum the grayscale values of the current primary pixel and the primary color sub-pixel of the adjacent original pixel to obtain the current sampling.
  • the grayscale value of the primary color sub-pixel of the current sub-pixel of the pixel is filled with the gray-scale value of the primary color sub-pixel of the current sub-pixel of the current sampling pixel to the primary color sub-pixel of the current sampling pixel, and the current sampling is obtained by weighted summation.
  • the grayscale value of the pixel can effectively eliminate color aliasing and obtain a clear image.
  • FIG. 1 is a flow chart of an embodiment of a display method of a display device
  • FIG. 2 is a schematic diagram showing a pixel structure of an original image and a sample image in an embodiment of the display method of the present invention
  • FIG. 3 is a schematic diagram showing a cubic polynomial function constructed in an embodiment of the display method of the present invention.
  • FIG. 4 is a flow chart after the step of acquiring the grayscale values of the current original pixels of the original image and the plurality of sub-pixels of the adjacent original pixels in an embodiment of the display method of the present invention
  • FIG. 5 is a schematic diagram showing a specific structure of a row of pixels of an original image and a sample image in an embodiment of the display method of the present invention
  • FIG. 6 is a schematic structural view of an embodiment of a display device of the present invention.
  • FIG. 1 is a flow chart of an embodiment of a display method of a display device according to the present invention.
  • the method is used to sequentially calculate sampling pixels of a sample image to convert an original image including a pixel matrix M*N into a sample image including a pixel matrix P*Q, wherein M, N, P, and Q are natural numbers, and P ⁇ M Q ⁇ N, whereby a display device having a low resolution can be made to display an original image with high resolution.
  • the method includes the following steps:
  • Step S101 Acquire a grayscale value of a current original pixel of the original image and a plurality of subpixels of the adjacent original pixel.
  • the resolution of the sampled image 40 is P*Q
  • the resolution of the display device is the same as the resolution of the sampled image 40
  • the resolution of the original image 30 is M*N.
  • the sampled pixels of the sampled image 40 are the corresponding pixels obtained after the M*N original pixels of the original image 30 are sampled.
  • the original pixel and the sampling pixel respectively include a first sub-pixel R, a second sub-pixel G, a third sub-pixel B, and a fourth sub-pixel W which are sequentially arranged.
  • the first sub-pixel R, the second sub-pixel G, the third sub-pixel B, and the fourth sub-pixel W are a red sub-pixel, a green sub-pixel, a blue sub-pixel, and a white sub-pixel, respectively.
  • the original image 30 is converted from an input image including a pixel matrix M*N.
  • the input pixels of the input image include red sub-pixels, green sub-pixels, and blue sub-pixels that are sequentially arranged.
  • the input pixel corresponds to the original pixel one by one.
  • the current original pixel P i of the original image 30 and the first sub-pixel R, the second sub-pixel G, and the third sub-pixel B of the adjacent original pixels P i-1 , P i+1 are first acquired.
  • Step S102 Calculate a gray gradient of the primary color sub-pixels of the plurality of sub-pixels of the current original pixel, and select a maximum gray gradient value from the gray gradient.
  • the first sub-pixel R, the second sub-pixel G, and the third sub-pixel B are primary color sub-pixels, and the fourth sub-pixel W is a non-primary color sub-pixel.
  • the gray level of the primary color sub-pixel of the current original pixel P i is calculated by the following formula:
  • GL C_max max ⁇ GL R_max , GL G_max , GL B_max ⁇ wire..(4)
  • the formulas (1), (2), and (3) are respectively used to calculate the gray gradients of the first sub-pixel R, the second sub-pixel G, and the third sub-pixel B of the current original pixel P i , R i , G i , B i is the gray scale value of the first sub-pixel R, the second sub-pixel G, and the third sub-pixel B of the current original pixel P i , respectively, and R i-1 , G i-1 , and B i-1 are respectively the current original the original gray scale value of the previous neighboring pixel P i P i-1 of the first sub-pixel R, the second sub-pixel G, and the third sub-pixel B, R i + 1, G i + 1, B i + 1 is the grayscale value of the first sub-pixel R, the second sub-pixel G, and the third sub-pixel B of the next adjacent original pixel P i+1 of the current original pixel P i , respectively, GL R_max , GL G_max , GL B
  • Step S103 Determine a plurality of weighting weights corresponding to current sampling pixels of the sampled image according to the maximum gray gradient value.
  • a plurality of weighting weights corresponding to the current sampling pixel P o are calculated by constructing a cubic polynomial function, and the cubic polynomial is as follows:
  • a, b, c, d are the fitting coefficients of the cubic polynomial f(x), which can be determined according to the experimental situation.
  • the curve of the cubic polynomial function f(x) is shown in Fig. 3 is shown.
  • the plurality of weighting weights corresponding to the current sampling pixel P o can be expressed as follows:
  • w 1 , w 2 , w 3 , w 4 , and w 5 are the five weighting weights corresponding to the current sampling pixel P o
  • Step S104 Perform weighted summation on the grayscale values of the primary color pixels and the primary color pixels of the adjacent original pixels by using a plurality of weighting weights to obtain grayscale values of the primary color subpixels of the current subpixel of the current sampling pixel.
  • the grayscale value of the primary color sub-pixel of the current sub-pixel of the current sampling pixel P o can be calculated by the following calculation formula:
  • h o w 1 *h i-2 +w 2 *h i-1 +w 3 *h i +w 4 *h i+1 +w 5 *h i+2 .......... .(11)
  • h o represents the gray level value of the primary color sub-pixel of the current sub-pixel of the current sampling pixel P o
  • h i represents the gray level value of the primary color sub-pixel of the current original pixel P i
  • h i-2 and h i-1 respectively represents the current first two adjacent original pixels P i-2
  • P is the pixel gray level value i-1 of original primary color sub-pixel P i is, h i + 1, h i + 2 represent the original pixel P i of the current
  • the grayscale value of the primary color sub-pixels of two adjacent original pixels P i+1 , P i+2 that is, the primary color sub-pixels of the current original pixel P i and the adjacent first two original pixels P i-2
  • the gray-scale values of the primary color sub-pixels of P i-1 and the primary color sub-pixels of the adjacent two original original pixels P i+1 , P i+2 are weighted and summed to obtain the primary color of the current
  • R o w 1 *R i-2 +w 2 *R i-1 +w 3 *R i +w 4 *R i+1 +w 5 *R i+2
  • R i represents the grayscale value of the first sub-pixel R of the current original pixel P i
  • R i-2 and R i-1 respectively represent the first two adjacent original pixels P i-2 , P of the current original pixel P i
  • the gray scale value of the first sub-pixel R of i-1 , R i+1 , R i+2 respectively represent the first two adjacent original pixels P i+1 , P i+2 of the current original pixel P i
  • the weighting weights may also be only two, three, seven or other quantities, that is, more or better adjacent original pixels may be selected for weighted summation to obtain samples.
  • the grayscale value of the subpixel of the pixel may also be only two, three, seven or other quantities, that is, more or better adjacent original pixels may be selected for weighted summation to obtain samples.
  • Step S105 Corresponding to the gray color values of the primary color sub-pixels of the current sub-pixel of the current sampling pixel respectively to the primary color sub-pixels of the current sampling pixel.
  • gray scale value corresponds to the current fill color sub-pixel sampling of the pixel P o, the current sample to effect display pixel color sub-pixels.
  • the grayscale values of the primary color sub-pixels of the sampling pixels of the remaining sampled images can be obtained by using the above steps S101 to S105.
  • the method includes: selecting a maximum grayscale value of a fourth sub-pixel of a current original pixel and an adjacent original pixel thereof to obtain a grayscale value of the fourth sub-pixel W of the current sampling pixel. Filling the grayscale value of the fourth subpixel of the current sampled pixel to the fourth subpixel of the current sampled pixel.
  • a current gray level value of the fourth current subpixel W sub-pixel samples in the pixel P o is obtained using the following formula:
  • W o is the grayscale value of the fourth sub-pixel W in the current sub-pixel of the current sampling pixel P o
  • W i is the grayscale value of the fourth sub-pixel W of the current original pixel P i
  • Wi 1 is the current value of the previous grayscale original pixel adjacent to the original pixel P i P i-1 of the fourth sub-pixel W, W i + 1 of the current after a second original pixel adjacent to the original pixel P i P i + 1 of
  • the gray scale value of the four sub-pixels W, W o is equal to the largest of W i , W i-1 , W i+1 .
  • the grayscale values of the four subpixels of the current sampled pixel can be obtained.
  • the gray level of the primary color sub-pixel of the current original pixel is first calculated, and then the weighting weight of the current sampling pixel is constructed according to the gray gradient to perform the weighting weight on the current primary pixel and the primary color sub-pixel of the adjacent original pixel.
  • the weighted summation further obtains the grayscale value of the primary color sub-pixel of the current sampling pixel, that is, the surrounding pixels are used to improve the resolution, and the color sampling phenomenon of the obtained sampling image can be avoided compared with the existing sampling method, and the obtained image can be obtained. Clear sampled image.
  • one sampling pixel is divided into two sets of sub-pixels, wherein one set of sub-pixels is a RG sub-pixel group including a first sub-pixel R and a second sub-pixel G Another set of sub-pixels is a BG sub-pixel group including a third sub-pixel B and a fourth sub-pixel W.
  • Each of the original pixels corresponds to a group of sub-pixels in one sampling pixel, that is, each sampling pixel corresponds to two original pixels. For example, as shown in FIG.
  • a set of RG sub-pixel groups circled by a dotted ellipse circle corresponds to a set of RGBW sub-pixel groups circled by a dotted ellipse circle
  • a set of BWs circled by a solid elliptical circle The sub-pixel group corresponds to a set of RGBW sub-pixel groups circled by a solid elliptical circle.
  • the current sampling pixel P o includes two sets of sub-pixels: an RG sub-pixel group and a BW sub-pixel group.
  • the current sub-pixel of the current sampling pixel P o is the first sub-pixel R or the second sub-pixel G, that is, the current original pixel P i corresponds to the RG sub-pixel group of the current sampling pixel P o
  • the currently processed sub-pixel is the current sampling pixel P o subpixel R in the first or the second sub-pixel G, and the current pixel P o of the sample BW sub-pixel group with the next original pixel P i + 1 correspond.
  • the current pixel P i calculated original gray value of the current pixel P o sampled first subpixel and the second subpixel R G according to the specific can (11) of the current sample to obtain a first calculated pixel P o according to the formula Gray scale values R o , G o of one sub-pixel R and second sub-pixel G:
  • R o w 1 *R i-2 +w 2 *R i-1 +w 3 *R i +w 4 *R i+1 +w 5 *R i+2
  • G o w 1 *G i-2 +w 2 *G i-1 +w 3 *G i +w 4 *G i+1 +w 5 *G i+2
  • the original pixels in accordance with the BW sub-pixel group corresponding to P i + 1 is calculated, i.e. the current at this time is sampled pixels P o
  • the third sub-pixel B is the current sub-pixel
  • the original pixel P i+1 is the current original pixel
  • the gray-scale value B o of the third sub-pixel B of the current sampling pixel P o can be calculated according to formula (11):
  • B i+1 is a grayscale value of the third sub-pixel B which is the original pixel P i+1 of the current original pixel.
  • W i+1 is a grayscale value of the fourth sub-pixel W which is the original pixel P i+1 of the current original pixel.
  • the original pixel corresponding to the RG sub-pixel group is used as the current original pixel.
  • the current sub-pixel of the current sample pixel to be calculated is a sub-pixel of the BW sub-pixel group
  • the original pixel corresponding to the BW sub-pixel group is used as the current original pixel, thereby calculating the primary color of the sampled pixel according to the above steps S101-S105
  • the gray scale value of the sub-pixel, and the gray scale value of the non-primary color sub-pixel of the sampled pixel obtained according to formula (12).
  • the RG sub-pixel group and the BW sub-pixel of the current sampling pixel respectively correspond to different original pixels.
  • the gray scale value for the remaining sampled pixels can be obtained as described above.
  • one sampling pixel is divided into two sets of sub-pixels, and each set of original pixels corresponds to a set of sub-pixels of one sampling pixel, that is, each sampling pixel corresponds to two sets of original pixels, and the horizontal resolution of the original image
  • the vertical resolution is the same for the horizontal resolution of the sampled pixels. Therefore, if a set of sub-pixels of the sampled pixel is used as a virtual sampled pixel of the sampled image, the resolution of the virtual sampled image composed of the virtual sampled pixels is The resolution of the original image is the same, so when the virtual sample image is displayed on the display device, the displayed virtual sample image is the same high-resolution image as the original image, thereby obtaining a high-resolution display image. Can improve the clarity of the image.
  • one sampling pixel may be divided into four groups of sub-pixels, each group of sub-pixels includes one sub-pixel, and each group of sub-pixels corresponds to one original pixel, and each group of sampling pixels
  • the grayscale value of the subpixel is calculated according to the grayscale of the original pixel to which it corresponds.
  • the grayscale values of the current original pixels of the original image and the plurality of sub-pixels of the adjacent original pixels are acquired. After the step, the following steps are included:
  • Step S401 Determine whether the current original pixel is a solid color pixel according to the grayscale value of each of the primary color sub-pixels of the current original pixel.
  • the current pixel P i of the first original sub-pixel R, the second sub-pixel grayscale value G, and the third sub-pixel B is determined whether the current original pixel P i solid color pixels.
  • the method is determined as follows: determining a first subpixel R of the current pixel P i of the original gray scale value of the second sub-pixel G, and the third sub-pixel B if there are two circumstances simultaneously zero, when a current original pixel P i If the gray scale values of any two primary color sub-pixels are zero at the same time, the current original pixel P i is a solid color pixel. If there is no case where the gray scale values of the two sub-pixels are simultaneously zero, the current original pixel P i is not a solid color. Pixel.
  • Step S402 If it is not a solid color pixel, perform a step of calculating a gray gradient of the primary color sub-pixels of the plurality of sub-pixels of the current original pixel.
  • step S102 is performed, and steps S103-S105 are performed to determine a grayscale value of the primary color sub-pixel of the current sub-pixel of the current sampled pixel.
  • Step S403 If it is a solid color pixel, the grayscale value is greater than the position of the current pixel in the current original pixel and the current subpixel of the current sampling pixel in the current sampling pixel according to the current original pixel in which the grayscale value is greater than zero.
  • the grayscale value of the zero subpixel is selectively filled to the corresponding subpixel of the current sampled pixel or the previous sampled pixel.
  • the first case the sub-pixel when the current pixel P i in the original gray scale value greater than zero for the current sub-pixel R, a first original pixel P i or the second sub-pixel G, and the current sub-pixel sampling of the current pixel is P o a current sampling first pixel P o R sub-pixel or the second sub-pixel G, i.e., the current original pixel P i is the current sampling RG sub-pixel group of pixels P o corresponding to the original pixel, the current pixel P i in the original
  • the gray scale values of the first sub-pixel R and the second sub-pixel G are filled to the first sub-pixel R and the second sub-pixel G of the current sample pixel P o .
  • the current sub-pixel gray level value of the original pixel P i is greater than zero for a first sub-pixel R the current original pixel P i, i.e., the current value of the first sub-pixel R grayscale original pixel P i is greater than zero, and the second subpixel G grayscale value and the third sub-pixel B is zero, then the current pixel P i of the original red, and the current of the current sub-pixel sampling of the current pixel P o P o of sample pixel sub-pixel group RG
  • the first sub-pixel R or the second sub-pixel G, so the RG sub-pixel group of the current sampling pixel P o has a sub-pixel capable of displaying the red color displayed by the current original pixel P i , that is, the first sub-pixel R, and thus the current value of the first subpixel R grayscale original pixel P i and the second sub-pixel G filled into the current sample of the first pixel P o R subpixel and a second subpixel G, to obtain a current
  • the current sub-pixel P i in the original pixel grayscale values greater than zero for the current first subpixel R P i original pixel or the second sub-pixel G and the current sub-pixel sampling of the current pixel is P o sampling the current pixel P o third subpixel B or the fourth sub-pixel W, i.e., the current original pixel P i is the current sampling BW sub-pixel group of pixels P o corresponding to the original pixel, the current pixel P i in the original
  • the first sub-pixel R and the second sub-pixel G are filled to the first sub-pixel R and the second sub-pixel G of the current sampling pixel P o .
  • the current original pixel P i i.e., the current value of the first sub-pixel R grayscale original pixel P i is greater than zero
  • the grayscale values of the second sub-pixel G and the third sub-pixel B are zero, and the color displayed by the current original pixel P i is still red, and the current sub-pixel of the current sampling pixel P o is in the BW sub-pixel group.
  • the third subpixel B or the fourth sub-pixel W, and therefore the current pixel P o of the sample BW sub-pixel group does not exist can be displayed in red sub pixels of the current pixel P i original displayed, then the current pixel P i in the original
  • the gray scale values of the first sub-pixel R and the second sub-pixel G are filled to the first sub-pixel R and the second sub-pixel G of the current sample pixel P o , that is, “the energy is shifted to the left”.
  • the first sub-pixel R and the second sub-pixel G of the RG sub-pixel group of the current sampling pixel P o have gray scale values themselves, the gray scale value of the current pixel and the current original pixel obtained by the filling are obtained.
  • the gray scale values of the first sub-pixel R and the second sub-pixel G in P i are superimposed.
  • the current original pixel when the color displayed by the current original pixel is different from the color of two sub-pixels in the sub-pixel group of the current sampling pixel corresponding thereto, the energy is shifted to the left, that is, the current original pixel is The grayscale value is filled into the sub-pixels of the previous adjacent sub-pixel group of the sub-pixel group of the current sampling pixel corresponding to the current original pixel.
  • the third situation If the gray scale value of the current sub-pixel of the original pixel P i is greater than zero for the current pixel P i the third sub-pixel of the original B or the fourth sub-pixel W, and the current sample of the current sub-pixel pixel P o sampling the current pixel P o third subpixel B or the fourth sub-pixel W, i.e., the current original pixel P i is the current pixel P o is the original BW sub-pixel group corresponding to the sample, then the current pixel in the original subpixel gray level values B and the third fourth sub-pixel W is filled into the current sample pixel P o third subpixel and a fourth subpixel W.
  • the current sub-pixel P i original pixel grayscale values greater than zero for the third sub-pixel B of the current original pixel P i i.e., the current value of the third sub-pixel B grayscale original pixel P i is greater than zero
  • the grayscale values of the first sub-pixel R and the second sub-pixel G are zero
  • the current original pixel PI displays green
  • the current sub-pixel of the current sampling pixel P o is the third sub-pixel B in the BW sub-pixel group.
  • the BW sub-pixel group of the current sampling pixel P o has a green sub-pixel capable of displaying the current original pixel P i , and thus the third sub-pixel B and the current original pixel P i
  • the gray scale values of the four sub-pixels W are filled to the third sub-pixel B and the fourth sub-pixel W of the current sampling pixel P o .
  • the current sub-pixel P i original pixel grayscale values greater than zero for the third sub-pixel B of the current original pixel P i i.e., the current value of the third sub-pixel B grayscale original pixel P i is greater than zero, and
  • the grayscale values of the first sub-pixel R and the second sub-pixel G are zero, and the current original pixel P i still displays green, and the current sub-pixel of the current sampling pixel P o is the first sub-pixel of the RG sub-pixel group.
  • the current sample pixel P o RG sub-pixel group does not exist can be displayed green sub-pixels of the current pixel P i original displayed, thus the third sub-pixel P i in the current original pixel grayscale value and the fourth sub-pixel W B of the current sample is filled into a previous pixel P o of adjacent sampled pixels and the third sub-pixel B fourth sub-pixel W, that is, "energy shifted to the left.”
  • the third sub-pixel B and the fourth sub-pixel W previous sampled pixels having grayscale value itself then the current original pixel grayscale value of its own P i of the filling resulting in a third The gray scale values of the sub-pixel B and the fourth sub-pixel W are superimposed.
  • the current original pixel is a solid color pixel
  • the color displayed by the current original pixel is different from the color of two sub-pixels of a group of sub-pixels of the current sampling pixel corresponding thereto
  • the current original pixel is The grayscale value of the subpixel is filled into the previous set of subpixels of a group of subpixels of the current sampled pixel corresponding thereto, that is, the energy is shifted to the left, thereby preserving the highlight of the original image and unifying the energy Offset to the left can reduce the color aliasing effect of the sampled image while obtaining a sharper sampled image.
  • the energy may be shifted to the left, that is, the grayscale value of the sub-pixel of the current original pixel is filled into the latter group of sub-pixels of a group of sub-pixels of the current sampling pixel corresponding thereto.
  • the resolution of the display device is the same as the resolution of the sampled image.
  • FIG. 5 is a schematic diagram of a row of pixels of the original image 30 and the sample image 40 in the display method of the present invention.
  • Q and N are equal, that is, the horizontal resolution of the original image 30 is twice the horizontal resolution of the sampled image, and the vertical resolution of the original image and the sampled image is the same.
  • the current original pixel is P 5
  • the current sampling pixel is P o
  • the current sub-pixel of the current sampling pixel P o is a sub-pixel in the RG sub-pixel group
  • the current original pixel P 5 and the RG sub-pixel group of the current sampling pixel P o corresponding to that sub-pixel currently processed first subpixel R for the current pixel P o sampling or second subpixel G
  • the current at this time the original pixel P 5 acquires a current sampling first subpixel R pixel P o and in accordance with The grayscale value of the second sub-pixel G.
  • step S101 the first sub-pixel R, the second sub-pixel G, and the third sub-pixel B of the current original pixel P 5 and its adjacent original pixels P 3 , P 4 , P 6 , and P 7 are first acquired.
  • the grayscale value of the fourth sub-pixel W According to the current pixel P and the original first subpixel R 5, the gray scale value of the second subpixel G, and the third sub-pixel B determines whether a current pixel P of the original pixel. 5 is a solid color.
  • the current original pixel P 5 is a solid color pixel
  • the gray scale values of the two primary color sub-pixels are simultaneously zero, and the gray scale value of the other primary color sub-pixel is greater than zero.
  • the sub-pixel whose gray-scale value is greater than zero is the first sub-pixel R or the second sub-pixel G of the current original pixel P 5
  • the current sub-pixel of the current sampled pixel P o is in the RG sub-pixel group sub-pixels, and therefore belonging to the first case, when filling the raw grayscale value of the current pixel P R 5 first subpixel and the second subpixel G to the current sample pixel P O R and the first subpixel The second sub-pixel G, thereby obtaining gray scale values of the first sub-pixel R and the second sub-pixel G of the current sampling pixel P o .
  • the sub-pixel whose grayscale value is greater than zero is the third sub-pixel B or the second sub-pixel W of the current original pixel P 5 , and since the current sub-pixel of the current sampling pixel P o is a sub-pixel in the RG sub-pixel group, Thus belonging to the fourth case, when filling the current pixel gray level value of the original P 5 of the third sub-pixel B and the fourth sub-pixel W is a neighborhood of the current sample to the previous pixel P O third pixel sample The sub-pixel B and the fourth sub-pixel W are used to retain more information of the original image.
  • step S102 is performed to calculate the grayscale value of the sub-pixel of the current sampling pixel according to the adaptive weight.
  • the gray levels of the first sub-pixel R, the second sub-pixel G, and the third sub-pixel B of the current original pixel P 5 are calculated according to the formula (1) (2) (3):
  • GL R_max max ⁇
  • GL G_max max ⁇
  • GL B_max max ⁇
  • the maximum gray gradient value selected from the three gray steps of GL R_max , GL G_max , and GL B_max is obtained as GL C_max .
  • five weighting weights w 1 and w corresponding to the first sub-pixel R and the second sub-pixel G of the current sampling pixel P o are calculated according to the formulas (5), (6), (7), (8), (9), and (10). 2 , w 3 , w 4 , w 5 .
  • step S104 is calculated in accordance with the current pixel gray level values sampled in the first sub-pixel P o R or the second subpixel G:
  • R o w 1 *R 3 +w 2 *R 4 +w 3 *R 5 +w 4 *R 6 +w 5 *R 7
  • G o w 1 * G 3 + w 2 * G 4 + w 3 * G 5 + w 4 * G 6 + w 5 * G 7
  • the grayscale value of the grayscale values R O G O sampled current pixel P o is calculated by the first subpixel and the second subpixel R, G, are filled to the current first sample pixel P o and the second sub-pixel R Sub-pixel G.
  • pixel P o is the current sample of the current sub-pixel a sub-pixel BW sub-pixel group
  • the sub-pixels of the current process for the current third sub-sampled pixels of the pixel P o B or the fourth sub-pixel W is the next original pixel P 6 corresponding to the current sub-pixel of the current sampling pixel P o is the current original pixel, and the current sampling pixel P 6 is used to acquire the current sampling pixel P o .
  • the grayscale values of the third sub-pixel B and the fourth sub-pixel W are used to acquire the current sampling pixel P o .
  • the gray levels GL R_max and GL G_max of the first sub-pixel R, the second sub-pixel G, and the third sub-pixel B of the current original pixel P 6 are respectively calculated by using the formulas (1), (2), and (3).
  • GL B_max using the formula (4), the maximum gray gradient value GL C_max is selected from the calculated three gray steps .
  • the five sub-pixels B of the current sampling pixel P o correspond to five weighting weights w 1 , w 2 , w 3 , w 4 , w 5 .
  • step S104 Calculate the grayscale value of the third sub-pixel B of the current sampling pixel P o as follows:
  • Grayscale pixel value of the current sample B O P o is calculated by the third sub-pixel B and the fourth sub-pixel grayscale values W O W are filled to the current pixel P o sample of a fourth and third sub pixel R Sub-pixel W.
  • the display of the first sub-pixel R, the second sub-pixel G, the third sub-pixel B, and the fourth sub-pixel W of the current sampling pixel P o can be realized.
  • the display device is configured to perform image display according to the display method according to the above embodiment, and includes a grayscale acquiring unit 601, a gray gradient calculating unit 602, and a weight determining unit. 603, summation unit 604, and padding unit 605.
  • the grayscale obtaining unit 601 is configured to acquire grayscale values of the current original pixels of the original image and the plurality of subpixels of the adjacent original pixels.
  • the weight determining unit 603 is configured to determine a plurality of weighting weights corresponding to the current sampling pixels of the sampled image according to the maximum gray level value.
  • the summation unit 604 is configured to perform weighted summation on the grayscale values of the primary color pixels and the primary color pixels of the adjacent original pixels by using a plurality of weighting weights to obtain the grayscale of the primary color subpixels of the current subpixel of the current sampling pixel. value.
  • the filling unit 605 is configured to respectively correspond the grayscale values of the primary color subpixels of the current subpixel of the current sampling pixel to the primary color subpixels of the current sampling pixel.
  • the original pixel and the sampling pixel respectively include a first sub-pixel R, a second sub-pixel G, a third sub-pixel B, and a fourth sub-pixel W which are sequentially arranged.
  • the first sub-pixel R, the second sub-pixel G, the third sub-pixel B, and the fourth sub-pixel W are a red sub-pixel, a green sub-pixel, a blue sub-pixel, and a white sub-pixel, respectively, and the first sub-pixel R,
  • the two sub-pixels G and the third sub-pixel B are primary color sub-pixels, and the fourth sub-pixel W is a non-primary color sub-pixel.
  • the display of the primary color sub-pixels of the current sampled pixel is achieved by correspondingly filling the grayscale values to the primary color subpixels of the current sampled pixel.
  • the display device further includes a selection unit 606.
  • the selecting unit 606 is configured to select a maximum gray-scale value of the fourth sub-pixel of the current original pixel and its adjacent original pixel, The gray scale value of the fourth sub-pixel W of the current sampled pixel is obtained.
  • the filling unit 605 is further configured to fill the grayscale value of the fourth sub-pixel of the current sampling pixel to the fourth sub-pixel of the current sampling pixel.
  • the grayscale values of the four subpixels of the current sampled pixel can be obtained.
  • the gray level of the primary color sub-pixel of the current original pixel is first calculated, and then the weighting weight of the current sampling pixel is constructed according to the gray gradient to perform the weighting weight on the current primary pixel and the primary color sub-pixel of the adjacent original pixel.
  • the weighted summation further obtains the grayscale value of the primary color sub-pixel of the current sampling pixel, that is, the surrounding pixels are used to improve the resolution, and the color sampling phenomenon of the obtained sampling image can be avoided compared with the existing sampling method, and the obtained image can be obtained. Clear sampled image.
  • the display device further includes a judging unit 607 and a control unit 608.
  • Gray level acquisition unit After obtaining the grayscale value of the current original pixel of the original image and the plurality of subpixels of the adjacent original pixel, the determining unit 607 is configured to determine whether the current original pixel is a solid color according to the grayscale value of each primary color subpixel of the current original pixel. Pixel.
  • the gray level calculation unit 602 calculates the gray level of the primary color sub-pixels of the plurality of sub-pixels of the current original pixel when the current original pixel is not a solid color pixel, and selects the maximum gray gradient value from the plurality of gray steps. .
  • the control unit 608 is configured to: when the current original pixel is a solid color pixel, according to a position of the sub-pixel in the current original pixel whose grayscale value is greater than zero in the current original pixel, and a position of the current sub-pixel of the current sampling pixel in the current sampling pixel, The grayscale value of the sub-pixel with the grayscale value greater than zero is selectively filled to the corresponding subpixel of the current sampling pixel or the previous sampling pixel.
  • the control unit 608 is specifically configured to:
  • the sub-pixel whose grayscale value is greater than zero in the current original pixel is the first sub-pixel or the second sub-pixel of the current original pixel
  • the current sub-pixel of the current sampling pixel is the first sub-pixel or the second sub-pixel of the current sampling pixel a pixel
  • the grayscale values of the first sub-pixel and the second sub-pixel in the current original pixel are filled to the first sub-pixel and the second sub-pixel of the current sampling pixel
  • the sub-pixel whose grayscale value is greater than zero in the current original pixel is the first sub-pixel or the second sub-pixel of the current original pixel
  • the current sub-pixel of the current sampling pixel is the third sub-pixel or the fourth sub-sample of the current sampling pixel a pixel
  • the grayscale values of the first sub-pixel and the second sub-pixel in the current original pixel are filled to the first sub-pixel and the second sub-pixel of the current sampling pixel
  • the sub-pixel whose grayscale value is greater than zero in the current original pixel is the third sub-pixel or the fourth sub-pixel of the current original pixel
  • the current sub-pixel of the current sampling pixel is the third sub-pixel or the fourth sub-sample of the current sampling pixel a pixel
  • the grayscale values of the third sub-pixel and the fourth sub-pixel in the current original pixel are filled to the third sub-pixel and the fourth sub-pixel of the current sampling pixel
  • the sub-pixel whose grayscale value is greater than zero in the current original pixel is the third sub-pixel or the fourth sub-pixel of the current original pixel
  • the current sub-pixel of the current sampling pixel is the first sub-pixel or the second sub-pixel of the current sampling pixel
  • the grayscale values of the third and fourth subpixels in the current original pixel are filled to the third and fourth subpixels of the previous sampled pixel of the current sampled pixel.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

本发明公开了一种显示设备及其显示方法,所述方法中,通过计算当前原始像素的多个子像素中的基色子像素的灰阶梯度,以从所述灰阶梯度中选取最大灰阶梯度值,然后根据最大灰阶梯度值确定当前采样像素所对应的多个加权权重,并利用所述多个加权权重对所述当前原始像素及其相邻原始像素的基色子像素的灰阶值进行加权求和,以得到所述当前采样像素的当前子像素的基色子像素的灰阶值。通过上述方式,本发明能够有效消除颜色混叠以及获得清晰图像。

Description

显示设备及其显示方法 【技术领域】
本发明涉及显示技术领域,特别是涉及一种显示设备及其显示方法。
【背景技术】
在平板显示技术领域中,为了减小工艺制造难度和降低生产成本,往往采用在低物理解析度设备上显示高解析度内容,比如将高解析度4K2K资料内容降到低解析度2K1K并在显示面板上进行显示,同时还需保证输出图像的空间分辨率和细节清晰度。
亚像素采样(Sub-pixel Rendering)和亚像素复用两种技术能很好的提升显示空间分辨率。目前亚像素采样方法中,主要是通过在原像素的每一空间位置上分别对RGBW子像素进行采样,进而组合成新的图像,这种亚像素采样方式称为直接亚像素下采样(DSD,Direct Subpixel-based Down-sampling)。然而,DSD采样方式虽然能够有效提升空间显示分辨率,但是图像边缘区域容易发生颜色混叠,导致图像模糊。
【发明内容】
本发明主要解决的技术问题是提供一种显示设备及其显示方法,能够有效消除颜色混叠以及获得清晰图像。
为解决上述技术问题,本发明采用的一个技术方案是:提供一种显示设备的显示方法,包括:获取原始图像的当前原始像素及其相邻原始像素的多个子像素的灰阶值;根据所述当前原始像素的各基色子像素的灰阶值,判断所述当前原始像素是否为纯色像素;若为纯色像素,则根据所述当前原始像素中的灰阶值大于零的子像素在所述当前原始像素中的位置以及所述当前采样像素的当前子像素在所述当前采样像素的位置,将所述灰阶值大于零的子像素的灰阶值选择性填充到所述当前采样像素或前一采样像素的对应子像素;若不为纯色像素,则执行如下步骤:计算所述当前原始像素的多个子像素中的基色子像素的灰阶梯度,并从所述灰阶梯度中选取最大灰阶梯度值;根据所述最大灰阶梯度值确定采样图像的当前采样像素所对应的多个加权权重;利用所述多个加权权 重对所述当前原始像素及其相邻原始像素的基色子像素的灰阶值进行加权求和,以得到所述当前采样像素的当前子像素的基色子像素的灰阶值;将所述当前采样像素的当前子像素的基色子像素的灰阶值分别对应填充到所述当前采样像素的基色子像素;其中,所述当前原始像素和所述当前采样像素分别包括顺次排列的第一子像素、第二子像素、第三子像素以及第四子像素,所述第一子像素、第二子像素、第三子像素为基色子像素,所述第四子像素为非基色子像素,所述获取原始图像的当前原始像素及其相邻原始像素的多个子像素的灰阶值的步骤之后,还包括:选取所述当前原始像素及其相邻原始像素的第四子像素的最大灰阶值,以得到所述当前采样像素的第四子像素的灰阶值;将所述当前采样像素的第四子像素的灰阶值填充到当前采样像素的第四子像素。
其中,所述将灰阶值大于零的子像素的灰阶值选择性填充到所述当前采样像素或前一采样像素的对应子像素的步骤包括:若所述当前原始像素中的灰阶值大于零的子像素为所述当前原始像素的第一子像素或第二子像素,且所述当前采样像素的当前子像素为所述当前采样像素的第一子像素或第二子像素,则将所述当前原始像素中的第一子像素和所述第二子像素的灰阶值填充到所述当前采样像素的第一子像素和第二子像素;若所述当前原始像素中的灰阶值大于零的子像素为所述当前原始像素的第一子像素或第二子像素,且所述当前采样像素的当前子像素为所述当前采样像素的第三子像素或第四子像素,则将所述当前原始像素中的第一子像素和所述第二子像素的灰阶值填充到所述当前采样像素的第一子像素和第二子像素;若所述当前原始像素中的灰阶值大于零的子像素为所述当前原始像素的第三子像素或第四子像素,且所述当前采样像素的当前子像素为所述当前采样像素的第三子像素或第四子像素,则将所述当前原始像素中的第三子像素和所述第四子像素的灰阶值填充到所述当前采样像素的第三子像素和第四子像素;若所述当前原始像素中的灰阶值大于零的子像素为所述当前原始像素的第三子像素或第四子像素,且所述当前采样像素的当前子像素为所述当前采样像素的第一子像素或第二子像素,则将所述当前原始像素中的第三子像素和所述第四子像素的灰阶值填充到所述当前采样像素的前一采样像素的第三子像素和第四子像素。
其中,所述当前采样像素至少划分为两组子像素,其中一组子像素中的子像素为所述当前采样像素的当前子像素,所述当前原始像素与所述当前采样像素的包含当前子像素的一组子像素对应。
其中,所述计算所述当前原始像素的多个子像素中的基色子像素的灰阶梯度的步骤包括:根据如下公式计算所述灰阶梯度:
GLR_max=max{|Ri-1-Ri|,|Ri-Ri+1|}
GLG_max=max{|Gi-1-Gi|,|Gi-Gi+1|}
GLB_max=max{|Bi-1-Bi|,|Bi-Bi+1|}
其中,所述Ri、Gi、Bi为所述当前原始像素的第一子像素、第二子像素以及第三子像素的灰阶值,所述Ri-1、Gi-1、Bi-1所述当前原始像素的前一相邻原始像素的第一子像素、第二子像素以及第三子像素的灰阶值,所述Ri+1、Gi+1、Bi+1为所述当前原始像素的后一相邻原始像素的第一子像素、第二子像素以及第三子像素的灰阶值,所述GLR_max、GLG_max、GLB_max分别是所述当前原始像素的第一子像素、第二子像素、第三子像素的灰阶梯度;所述从所述灰阶梯度中选取最大灰阶梯度值的步骤包括:从所述GLR_max、GLG_max、GLB_max三个灰阶梯度中选取最大灰阶梯度值,用公式表示如下:
GLC_max=max{GLR_max,GLG_max,GLB_max}
其中,所述GLC_max为最大灰阶梯度值。
其中,所述根据所述最大灰阶梯度值确定采样图像的当前采样像素所对应的多个加权权重的步骤包括:
定义参数k=GLC_max∈[0,255];
根据如下计算公式确定当前采样像素所对应的五个加权权重w1、w2、w3、w4、w5
w1=λ1*f(x)
w2=λ2*f(x)
w3=λ3*f(x)
w4=λ4*f(x)
w5=λ5*f(x)
其中,所述f(x)=ax3+bx2+cx+d,x=k/255∈[0,1],a、b、c、d为所述f(x)的拟合系数,λ1、λ2、λ3、λ4、λ5为权重分配调整系数;所述利用所述多个加权权重对所述当前原始像素及其相邻原始像素的基色子像素的灰阶值进行加权求和,以得到所述当前采样像素的当前子像素的基色子像素的灰阶值的步骤包括:根据如下公式获取所述当前采样像素的当前子像素的基色子像素的灰阶值:
ho=w1*hi-2+w2*hi-1+w3*hi+w4*hi+1+w5*hi+2
其中,所述ho表示所述当前采样像素的当前子像素的基色子像素的灰阶值,hi表示所述当前原始像素的基色子像素的灰阶值,hi-2、hi-1分别表示所述当前原始像素的前两个相邻原始像素的基色子像素的灰阶值,hi+1、hi+2分别表示所述当前原始像素的后两个相邻原始像素的基色子像素的灰阶值。
为解决上述技术问题,本发明采用的另一个技术方案是:提供一种显示设备的显示方法,包括:获取原始图像的当前原始像素及其相邻原始像素的多个子像素的灰阶值;计算所述当前原始像素的多个子像素中的基色子像素的灰阶梯度,并从所述灰阶梯度中选取最大灰阶梯度值;根据所述最大灰阶梯度值确定采样图像的当前采样像素所对应的多个加权权重;利用所述多个加权权重对所述当前原始像素及其相邻原始像素的基色子像素的灰阶值进行加权求和,以得到所述当前采样像素的当前子像素的基色子像素的灰阶值;将所述当前采样像素的当前子像素的基色子像素的灰阶值分别对应填充到所述当前采样像素的基色子像素。
其中,所述获取原始图像的当前原始像素及其相邻原始像素的多个子像素的灰阶值的步骤之后,包括:根据所述当前原始像素的各基色子像素的灰阶值,判断所述当前原始像素是否为纯色像素;若不为纯色像素,则执行所述计算所述当前原始像素的多个子像素中的基色子像素的灰阶梯度的步骤;若为纯色像素,则根据所述当前原始像素中的灰阶值大于零的子像素在所述当前原始像素中的位置以及所述当前采样像素的当前子像素在所述当前采样像素的位置,将所述灰阶值大于零的子像素的灰阶值选择性填充到所述当前采样像素或前一采样像素的对应子像素。
其中,所述当前原始像素和所述当前采样像素分别包括顺次排列的第一子像素、第二子像素、第三子像素以及第四子像素,其中所述将灰阶值大于零的子像素的灰阶值选择性填充到所述当前采样像素或前一采样像素的对应子像素的步骤包括:若所述当前原始像素中的灰阶值大于零的子像素为所述当前原始像素的第一子像素或第二子像素,且所述当前采样像素的当前子像素为所述当前采样像素的第一子像素或第二子像素,则将所述当前原始像素中的第一子像素和所述第二子像素的灰阶值填充到所述当前采样像素的第一子像素和第二子像素;若所述当前原始像素中的灰阶值大于零的子像素为所述当前原始像素的第一子像素或第二子像素,且所述当前采样像素的当前子像素为所述当前采样 像素的第三子像素或第四子像素,则将所述当前原始像素中的第一子像素和所述第二子像素的灰阶值填充到所述当前采样像素的第一子像素和第二子像素;若所述当前原始像素中的灰阶值大于零的子像素为所述当前原始像素的第三子像素或第四子像素,且所述当前采样像素的当前子像素为所述当前采样像素的第三子像素或第四子像素,则将所述当前原始像素中的第三子像素和所述第四子像素的灰阶值填充到所述当前采样像素的第三子像素和第四子像素;若所述当前原始像素中的灰阶值大于零的子像素为所述当前原始像素的第三子像素或第四子像素,且所述当前采样像素的当前子像素为所述当前采样像素的第一子像素或第二子像素,则将所述当前原始像素中的第三子像素和所述第四子像素的灰阶值填充到所述当前采样像素的前一采样像素的第三子像素和第四子像素。
其中,所述当前原始像素和所述当前采样像素分别包括顺次排列的第一子像素、第二子像素、第三子像素以及第四子像素,所述第一子像素、第二子像素、第三子像素为基色子像素,所述第四子像素为非基色子像素,所述获取原始图像的当前原始像素及其相邻原始像素的多个子像素的灰阶值的步骤之后,包括:选取所述当前原始像素及其相邻原始像素的第四子像素的最大灰阶值,以得到所述当前采样像素的第四子像素的灰阶值;将所述当前采样像素的第四子像素的灰阶值填充到当前采样像素的第四子像素。
其中,所述当前原始像素和所述当前采样像素分别包括顺次排列的第一子像素、第二子像素、第三子像素以及第四子像素,所述当前采样像素至少划分为两组子像素,其中一组子像素中的子像素为所述当前采样像素的当前子像素,所述当前原始像素与所述当前采样像素的包含当前子像素的一组子像素对应。
其中,所述当前原始像素和所述当前采样像素分别包括顺次排列的第一子像素、第二子像素、第三子像素以及第四子像素,所述第一子像素、第二子像素以及第三子像素为基色子像素,所述计算所述当前原始像素的多个子像素中的基色子像素的灰阶梯度的步骤包括:根据如下公式计算所述灰阶梯度:
GLR_max=max{|Ri-1-Ri|,|Ri-Ri+1|}
GLG_max=max{|Gi-1-Gi|,|Gi-Gi+1|}
GLB_max=max{|Bi-1-Bi|,|Bi-Bi+1|}
其中,所述Ri、Gi、Bi为所述当前原始像素的第一子像素、第二子像素以及第三子像素的灰阶值,所述Ri-1、Gi-1、Bi-1所述当前原始像素的前一相邻原始 像素的第一子像素、第二子像素以及第三子像素的灰阶值,所述Ri+1、Gi+1、Bi+1为所述当前原始像素的后一相邻原始像素的第一子像素、第二子像素以及第三子像素的灰阶值,所述GLR_max、GLG_max、GLB_max分别是所述当前原始像素的第一子像素、第二子像素、第三子像素的灰阶梯度;所述从所述灰阶梯度中选取最大灰阶梯度值的步骤包括:从所述GLR_max、GLG_max、GLB_max三个灰阶梯度中选取最大灰阶梯度值,用公式表示如下:
GLC_max=max{GLR_max,GLG_max,GLB_max}
其中,所述GLC_max为最大灰阶梯度值。
其中,所述根据所述最大灰阶梯度值确定采样图像的当前采样像素所对应的多个加权权重的步骤包括:定义参数k=GLC_max∈[0,255];根据如下计算公式确定当前采样像素所对应的五个加权权重w1、w2、w3、w4、w5
w1=λ1*f(x)
w2=λ2*f(x)
w3=λ3*f(x)
w4=λ4*f(x)
w5=λ5*f(x)
其中,所述f(x)=ax3+bx2+cx+d,x=k/255∈[0,1],a、b、c、d为所述f(x)的拟合系数,λ1、λ2、λ3、λ4、λ5为权重分配调整系数;所述利用所述多个加权权重对所述当前原始像素及其相邻原始像素的基色子像素的灰阶值进行加权求和,以得到所述当前采样像素的当前子像素的基色子像素的灰阶值的步骤包括:根据如下公式获取所述当前采样像素的当前子像素的基色子像素的灰阶值:
ho=w1*hi-2+w2*hi-1+w3*hi+w4*hi+1+w5*hi+2
其中,所述ho表示所述当前采样像素的当前子像素的基色子像素的灰阶值,hi表示所述当前原始像素的基色子像素的灰阶值,hi-2、hi-1分别表示所述当前原始像素的前两个相邻原始像素的基色子像素的灰阶值,hi+1、hi+2分别表示所述当前原始像素的后两个相邻原始像素的基色子像素的灰阶值。
为解决上述技术问题,本发明采用的又一个技术方案是:提供一种显示设备,包括:灰阶值获取单元,用于获取原始图像的当前原始像素及其相邻原始像素的多个子像素的灰阶值;灰阶梯度计算单元,用于计算所述当前原始像素的多个子像素中的基色子像素的灰阶梯度,并从所述灰阶梯度中选取最大灰阶梯度值;权重确定单元,用于根据所述最大灰阶梯度值确定采样图像的当前采 样像素所对应的多个加权权重;求和单元,用于利用所述多个加权权重对所述当前原始像素及其相邻原始像素的基色子像素的灰阶值进行加权求和,以得到所述当前采样像素的当前子像素的基色子像素的灰阶值;填充单元,用于将所述当前采样像素的当前子像素的基色子像素的灰阶值分别对应填充到所述当前采样像素的基色子像素。
其中,还包括:判断单元,用于根据所述当前原始像素的各基色子像素的灰阶值,判断所述当前原始像素是否为纯色像素,其中,所述灰阶梯度计算单元用于在所述当前原始像素不为纯色像素时,计算所述当前原始像素的多个子像素中的基色子像素的灰阶梯度;控制单元,用于在所述当前原始像素为纯色像素时,根据所述当前原始像素中的灰阶值大于零的子像素在所述当前原始像素中的位置以及所述当前采样像素的当前子像素在所述当前采样像素的位置,将所述灰阶值大于零的子像素的灰阶值选择性填充到所述当前采样像素或前一采样像素的对应子像素。
其中,所述当前原始像素和所述当前采样像素分别包括顺次排列的第一子像素、第二子像素、第三子像素以及第四子像素,所述控制单元用于:在所述当前原始像素中的灰阶值大于零的子像素为所述当前原始像素的第一子像素或第二子像素,且所述当前采样像素的当前子像素为所述当前采样像素的第一子像素或第二子像素时,将所述当前原始像素中的第一子像素和所述第二子像素的灰阶值填充到所述当前采样像素的第一子像素和第二子像素;在所述当前原始像素中的灰阶值大于零的子像素为所述当前原始像素的第一子像素或第二子像素,且所述当前采样像素的当前子像素为所述当前采样像素的第三子像素或第四子像素时,将所述当前原始像素中的第一子像素和所述第二子像素的灰阶值填充到所述当前采样像素的第一子像素和第二子像素;在所述当前原始像素中的灰阶值大于零的子像素为所述当前原始像素的第三子像素或第四子像素,且所述当前采样像素的当前子像素为所述当前采样像素的第三子像素或第四子像素时,则将所述当前原始像素中的第三子像素和所述第四子像素的灰阶值填充到所述当前采样像素的第三子像素和第四子像素;在所述当前原始像素中的灰阶值大于零的子像素为所述当前原始像素的第三子像素或第四子像素,且所述当前采样像素的当前子像素为所述当前采样像素的第一子像素或第二子像素时,则将所述当前原始像素中的第三子像素和所述第四子像素的灰阶值填充到所述当前采样像素的前一采样像素的第三子像素和第四子像素。
本发明的有益效果是:区别于现有技术的情况,本发明中,首先获取原始像素的多个子像素中的基色子像素的灰阶梯度,并选取最大灰阶梯度值,然后根据最大灰阶梯度值确定采样图像的当前采样像素所对应的多个加权权重,并利用多个加权权重对当前原始像素及其相邻原始像素的基色子像素的灰阶值进行加权求和,以得到当前采样像素的当前子像素的基色子像素的灰阶值,将当前采样像素的当前子像素的基色子像素的灰阶值分别填充到当前采样像素的基色子像素,通过加权求和的方式获取当前采样像素的灰阶值,能够有效消除颜色混叠,获取清晰的图像。
【附图说明】
图1是显示设备的显示方法一实施方式的流程图;
图2是本发明显示方法的一实施方式中,原始图像和采样图像的像素结构示意图;
图3是本发明显示方法的一实施方式中,所构造的三次多项式函数的曲线示意图;
图4是本发明显示方法的一实施方式中,获取原始图像的当前原始像素及其相邻原始像素的多个子像素的灰阶值的步骤之后的流程图;
图5是本发明显示方法的一实施方式中,原始图像和采样图像的一行像素的具体结构示意图;
图6是本发明显示设备一实施方式的结构示意图。
【具体实施方式】
下面将结合附图和实施方式对本发明进行详细说明。
参阅图1,为本发明显示设备的显示方法一实施方式的流程图。该方法用于依次计算采样图像的采样像素从而将包含像素矩阵M*N的原始图像转换为包含像素矩阵P*Q的采样图像,其中M、N、P、Q均为自然数,且P≤M,Q≤N,由此,可使具有低解析度的显示设备显示具有高解析度的原始图像。所述方法包括如下步骤:
步骤S101:获取原始图像的当前原始像素及其相邻原始像素的多个子像素的灰阶值。
结合图2,为本发明显示方法中原始图像30和采样图像40的一行像素示意图。本实施方式中,采样图像40的解析度为P*Q,显示设备的解析度与采样图像40的解析度相同,原始图像30的解析度为M*N。其中,M=2P,N和Q相等,即原始图像30的水平解析度为采样图像40的水平解析度的一倍,原始图像30和采样图像40的垂直解析度相同。采样图像40的采样像素为原始图像30的M*N个原始像素经过采样处理后对应得到的像素。
其中,原始像素和采样像素分别包括顺次排列的第一子像素R、第二子像素G、第三子像素B以及第四子像素W。第一子像素R、第二子像素G、第三子像素B以及第四子像素W分别是红色子像素、绿色子像素、蓝色子像素以及白色子像素。
其中,原始图像30为包含像素矩阵M*N的输入图像转换得到。输入图像的输入像素包括顺次排列的红色子像素、绿色子像素以及蓝色子像素。输入像素和原始像素一一对应。
本实施方式中,首先获取原始图像30的当前原始像素Pi及其相邻原始像素Pi-1、Pi+1的第一子像素R、第二子像素G、第三子像素B以及第四子像素W的灰阶值。
步骤S102:计算当前原始像素的多个子像素中的基色子像素的灰阶梯度,并从灰阶梯度中选取最大灰阶梯度值。
其中,第一子像素R、第二子像素G、第三子像素B为基色子像素,第四子像素W为非基色子像素。具体地,采用如下公式计算当前原始像素Pi的基色子像素的灰阶梯度:
GLR_max=max{|Ri-1-Ri|,|Ri-Ri+1|}........................(1)
GLG_max=max{|Gi-1-Gi|,|Gi-Gi+1|}.........................(2)
GLB_max=max{|Bi-1-Bi|,|Bi-Bi+1|}...........................(3)
GLC_max=max{GLR_max,GLG_max,GLB_max}..................(4)
其中,公式(1)(2)(3)分别用于计算当前原始像素Pi的第一子像素R、第二子像素G以及第三子像素B的灰阶梯度,Ri、Gi、Bi分别是当前原始像素Pi的第一子像素R、第二子像素G以及第三子像素B的灰阶值,Ri-1、Gi-1、Bi-1分别是当前原始像素Pi的前一相邻原始像素Pi-1的第一子像素R、第二子像素G以及第三子像素B的灰阶值,Ri+1、Gi+1、Bi+1分别是当前原始像素Pi的后一相 邻原始像素Pi+1的第一子像素R、第二子像素G以及第三子像素B的灰阶值,GLR_max、GLG_max、GLB_max分别是当前原始像素Pi的第一子像素R、第二子像素G、第三子像素B的灰阶梯度,表示的是当前原始像素Pi的子像素与其前后相邻的两个原始像素Pi-1、Pi+1的对应子像素的灰阶值之差的绝对值的最大值,GLC_max为当前原始像素Pi的第一子像素R、第二子像素G、第三子像素B的灰阶梯度中,最大的灰阶梯度值,即上述公式(4)表示的是从GLR_max、GLG_max、GLB_max三个灰阶梯度中选取的最大灰阶梯度值。
步骤S103:根据最大灰阶梯度值确定采样图像的当前采样像素所对应的多个加权权重。
其中,定义参数k=GLC_max∈[0,255],[0,255]表示256个灰阶梯度等级。通过构造三次多项式函数来计算得到当前采样像素Po所对应的多个加权权重,该三次多项式如下:
f(x)=ax3+bx2+cx+d..........................(5)
其中x=k/255∈[0,1],a、b、c、d为三次多项式f(x)的拟合系数,可根据实验情况而定,三次多项式函数f(x)的曲线如图3所示。当前采样像素Po所对应的多个加权权重可表示如下:
w1=λ1*f(x)..........................(6)
w2=λ2*f(x)..........................(7)
w3=λ3*f(x)..........................(8)
w4=λ4*f(x)..........................(9)
w5=λ5*f(x)..........................(10)
其中,w1、w2、w3、w4、w5为当前采样像素Po所对应的五个加权权重,λ1、λ2、λ3、λ4、λ5为权重分配系数,根据实验情况而定,且呈高斯分布,即λ1、λ2、λ3、λ4、λ5的关系为:λ1=λ5<λ2=λ4<λ3,以保证中心子像素具有较高的权重比例。。
步骤S104:利用多个加权权重对当前原始像素及其相邻原始像素的基色子像素的灰阶值进行加权求和,以得到当前采样像素的当前子像素的基色子像素的灰阶值。
具体地,可通过如下计算公式计算得到当前采样像素Po的当前子像素的基色子像素的灰阶值:
ho=w1*hi-2+w2*hi-1+w3*hi+w4*hi+1+w5*hi+2...........(11)
其中,ho表示当前采样像素Po的当前子像素的基色子像素的灰阶值,hi表示当前原始像素Pi的基色子像素的灰阶值,hi-2、hi-1分别表示当前原始像素Pi的前两个相邻原始像素Pi-2、Pi-1的基色子像素的灰阶值,hi+1、hi+2分别表示当前原始像素Pi的后两个相邻原始像素Pi+1、Pi+2的基色子像素的灰阶值,即通过对当前原始像素Pi的基色子像素及其相邻前两个原始像素Pi-2、Pi-1的基色子像素、相邻后两个原始像素Pi+1、Pi+2的基色子像素的灰阶值进行加权求和以得到当前采样像素Po的当前子像素的基色子像素的灰阶值。
例如,当当前采样像素Po的当前子像素的基色子像素为第一子像素R时,根据公式(11)可计算得到当前采样像素Po的当前子像素的第一子像素R的灰阶值Ro为:
Ro=w1*Ri-2+w2*Ri-1+w3*Ri+w4*Ri+1+w5*Ri+2
其中Ri表示当前原始像素Pi的第一子像素R的灰阶值,Ri-2、Ri-1分别表示当前原始像素Pi的前两个相邻原始像素Pi-2、Pi-1的第一子像素R的灰阶值,Ri+1、Ri+2分别表示当前原始像素Pi的后两个相邻原始像素Pi+1、Pi+2的第一子像素R的灰阶值。当当前采样像素Po的当前子像素的基色子像素为第二子像素G或第三子像素B时,当前采样像素Po的第二子像素G和第三子像素B的灰阶值均可采用上述公式(11)获得。
可以理解的是,在其他的实施方式中,加权权重也可以仅是两个、三个、七个或其他的数量,即可以选取更多或更好的相邻原始像素进行加权求和得到采样像素的子像素的灰阶值。
步骤S105:将当前采样像素的当前子像素的基色子像素的灰阶值分别对应填充到当前采样像素的基色子像素。
通过将灰阶值对应填充至当前采样像素Po的基色子像素,以实现当前采样像素的基色子像素的显示。
对于剩余的采样图像的采样像素的基色子像素的灰阶值,均可采用上述步骤S101~步骤S105来获得。
此外,本实施方式中,在步骤S101之后,包括:选取当前原始像素及其相邻原始像素的第四子像素的最大灰阶值,以得到当前采样像素的第四子像素W的灰阶值;将当前采样像素的第四子像素的灰阶值填充到当前采样像素的第四子像素。
具体地,当当前采样像素Po的当前子像素为第四子像素W时,当前采样像素Po的当前子像素中的第四子像素W的灰阶值采用如下公式得到:
Wo=max{Wi-1,Wi,Wi+1}...........(12)
其中,Wo为当前采样像素Po的当前子像素中的第四子像素W的灰阶值,Wi为当前原始像素Pi的第四子像素W的灰阶值,Wi-1为当前原始像素Pi的前一相邻原始像素Pi-1的第四子像素W的灰阶值,Wi+1为当前原始像素Pi的后一相邻原始像素Pi+1的第四子像素W的灰阶值,Wo等于Wi、Wi-1、Wi+1中的最大者。
通过上述方式,可得到当前采样像素的四个子像素的灰阶值。本实施方式中首先计算当前原始像素的基色子像素的灰阶梯度,然后根据灰阶梯度构造当前采样像素的加权权重,以利用加权权重对当前原始像素及其相邻原始像素的基色子像素进行加权求和进而得到当前采样像素的基色子像素的灰阶值,即利用了周围像素来提升解析度,与现有的采样方式相比,可以避免得到的采样图像发生颜色混叠现象,能够获得清晰的采样图像。
进一步地,在本发明显示设备的显示方法的实施方式中,一个采样像素划分为两组子像素,其中一组子像素为RG子像素组,其包含第一子像素R和第二子像素G;另一组子像素为BG子像素组,其包含第三子像素B和第四子像素W。每一个原始像素分别对应一个采样像素中的一组子像素,也即每一采样像素与两个原始像素对应。例如,如图2所示,图中所示的虚线椭圆圈圈起的一组RG子像素组与虚线椭圆圈圈起的一组RGBW子像素组对应,实线椭圆圈圈起的一组BW子像素组与实线椭圆圈圈起的一组RGBW子像素组对应。
因此,当前采样像素Po包括两组子像素:RG子像素组和BW子像素组。当当前采样像素Po的当前子像素为第一子像素R或第二子像素G时,即当前原始像素Pi与当前采样像素Po的RG子像素组对应,当前处理的子像素为当前采样像素Po中的第一子像素R或第二子像素G,而当前采样像素Po的BW子像素组则与下一个原始像素Pi+1对应。
此时,根据当前原始像素Pi计算得到当前采样像素Po的第一子像素R和第二子像素G的灰阶值,具体可根据公式(11)可计算得到当前采样像素Po的第一子像素R和第二子像素G的灰阶值Ro、Go
Ro=w1*Ri-2+w2*Ri-1+w3*Ri+w4*Ri+1+w5*Ri+2
Go=w1*Gi-2+w2*Gi-1+w3*Gi+w4*Gi+1+w5*Gi+2
而当计算当前采样像素Po的BW子像素组的基色子像素的灰阶值时,则根 据与BW子像素组对应的原始像素Pi+1进行计算,即此时当前采样像素Po的第三子像素B作为当前子像素,原始像素Pi+1作为当前原始像素,因此根据公式(11)可计算当前采样像素Po的第三子像素B的灰阶值Bo
Bo=w1*Bi-1+w2*Bi+w3*Bi+1+w4*Bi+2+w5*Bi+3
其中,Bi+1为作为当前原始像素的原始像素Pi+1的第三子像素B的灰阶值。
而当计算当前采样像素Po的BW子像素组的第四子像素W时,此时当前采样像素Po的第三子像素B作为当前子像素,原始像素Pi+1作为当前原始像素,根据公式(12)计算当前采样像素Po的第四子像素W的灰阶值Wo
Wo=max{Wi,Wi+1,Wi+2}
其中,Wi+1为作为当前原始像素的原始像素Pi+1的第四子像素W的灰阶值。
因此,在本发明显示设备的显示方法的实施方式中,当待计算的当前采样像素的当前子像素为RG子像素组的子像素时,则RG子像素组对应的原始像素作为当前原始像素,当待计算的当前采样像素的当前子像素为BW子像素组的子像素时,则BW子像素组对应的原始像素作为当前原始像素,由此可根据上述步骤S101~S105计算得到采样像素的基色子像素的灰阶值,以及根据公式(12)得到采样像素的非基色子像素的灰阶值。其中,当前采样像素的RG子像素组和BW子像素分别对应不同的原始像素。
对于剩余的采样像素的灰阶值,可根据上述方式获得。
本实施方式中,将一个采样像素划分为两组子像素,每一组原始像素对应一个采样像素的一组子像素,也即每一采样像素对应两组原始像素,而原始图像的水平解析度为采样像素的水平解析度的一倍,垂直解析度相同,因此若将采样像素的一组子像素作为采样图像的一个虚拟采样像素,则由虚拟采样像素所构成的虚拟采样图像的解析度与原始图像的解析度是相同的,因此当将虚拟采样图像在显示设备上进行显示时,所显示的虚拟采样图像为与原始图像相同高解析度的图像,由此可得到高解析度的显示图像,能够提高图像的清晰度。
当然,在本发明的其他实施方式中,也可以将一个采样像素划分为四组子像素,每组子像素包括一个子像素,并使每组子像素与一个原始像素对应,采样像素的每组子像素的灰阶值根据其所对应的原始像素的灰阶进行计算。
进一步地,参阅图4,为了能够更好地保留原始图像的信息,在本发明显示方法的实施方式中,获取原始图像的当前原始像素及其相邻原始像素的多个子像素的灰阶值的步骤之后,包括如下步骤:
步骤S401:根据当前原始像素的各基色子像素的灰阶值,判断当前原始像素是否为纯色像素。
结合图2,根据当前原始像素Pi第一子像素R、第二子像素G以及第三子像素B的灰阶值判断当前原始像素Pi是否为纯色像素。其中,判断方法为:判断当前原始像素Pi的第一子像素R、第二子像素G以及第三子像素B的灰阶值是否同时存在两个为零的情况,当当前原始像素Pi的任意两个基色子像素的灰阶值同时为零时则当前原始像素Pi为纯色像素,若不存在两个子像素的灰阶值同时为零的情况,则当前原始像素Pi不为纯色像素。
步骤S402:若不为纯色像素,则执行计算当前原始像素的多个子像素中的基色子像素的灰阶梯度的步骤。
若当前原始像素Pi不为纯色像素,则执行步骤S102,以及步骤S103-S105,以确定当前采样像素的当前子像素的基色子像素的灰阶值。
步骤S403:若为纯色像素,则根据当前原始像素中的灰阶值大于零的子像素在当前原始像素中的位置以及当前采样像素的当前子像素在当前采样像素的位置,将灰阶值大于零的子像素的灰阶值选择性填充到当前采样像素或前一采样像素的对应子像素。
具体地,在当前原始像素Pi为纯色像素时,存在以下四种情况:
第一种情况:若当前原始像素Pi中灰阶值大于零的子像素为当前原始像素Pi的第一子像素R或第二子像素G,且当前采样像素Po的当前子像素为当前采样像素Po的第一子像素R或第二子像素G,即当前原始像素Pi是与当前采样像素Po的RG子像素组所对应的原始像素,则将当前原始像素Pi中的第一子像素R和第二子像素G的灰阶值填充到当前采样像素Po的第一子像素R和第二子像素G。
例如,若当前原始像素Pi的中灰阶值大于零的子像素为当前原始像素Pi的第一子像素R,即当前原始像素Pi的第一子像素R的灰阶值大于零,而第二子像素G和第三子像素B的灰阶值为零,此时当前原始像素Pi显示红色,且当前采样像素Po的当前子像素为当前采样像素Po的RG子像素组中的第一子像素R或第二子像素G,因此当前采样像素Po的RG子像素组存在能够显示当前原始像素Pi所显示的红色的子像素,即第一子像素R,因此将当前原始像素Pi的第一子像素R和第二子像素G的灰阶值填充到当前采样像素Po的第一子像素R和第二子像素G,从而得到当前采样像素Po的当前子像素的灰阶值。
第二种情况:若当前原始像素Pi中灰阶值大于零的子像素为当前原始像素Pi的第一子像素R或第二子像素G,且当前采样像素Po的当前子像素为当前采样像素Po的第三子像素B或第四子像素W,即当前原始像素Pi是与当前采样像素Po的BW子像素组所对应的原始像素,则将当前原始像素Pi中的第一子像素R和第二子像素G填充到当前采样像素Po的第一子像素R和第二子像素G。
例如,当前原始像素Pi的中灰阶值大于零的子像素为当前原始像素Pi的第一子像素R,即当前原始像素Pi的第一子像素R的灰阶值大于零,而第二子像素G和第三子像素B的灰阶值为零,此时当前原始像素Pi所显示的颜色仍为红色,而由于当前采样像素Po的当前子像素为BW子像素组中的第三子像素B或第四子像素W,因此当前采样像素Po的BW子像素组不存在能够显示当前原始像素Pi所显示的红色的子像素,此时将当前原始像素Pi中的第一子像素R和第二子像素G的灰阶值填充到当前采样像素Po的第一子像素R和第二子像素G,即“能量向左偏移”。在此种情况下,若当前采样像素Po的RG子像素组的第一子像素R和第二子像素G本身具有灰阶值,则将其本身的灰阶值与填充得到的当前原始像素Pi中的第一子像素R和第二子像素G的灰阶值进行叠加。
换句话而言,当当前原始像素所显示的颜色与其所对应的当前采样像素的子像素组中的两个子像素的颜色均不同时,则将能量向左偏移,即,将当前原始像素的灰阶值填充到当前原始像素所对应的当前采样像素的子像素组的前一相邻子像素组的子像素中。
第三种情况:若当前原始像素Pi中的灰阶值大于零的子像素为当前原始像素Pi的第三子像素B或第四子像素W,且当前采样像素Po的当前子像素为当前采样像素Po的第三子像素B或第四子像素W,即当前原始像素Pi是与当前采样像素Po的BW子像素组所对应的原始像素,则将当前原始像素中的第三子像素B和第四子像素W的灰阶值填充到当前采样像素Po的第三子像素B和第四子像素W。
例如,当前原始像素Pi的中灰阶值大于零的子像素为当前原始像素Pi的第三子像素B,即当前原始像素Pi的第三子像素B的灰阶值大于零,而第一子像素R和第二子像素G的灰阶值为零,此时当前原始像素PI显示绿色,而由于当前采样像素Po的当前子像素为BW子像素组中的第三子像素B或第四子像素W,因此当前采样像素Po的BW子像素组存在能够显示当前原始像素Pi所显示的绿色的子像素,因此将当前原始像素Pi中的第三子像素B和第四子像素W的 灰阶值填充到当前采样像素Po的第三子像素B和第四子像素W。
第四种情况:若当前原始像素Pi中的灰阶值大于零的子像素为当前原始像素Pi的第三子像素B或第四子像素W,且当前采样像素Po的当前子像素为当前采样像素Po的第一子像素R或第二子像素G,即当前原始像素Pi是与当前采样像素Po的RG子像素组所对应的原始像素,则将当前原始像素中的第三子像素B和第四子像素W的灰阶值填充到当前采样像素Po的前一相邻采样像素的第三子像素B和第四子像素W。
例如,当前原始像素Pi的中灰阶值大于零的子像素为当前原始像素Pi的第三子像素B,即当前原始像素Pi的第三子像素B的灰阶值大于零,而第一子像素R和第二子像素G的灰阶值为零,此时当前原始像素Pi仍然显示绿色,而由于当前采样像素Po的当前子像素为RG子像素组中的第一子像素R或第二子像素G,因此当前采样像素Po的RG子像素组不存在能够显示当前原始像素Pi所显示的绿色的子像素,因此将当前原始像素Pi中的第三子像素B和第四子像素W的灰阶值填充到当前采样像素Po的前一相邻采样像素的第三子像素B和第四子像素W,即“能量向左偏移”。此种情况下,若前一采样像素的第三子像素B和第四子像素W本身也具有灰阶值,则将其本身的灰阶值与填充得到的当前原始像素Pi中的第三子像素B和第四子像素W的灰阶值进行叠加。
通过上述方式,当当前原始像素为纯色像素时,若当前原始像素所显示的颜色与其所对应的当前采样像素的一组子像素的两个子像素的颜色均不相同时,则将当前原始像素的子像素的灰阶值填充至与其所对应的当前采样像素的一组子像素的前一组子像素中,即能量向左偏移,由此可以保留原始图像的高亮部分,并且使能量统一向左偏移,能够降低采样图像的颜色混叠效应,同时可以获得更清晰的采样图像。
当然,在其他方式中,也可以是能量向左偏移,即将当前原始像素的子像素的灰阶值填充至与其所对应的当前采样像素的一组子像素的后一组子像素中。
下面以解析度为5*Q(即P=5,表示采样图像的一行像素包含5个采样像素)的采样图像为例对本发明进行详细说明。其中,显示设备的解析度与采样图像的解析度相同。
请参阅图5,为本发明显示方法中原始图像30和采样图像40的一行像素示意图。本实施方式中,原始图像30的解析度为10*N(即M=10,表示一行像素 包含10个原始像素)。其中,Q和N相等,即原始图像30的水平解析度为采样图像的水平解析度的一倍,原始图像和采样图像的垂直解析度相同。
假设当前原始像素为P5,当前采样像素为Po,当前采样像素Po的当前子像素为RG子像素组中的子像素,当前原始像素P5与当前采样像素Po的RG子像素组对应,即当前处理的子像素为当前采样像素Po中的第一子像素R或第二子像素G,此时根据当前原始像素P5获取当前采样像素Po中的第一子像素R和第二子像素G的灰阶值。
具体地,如步骤S101,首先获取当前原始像素P5及其前后相邻原始像素P3、P4、P6、P7的第一子像素R、第二子像素G、第三子像素B、第四子像素W的灰阶值。然后根据当前原始像素P5的第一子像素R、第二子像素G和第三子像素B的灰阶值判断当前原始像素P5是否是纯色像素。
当当前原始像素P5为纯色像素时,说明其中两个基色子像素的灰阶值同时为零,另一基色子像素的灰阶值大于零。此时,若灰阶值大于零的子像素为当前原始像素P5的第一子像素R或第二子像素G时,而由于当前采样像素Po的当前子像素为RG子像素组中的子像素,因此属于上述的第一种情况,此时将当前原始像素P5的第一子像素R和第二子像素G的灰阶值填充到当前采样像素Po的第一子像素R和第二子像素G,由此得到当前采样像素Po的第一子像素R和第二子像素G的灰阶值。
若灰阶值大于零的子像素为当前原始像素P5的第三子像素B或第二子像素W时,而由于当前采样像素Po的当前子像素为RG子像素组中的子像素,因此属于上述的第四种情况,此时将当前原始像素P5的第三子像素B和第四子像素W的灰阶值填充到当前采样像素Po的前一相邻采样像素的第三子像素B和第四子像素W中,以保留更多的原始图像的信息。
当当前原始像素P5不为纯色像素时,则执行上述步骤S102,以根据自适应权重计算得到当前采样像素的子像素的灰阶值。如步骤S102所述,根据公式(1)(2)(3)计算当前原始像素P5的第一子像素R、第二子像素G、第三子像素B的灰阶梯度:
GLR_max=max{|R4-R5|,|R5-R6|}
GLG_max=max{|G4-G5|,|G5-G6|}
GLB_max=max{|B4-B5|,|B5-B6|}
根据公式(4)从GLR_max、GLG_max、GLB_max三个灰阶梯度中选取的最大灰阶梯度值,得到GLC_max。之后根据公式(5)(6)(7)(8)(9)(10)计算得到当前采样像素Po的第一子像素R和第二子像素G对应的五个加权权重w1、w2、w3、w4、w5
由于当前采样像素Po的当前子像素为第一子像素R或第二子像素G,因此根据步骤S104计算当前采样像素Po的第一子像素R或第二子像素G的灰阶值:
Ro=w1*R3+w2*R4+w3*R5+w4*R6+w5*R7
Go=w1*G3+w2*G4+w3*G5+w4*G6+w5*G7
将计算得到的当前采样像素Po的第一子像素R的灰阶值Ro和第二子像素G的灰阶值Go分别填充到当前采样像素Po的第一子像素R和第二子像素G。
当计算到当前采样像素Po的下一组子像素,即当前采样像素Po的当前子像素为BW子像素组的子像素,当前处理的子像素为当前采样像素Po的第三子像素B或第四子像素W,此时,与当前采样像素Po的当前子像素为BW子像素组对应的下一原始像素P6为当前原始像素,利用原始像素P6获取当前采样像素Po的第三子像素B和第四子像素W的灰阶值。具体而言,利用公式(1)(2)(3)分别计算得到当前原始像素P6的第一子像素R、第二子像素G、第三子像素B的灰阶梯度GLR_max、GLG_max、GLB_max,利用公式(4)从计算得到的三个灰阶梯度中选取最大灰阶梯度值GLC_max。然后根据公式(5)(6)(7)(8)(9)(10)当前采样像素Po的第三子像素B对应的五个加权权重w1、w2、w3、w4、w5
由于当前采样像素Po的当前子像素为第三子像素B或第四子像素W,而第三子像素B为基色子像素,因此当当前子像素为第三子像素B时,根据步骤S104计算当前采样像素Po的第三子像素B的灰阶值,如下:
Bo=w1*B4+w2*B5+w3*B6+w4*B7+w5*B8
其中,当当前采样像素Po的当前子像素为第四子像素W时,当前采样像素Po的第四子像素W的灰阶值Wo则根据公式(12)得到:
Wo=max{W5,W6,W7}
即当前采样像素Po的第四子像素W的灰阶值Wo等于W5、W6、W7三个灰阶值中的最大灰阶值。
将计算得到的当前采样像素Po的第三子像素B的灰阶值Bo和第四子像素W的灰阶值Wo分别填充到当前采样像素Po的第三子像素R和第四子像素W。
由此,可实现当前采样像素Po的第一子像素R、第二子像素G、第三子像素B以及第四子像素W的显示。
参阅图6,在本发明显示设备的一实施方式中,显示设备用于根据上述实施方式所述的显示方法进行图像显示,其包括灰阶获取单元601、灰阶梯度计算单元602、权重确定单元603、求和单元604以及填充单元605。
其中,灰阶获取单元601用于获取原始图像的当前原始像素及其相邻原始像素的多个子像素的灰阶值。权重确定单元603用于根据最大灰阶梯度值确定采样图像的当前采样像素所对应的多个加权权重。求和单元604用于利用多个加权权重对当前原始像素及其相邻原始像素的基色子像素的灰阶值进行加权求和,以得到当前采样像素的当前子像素的基色子像素的灰阶值。填充单元605用于将当前采样像素的当前子像素的基色子像素的灰阶值分别对应填充到当前采样像素的基色子像素。
其中,原始像素和采样像素分别包括顺次排列的第一子像素R、第二子像素G、第三子像素B以及第四子像素W。第一子像素R、第二子像素G、第三子像素B以及第四子像素W分别是红色子像素、绿色子像素、蓝色子像素以及白色子像素,并且第一子像素R、第二子像素G、第三子像素B为基色子像素,第四子像素W为非基色子像素。
通过将灰阶值对应填充至当前采样像素的基色子像素,以实现当前采样像素的基色子像素的显示。
其中,显示设备还包括选择单元606。当当前采样像素的当前子像素为非基色子像素,即为第四子像素W时,选择单元606用于选取当前原始像素及其相邻原始像素的第四子像素的最大灰阶值,以得到当前采样像素的第四子像素W的灰阶值。填充单元605还用于将当前采样像素的第四子像素的灰阶值填充到当前采样像素的第四子像素。
通过上述方式,可得到当前采样像素的四个子像素的灰阶值。本实施方式中首先计算当前原始像素的基色子像素的灰阶梯度,然后根据灰阶梯度构造当前采样像素的加权权重,以利用加权权重对当前原始像素及其相邻原始像素的基色子像素进行加权求和进而得到当前采样像素的基色子像素的灰阶值,即利用了周围像素来提升解析度,与现有的采样方式相比,可以避免得到的采样图像发生颜色混叠现象,能够获得清晰的采样图像。
进一步地,显示设备还包括判断单元607和控制单元608。在灰阶获取单元 601获取原始图像的当前原始像素及其相邻原始像素的多个子像素的灰阶值之后,判断单元607用于根据当前原始像素的各基色子像素的灰阶值,判断当前原始像素是否为纯色像素。其中,灰阶梯度计算单元602在当前原始像素不为纯色像素时,计算当前原始像素的多个子像素中的基色子像素的灰阶梯度,并从多个灰阶梯度中选取最大灰阶梯度值。控制单元608用于在当前原始像素为纯色像素时,根据当前原始像素中的灰阶值大于零的子像素在当前原始像素中的位置以及当前采样像素的当前子像素在当前采样像素的位置,将灰阶值大于零的子像素的灰阶值选择性填充到当前采样像素或前一采样像素的对应子像素。
其中,所述控制单元608具体用于:
在当前原始像素中的灰阶值大于零的子像素为当前原始像素的第一子像素或第二子像素,且当前采样像素的当前子像素为当前采样像素的第一子像素或第二子像素时,将当前原始像素中的第一子像素和第二子像素的灰阶值填充到当前采样像素的第一子像素和第二子像素;
在当前原始像素中的灰阶值大于零的子像素为当前原始像素的第一子像素或第二子像素,且当前采样像素的当前子像素为当前采样像素的第三子像素或第四子像素时,将当前原始像素中的第一子像素和第二子像素的灰阶值填充到当前采样像素的第一子像素和第二子像素;
在当前原始像素中的灰阶值大于零的子像素为当前原始像素的第三子像素或第四子像素,且当前采样像素的当前子像素为当前采样像素的第三子像素或第四子像素时,则将当前原始像素中的第三子像素和第四子像素的灰阶值填充到当前采样像素的第三子像素和第四子像素;
在当前原始像素中的灰阶值大于零的子像素为当前原始像素的第三子像素或第四子像素,且当前采样像素的当前子像素为当前采样像素的第一子像素或第二子像素时,则将当前原始像素中的第三子像素和第四子像素的灰阶值填充到当前采样像素的前一采样像素的第三子像素和第四子像素。
通过上述方式,能够保留原始图像的更多信息,有利于降低颜色混叠效应,同时可以获得更清晰的采样图像。
以上所述仅为本发明的实施方式,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。

Claims (15)

  1. 一种显示设备的显示方法,其中,包括:
    获取原始图像的当前原始像素及其相邻原始像素的多个子像素的灰阶值;
    根据所述当前原始像素的各基色子像素的灰阶值,判断所述当前原始像素是否为纯色像素;
    若为纯色像素,则根据所述当前原始像素中的灰阶值大于零的子像素在所述当前原始像素中的位置以及所述当前采样像素的当前子像素在所述当前采样像素的位置,将所述灰阶值大于零的子像素的灰阶值选择性填充到所述当前采样像素或前一采样像素的对应子像素;
    若不为纯色像素,则执行如下步骤:
    计算所述当前原始像素的多个子像素中的基色子像素的灰阶梯度,并从所述灰阶梯度中选取最大灰阶梯度值;
    根据所述最大灰阶梯度值确定采样图像的当前采样像素所对应的多个加权权重;
    利用所述多个加权权重对所述当前原始像素及其相邻原始像素的基色子像素的灰阶值进行加权求和,以得到所述当前采样像素的当前子像素的基色子像素的灰阶值;
    将所述当前采样像素的当前子像素的基色子像素的灰阶值分别对应填充到所述当前采样像素的基色子像素;
    其中,所述当前原始像素和所述当前采样像素分别包括顺次排列的第一子像素、第二子像素、第三子像素以及第四子像素,所述第一子像素、第二子像素、第三子像素为基色子像素,所述第四子像素为非基色子像素,所述获取原始图像的当前原始像素及其相邻原始像素的多个子像素的灰阶值的步骤之后,还包括:
    选取所述当前原始像素及其相邻原始像素的第四子像素的最大灰阶值,以得到所述当前采样像素的第四子像素的灰阶值;
    将所述当前采样像素的第四子像素的灰阶值填充到当前采样像素的第四子像素。
  2. 根据权利要求1所述的显示方法,其中,所述将灰阶值大于零的子像素的 灰阶值选择性填充到所述当前采样像素或前一采样像素的对应子像素的步骤包括:
    若所述当前原始像素中的灰阶值大于零的子像素为所述当前原始像素的第一子像素或第二子像素,且所述当前采样像素的当前子像素为所述当前采样像素的第一子像素或第二子像素,则将所述当前原始像素中的第一子像素和所述第二子像素的灰阶值填充到所述当前采样像素的第一子像素和第二子像素;
    若所述当前原始像素中的灰阶值大于零的子像素为所述当前原始像素的第一子像素或第二子像素,且所述当前采样像素的当前子像素为所述当前采样像素的第三子像素或第四子像素,则将所述当前原始像素中的第一子像素和所述第二子像素的灰阶值填充到所述当前采样像素的第一子像素和第二子像素;
    若所述当前原始像素中的灰阶值大于零的子像素为所述当前原始像素的第三子像素或第四子像素,且所述当前采样像素的当前子像素为所述当前采样像素的第三子像素或第四子像素,则将所述当前原始像素中的第三子像素和所述第四子像素的灰阶值填充到所述当前采样像素的第三子像素和第四子像素;
    若所述当前原始像素中的灰阶值大于零的子像素为所述当前原始像素的第三子像素或第四子像素,且所述当前采样像素的当前子像素为所述当前采样像素的第一子像素或第二子像素,则将所述当前原始像素中的第三子像素和所述第四子像素的灰阶值填充到所述当前采样像素的前一采样像素的第三子像素和第四子像素。
  3. 根据权利要求1所述的显示方法,其中,所述当前采样像素至少划分为两组子像素,其中一组子像素中的子像素为所述当前采样像素的当前子像素,所述当前原始像素与所述当前采样像素的包含当前子像素的一组子像素对应。
  4. 根据权利要求1所述的显示方法,其中,所述计算所述当前原始像素的多个子像素中的基色子像素的灰阶梯度的步骤包括:
    根据如下公式计算所述灰阶梯度:
    GLR_max=max{|Ri-1-Ri|,|Ri-Ri+1|}
    GLG_max=max{|Gi-1-Gi|,|Gi-Gi+1|}
    GLB_max=max{|Bi-1-Bi|,|Bi-Bi+1|}
    其中,所述Ri、Gi、Bi为所述当前原始像素的第一子像素、第二子像素以及第三子像素的灰阶值,所述Ri-1、Gi-1、Bi-1所述当前原始像素的前一相邻原始像素的第一子像素、第二子像素以及第三子像素的灰阶值,所述Ri+1、Gi+1、Bi+1 为所述当前原始像素的后一相邻原始像素的第一子像素、第二子像素以及第三子像素的灰阶值,所述GLR_max、GLG_max、GLB_max分别是所述当前原始像素的第一子像素、第二子像素、第三子像素的灰阶梯度;
    所述从所述灰阶梯度中选取最大灰阶梯度值的步骤包括:
    从所述GLR_max、GLG_max、GLB_max三个灰阶梯度中选取最大灰阶梯度值,用公式表示如下:
    GLC_max=max{GLR_max,GLG_max,GLB_max}
    其中,所述GLC_max为最大灰阶梯度值。
  5. 根据权利要求4所述的显示方法,其中,所述根据所述最大灰阶梯度值确定采样图像的当前采样像素所对应的多个加权权重的步骤包括:
    定义参数k=GLC_max∈[0,255];
    根据如下计算公式确定当前采样像素所对应的五个加权权重w1、w2、w3、w4、w5
    w1=λ1*f(x)
    w2=λ2*f(x)
    w3=λ3*f(x)
    w4=λ4*f(x)
    w5=λ5*f(x)
    其中,所述f(x)=ax3+bx2+cx+d,x=k/255∈[0,1],a、b、c、d为所述f(x)的拟合系数,λ1、λ2、λ3、λ4、λ5为权重分配调整系数;
    所述利用所述多个加权权重对所述当前原始像素及其相邻原始像素的基色子像素的灰阶值进行加权求和,以得到所述当前采样像素的当前子像素的基色子像素的灰阶值的步骤包括:
    根据如下公式获取所述当前采样像素的当前子像素的基色子像素的灰阶值:
    ho=w1*hi-2+w2*hi-1+w3*hi+w4*hi+1+w5*hi+2
    其中,所述ho表示所述当前采样像素的当前子像素的基色子像素的灰阶值,hi表示所述当前原始像素的基色子像素的灰阶值,hi-2、hi-1分别表示所述当前原始像素的前两个相邻原始像素的基色子像素的灰阶值,hi+1、hi+2分别表示所述当前原始像素的后两个相邻原始像素的基色子像素的灰阶值。
  6. 一种显示设备的显示方法,其中,包括:
    获取原始图像的当前原始像素及其相邻原始像素的多个子像素的灰阶值;
    计算所述当前原始像素的多个子像素中的基色子像素的灰阶梯度,并从所述灰阶梯度中选取最大灰阶梯度值;
    根据所述最大灰阶梯度值确定采样图像的当前采样像素所对应的多个加权权重;
    利用所述多个加权权重对所述当前原始像素及其相邻原始像素的基色子像素的灰阶值进行加权求和,以得到所述当前采样像素的当前子像素的基色子像素的灰阶值;
    将所述当前采样像素的当前子像素的基色子像素的灰阶值分别对应填充到所述当前采样像素的基色子像素。
  7. 根据权利要求6所述的显示方法,其中,所述获取原始图像的当前原始像素及其相邻原始像素的多个子像素的灰阶值的步骤之后,包括:
    根据所述当前原始像素的各基色子像素的灰阶值,判断所述当前原始像素是否为纯色像素;
    若不为纯色像素,则执行所述计算所述当前原始像素的多个子像素中的基色子像素的灰阶梯度的步骤;
    若为纯色像素,则根据所述当前原始像素中的灰阶值大于零的子像素在所述当前原始像素中的位置以及所述当前采样像素的当前子像素在所述当前采样像素的位置,将所述灰阶值大于零的子像素的灰阶值选择性填充到所述当前采样像素或前一采样像素的对应子像素。
  8. 根据权利要求7所述的显示方法,其中,所述当前原始像素和所述当前采样像素分别包括顺次排列的第一子像素、第二子像素、第三子像素以及第四子像素,其中所述将灰阶值大于零的子像素的灰阶值选择性填充到所述当前采样像素或前一采样像素的对应子像素的步骤包括:
    若所述当前原始像素中的灰阶值大于零的子像素为所述当前原始像素的第一子像素或第二子像素,且所述当前采样像素的当前子像素为所述当前采样像素的第一子像素或第二子像素,则将所述当前原始像素中的第一子像素和所述第二子像素的灰阶值填充到所述当前采样像素的第一子像素和第二子像素;
    若所述当前原始像素中的灰阶值大于零的子像素为所述当前原始像素的第一子像素或第二子像素,且所述当前采样像素的当前子像素为所述当前采样像 素的第三子像素或第四子像素,则将所述当前原始像素中的第一子像素和所述第二子像素的灰阶值填充到所述当前采样像素的第一子像素和第二子像素;
    若所述当前原始像素中的灰阶值大于零的子像素为所述当前原始像素的第三子像素或第四子像素,且所述当前采样像素的当前子像素为所述当前采样像素的第三子像素或第四子像素,则将所述当前原始像素中的第三子像素和所述第四子像素的灰阶值填充到所述当前采样像素的第三子像素和第四子像素;
    若所述当前原始像素中的灰阶值大于零的子像素为所述当前原始像素的第三子像素或第四子像素,且所述当前采样像素的当前子像素为所述当前采样像素的第一子像素或第二子像素,则将所述当前原始像素中的第三子像素和所述第四子像素的灰阶值填充到所述当前采样像素的前一采样像素的第三子像素和第四子像素。
  9. 根据权利要求6所述的显示方法,其中,所述当前原始像素和所述当前采样像素分别包括顺次排列的第一子像素、第二子像素、第三子像素以及第四子像素,所述第一子像素、第二子像素、第三子像素为基色子像素,所述第四子像素为非基色子像素,所述获取原始图像的当前原始像素及其相邻原始像素的多个子像素的灰阶值的步骤之后,包括:
    选取所述当前原始像素及其相邻原始像素的第四子像素的最大灰阶值,以得到所述当前采样像素的第四子像素的灰阶值;
    将所述当前采样像素的第四子像素的灰阶值填充到当前采样像素的第四子像素。
  10. 根据权利要求6所述的显示方法,其中,所述当前原始像素和所述当前采样像素分别包括顺次排列的第一子像素、第二子像素、第三子像素以及第四子像素,所述当前采样像素至少划分为两组子像素,其中一组子像素中的子像素为所述当前采样像素的当前子像素,所述当前原始像素与所述当前采样像素的包含当前子像素的一组子像素对应。
  11. 根据权利要求6所述的显示方法,其中,所述当前原始像素和所述当前采样像素分别包括顺次排列的第一子像素、第二子像素、第三子像素以及第四子像素,所述第一子像素、第二子像素以及第三子像素为基色子像素,所述计算所述当前原始像素的多个子像素中的基色子像素的灰阶梯度的步骤包括:
    根据如下公式计算所述灰阶梯度:
    GLR_max=max{|Ri-1-Ri|,|Ri-Ri+1|}
    GLG_max=max{|Gi-1-Gi|,|Gi-Gi+1|}
    GLB_max=max{|Bi-1-Bi|,|Bi-Bi+1|}
    其中,所述Ri、Gi、Bi为所述当前原始像素的第一子像素、第二子像素以及第三子像素的灰阶值,所述Ri-1、Gi-1、Bi-1所述当前原始像素的前一相邻原始像素的第一子像素、第二子像素以及第三子像素的灰阶值,所述Ri+1、Gi+1、Bi+1为所述当前原始像素的后一相邻原始像素的第一子像素、第二子像素以及第三子像素的灰阶值,所述GLR_max、GLG_max、GLB_max分别是所述当前原始像素的第一子像素、第二子像素、第三子像素的灰阶梯度;
    所述从所述灰阶梯度中选取最大灰阶梯度值的步骤包括:
    从所述GLR_max、GLG_max、GLB_max三个灰阶梯度中选取最大灰阶梯度值,用公式表示如下:
    GLC_max=max{GLR_max,GLG_max,GLB_max}
    其中,所述GLC_max为最大灰阶梯度值。
  12. 根据权利要求11所述的显示方法,其中,所述根据所述最大灰阶梯度值确定采样图像的当前采样像素所对应的多个加权权重的步骤包括:
    定义参数k=GLC_max∈[0,255];
    根据如下计算公式确定当前采样像素所对应的五个加权权重w1、w2、w3、w4、w5
    w1=λ1*f(x)
    w2=λ2*f(x)
    w3=λ3*f(x)
    w4=λ4*f(x)
    w5=λ5*f(x)
    其中,所述f(x)=ax3+bx2+cx+d,x=k/255∈[0,1],a、b、c、d为所述f(x)的拟合系数,λ1、λ2、λ3、λ4、λ5为权重分配调整系数;
    所述利用所述多个加权权重对所述当前原始像素及其相邻原始像素的基色子像素的灰阶值进行加权求和,以得到所述当前采样像素的当前子像素的基色子像素的灰阶值的步骤包括:
    根据如下公式获取所述当前采样像素的当前子像素的基色子像素的灰阶 值:
    ho=w1*hi-2+w2*hi-1+w3*hi+w4*hi+1+w5*hi+2
    其中,所述ho表示所述当前采样像素的当前子像素的基色子像素的灰阶值,hi表示所述当前原始像素的基色子像素的灰阶值,hi-2、hi-1分别表示所述当前原始像素的前两个相邻原始像素的基色子像素的灰阶值,hi+1、hi+2分别表示所述当前原始像素的后两个相邻原始像素的基色子像素的灰阶值。
  13. 一种显示设备,其中,包括:
    灰阶值获取单元,用于获取原始图像的当前原始像素及其相邻原始像素的多个子像素的灰阶值;
    灰阶梯度计算单元,用于计算所述当前原始像素的多个子像素中的基色子像素的灰阶梯度,并从所述灰阶梯度中选取最大灰阶梯度值;
    权重确定单元,用于根据所述最大灰阶梯度值确定采样图像的当前采样像素所对应的多个加权权重;
    求和单元,用于利用所述多个加权权重对所述当前原始像素及其相邻原始像素的基色子像素的灰阶值进行加权求和,以得到所述当前采样像素的当前子像素的基色子像素的灰阶值;
    填充单元,用于将所述当前采样像素的当前子像素的基色子像素的灰阶值分别对应填充到所述当前采样像素的基色子像素。
  14. 根据权利要求13所述的显示设备,其中,还包括:
    判断单元,用于根据所述当前原始像素的各基色子像素的灰阶值,判断所述当前原始像素是否为纯色像素,其中,所述灰阶梯度计算单元用于在所述当前原始像素不为纯色像素时,计算所述当前原始像素的多个子像素中的基色子像素的灰阶梯度;
    控制单元,用于在所述当前原始像素为纯色像素时,根据所述当前原始像素中的灰阶值大于零的子像素在所述当前原始像素中的位置以及所述当前采样像素的当前子像素在所述当前采样像素的位置,将所述灰阶值大于零的子像素的灰阶值选择性填充到所述当前采样像素或前一采样像素的对应子像素。
  15. 根据权利要求14所述的显示设备,其中,所述当前原始像素和所述当前采样像素分别包括顺次排列的第一子像素、第二子像素、第三子像素以及第四子像素,所述控制单元用于:
    在所述当前原始像素中的灰阶值大于零的子像素为所述当前原始像素的第 一子像素或第二子像素,且所述当前采样像素的当前子像素为所述当前采样像素的第一子像素或第二子像素时,将所述当前原始像素中的第一子像素和所述第二子像素的灰阶值填充到所述当前采样像素的第一子像素和第二子像素;
    在所述当前原始像素中的灰阶值大于零的子像素为所述当前原始像素的第一子像素或第二子像素,且所述当前采样像素的当前子像素为所述当前采样像素的第三子像素或第四子像素时,将所述当前原始像素中的第一子像素和所述第二子像素的灰阶值填充到所述当前采样像素的第一子像素和第二子像素;
    在所述当前原始像素中的灰阶值大于零的子像素为所述当前原始像素的第三子像素或第四子像素,且所述当前采样像素的当前子像素为所述当前采样像素的第三子像素或第四子像素时,则将所述当前原始像素中的第三子像素和所述第四子像素的灰阶值填充到所述当前采样像素的第三子像素和第四子像素;
    在所述当前原始像素中的灰阶值大于零的子像素为所述当前原始像素的第三子像素或第四子像素,且所述当前采样像素的当前子像素为所述当前采样像素的第一子像素或第二子像素时,则将所述当前原始像素中的第三子像素和所述第四子像素的灰阶值填充到所述当前采样像素的前一采样像素的第三子像素和第四子像素。
PCT/CN2015/092897 2015-10-13 2015-10-27 显示设备及其显示方法 Ceased WO2017063227A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US14/896,728 US10013908B2 (en) 2015-10-13 2015-10-27 Display devices and displaying methods

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510659306.2A CN105206215B (zh) 2015-10-13 2015-10-13 显示设备及其显示方法
CN201510659306.2 2015-10-13

Publications (1)

Publication Number Publication Date
WO2017063227A1 true WO2017063227A1 (zh) 2017-04-20

Family

ID=54953850

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/092897 Ceased WO2017063227A1 (zh) 2015-10-13 2015-10-27 显示设备及其显示方法

Country Status (2)

Country Link
CN (1) CN105206215B (zh)
WO (1) WO2017063227A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN120976215A (zh) * 2025-10-17 2025-11-18 杭州索骐电子科技有限公司 一种电路板加工异常检测系统

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106558284B (zh) 2017-01-25 2021-08-31 京东方科技集团股份有限公司 一种像素阵列、显示装置及其显示方法
TWI631552B (zh) * 2017-07-21 2018-08-01 Ili Technology Corp. 顯示裝置及其影像處理方法
CN110060629B (zh) * 2019-04-26 2020-12-01 上海天马微电子有限公司 显示面板的驱动方法及装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110285738A1 (en) * 2010-05-20 2011-11-24 Pei-Lin Hsieh Rgbw display system and method for displaying images thereof
CN103338378A (zh) * 2013-07-24 2013-10-02 西安电子科技大学 基于二维亚像素采样的超分辨率显示方法及装置
CN104184981A (zh) * 2014-08-27 2014-12-03 深圳市华星光电技术有限公司 一种基于缩减像素采样处理的低解析度显示方法及设备
CN104200793A (zh) * 2014-08-21 2014-12-10 京东方科技集团股份有限公司 一种图像的边界判别方法、装置和显示面板
CN104485064A (zh) * 2014-12-31 2015-04-01 深圳市华星光电技术有限公司 基于边缘像素检测的rgbw显示装置的子像素补偿着色的方法
CN104732938A (zh) * 2015-03-27 2015-06-24 深圳市华星光电技术有限公司 一种液晶显示面板的驱动方法和驱动装置

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101448163A (zh) * 2008-12-17 2009-06-03 香港应用科技研究院有限公司 基于亚像素的下采样的方法和装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110285738A1 (en) * 2010-05-20 2011-11-24 Pei-Lin Hsieh Rgbw display system and method for displaying images thereof
CN103338378A (zh) * 2013-07-24 2013-10-02 西安电子科技大学 基于二维亚像素采样的超分辨率显示方法及装置
CN104200793A (zh) * 2014-08-21 2014-12-10 京东方科技集团股份有限公司 一种图像的边界判别方法、装置和显示面板
CN104184981A (zh) * 2014-08-27 2014-12-03 深圳市华星光电技术有限公司 一种基于缩减像素采样处理的低解析度显示方法及设备
CN104485064A (zh) * 2014-12-31 2015-04-01 深圳市华星光电技术有限公司 基于边缘像素检测的rgbw显示装置的子像素补偿着色的方法
CN104732938A (zh) * 2015-03-27 2015-06-24 深圳市华星光电技术有限公司 一种液晶显示面板的驱动方法和驱动装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN120976215A (zh) * 2025-10-17 2025-11-18 杭州索骐电子科技有限公司 一种电路板加工异常检测系统
CN120976215B (zh) * 2025-10-17 2025-12-23 杭州索骐电子科技有限公司 一种电路板加工异常检测系统

Also Published As

Publication number Publication date
CN105206215A (zh) 2015-12-30
CN105206215B (zh) 2017-12-15

Similar Documents

Publication Publication Date Title
CN103886809B (zh) 显示方法和显示装置
CN107342037B (zh) 数据转化方法、装置和计算机可读存储介质
CN104867453B (zh) 显示屏的像素结构转换方法及其装置
US9886882B2 (en) Grayscale compensation method
WO2013035679A1 (ja) 多原色表示装置
KR102601853B1 (ko) 표시장치 및 그의 영상 처리방법
US10043483B2 (en) Pixel arrangement structure, array substrate, display apparatus and display control method
CN108122525B (zh) 显示装置及其图像处理方法
JP2005505801A (ja) 画像を表示するための方法および画像処理ユニット並びにその表示処理ユニットを有する表示装置
CN105489177B (zh) 子像素渲染方法及渲染装置
CN104656295A (zh) 一种阵列基板、显示面板、其驱动方法及显示装置
CN105096856B (zh) 液晶面板的驱动方法及驱动装置
CN109461400B (zh) 用于rgb到rgbw图像转换的子像素渲染方法及装置
WO2022252555A1 (zh) 显示面板的灰阶补偿方法及其装置
WO2017101191A1 (zh) 像素渲染方法、像素渲染装置及显示装置
WO2017063227A1 (zh) 显示设备及其显示方法
US10290252B2 (en) Image display method, image display apparatus and delta pixel arrangement display device
CN104461441B (zh) 渲染方法、渲染装置及显示装置
CN107656717B (zh) 一种显示方法及图像处理模块、显示装置
US10013908B2 (en) Display devices and displaying methods
CN104464684B (zh) 对显示器的画面进行渲染的方法
CN110675792B (zh) 显示装置及其显示方法
CN106356016B (zh) 一种四色像素排布及其对应的显示方法及显示装置
CN115294910A (zh) 显示面板的补偿方法、装置、显示面板
US8427500B1 (en) Spatially aware sub-pixel rendering

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 14896728

Country of ref document: US

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15906109

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15906109

Country of ref document: EP

Kind code of ref document: A1