WO2020093619A1 - Method and device for detecting high-frequency component in image on display device - Google Patents

Method and device for detecting high-frequency component in image on display device Download PDF

Info

Publication number
WO2020093619A1
WO2020093619A1 PCT/CN2019/075181 CN2019075181W WO2020093619A1 WO 2020093619 A1 WO2020093619 A1 WO 2020093619A1 CN 2019075181 W CN2019075181 W CN 2019075181W WO 2020093619 A1 WO2020093619 A1 WO 2020093619A1
Authority
WO
WIPO (PCT)
Prior art keywords
image pixel
image
value
difference
grayscale value
Prior art date
Application number
PCT/CN2019/075181
Other languages
French (fr)
Chinese (zh)
Inventor
关晓亮
吴宇
Original Assignee
深圳市华星光电半导体显示技术有限公司
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 深圳市华星光电半导体显示技术有限公司 filed Critical 深圳市华星光电半导体显示技术有限公司
Publication of WO2020093619A1 publication Critical patent/WO2020093619A1/en

Links

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/2007Display of intermediate tones
    • G09G3/2074Display of intermediate tones using sub-pixels
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/02Improving the quality of display appearance
    • G09G2320/0271Adjustment of the gradation levels within the range of the gradation scale, e.g. by redistribution or clipping

Definitions

  • the present disclosure relates to the field of display technology, and in particular, to a method and device for detecting high-frequency components in an image of a display device.
  • the high frequency component In the image processing of the display device, the area where the brightness or gradation changes drastically in the image is called the high frequency component, and vice versa is called the low frequency component.
  • the detection of the high frequency component in the image of the display device is limited
  • the detected image pixels and the image pixels in the layer adjacent to them have a small detection range. In this case, the high-frequency components will appear grainy after being processed by the color shift compensation algorithm, resulting in reduced display quality.
  • the detection of high-frequency components in the image of the display device is limited to the image pixels to be detected and the image pixels of the layer adjacent thereto, and the detection range is small. In this case, the high-frequency components pass through The color shift compensation algorithm will appear grainy after processing, resulting in reduced display quality.
  • an object of the present disclosure is to provide a method and device for detecting high-frequency components in an image of a display device, which can optimize the detection process of high-frequency components in an image and improve display quality.
  • the present disclosure provides a method for detecting high-frequency components in an image of a display device, including:
  • Step S1 obtaining the original grayscale value of the image pixels in the image to be processed of the display device, the image pixels including the image pixels to be detected, a plurality of first image pixels and a plurality of second image pixels;
  • Step S2 Calculate a first grayscale difference value, where the first grayscale difference value is the maximum value of the difference between the original grayscale value of the image pixel to be detected and the original grayscale value of the first image pixel;
  • Step S3 Calculate a second grayscale difference value, where the second grayscale difference value is the maximum difference between the original grayscale value of the image pixel to be detected and the original grayscale value of the second image pixel Value;
  • Step S4 Calculate the target gray scale difference according to the target gray scale difference algorithm, the first gray scale difference and the second gray scale difference.
  • the first image pixel is located in a first layer on the periphery of the image pixel to be detected and surrounds the image pixel to be detected, and the second image pixel is located in the image to be detected The second layer of the periphery of the pixel partially surrounds the first image pixel.
  • the first image pixels are located in a row above and below the current row of the image pixels
  • the second image pixel is located in the previous row, the upper two rows, and the next row of the current row of the image pixels, and the second image pixel is not located in the lower two rows of the current row of the image pixels Row.
  • the method further includes: Step S5: Compare the target gray scale difference with a preset gray scale threshold, if the target gray scale difference is greater than the predetermined gray
  • the order threshold value determines that the image pixels to be detected are high-frequency image pixels, otherwise, the image pixels to be detected are low-frequency image pixels.
  • the method when the image pixel to be detected is a high-frequency image pixel, the method further includes: Step S6, adjusting the high level according to a preset adjustment algorithm and the target grayscale difference The actual grayscale value of the high-frequency image pixel, reducing the absolute difference between the actual grayscale value of the high-frequency image pixel and the original grayscale value of the high-frequency image pixel; the actual grayscale value is The grayscale value obtained after the original grayscale value of the high-frequency image pixel is subjected to color shift compensation.
  • each image pixel in the step S1 includes a first primary color component, a second primary color component, and a third primary color component
  • the original grayscale value of each image pixel includes the first primary color
  • the difference between the original grayscale value of the image pixel to be detected and the original grayscale value of the first image pixel is: The difference between the original grayscale value of the first primary color component and the original grayscale value of the first primary color component in the first image pixel, the second of the image pixels to be detected The difference between the original grayscale value of the primary color component and the original grayscale value of the second primary color component in the first image pixel and the third primary color component of the image pixel to be detected The largest one of the differences between the original grayscale value and the original grayscale value of the third primary color component in the first image pixel.
  • the difference between the original grayscale value of the image pixel to be detected and the original grayscale value of the second image pixel is: The difference between the original grayscale value of the first primary color component and the original grayscale value of the first primary color component in the second image pixel, the second of the image pixels to be detected The difference between the original grayscale value of the primary color component and the original grayscale value of the second primary color component in the second image pixel and the third primary color component of the image pixel to be detected The largest one of the differences between the original grayscale value and the original grayscale value of the third primary color component in the second image pixel.
  • the present disclosure also provides a device for detecting high-frequency components in an image of a display device, including:
  • the first calculation unit connected to the acquisition unit;
  • a second computing unit connected to the first computing unit
  • the acquisition unit is used to acquire the original grayscale value of the image pixels in the image to be processed of the display device, the image pixels include the image pixels to be detected, a plurality of first image pixels and a plurality of second image pixels;
  • the first calculation unit is used to calculate a first grayscale difference value and a second grayscale difference value
  • the first grayscale difference value is the original grayscale value of the pixel to be detected and the first image
  • the second grayscale difference value is the difference between the original grayscale value of the pixel to be detected and the original grayscale value of the second image pixel Maximum value
  • the second calculation unit is used to calculate the target gray scale difference value according to the target gray scale difference algorithm, the first gray scale difference value and the second gray scale difference value.
  • the first image pixel is located in a first layer on the periphery of the image pixel to be detected and surrounds the image pixel to be detected, and the second image pixel is located in the image to be detected The second layer of the periphery of the pixel partially surrounds the first image pixel.
  • the first image pixels are located in a row above and below the current row of the image pixels
  • the second image pixel is located in the previous row, the upper two rows, and the next row of the current row of the image pixels, and the second image pixel is not located in the lower two rows of the current row of the image pixels Row.
  • the judgment unit is used to compare the target gray scale difference with a preset gray scale threshold, if the target gray scale difference is greater than the preset gray scale threshold , The determination unit determines that the image pixel to be detected is a high-frequency image pixel, otherwise, the determination unit determines that the image pixel to be detected is a low-frequency image pixel.
  • the device for detecting high-frequency components in the image of the display device further includes an adjustment unit connected to the judgment unit, wherein the adjustment unit is used to adjust the algorithm according to a preset
  • the target grayscale difference adjusts the actual grayscale value of the high-frequency image pixel, and reduces the difference between the actual grayscale value of the high-frequency image pixel and the original grayscale value of the high-frequency image pixel Absolute difference; the actual grayscale value is the grayscale value obtained after the original grayscale value of the high-frequency image pixel is subjected to color shift compensation.
  • each image pixel includes a first primary color component, a second primary color component, and a third primary color component
  • the original grayscale value of each image pixel includes the original grayscale of the first primary color component Value, the original grayscale value of the second primary color component and the original grayscale value of the third primary color component.
  • the difference between the original grayscale value of the image pixel to be detected and the original grayscale value of the first image pixel is: The difference between the original grayscale value of the first primary color component and the original grayscale value of the first primary color component in the first image pixel, the second of the image pixels to be detected The difference between the original grayscale value of the primary color component and the original grayscale value of the second primary color component in the first image pixel and the third primary color component of the image pixel to be detected The largest one of the differences between the original grayscale value and the original grayscale value of the third primary color component in the first image pixel.
  • the difference between the original grayscale value of the image pixel to be detected and the original grayscale value of the second image pixel is: The difference between the original grayscale value of the first primary color component and the original grayscale value of the first primary color component in the second image pixel, the second of the image pixels to be detected The difference between the original grayscale value of the primary color component and the original grayscale value of the second primary color component in the second image pixel and the third primary color component of the image pixel to be detected The largest one of the differences between the original grayscale value and the original grayscale value of the third primary color component in the second image pixel.
  • the embodiments of the present disclosure provide a method and device for detecting high-frequency components in an image of a display device.
  • This embodiment uses the maximum value of the difference between the original grayscale value of the image pixel to be detected and the original grayscale value of the first image pixel as the first grayscale difference value, and uses the original grayscale value of the image pixel to be detected and the second The maximum value of the difference between the original grayscale values of the image pixels is used as the second grayscale difference, and then the target grayscale difference is calculated according to the target grayscale difference algorithm, the first grayscale difference and the second grayscale difference Value, and then compare the target grayscale difference with a preset grayscale threshold to determine whether the image pixel to be detected is a high-frequency image pixel, and then adjust the actual grayscale value of the high-frequency image pixel to reduce the high-frequency image
  • the difference between the actual grayscale value of the pixel and the original grayscale value can optimize the detection process of high-frequency components in the image and improve the
  • FIG. 1 shows a schematic diagram of image pixels in a to-be-processed image of a display device according to an embodiment of the present disclosure
  • FIG. 2 shows a flowchart of a method of detecting high-frequency components in an image of a display device according to an embodiment of the present disclosure
  • FIG. 3 shows a schematic diagram of an apparatus for detecting high-frequency components in an image of a display device according to an embodiment of the present disclosure.
  • a method for detecting high-frequency components in an image of a display device includes the following steps.
  • Step S1 Obtain the original grayscale value of the image pixels in the image to be processed of the display device.
  • the image pixels include the image pixel 100 to be detected, a plurality of first image pixels 200, and a plurality of second image pixels 300.
  • the first image pixel 200 is located in the first layer around the image pixel 100 to be inspected and surrounds the image pixel 100 to be inspected
  • the second image pixel 300 is located at the second layer around the image pixel 100 to be inspected and partially surrounds the first image pixel 100 .
  • the first image pixel 200 is located in the upper and lower rows of the current row of image pixels
  • the second image pixel 300 is located in the upper row and upper two rows of the current row of image pixels
  • the next row, and the second image pixel 300 is not located in the next two rows of the current row of image pixels.
  • each image to be processed is composed of a plurality of image pixels, and each image pixel includes a first primary color component 11, a second primary color component 12, and a third primary color component 13, and the original grayscale value of the image pixel includes the first primary color
  • the original grayscale values of the component 11, the second primary color component 12, and the third primary color component 13, by providing each primary color component of each image pixel with a grayscale value required for display, to control the brightness of the primary color component, and The primary color component is displayed in a corresponding color, thereby realizing the display of an image.
  • the first primary color component 11, the second primary color component 12, and the third primary color component 13 are a red component, a green component, and a blue component, respectively.
  • each image pixel may further include a fourth primary color component.
  • the fourth primary color component is, for example, a white component.
  • the image pixels 100 to be detected, the first image pixels 200 and the second image pixels 300 are arranged in 4 rows and 5 columns.
  • the image pixel 100 to be detected is located in the center, that is, the third row and the third column, and a plurality of first image pixels 200 surround the image pixel 100 to be detected, respectively located in the second row, second column, second row, third column, and second row second
  • a plurality of second image pixels 300 partially surround the image pixel 100 to be detected and the first image pixel 200, respectively located in the first row and first column, the first row and second column, the first row and third column, the first row and fourth column , Row 1, column 5, row 2, column 1, row 2, column 5, row 3, column 1, row 3, column 5, row 4, column 1, and row 4, column 5 11. Since the second image pixel 300 of this embodiment is not located in the fifth row and first column, the fifth row and second column, the fifth row and third column, the fifth row and fourth column, the fifth row and fifth column, the detection range It can be reduced from 5 lines of image pixels to 4 lines of image pixels, which can optimize the detection process of high frequency components in the image and improve the display quality.
  • Step S2 Calculate a first grayscale difference value, where the first grayscale difference value is the maximum value of the difference between the original grayscale value of the image pixel 100 to be detected and the original grayscale value of the first image pixel 200.
  • the difference between the original grayscale value of the image pixel 100 to be detected and the original grayscale value of the first image pixel 200 is: the original grayscale value of the first primary color component in the image pixel 100 to be detected and the first image pixel 200
  • the difference is the largest of the differences between the original grayscale value of the third primary color component in the image pixel 100 to be detected and the original grayscale value of the third primary color component in the first image pixel 200. It should be understood that the above differences are absolute differences, and there is no negative value.
  • step S2 taking the arrangement of the image pixels 100 to be detected, the first image pixels 200 and the second image pixels 300 arranged in 4 rows and 5 columns as an example, the calculation process in step S2 is as follows:
  • F2 Max (
  • F3 Max (
  • F4 Max (
  • F5 Max (
  • F6 Max (
  • F7 Max (
  • F8 Max (
  • R0, G0, and B0 represent the original grayscale values of the first primary color component 11, the second primary color component 12, and the third primary color component 13 in the image pixel 100 to be detected
  • R1 to R8 respectively represent the eight first image pixels 200
  • the original grayscale values of the first primary color components 11 of G1 to G8 represent the original grayscale values of the second primary color components 12 of the eight first image pixels 200
  • B1 to B8 represent the first grayscale values of the eight first image pixels 200, respectively
  • the original grayscale values of the three primary color components 13, F1 to F8 respectively represent the difference between the original grayscale values of the eight first image pixels 200 and the image pixel 100 to be detected
  • FA1 is the first grayscale difference.
  • Step S3 Calculate a second grayscale difference value, where the second grayscale difference value is the maximum value of the difference between the original grayscale value of the image pixel 100 to be detected and the original grayscale value of the second image pixel 300.
  • the difference between the original grayscale value of the image pixel 100 to be detected and the original grayscale value of the second image pixel 300 is: the original grayscale value of the first primary color component in the image pixel 100 to be detected and the second image pixel 300
  • the difference between the original grayscale value of the first primary color component in the middle, the original grayscale value of the second primary color component in the image pixel 100 to be detected, and the original grayscale value of the second primary color component in the second image pixel 300 The largest difference between the difference value and the original grayscale value of the third primary color component in the image pixel 100 to be detected and the original grayscale value of the third primary color component in the second image pixel 300.
  • step S3 taking the arrangement of the image pixels 100, the first image pixels 200, and the second image pixels 300 to be detected in 4 rows and 5 columns as an example, the calculation process in step S3 is as follows:
  • F9 Max (
  • F10 Max (
  • F11 Max (
  • F12 Max (
  • F13 Max (
  • F14 Max (
  • F15 Max (
  • F16 Max (
  • F17 Max (
  • F18 Max (
  • F19 Max (
  • FA2 Max (F9, F10, F11, F12, F13, F14, F15, F16, F17, F18, F19)
  • R0, G0, and B0 respectively represent the original grayscale values of the first primary color component 11, the second primary color component 12, and the third primary color component 13 in the image pixel 100 to be detected
  • R9 to R19 respectively represent 11 second image pixels
  • the original grayscale value of the first primary color component 11 of 300, G9 to G19 respectively represent the original grayscale value of the second primary color component 12 of the 11 second image pixels 300
  • B9 to B19 respectively represent the 11 second image pixels 300
  • the original grayscale values of the third primary color component 13 of F9 to F19 respectively represent the difference between the original grayscale values of the 11 second image pixels 300 and the image pixel 100 to be detected
  • FA2 is the second grayscale difference.
  • Step S4 Calculate the target gray scale difference according to the target gray scale difference algorithm, the first gray scale difference and the second gray scale difference.
  • Step S5 Compare the target grayscale difference with the preset grayscale threshold, if the target grayscale difference is greater than the preset grayscale threshold, the image pixel 100 to be detected is determined to be a high-frequency image pixel, otherwise the image pixel to be detected is determined 100 is a low-frequency image pixel.
  • each primary color component in each image pixel controls one sub-pixel in the display panel to implement display, that is, one image pixel includes three Each sub-pixel corresponds to a primary color component.
  • each primary color component in each image pixel controls two sub-pixels in the display panel to achieve display, that is, an image pixel includes six sub-pixels. Every two sub-pixels correspond to a primary color component.
  • the method further includes step S6, adjusting the algorithm according to a preset And the target grayscale difference adjust the actual grayscale value of the high-frequency image pixels, and reduce the absolute difference between the actual grayscale value of the high-frequency image pixels and the original grayscale value of the high-frequency image pixels.
  • the actual grayscale value is the grayscale value obtained after the original grayscale value of the high-frequency image pixel is subjected to color shift compensation.
  • the process of color shift compensation is to first obtain the original grayscale value of each primary color component in the high-frequency image pixel, and convert the original grayscale into the first display grayscale value and the second display grayscale value according to the color shift compensation algorithm
  • the first display gray scale value and the second display gray scale value of each primary color component respectively control the display brightness of the two sub-pixels corresponding to the primary color component, so that the two sub-pixels achieve bright and dark display to achieve the purpose of color shift compensation.
  • the first display grayscale value and the second display grayscale value are the actual grayscale values, and the reduction between the difference between the actual grayscale value of the high-frequency image pixels and the original grayscale value is the reduction of the high-frequency image The difference between the brightness and darkness of the two sub-pixels corresponding to each primary color component in the pixel, thereby reducing the graininess caused by the color shift compensation.
  • an embodiment of the present disclosure further provides a device for detecting high-frequency components in the image of the display device 1.
  • the device includes an acquisition unit 10, a first calculation unit 20 connected to the acquisition unit 10, a second calculation unit 30 connected to the first calculation unit 20, and a judgment unit 40 connected to the second calculation unit 30.
  • the obtaining unit 10 is used to obtain the original grayscale value of the image pixels in the image to be processed of the display device 1.
  • the image pixels include an image pixel 100 to be detected, a plurality of first image pixels 200, and a plurality of second image pixels 300.
  • the first image pixel 200 is located in the first layer around the image pixel 100 to be inspected and surrounds the image pixel 100 to be inspected
  • the second image pixel 300 is located at the second layer around the image pixel 100 to be inspected and partially surrounds the first image pixel 100 .
  • the first image pixel 200 is located in the upper and lower rows of the current row of image pixels
  • the second image pixel 300 is located in the upper row and upper two rows of the current row of image pixels
  • the next row, and the second image pixel 300 is not located in the next two rows of the current row of image pixels.
  • each image to be processed is composed of a plurality of image pixels, and each image pixel includes a first primary color component 11, a second primary color component 12, and a third primary color component 13, and the original grayscale value of the image pixel includes the first primary color
  • the original grayscale values of the component 11, the second primary color component 12, and the third primary color component 13, by providing each primary color component of each image pixel with a grayscale value required for display, to control the brightness of the primary color component, and The primary color component is displayed in a corresponding color, thereby realizing the display of an image.
  • the first primary color component 11, the second primary color component 12, and the third primary color component 13 are a red component, a green component, and a blue component, respectively.
  • each image pixel may further include a fourth primary color component.
  • the fourth primary color component is, for example, a white component.
  • the image pixels 100 to be detected, the first image pixels 200 and the second image pixels 300 are arranged in 4 rows and 5 columns.
  • the image pixel 100 to be detected is located in the center, that is, the third row and the third column, and a plurality of first image pixels 200 surround the image pixel 100 to be detected, respectively located in the second row, second column, second row, third column, and second row second
  • a plurality of second image pixels 300 partially surround the image pixel 100 to be detected and the first image pixel 200, respectively located in the first row and first column, the first row and second column, the first row and third column, the first row and fourth column , Row 1, column 5, row 2, column 1, row 2, column 5, row 3, column 1, row 3, column 5, row 4, column 1, and row 4, column 5 11. Since the second image pixel 300 of this embodiment is not located in the fifth row and first column, the fifth row and second column, the fifth row and third column, the fifth row and fourth column, the fifth row and fifth column, the detection range It can be reduced from 5 lines of image pixels to 4 lines of image pixels, which can optimize the detection process of high frequency components in the image and improve the display quality.
  • the first calculation unit 20 is used to calculate a first grayscale difference value and a second grayscale difference value.
  • the first grayscale difference value is the maximum value of the difference between the original grayscale value of the image pixel 100 to be detected and the original grayscale value of the first image pixel 200
  • the second grayscale difference value is the original grayscale of the image pixel 200 to be detected The maximum value of the difference between the level value and the original gray level value of the second image pixel 200.
  • the difference between the original grayscale value of the image pixel 100 to be detected and the original grayscale value of the first image pixel 200 is: the original grayscale value of the first primary color component in the image pixel 100 to be detected and the first image pixel 200
  • the difference is the largest of the differences between the original grayscale value of the third primary color component in the image pixel 100 to be detected and the original grayscale value of the third primary color component in the first image pixel 200. It should be understood that the above differences are absolute differences, and there is no negative value.
  • the calculation process of the first calculation unit 20 is as follows:
  • F2 Max (
  • F3 Max (
  • F4 Max (
  • F5 Max (
  • F6 Max (
  • F7 Max (
  • F8 Max (
  • R0, G0, and B0 represent the original grayscale values of the first primary color component 11, the second primary color component 12, and the third primary color component 13 in the image pixel 100 to be detected
  • R1 to R8 respectively represent the eight first image pixels 200
  • the original grayscale values of the first primary color components 11 of G1 to G8 represent the original grayscale values of the second primary color components 12 of the eight first image pixels 200
  • B1 to B8 represent the first grayscale values of the eight first image pixels 200, respectively
  • the original grayscale values of the three primary color components 13, F1 to F8 respectively represent the difference between the original grayscale values of the eight first image pixels 200 and the image pixel 100 to be detected
  • FA1 is the first grayscale difference.
  • the difference between the original grayscale value of the image pixel 100 to be detected and the original grayscale value of the second image pixel 300 is: the original grayscale value of the first primary color component in the image pixel 100 to be detected and the second image pixel 300
  • the difference between the original grayscale value of the first primary color component in the middle, the original grayscale value of the second primary color component in the image pixel 100 to be detected, and the original grayscale value of the second primary color component in the second image pixel 300 The largest difference between the difference value and the original grayscale value of the third primary color component in the image pixel 100 to be detected and the original grayscale value of the third primary color component in the second image pixel 300.
  • the calculation process of the first calculation unit 20 is as follows:
  • F9 Max (
  • F10 Max (
  • F11 Max (
  • F12 Max (
  • F13 Max (
  • F14 Max (
  • F15 Max (
  • F16 Max (
  • F17 Max (
  • F18 Max (
  • F19 Max (
  • FA2 Max (F9, F10, F11, F12, F13, F14, F15, F16, F17, F18, F19)
  • R0, G0, and B0 respectively represent the original grayscale values of the first primary color component 11, the second primary color component 12, and the third primary color component 13 in the image pixel 100 to be detected
  • R9 to R19 respectively represent 11 second image pixels
  • the original grayscale value of the first primary color component 11 of 300, G9 to G19 respectively represent the original grayscale value of the second primary color component 12 of the 11 second image pixels 300
  • B9 to B19 respectively represent the 11 second image pixels 300
  • the original grayscale values of the third primary color component 13 of F9 to F19 respectively represent the difference between the original grayscale values of the 11 second image pixels 300 and the image pixel 100 to be detected
  • FA2 is the second grayscale difference.
  • the second calculation unit 30 calculates the target gray scale difference value according to the target gray scale difference algorithm, the first gray scale difference value and the second gray scale difference value.
  • the judging unit 40 is used to compare the target grayscale difference value with the preset grayscale threshold value. If the target grayscale difference value is greater than the preset grayscale threshold value, the judging unit 40 determines that the image pixel 100 to be detected is a high frequency image pixel, otherwise The determination unit 40 determines that the image pixel 100 to be detected is a low-frequency image pixel.
  • the device for detecting high-frequency components in the image of the display device 1 further includes an adjustment unit 50 connected to the determination unit 40.
  • the adjusting unit 50 is used to adjust the actual grayscale value of the high-frequency image pixels according to the preset adjustment algorithm and the target grayscale difference, so as to reduce the difference between the actual grayscale value of the high-frequency image pixels and the original grayscale value of the high-frequency image pixels The absolute difference between.
  • the actual grayscale value is the grayscale value obtained after the original grayscale value of the high-frequency image pixel is subjected to color shift compensation.
  • the process of color shift compensation is to first obtain the original grayscale value of each primary color component in the high-frequency image pixel, and convert the original grayscale into the first display grayscale value and the second display grayscale value according to the color shift compensation algorithm
  • the first display gray scale value and the second display gray scale value of each primary color component respectively control the display brightness of the two sub-pixels corresponding to the primary color component, so that the two sub-pixels achieve bright and dark display to achieve the purpose of color shift compensation.
  • the first display grayscale value and the second display grayscale value are the actual grayscale values, and the reduction between the difference between the actual grayscale value of the high-frequency image pixels and the original grayscale value is the reduction of the high-frequency image The difference between the brightness and darkness of the two sub-pixels corresponding to each primary color component in the pixel, thereby reducing the graininess caused by the color shift compensation.
  • the embodiments of the present disclosure provide a method and device for detecting high-frequency components in an image of a display device.
  • This embodiment uses the maximum value of the difference between the original grayscale value of the image pixel to be detected and the original grayscale value of the first image pixel as the first grayscale difference value, and uses the original grayscale value of the image pixel to be detected and the second The maximum value of the difference between the original grayscale values of the image pixels is used as the second grayscale difference, and then the target grayscale difference is calculated according to the target grayscale difference algorithm, the first grayscale difference and the second grayscale difference Value, and then compare the target grayscale difference with a preset grayscale threshold to determine whether the image pixel to be detected is a high-frequency image pixel, and then adjust the actual grayscale value of the high-frequency image pixel to reduce the high-frequency image
  • the difference between the actual grayscale value of the pixel and the original grayscale value can optimize the detection process of high-frequency components in the image and improve the display quality.

Abstract

A method and device for detecting a high-frequency component in an image on a display device. The method comprises: using the maximum value of the difference between the original grayscale value of an image pixel (100) to be detected and the original grayscale value of a first image pixel (200) as a first grayscale difference, using the maximum value of the difference between the original grayscale value of the image pixel (100) to be detected and the original grayscale value of a second image pixel (300) as a second grayscale difference, and calculating a target grayscale difference according to a target grayscale difference algorithm and the first and second grayscale differences.

Description

侦测显示装置的图像中高频成分的方法及装置Method and device for detecting high frequency component in image of display device 技术领域Technical field
本揭示涉及显示技术领域,特别涉及一种侦测显示装置的图像中高频成分的方法及装置。The present disclosure relates to the field of display technology, and in particular, to a method and device for detecting high-frequency components in an image of a display device.
背景技术Background technique
在显示装置的图像处理中,图像中亮度或灰度变化激烈的区域称为高频成分,反之则称为低频成分,现有技术中对于显示装置的图像中的高频成分的侦测局限于被侦测的图像像素及与其相邻一层的图像像素,侦测范围较小,这种情况下,高频成分经过色偏补偿算法处理后会出现颗粒感,导致显示品质降低。In the image processing of the display device, the area where the brightness or gradation changes drastically in the image is called the high frequency component, and vice versa is called the low frequency component. In the prior art, the detection of the high frequency component in the image of the display device is limited The detected image pixels and the image pixels in the layer adjacent to them have a small detection range. In this case, the high-frequency components will appear grainy after being processed by the color shift compensation algorithm, resulting in reduced display quality.
故,有需要提供一种侦测显示装置的图像中高频成分的方法及装置,以解决现有技术存在的问题。Therefore, there is a need to provide a method and device for detecting high-frequency components in an image of a display device to solve the problems in the prior art.
技术问题technical problem
现有技术中对于显示装置的图像中的高频成分的侦测局限于被侦测的图像像素及与其相邻一层的图像像素,侦测范围较小,这种情况下,高频成分经过色偏补偿算法处理后会出现颗粒感,导致显示品质降低。In the prior art, the detection of high-frequency components in the image of the display device is limited to the image pixels to be detected and the image pixels of the layer adjacent thereto, and the detection range is small. In this case, the high-frequency components pass through The color shift compensation algorithm will appear grainy after processing, resulting in reduced display quality.
技术解决方案Technical solution
为解决上述技术问题,本揭示的一目的在于提供侦测显示装置的图像中高频成分的方法及装置,其能够优化图像中高频成分的侦测过程,提升显示品质。In order to solve the above technical problems, an object of the present disclosure is to provide a method and device for detecting high-frequency components in an image of a display device, which can optimize the detection process of high-frequency components in an image and improve display quality.
为达成上述目的,本揭示提供一侦测显示装置的图像中高频成分的方法,包括: To achieve the above objective, the present disclosure provides a method for detecting high-frequency components in an image of a display device, including:
步骤S1、获取显示装置的待处理图像中图像像素的原始灰阶值,所述图像像素包括待检测图像像素、多个第一图像像素及多个第二图像像素; Step S1, obtaining the original grayscale value of the image pixels in the image to be processed of the display device, the image pixels including the image pixels to be detected, a plurality of first image pixels and a plurality of second image pixels;
步骤S2、计算第一灰阶差值,所述第一灰阶差值为所述待检测图像像素的原始灰阶值与所述第一图像像素的原始灰阶值的差值的最大值;Step S2: Calculate a first grayscale difference value, where the first grayscale difference value is the maximum value of the difference between the original grayscale value of the image pixel to be detected and the original grayscale value of the first image pixel;
步骤S3、计算第二灰阶差值,所述第二灰阶差值为所述待检测图像像素的所述原始灰阶值与所述第二图像像素的原始灰阶值的差值的最大值;以及Step S3: Calculate a second grayscale difference value, where the second grayscale difference value is the maximum difference between the original grayscale value of the image pixel to be detected and the original grayscale value of the second image pixel Value; and
步骤S4、根据目标灰阶差值算法、所述第一灰阶差值及所述第二灰阶差值计算出目标灰阶差值。Step S4: Calculate the target gray scale difference according to the target gray scale difference algorithm, the first gray scale difference and the second gray scale difference.
于本揭示其中的一实施例中,所述第一图像像素位于所述待检测图像像素的外围的第一层且包围所述待检测图像像素,所述第二图像像素位于所述待检测图像像素的所述外围的第二层且部分包围所述第一图像像素。In one embodiment of the present disclosure, the first image pixel is located in a first layer on the periphery of the image pixel to be detected and surrounds the image pixel to be detected, and the second image pixel is located in the image to be detected The second layer of the periphery of the pixel partially surrounds the first image pixel.
于本揭示其中的一实施例中,当所述待检测图像像素位于所述图像像素的当前行时,所述第一图像像素位于所述图像像素的所述当前行的上一行及下一行,所述第二图像像素位于所述图像像素的所述当前行的所述上一行、上二行及下一行,且所述第二图像像素不位于所述图像像素的所述当前行的下二行。In one embodiment of the present disclosure, when the image pixels to be detected are located in the current row of the image pixels, the first image pixels are located in a row above and below the current row of the image pixels, The second image pixel is located in the previous row, the upper two rows, and the next row of the current row of the image pixels, and the second image pixel is not located in the lower two rows of the current row of the image pixels Row.
于本揭示其中的一实施例中,所述方法还包括:步骤S5、将所述目标灰阶差值与预设灰阶阈值进行比较,若所述目标灰阶差值大于所述预设灰阶阈值,则判定所述待检测图像像素为高频图像像素,否则判定所述待检测图像像素为低频图像像素。In one embodiment of the present disclosure, the method further includes: Step S5: Compare the target gray scale difference with a preset gray scale threshold, if the target gray scale difference is greater than the predetermined gray The order threshold value determines that the image pixels to be detected are high-frequency image pixels, otherwise, the image pixels to be detected are low-frequency image pixels.
于本揭示其中的一实施例中,在所述待检测图像像素为高频图像像素时,所述方法还包括:步骤S6、根据预设调整算法及所述目标灰阶差值调整所述高频图像像素的实际灰阶值,减小所述高频图像像素的所述实际灰阶值与所述高频图像像素的原始灰阶值之间的绝对差值;所述实际灰阶值为所述高频图像像素的所述原始灰阶值经过色偏补偿后得到的灰阶值。In one embodiment of the present disclosure, when the image pixel to be detected is a high-frequency image pixel, the method further includes: Step S6, adjusting the high level according to a preset adjustment algorithm and the target grayscale difference The actual grayscale value of the high-frequency image pixel, reducing the absolute difference between the actual grayscale value of the high-frequency image pixel and the original grayscale value of the high-frequency image pixel; the actual grayscale value is The grayscale value obtained after the original grayscale value of the high-frequency image pixel is subjected to color shift compensation.
于本揭示其中的一实施例中,所述步骤S4中所述目标灰阶差值算法为:F=axFAl+bxFA2,其中,F为所述目标灰阶差值,FA1为所述第一灰阶差值,FA2为所述第二灰阶差值,a为预设第一权重值,b为预设第二权重值。In one embodiment of the present disclosure, the target grayscale difference algorithm in step S4 is: F = axFAl + bxFA2, where F is the target grayscale difference and FA1 is the first gray Step difference value, FA2 is the second gray scale difference value, a is a preset first weight value, and b is a preset second weight value.
于本揭示其中的一实施例中,所述步骤S1中每一个图像像素均包括第一基色分量、第二基色分量及第三基色分量,每一个图像像素的原始灰阶值均包括第一基色分量的原始灰阶值、第二基色分量的原始灰阶值及第三基色分量的原始灰阶值。In one embodiment of the present disclosure, each image pixel in the step S1 includes a first primary color component, a second primary color component, and a third primary color component, and the original grayscale value of each image pixel includes the first primary color The original grayscale value of the component, the original grayscale value of the second primary color component, and the original grayscale value of the third primary color component.
于本揭示其中的一实施例中,所述待检测图像像素的所述原始灰阶值与所述第一图像像素的所述原始灰阶值的差值为:所述待检测图像像素中所述第一基色分量的所述原始灰阶值与所述第一图像像素中所述第一基色分量的所述原始灰阶值之间的差值、所述待检测图像像素中所述第二基色分量的所述原始灰阶值与所述第一图像像素中所述第二基色分量的所述原始灰阶值之间的差值以及所述待检测图像像素中所述第三基色分量的所述原始灰阶值与所述第一图像像素中第三基色分量的原始灰阶值之间的差值中最大的一个。In an embodiment of the disclosure, the difference between the original grayscale value of the image pixel to be detected and the original grayscale value of the first image pixel is: The difference between the original grayscale value of the first primary color component and the original grayscale value of the first primary color component in the first image pixel, the second of the image pixels to be detected The difference between the original grayscale value of the primary color component and the original grayscale value of the second primary color component in the first image pixel and the third primary color component of the image pixel to be detected The largest one of the differences between the original grayscale value and the original grayscale value of the third primary color component in the first image pixel.
于本揭示其中的一实施例中,所述待检测图像像素的所述原始灰阶值与所述第二图像像素的所述原始灰阶值的差值为:所述待检测图像像素中所述第一基色分量的所述原始灰阶值与所述第二图像像素中所述第一基色分量的所述原始灰阶值之间的差值、所述待检测图像像素中所述第二基色分量的所述原始灰阶值与所述第二图像像素中所述第二基色分量的所述原始灰阶值之间的差值以及所述待检测图像像素中所述第三基色分量的所述原始灰阶值与所述第二图像像素中第三基色分量的原始灰阶值之间的差值中最大的一个。In one embodiment of the present disclosure, the difference between the original grayscale value of the image pixel to be detected and the original grayscale value of the second image pixel is: The difference between the original grayscale value of the first primary color component and the original grayscale value of the first primary color component in the second image pixel, the second of the image pixels to be detected The difference between the original grayscale value of the primary color component and the original grayscale value of the second primary color component in the second image pixel and the third primary color component of the image pixel to be detected The largest one of the differences between the original grayscale value and the original grayscale value of the third primary color component in the second image pixel.
于本揭示其中的一实施例中,所述步骤S6中所述预设调整算法为:L’ = (L-Lo) xC+L0,其中L’为经过所述预设调整算法调整后实际灰阶值,L0为所述高频图像像素的所述原始灰阶值,L为在所述预设调整算法调整前的所述高频图像像素的所述实际灰阶值,C为预设调整系数,所述预设调整系数的取值范围为0〜1,所述预设调整系数随着所述目标灰阶差值的增大而减小。In one embodiment of the present disclosure, the preset adjustment algorithm in the step S6 is: L '= (L-Lo) xC + L0, where L' is the actual gray after adjustment by the preset adjustment algorithm Level value, L0 is the original grayscale value of the high-frequency image pixels, L is the actual grayscale value of the high-frequency image pixels before adjustment by the preset adjustment algorithm, and C is the preset adjustment Coefficient, the value range of the preset adjustment coefficient is 0 ~ 1, and the preset adjustment coefficient decreases as the target gray scale difference increases.
本揭示还提供一侦测显示装置的图像中高频成分的装置,包括: The present disclosure also provides a device for detecting high-frequency components in an image of a display device, including:
获取单元;Acquisition unit;
第一计算单元,与所述获取单元连接;The first calculation unit, connected to the acquisition unit;
第二计算单元,与所述第一计算单元连接;以及A second computing unit connected to the first computing unit; and
判断单元,与所述第二计算单元连接;Judgment unit, connected to the second calculation unit;
其中所述获取单元用于获取显示装置的待处理图像中图像像素的原始灰阶值,所述图像像素包括待检测图像像素、多个第一图像像素及多个第二图像像素; Wherein the acquisition unit is used to acquire the original grayscale value of the image pixels in the image to be processed of the display device, the image pixels include the image pixels to be detected, a plurality of first image pixels and a plurality of second image pixels;
其中所述第一计算单元用于计算第一灰阶差值及第二灰阶差值,所述第一灰阶差值为所述待检测图像像素的原始灰阶值与所述第一图像像素的原始灰阶值的差值的最大值,所述第二灰阶差值为所述待检测图像像素的所述原始灰阶值与所述第二图像像素的原始灰阶值的差值的最大值;以及The first calculation unit is used to calculate a first grayscale difference value and a second grayscale difference value, the first grayscale difference value is the original grayscale value of the pixel to be detected and the first image The maximum value of the difference between the original grayscale values of the pixels, and the second grayscale difference value is the difference between the original grayscale value of the pixel to be detected and the original grayscale value of the second image pixel Maximum value; and
其中所述第二计算单元用于根据目标灰阶差值算法、所述第一灰阶差值及所述第二灰阶差值计算出目标灰阶差值。The second calculation unit is used to calculate the target gray scale difference value according to the target gray scale difference algorithm, the first gray scale difference value and the second gray scale difference value.
于本揭示其中的一实施例中,所述第一图像像素位于所述待检测图像像素的外围的第一层且包围所述待检测图像像素,所述第二图像像素位于所述待检测图像像素的所述外围的第二层且部分包围所述第一图像像素。In one embodiment of the present disclosure, the first image pixel is located in a first layer on the periphery of the image pixel to be detected and surrounds the image pixel to be detected, and the second image pixel is located in the image to be detected The second layer of the periphery of the pixel partially surrounds the first image pixel.
于本揭示其中的一实施例中,当所述待检测图像像素位于所述图像像素的当前行时,所述第一图像像素位于所述图像像素的所述当前行的上一行及下一行,所述第二图像像素位于所述图像像素的所述当前行的所述上一行、上二行及下一行,且所述第二图像像素不位于所述图像像素的所述当前行的下二行。In one embodiment of the present disclosure, when the image pixels to be detected are located in the current row of the image pixels, the first image pixels are located in a row above and below the current row of the image pixels, The second image pixel is located in the previous row, the upper two rows, and the next row of the current row of the image pixels, and the second image pixel is not located in the lower two rows of the current row of the image pixels Row.
于本揭示其中的一实施例中,其中所述判断单元用于将所述目标灰阶差值与预设灰阶阈值进行比较,若所述目标灰阶差值大于所述预设灰阶阈值,则所述判断单元判定所述待检测图像像素为高频图像像素,否则所述判断单元判定所述待检测图像像素为低频图像像素。In one embodiment of the present disclosure, the judgment unit is used to compare the target gray scale difference with a preset gray scale threshold, if the target gray scale difference is greater than the preset gray scale threshold , The determination unit determines that the image pixel to be detected is a high-frequency image pixel, otherwise, the determination unit determines that the image pixel to be detected is a low-frequency image pixel.
于本揭示其中的一实施例中,所述的侦测显示装置的图像中高频成分的装置还包括与所述判断单元连接的调整单元,其中所述调整单元用于根据预设的调整算法及所述目标灰阶差值调整所述高频图像像素的实际灰阶值,减小所述高频图像像素的所述实际灰阶值与所述高频图像像素的原始灰阶值之间的绝对差值;所述实际灰阶值为所述高频图像像素的所述原始灰阶值经过色偏补偿后得到的灰阶值。In one embodiment of the present disclosure, the device for detecting high-frequency components in the image of the display device further includes an adjustment unit connected to the judgment unit, wherein the adjustment unit is used to adjust the algorithm according to a preset The target grayscale difference adjusts the actual grayscale value of the high-frequency image pixel, and reduces the difference between the actual grayscale value of the high-frequency image pixel and the original grayscale value of the high-frequency image pixel Absolute difference; the actual grayscale value is the grayscale value obtained after the original grayscale value of the high-frequency image pixel is subjected to color shift compensation.
于本揭示其中的一实施例中,所述目标灰阶差值算法为:F=axFAl+bxFA2,其中,F为所述目标灰阶差值,FA1为所述第一灰阶差值,FA2为所述第二灰阶差值,a为预设第一权重值,b为预设第二权重值。In one embodiment of the present disclosure, the target grayscale difference algorithm is: F = axFAl + bxFA2, where F is the target grayscale difference, FA1 is the first grayscale difference, FA2 Is the second gray scale difference value, a is a preset first weight value, and b is a preset second weight value.
于本揭示其中的一实施例中,每一个图像像素均包括第一基色分量、第二基色分量及第三基色分量,每一个图像像素的原始灰阶值均包括第一基色分量的原始灰阶值、第二基色分量的原始灰阶值及第三基色分量的原始灰阶值。In one embodiment of the present disclosure, each image pixel includes a first primary color component, a second primary color component, and a third primary color component, and the original grayscale value of each image pixel includes the original grayscale of the first primary color component Value, the original grayscale value of the second primary color component and the original grayscale value of the third primary color component.
于本揭示其中的一实施例中,所述待检测图像像素的所述原始灰阶值与所述第一图像像素的所述原始灰阶值的差值为:所述待检测图像像素中所述第一基色分量的所述原始灰阶值与所述第一图像像素中所述第一基色分量的所述原始灰阶值之间的差值、所述待检测图像像素中所述第二基色分量的所述原始灰阶值与所述第一图像像素中所述第二基色分量的所述原始灰阶值之间的差值以及所述待检测图像像素中所述第三基色分量的所述原始灰阶值与所述第一图像像素中第三基色分量的原始灰阶值之间的差值中最大的一个。In an embodiment of the disclosure, the difference between the original grayscale value of the image pixel to be detected and the original grayscale value of the first image pixel is: The difference between the original grayscale value of the first primary color component and the original grayscale value of the first primary color component in the first image pixel, the second of the image pixels to be detected The difference between the original grayscale value of the primary color component and the original grayscale value of the second primary color component in the first image pixel and the third primary color component of the image pixel to be detected The largest one of the differences between the original grayscale value and the original grayscale value of the third primary color component in the first image pixel.
于本揭示其中的一实施例中,所述待检测图像像素的所述原始灰阶值与所述第二图像像素的所述原始灰阶值的差值为:所述待检测图像像素中所述第一基色分量的所述原始灰阶值与所述第二图像像素中所述第一基色分量的所述原始灰阶值之间的差值、所述待检测图像像素中所述第二基色分量的所述原始灰阶值与所述第二图像像素中所述第二基色分量的所述原始灰阶值之间的差值以及所述待检测图像像素中所述第三基色分量的所述原始灰阶值与所述第二图像像素中第三基色分量的原始灰阶值之间的差值中最大的一个。In one embodiment of the present disclosure, the difference between the original grayscale value of the image pixel to be detected and the original grayscale value of the second image pixel is: The difference between the original grayscale value of the first primary color component and the original grayscale value of the first primary color component in the second image pixel, the second of the image pixels to be detected The difference between the original grayscale value of the primary color component and the original grayscale value of the second primary color component in the second image pixel and the third primary color component of the image pixel to be detected The largest one of the differences between the original grayscale value and the original grayscale value of the third primary color component in the second image pixel.
于本揭示其中的一实施例中,所述预设调整算法为:L’ = (L-Lo) xC+L0,其中L’为经过所述预设调整算法调整后实际灰阶值,L0为所述高频图像像素的所述原始灰阶值,L为在所述预设调整算法调整前的所述高频图像像素的所述实际灰阶值,C为预设调整系数,所述预设调整系数的取值范围为0〜1,所述预设调整系数随着所述目标灰阶差值的增大而减小。In one embodiment of the present disclosure, the preset adjustment algorithm is: L ’= (L-Lo) xC + L0, where L 'is the actual grayscale value adjusted by the preset adjustment algorithm, L0 is the original grayscale value of the high-frequency image pixel, and L is the preset grayscale value The actual grayscale value of the high-frequency image pixels before adjustment algorithm adjustment, C is a preset adjustment coefficient, the value range of the preset adjustment coefficient is 0 ~ 1, and the preset adjustment coefficient The target gray scale difference increases and decreases.
有益效果Beneficial effect
相较于现有技术,为解决上述技术问题,本揭示的实施例提供了侦测显示装置的图像中高频成分的方法及装置。本实施例使用待检测图像像素的原始灰阶值与第一图像像素的原始灰阶值的差值的最大值作为第一灰阶差值,使用待检测图像像素的原始灰阶值与第二图像像素的原始灰阶值的差值的最大值作为第二灰阶差值,再根据目标灰阶差值算法、第一灰阶差值及第二灰阶差值计算得出目标灰阶差值,再将目标灰阶差值与预设灰阶阈值进行比较判断所述待检测图像像素是否为高频图像像素,接着对高频图像像素的实际灰阶值进行调整,减小高频图像像素的实际灰阶值与原始灰阶值之间的差值,能够优化图像中高频成分的侦测过程,提升显示品质。Compared with the prior art, in order to solve the above technical problems, the embodiments of the present disclosure provide a method and device for detecting high-frequency components in an image of a display device. This embodiment uses the maximum value of the difference between the original grayscale value of the image pixel to be detected and the original grayscale value of the first image pixel as the first grayscale difference value, and uses the original grayscale value of the image pixel to be detected and the second The maximum value of the difference between the original grayscale values of the image pixels is used as the second grayscale difference, and then the target grayscale difference is calculated according to the target grayscale difference algorithm, the first grayscale difference and the second grayscale difference Value, and then compare the target grayscale difference with a preset grayscale threshold to determine whether the image pixel to be detected is a high-frequency image pixel, and then adjust the actual grayscale value of the high-frequency image pixel to reduce the high-frequency image The difference between the actual grayscale value of the pixel and the original grayscale value can optimize the detection process of high-frequency components in the image and improve the display quality.
附图说明BRIEF DESCRIPTION
图1显示根据本揭示的一实施例的显示装置的待处理图像中的图像像素的示意图;1 shows a schematic diagram of image pixels in a to-be-processed image of a display device according to an embodiment of the present disclosure;
图2显示根据本揭示的一实施例的侦测显示装置的图像中高频成分的方法的流程图;以及2 shows a flowchart of a method of detecting high-frequency components in an image of a display device according to an embodiment of the present disclosure; and
图3显示根据本揭示的一实施例的侦测显示装置的图像中高频成分的装置的示意图。FIG. 3 shows a schematic diagram of an apparatus for detecting high-frequency components in an image of a display device according to an embodiment of the present disclosure.
本发明的最佳实施方式Best Mode of the Invention
以下各实施例的说明是参考附加的图式,用以例示本揭示可用以实施的特定实施例。The descriptions of the following embodiments refer to the attached drawings to illustrate specific embodiments that can be implemented in the present disclosure.
为了让本揭示的上述及其他目的、特征、优点能更明显易懂,下文将特举本揭示优选实施例,并配合所附图式,作详细说明如下。再者,本揭示所提到的方向用语,例如上、下、顶、底、前、后、左、右、内、外、侧层、周围、中央、水平、横向、垂直、纵向、轴向、径向、最上层或最下层等,仅是参考附加图式的方向。因此,使用的方向用语是用以说明及理解本揭示,而非用以限制本揭示。In order to make the above-mentioned and other objects, features, and advantages of the present disclosure more comprehensible, the preferred embodiments of the present disclosure will be cited below in conjunction with the accompanying drawings, which will be described in detail below. Furthermore, the directional terms mentioned in this disclosure, such as top, bottom, top, bottom, front, back, left, right, inner, outer, side layer, surrounding, center, horizontal, horizontal, vertical, vertical, longitudinal, axial , Radial, uppermost or lowermost layer, etc., only refer to the directions of the attached drawings. Therefore, the directional terminology is used to illustrate and understand this disclosure, not to limit it.
在图中,结构相似的单元是以相同标号表示。In the figure, units with similar structures are indicated by the same reference numerals.
请参阅图2,并结合图1,本揭示的一实施例的侦测显示装置的图像中高频成分的方法,包括如下步骤。Please refer to FIG. 2, in conjunction with FIG. 1, a method for detecting high-frequency components in an image of a display device according to an embodiment of the present disclosure includes the following steps.
步骤S1、获取显示装置的待处理图像中图像像素的原始灰阶值,所述图像像素包括待检测图像像素100、多个第一图像像素200及多个第二图像像素300。Step S1: Obtain the original grayscale value of the image pixels in the image to be processed of the display device. The image pixels include the image pixel 100 to be detected, a plurality of first image pixels 200, and a plurality of second image pixels 300.
第一图像像素200位于待检测图像像素100的外围的第一层且包围待检测图像像素100,第二图像像素300位于待检测图像像素100的外围的第二层且部分包围第一图像像素100。The first image pixel 200 is located in the first layer around the image pixel 100 to be inspected and surrounds the image pixel 100 to be inspected, and the second image pixel 300 is located at the second layer around the image pixel 100 to be inspected and partially surrounds the first image pixel 100 .
当待检测图像像素100位于图像像素的当前行时,第一图像像素200位于图像像素的当前行的上一行及下一行,第二图像像素300位于图像像素的当前行的上一行、上二行及下一行,且第二图像像素300不位于图像像素的当前行的下二行。When the to-be-detected image pixel 100 is located in the current row of image pixels, the first image pixel 200 is located in the upper and lower rows of the current row of image pixels, and the second image pixel 300 is located in the upper row and upper two rows of the current row of image pixels And the next row, and the second image pixel 300 is not located in the next two rows of the current row of image pixels.
具体地,每一个待处理图像由多个图像像素组成,每一个图像像素均包括第一基色分量11、第二基色分量12及第三基色分量13,图像像素的原始灰阶值包括第一基色分量11、第二基色分量12及第三基色分量13的原始灰阶值,通过对每个图像像素的每个基色分量提供一个显示所需的灰阶值,以控制该基色分量的亮度,进而使得该基色分量显示相应的颜色,由此实现图像的显示。具体地,第一基色分量11、第二基色分量12及第三基色分量13分别为红色分量、绿色分量及蓝色分量。Specifically, each image to be processed is composed of a plurality of image pixels, and each image pixel includes a first primary color component 11, a second primary color component 12, and a third primary color component 13, and the original grayscale value of the image pixel includes the first primary color The original grayscale values of the component 11, the second primary color component 12, and the third primary color component 13, by providing each primary color component of each image pixel with a grayscale value required for display, to control the brightness of the primary color component, and The primary color component is displayed in a corresponding color, thereby realizing the display of an image. Specifically, the first primary color component 11, the second primary color component 12, and the third primary color component 13 are a red component, a green component, and a blue component, respectively.
可以理解的是,在本揭示的其他实施例中,每一个图像像素还可以包括第四基色分量。第四基色分量例如为白色分量。It can be understood that, in other embodiments of the present disclosure, each image pixel may further include a fourth primary color component. The fourth primary color component is, for example, a white component.
进一步地,如图1所示,待检测图像像素100、第一图像像素200及第二图像像素300排列成4行5列。待检测图像像素100位于中央,即第3行第3列,多个第一图像像素200包围待检测图像像素100,分别位于第2行第2列、第2行第3列、第2行第4列、第3行第2列、第3行第4列、第4行第2列、第4行第3列及第4行第4列共8个。多个第二图像像素300部分包围待检测图像像素100及第一图像像素200,分别位于第1行第1列、第1行第2列、第1行第3列、第1行第4列、第1行第5列、第2行第1列、第2行第5列、第3行第1列、第3行第5列、第4行第1列及第4行第5列共11个。由于本实施例的第二图像像素300不位于第5行第1列、第5行第2列、第5行第3列、第5行第4列、第5行第5列,侦测范围可由5行图像像素减少为4行图像像素,其能够优化图像中高频成分的侦测过程,提升显示品质。Further, as shown in FIG. 1, the image pixels 100 to be detected, the first image pixels 200 and the second image pixels 300 are arranged in 4 rows and 5 columns. The image pixel 100 to be detected is located in the center, that is, the third row and the third column, and a plurality of first image pixels 200 surround the image pixel 100 to be detected, respectively located in the second row, second column, second row, third column, and second row second There are 8 columns in 4 columns, 3 rows and 2 columns, 3 rows and 4 columns, 4 rows and 2 columns, 4 rows and 3 columns, and 4 rows and 4 columns. A plurality of second image pixels 300 partially surround the image pixel 100 to be detected and the first image pixel 200, respectively located in the first row and first column, the first row and second column, the first row and third column, the first row and fourth column , Row 1, column 5, row 2, column 1, row 2, column 5, row 3, column 1, row 3, column 5, row 4, column 1, and row 4, column 5 11. Since the second image pixel 300 of this embodiment is not located in the fifth row and first column, the fifth row and second column, the fifth row and third column, the fifth row and fourth column, the fifth row and fifth column, the detection range It can be reduced from 5 lines of image pixels to 4 lines of image pixels, which can optimize the detection process of high frequency components in the image and improve the display quality.
步骤S2、计算第一灰阶差值,第一灰阶差值为待检测图像像素100的原始灰阶值与第一图像像素200的原始灰阶值的差值的最大值。Step S2: Calculate a first grayscale difference value, where the first grayscale difference value is the maximum value of the difference between the original grayscale value of the image pixel 100 to be detected and the original grayscale value of the first image pixel 200.
具体地,待检测图像像素100的原始灰阶值与第一图像像素200的原始灰阶值的差值为:待检测图像像素100中第一基色分量的原始灰阶值与第一图像像素200中第一基色分量的原始灰阶值之间的差值、待检测图像像素100中第二基色分量的原始灰阶值与第一图像像素200中第二基色分量的原始灰阶值之间的差值以及待检测图像像素100中第三基色分量的原始灰阶值与第一图像像素200中第三基色分量的原始灰阶值之间的差值中最大的一个。应当理解的是,上述各个差值均为绝对差值,不存在负值。Specifically, the difference between the original grayscale value of the image pixel 100 to be detected and the original grayscale value of the first image pixel 200 is: the original grayscale value of the first primary color component in the image pixel 100 to be detected and the first image pixel 200 The difference between the original grayscale value of the first primary color component in the medium, the original grayscale value of the second primary color component in the image pixel 100 to be detected, and the original grayscale value of the second primary color component in the first image pixel 200 The difference is the largest of the differences between the original grayscale value of the third primary color component in the image pixel 100 to be detected and the original grayscale value of the third primary color component in the first image pixel 200. It should be understood that the above differences are absolute differences, and there is no negative value.
举例来说,以待检测图像像素100、第一图像像素200及第二图像像素300的排列成4行5列为例,步骤S2中的计算过程如下:For example, taking the arrangement of the image pixels 100 to be detected, the first image pixels 200 and the second image pixels 300 arranged in 4 rows and 5 columns as an example, the calculation process in step S2 is as follows:
Fl=Max(|R1-R0| , |Bl-B0| , |Gl-G0|);Fl = Max (| R1-R0 |, | Bl-B0 |, | Gl-G0 |);
F2=Max (|R2-R0|,|B2-B0|,|G2-G0|);F2 = Max (| R2-R0 |, | B2-B0 |, | G2-G0 |);
F3=Max (|R3-R0|,|B3-B0|,|G3-G0|);F3 = Max (| R3-R0 |, | B3-B0 |, | G3-G0 |);
F4=Max(|R4-R0|,|B4-B0|,|G4-G0|);F4 = Max (| R4-R0 |, | B4-B0 |, | G4-G0 |);
F5=Max (|R5-R0|,|B5-B0|,|G5-G0|);F5 = Max (| R5-R0 |, | B5-B0 |, | G5-G0 |);
F6=Max (|R6-R0|,|B6-B0|,|G6-G0|);F6 = Max (| R6-R0 |, | B6-B0 |, | G6-G0 |);
F7=Max (|R7-R0|,|B7-B0| , |G7-G0|);F7 = Max (| R7-R0 |, | B7-B0 |, | G7-G0 |);
F8=Max (|R8-R0|,|B8-B0| , |G8-G0|);F8 = Max (| R8-R0 |, | B8-B0 |, | G8-G0 |);
FA1 =Max (FI,F2,F3,F4,F5,F6,F7,F8)FA1 = Max (FI, F2, F3, F4, F5, F6, F7, F8)
其中,R0、G0、B0分别代表待检测图像像素100中第一基色分量11、第二基色分量12及第三基色分量13的原始灰阶值,R1至R8分别代表8个第一图像像素200的第一基色分量11的原始灰阶值,G1至G8分别代表8个第一图像像素200的第二基色分量12的原始灰阶值,B1至B8分别代表8个第一图像像素200的第三基色分量13的原始灰阶值,F1至F8分别代表8个第一图像像素200与待检测的图像像素100的原始灰阶值的差值,FA1为第一灰阶差值。Among them, R0, G0, and B0 represent the original grayscale values of the first primary color component 11, the second primary color component 12, and the third primary color component 13 in the image pixel 100 to be detected, and R1 to R8 respectively represent the eight first image pixels 200. The original grayscale values of the first primary color components 11 of G1 to G8 represent the original grayscale values of the second primary color components 12 of the eight first image pixels 200, and B1 to B8 represent the first grayscale values of the eight first image pixels 200, respectively The original grayscale values of the three primary color components 13, F1 to F8 respectively represent the difference between the original grayscale values of the eight first image pixels 200 and the image pixel 100 to be detected, and FA1 is the first grayscale difference.
步骤S3、计算第二灰阶差值,第二灰阶差值为待检测图像像素100的原始灰阶值与第二图像像素300的原始灰阶值的差值的最大值。Step S3: Calculate a second grayscale difference value, where the second grayscale difference value is the maximum value of the difference between the original grayscale value of the image pixel 100 to be detected and the original grayscale value of the second image pixel 300.
具体地,待检测图像像素100的原始灰阶值与第二图像像素300的原始灰阶值的差值为:待检测图像像素100中第一基色分量的原始灰阶值与第二图像像素300中第一基色分量的原始灰阶值之间的差值、待检测图像像素100中第二基色分量的原始灰阶值与第二图像像素300中第二基色分量的原始灰阶值之间的差值以及待检测图像像素100中第三基色分量的原始灰阶值与第二图像像素300中第三基色分量的原始灰阶值之间的差值中最大的一个。应当理解的是,上述各个差值均为绝对差值,不存在负值。Specifically, the difference between the original grayscale value of the image pixel 100 to be detected and the original grayscale value of the second image pixel 300 is: the original grayscale value of the first primary color component in the image pixel 100 to be detected and the second image pixel 300 The difference between the original grayscale value of the first primary color component in the middle, the original grayscale value of the second primary color component in the image pixel 100 to be detected, and the original grayscale value of the second primary color component in the second image pixel 300 The largest difference between the difference value and the original grayscale value of the third primary color component in the image pixel 100 to be detected and the original grayscale value of the third primary color component in the second image pixel 300. It should be understood that the above differences are absolute differences, and there is no negative value.
举例来说,以待检测的图像像素100、第一图像像素200及第二图像像素300的排列成4行5列为例,步骤S3中的计算过程如下:For example, taking the arrangement of the image pixels 100, the first image pixels 200, and the second image pixels 300 to be detected in 4 rows and 5 columns as an example, the calculation process in step S3 is as follows:
F9=Max(|R9-R0| , |B9-B0| , |G9-G0|);F9 = Max (| R9-R0 |, | B9-B0 |, | G9-G0 |);
F10=Max (|R10-R0|,|B10-B0|,|G10-G0|);F10 = Max (| R10-R0 |, | B10-B0 |, | G10-G0 |);
F11=Max (|R11-R0|,|B11-B0|,|G11-G0|);F11 = Max (| R11-R0 |, | B11-B0 |, | G11-G0 |);
F12=Max(|R12-R0|,|B12-B0|,|G12-G0|);F12 = Max (| R12-R0 |, | B12-B0 |, | G12-G0 |);
F13=Max (|R13-R0|,|B13-B0|,|G13-G0|);F13 = Max (| R13-R0 |, | B13-B0 |, | G13-G0 |);
F14=Max (|R14-R0|,|B14-B0|,|G14-G0|);F14 = Max (| R14-R0 |, | B14-B0 |, | G14-G0 |);
F15=Max (|R15-R0|,|B15-B0| , |G15-G0|);F15 = Max (| R15-R0 |, | B15-B0 |, | G15-G0 |);
F16=Max (|R16-R0|,|B16-B0| , |G16-G0|);F16 = Max (| R16-R0 |, | B16-B0 |, | G16-G0 |);
F17=Max (|R17-R0|,|B17-B0|,|G17-G0|);F17 = Max (| R17-R0 |, | B17-B0 |, | G17-G0 |);
F18=Max (|R18-R0|,|B18-B0| , |G18-G0|);F18 = Max (| R18-R0 |, | B18-B0 |, | G18-G0 |);
F19=Max (|R19-R0|,|B19-B0| , |G19-G0|);F19 = Max (| R19-R0 |, | B19-B0 |, | G19-G0 |);
FA2 =Max (F9,F10,F11,F12,F13,F14,F15,F16,F17,F18,F19)FA2 = Max (F9, F10, F11, F12, F13, F14, F15, F16, F17, F18, F19)
其中,R0、G0、B0分别代表待检测的图像像素100中第一基色分量11、第二基色分量12及第三基色分量13的原始灰阶值,R9至R19分别代表11个第二图像像素300的第一基色分量11的原始灰阶值,G9至G19分别代表11个第二的图像像素300的第二基色分量12的原始灰阶值,B9至B19分别代表11个第二图像像素300的第三基色分量13的原始灰阶值,F9至F19分别代表11个第二图像像素300与待检测的图像像素100的原始灰阶值的差值,FA2为第二灰阶差值。Among them, R0, G0, and B0 respectively represent the original grayscale values of the first primary color component 11, the second primary color component 12, and the third primary color component 13 in the image pixel 100 to be detected, and R9 to R19 respectively represent 11 second image pixels The original grayscale value of the first primary color component 11 of 300, G9 to G19 respectively represent the original grayscale value of the second primary color component 12 of the 11 second image pixels 300, and B9 to B19 respectively represent the 11 second image pixels 300 The original grayscale values of the third primary color component 13 of F9 to F19 respectively represent the difference between the original grayscale values of the 11 second image pixels 300 and the image pixel 100 to be detected, and FA2 is the second grayscale difference.
步骤S4、根据目标灰阶差值算法、第一灰阶差值及第二灰阶差值计算出目标灰阶差值。Step S4: Calculate the target gray scale difference according to the target gray scale difference algorithm, the first gray scale difference and the second gray scale difference.
具体地,步骤S4中目标灰阶差值算法为:F=axFAl+bxFA2,其中,F为目标灰阶差值,FA1为第一灰阶差值,FA2为第二灰阶差值,a为预设第一权重值,b为预设第二权重值。通过调节a和b的具体大小,能够改变目标灰阶差值。Specifically, the target grayscale difference algorithm in step S4 is: F = axFAl + bxFA2, where F is the target grayscale difference, FA1 is the first grayscale difference, FA2 is the second grayscale difference, and a is The first weight value is preset, and b is the second weight value. By adjusting the specific size of a and b, the target gray scale difference can be changed.
步骤S5、将目标灰阶差值与预设灰阶阈值进行比较,若目标灰阶差值大于预设灰阶阈值,则判定待检测图像像素100为高频图像像素,否则判定待检测图像像素100为低频图像像素。Step S5: Compare the target grayscale difference with the preset grayscale threshold, if the target grayscale difference is greater than the preset grayscale threshold, the image pixel 100 to be detected is determined to be a high-frequency image pixel, otherwise the image pixel to be detected is determined 100 is a low-frequency image pixel.
具体地,在没有采用色偏补偿算法进行色偏补偿的显示装置的显示面板中,每一个图像像素中的每一个基色分量控制显示面板中的一个子像素实现显示,也即一个图像像素包括三个子像素,每一个子像素对应一个基色分量。Specifically, in a display panel of a display device that does not use a color shift compensation algorithm for color shift compensation, each primary color component in each image pixel controls one sub-pixel in the display panel to implement display, that is, one image pixel includes three Each sub-pixel corresponds to a primary color component.
而在采用色偏补偿算法进行色偏补偿的显示装置的显示面板中,每一个图像像素中的每一个基色分量控制显示面板中的两个子像素实现显示,也即一个图像像素包括六个子像素,每两个子像素对应一个基色分量。In a display panel of a display device that uses a color shift compensation algorithm to perform color shift compensation, each primary color component in each image pixel controls two sub-pixels in the display panel to achieve display, that is, an image pixel includes six sub-pixels. Every two sub-pixels correspond to a primary color component.
此时,在待检测的图像像素100为高频图像像素时,为了减少色偏补偿所带来的颗粒感,本揭示的一实施例中,所述方法还包括步骤S6、根据预设调整算法及目标灰阶差值调整高频图像像素的实际灰阶值,减小高频图像像素的实际灰阶值与高频图像像素的原始灰阶值之间的绝对差值。实际灰阶值为高频图像像素的原始灰阶值经过色偏补偿后得到的灰阶值。At this time, when the image pixel 100 to be detected is a high-frequency image pixel, in order to reduce the graininess caused by the color shift compensation, in an embodiment of the present disclosure, the method further includes step S6, adjusting the algorithm according to a preset And the target grayscale difference adjust the actual grayscale value of the high-frequency image pixels, and reduce the absolute difference between the actual grayscale value of the high-frequency image pixels and the original grayscale value of the high-frequency image pixels. The actual grayscale value is the grayscale value obtained after the original grayscale value of the high-frequency image pixel is subjected to color shift compensation.
具体地,色偏补偿的过程为先获取高频图像像素中各个基色分量的原始灰阶值,并根据色偏补偿算法将原始灰阶转换为第一显示灰阶值和第二显示灰阶值,各个基色分量的第一显示灰阶值和第二显示灰阶值分别控制该基色分量对应的两个子像素的显示亮度,使得两个子像素实现亮暗显示,以达到色偏补偿的目的。第一显示灰阶值和第二显示灰阶值即为实际灰阶值,所述减小高频图像像素的实际灰阶值与原始灰阶值之间的差值,即为减少高频图像像素中各个基色分量对应的两个子像素之间的亮暗差异,从而减少因色偏补偿所带来的颗粒感。Specifically, the process of color shift compensation is to first obtain the original grayscale value of each primary color component in the high-frequency image pixel, and convert the original grayscale into the first display grayscale value and the second display grayscale value according to the color shift compensation algorithm The first display gray scale value and the second display gray scale value of each primary color component respectively control the display brightness of the two sub-pixels corresponding to the primary color component, so that the two sub-pixels achieve bright and dark display to achieve the purpose of color shift compensation. The first display grayscale value and the second display grayscale value are the actual grayscale values, and the reduction between the difference between the actual grayscale value of the high-frequency image pixels and the original grayscale value is the reduction of the high-frequency image The difference between the brightness and darkness of the two sub-pixels corresponding to each primary color component in the pixel, thereby reducing the graininess caused by the color shift compensation.
具体地,步骤S6中预设调整算法为:L’ = (L-Lo) xC+L0,其中L’为经过预设调整算法调整后实际灰阶值,L0为高频图像像素的原始灰阶值,L为在预设调整算法调整前的高频图像像素的实际灰阶值,C为预设调整系数,预设调整系数的取值范围为0〜1,预设调整系数随着目标灰阶差值的增大而减小。也就是说当目标灰阶差值越大时,高频图像像素经过色偏补偿处理后亮暗显示的幅度越小,从而能够减小因色偏补偿带来的显示不良。Specifically, the preset adjustment algorithm in step S6 is: L '= (L-Lo) xC + L0, where L' is the actual grayscale value after adjustment by the preset adjustment algorithm, and L0 is the original grayscale of high-frequency image pixels Value, L is the actual grayscale value of the high-frequency image pixels before the adjustment by the preset adjustment algorithm, C is the preset adjustment coefficient, the value range of the preset adjustment coefficient is 0 ~ 1, the preset adjustment coefficient follows the target gray The level difference increases and decreases. That is to say, when the target gray scale difference value is larger, the amplitude of the bright and dark display of the high-frequency image pixel after the color shift compensation process is smaller, so that the display failure caused by the color shift compensation can be reduced.
请参阅图3,本揭示的一实施例还提供一侦测显示装置1的图像中高频成分的装置。所述装置包括获取单元10、与获取单元10连接的第一计算单元20、与第一计算单元20连接的第二计算单元30以及与第二计算单元30连接的判断单元40。Please refer to FIG. 3, an embodiment of the present disclosure further provides a device for detecting high-frequency components in the image of the display device 1. The device includes an acquisition unit 10, a first calculation unit 20 connected to the acquisition unit 10, a second calculation unit 30 connected to the first calculation unit 20, and a judgment unit 40 connected to the second calculation unit 30.
获取单元10用于获取显示装置1的待处理图像中图像像素的原始灰阶值。图像像素包括待检测图像像素100、多个第一图像像素200及多个第二图像像素300。The obtaining unit 10 is used to obtain the original grayscale value of the image pixels in the image to be processed of the display device 1. The image pixels include an image pixel 100 to be detected, a plurality of first image pixels 200, and a plurality of second image pixels 300.
第一图像像素200位于待检测图像像素100的外围的第一层且包围待检测图像像素100,第二图像像素300位于待检测图像像素100的外围的第二层且部分包围第一图像像素100。The first image pixel 200 is located in the first layer around the image pixel 100 to be inspected and surrounds the image pixel 100 to be inspected, and the second image pixel 300 is located at the second layer around the image pixel 100 to be inspected and partially surrounds the first image pixel 100 .
当待检测图像像素100位于图像像素的当前行时,第一图像像素200位于图像像素的当前行的上一行及下一行,第二图像像素300位于图像像素的当前行的上一行、上二行及下一行,且第二图像像素300不位于图像像素的当前行的下二行。When the to-be-detected image pixel 100 is located in the current row of image pixels, the first image pixel 200 is located in the upper and lower rows of the current row of image pixels, and the second image pixel 300 is located in the upper row and upper two rows of the current row of image pixels And the next row, and the second image pixel 300 is not located in the next two rows of the current row of image pixels.
具体地,每一个待处理图像由多个图像像素组成,每一个图像像素均包括第一基色分量11、第二基色分量12及第三基色分量13,图像像素的原始灰阶值包括第一基色分量11、第二基色分量12及第三基色分量13的原始灰阶值,通过对每个图像像素的每个基色分量提供一个显示所需的灰阶值,以控制该基色分量的亮度,进而使得该基色分量显示相应的颜色,由此实现图像的显示。具体地,第一基色分量11、第二基色分量12及第三基色分量13分别为红色分量、绿色分量及蓝色分量。Specifically, each image to be processed is composed of a plurality of image pixels, and each image pixel includes a first primary color component 11, a second primary color component 12, and a third primary color component 13, and the original grayscale value of the image pixel includes the first primary color The original grayscale values of the component 11, the second primary color component 12, and the third primary color component 13, by providing each primary color component of each image pixel with a grayscale value required for display, to control the brightness of the primary color component, and The primary color component is displayed in a corresponding color, thereby realizing the display of an image. Specifically, the first primary color component 11, the second primary color component 12, and the third primary color component 13 are a red component, a green component, and a blue component, respectively.
可以理解的是,在本揭示的其他实施例中,每一个图像像素还可以包括第四基色分量。第四基色分量例如为白色分量。It can be understood that, in other embodiments of the present disclosure, each image pixel may further include a fourth primary color component. The fourth primary color component is, for example, a white component.
进一步地,如图1所示,待检测图像像素100、第一图像像素200及第二图像像素300排列成4行5列。待检测图像像素100位于中央,即第3行第3列,多个第一图像像素200包围待检测图像像素100,分别位于第2行第2列、第2行第3列、第2行第4列、第3行第2列、第3行第4列、第4行第2列、第4行第3列及第4行第4列共8个。多个第二图像像素300部分包围待检测图像像素100及第一图像像素200,分别位于第1行第1列、第1行第2列、第1行第3列、第1行第4列、第1行第5列、第2行第1列、第2行第5列、第3行第1列、第3行第5列、第4行第1列及第4行第5列共11个。由于本实施例的第二图像像素300不位于第5行第1列、第5行第2列、第5行第3列、第5行第4列、第5行第5列,侦测范围可由5行图像像素减少为4行图像像素,其能够优化图像中高频成分的侦测过程,提升显示品质。Further, as shown in FIG. 1, the image pixels 100 to be detected, the first image pixels 200 and the second image pixels 300 are arranged in 4 rows and 5 columns. The image pixel 100 to be detected is located in the center, that is, the third row and the third column, and a plurality of first image pixels 200 surround the image pixel 100 to be detected, respectively located in the second row, second column, second row, third column, and second row second There are 8 columns in 4 columns, 3 rows and 2 columns, 3 rows and 4 columns, 4 rows and 2 columns, 4 rows and 3 columns, and 4 rows and 4 columns. A plurality of second image pixels 300 partially surround the image pixel 100 to be detected and the first image pixel 200, respectively located in the first row and first column, the first row and second column, the first row and third column, the first row and fourth column , Row 1, column 5, row 2, column 1, row 2, column 5, row 3, column 1, row 3, column 5, row 4, column 1, and row 4, column 5 11. Since the second image pixel 300 of this embodiment is not located in the fifth row and first column, the fifth row and second column, the fifth row and third column, the fifth row and fourth column, the fifth row and fifth column, the detection range It can be reduced from 5 lines of image pixels to 4 lines of image pixels, which can optimize the detection process of high frequency components in the image and improve the display quality.
第一计算单元20用于计算第一灰阶差值及第二灰阶差值。第一灰阶差值为待检测图像像素100的原始灰阶值与第一图像像素200的原始灰阶值的差值的最大值,第二灰阶差值为待检测图像像素200的原始灰阶值与第二图像像素200的原始灰阶值的差值的最大值。The first calculation unit 20 is used to calculate a first grayscale difference value and a second grayscale difference value. The first grayscale difference value is the maximum value of the difference between the original grayscale value of the image pixel 100 to be detected and the original grayscale value of the first image pixel 200, and the second grayscale difference value is the original grayscale of the image pixel 200 to be detected The maximum value of the difference between the level value and the original gray level value of the second image pixel 200.
具体地,待检测图像像素100的原始灰阶值与第一图像像素200的原始灰阶值的差值为:待检测图像像素100中第一基色分量的原始灰阶值与第一图像像素200中第一基色分量的原始灰阶值之间的差值、待检测图像像素100中第二基色分量的原始灰阶值与第一图像像素200中第二基色分量的原始灰阶值之间的差值以及待检测图像像素100中第三基色分量的原始灰阶值与第一图像像素200中第三基色分量的原始灰阶值之间的差值中最大的一个。应当理解的是,上述各个差值均为绝对差值,不存在负值。Specifically, the difference between the original grayscale value of the image pixel 100 to be detected and the original grayscale value of the first image pixel 200 is: the original grayscale value of the first primary color component in the image pixel 100 to be detected and the first image pixel 200 The difference between the original grayscale value of the first primary color component in the medium, the original grayscale value of the second primary color component in the image pixel 100 to be detected, and the original grayscale value of the second primary color component in the first image pixel 200 The difference is the largest of the differences between the original grayscale value of the third primary color component in the image pixel 100 to be detected and the original grayscale value of the third primary color component in the first image pixel 200. It should be understood that the above differences are absolute differences, and there is no negative value.
举例来说,以待检测图像像素100、第一图像像素200及第二图像像素300的排列成4行5列为例,第一计算单元20的计算过程如下:For example, taking the arrangement of the image pixels 100 to be detected, the first image pixels 200 and the second image pixels 300 arranged in 4 rows and 5 columns as an example, the calculation process of the first calculation unit 20 is as follows:
Fl=Max(|R1-R0| , |Bl-B0| , |Gl-G0|);Fl = Max (| R1-R0 |, | Bl-B0 |, | Gl-G0 |);
F2=Max (|R2-R0|,|B2-B0|,|G2-G0|);F2 = Max (| R2-R0 |, | B2-B0 |, | G2-G0 |);
F3=Max (|R3-R0|,|B3-B0|,|G3-G0|);F3 = Max (| R3-R0 |, | B3-B0 |, | G3-G0 |);
F4=Max(|R4-R0|,|B4-B0|,|G4-G0|);F4 = Max (| R4-R0 |, | B4-B0 |, | G4-G0 |);
F5=Max (|R5-R0|,|B5-B0|,|G5-G0|);F5 = Max (| R5-R0 |, | B5-B0 |, | G5-G0 |);
F6=Max (|R6-R0|,|B6-B0|,|G6-G0|);F6 = Max (| R6-R0 |, | B6-B0 |, | G6-G0 |);
F7=Max (|R7-R0|,|B7-B0| , |G7-G0|);F7 = Max (| R7-R0 |, | B7-B0 |, | G7-G0 |);
F8=Max (|R8-R0|,|B8-B0| , |G8-G0|);F8 = Max (| R8-R0 |, | B8-B0 |, | G8-G0 |);
FA1 =Max (FI,F2,F3,F4,F5,F6,F7,F8)FA1 = Max (FI, F2, F3, F4, F5, F6, F7, F8)
其中,R0、G0、B0分别代表待检测图像像素100中第一基色分量11、第二基色分量12及第三基色分量13的原始灰阶值,R1至R8分别代表8个第一图像像素200的第一基色分量11的原始灰阶值,G1至G8分别代表8个第一图像像素200的第二基色分量12的原始灰阶值,B1至B8分别代表8个第一图像像素200的第三基色分量13的原始灰阶值,F1至F8分别代表8个第一图像像素200与待检测的图像像素100的原始灰阶值的差值,FA1为第一灰阶差值。Among them, R0, G0, and B0 represent the original grayscale values of the first primary color component 11, the second primary color component 12, and the third primary color component 13 in the image pixel 100 to be detected, and R1 to R8 respectively represent the eight first image pixels 200 The original grayscale values of the first primary color components 11 of G1 to G8 represent the original grayscale values of the second primary color components 12 of the eight first image pixels 200, and B1 to B8 represent the first grayscale values of the eight first image pixels 200, respectively The original grayscale values of the three primary color components 13, F1 to F8 respectively represent the difference between the original grayscale values of the eight first image pixels 200 and the image pixel 100 to be detected, and FA1 is the first grayscale difference.
具体地,待检测图像像素100的原始灰阶值与第二图像像素300的原始灰阶值的差值为:待检测图像像素100中第一基色分量的原始灰阶值与第二图像像素300中第一基色分量的原始灰阶值之间的差值、待检测图像像素100中第二基色分量的原始灰阶值与第二图像像素300中第二基色分量的原始灰阶值之间的差值以及待检测图像像素100中第三基色分量的原始灰阶值与第二图像像素300中第三基色分量的原始灰阶值之间的差值中最大的一个。应当理解的是,上述各个差值均为绝对差值,不存在负值。Specifically, the difference between the original grayscale value of the image pixel 100 to be detected and the original grayscale value of the second image pixel 300 is: the original grayscale value of the first primary color component in the image pixel 100 to be detected and the second image pixel 300 The difference between the original grayscale value of the first primary color component in the middle, the original grayscale value of the second primary color component in the image pixel 100 to be detected, and the original grayscale value of the second primary color component in the second image pixel 300 The largest difference between the difference value and the original grayscale value of the third primary color component in the image pixel 100 to be detected and the original grayscale value of the third primary color component in the second image pixel 300. It should be understood that the above differences are absolute differences, and there is no negative value.
举例来说,以待检测的图像像素100、第一图像像素200及第二图像像素300的排列成4行5列为例,第一计算单元20的计算过程如下:For example, taking the arrangement of the image pixels 100, the first image pixels 200, and the second image pixels 300 to be detected in 4 rows and 5 columns as an example, the calculation process of the first calculation unit 20 is as follows:
F9=Max(|R9-R0| , |B9-B0| , |G9-G0|);F9 = Max (| R9-R0 |, | B9-B0 |, | G9-G0 |);
F10=Max (|R10-R0|,|B10-B0|,|G10-G0|);F10 = Max (| R10-R0 |, | B10-B0 |, | G10-G0 |);
F11=Max (|R11-R0|,|B11-B0|,|G11-G0|);F11 = Max (| R11-R0 |, | B11-B0 |, | G11-G0 |);
F12=Max(|R12-R0|,|B12-B0|,|G12-G0|);F12 = Max (| R12-R0 |, | B12-B0 |, | G12-G0 |);
F13=Max (|R13-R0|,|B13-B0|,|G13-G0|);F13 = Max (| R13-R0 |, | B13-B0 |, | G13-G0 |);
F14=Max (|R14-R0|,|B14-B0|,|G14-G0|);F14 = Max (| R14-R0 |, | B14-B0 |, | G14-G0 |);
F15=Max (|R15-R0|,|B15-B0| , |G15-G0|);F15 = Max (| R15-R0 |, | B15-B0 |, | G15-G0 |);
F16=Max (|R16-R0|,|B16-B0| , |G16-G0|);F16 = Max (| R16-R0 |, | B16-B0 |, | G16-G0 |);
F17=Max (|R17-R0|,|B17-B0|,|G17-G0|);F17 = Max (| R17-R0 |, | B17-B0 |, | G17-G0 |);
F18=Max (|R18-R0|,|B18-B0| , |G18-G0|);F18 = Max (| R18-R0 |, | B18-B0 |, | G18-G0 |);
F19=Max (|R19-R0|,|B19-B0| , |G19-G0|);F19 = Max (| R19-R0 |, | B19-B0 |, | G19-G0 |);
FA2 =Max (F9,F10,F11,F12,F13,F14,F15,F16,F17,F18,F19)FA2 = Max (F9, F10, F11, F12, F13, F14, F15, F16, F17, F18, F19)
其中,R0、G0、B0分别代表待检测的图像像素100中第一基色分量11、第二基色分量12及第三基色分量13的原始灰阶值,R9至R19分别代表11个第二图像像素300的第一基色分量11的原始灰阶值,G9至G19分别代表11个第二的图像像素300的第二基色分量12的原始灰阶值,B9至B19分别代表11个第二图像像素300的第三基色分量13的原始灰阶值,F9至F19分别代表11个第二图像像素300与待检测的图像像素100的原始灰阶值的差值,FA2为第二灰阶差值。Among them, R0, G0, and B0 respectively represent the original grayscale values of the first primary color component 11, the second primary color component 12, and the third primary color component 13 in the image pixel 100 to be detected, and R9 to R19 respectively represent 11 second image pixels The original grayscale value of the first primary color component 11 of 300, G9 to G19 respectively represent the original grayscale value of the second primary color component 12 of the 11 second image pixels 300, and B9 to B19 respectively represent the 11 second image pixels 300 The original grayscale values of the third primary color component 13 of F9 to F19 respectively represent the difference between the original grayscale values of the 11 second image pixels 300 and the image pixel 100 to be detected, and FA2 is the second grayscale difference.
第二计算单元30根据目标灰阶差值算法、第一灰阶差值及第二灰阶差值计算出目标灰阶差值。The second calculation unit 30 calculates the target gray scale difference value according to the target gray scale difference algorithm, the first gray scale difference value and the second gray scale difference value.
具体地,目标灰阶差值算法为:F=axFAl+bxFA2,其中,F为目标灰阶差值,FA1为第一灰阶差值,FA2为第二灰阶差值,a为预设第一权重值,b为预设第二权重值。通过调节a和b的具体大小,能够改变目标灰阶差值。Specifically, the target grayscale difference algorithm is: F = axFAl + bxFA2, where F is the target grayscale difference, FA1 is the first grayscale difference, FA2 is the second grayscale difference, and a is the preset A weight value, b is a preset second weight value. By adjusting the specific size of a and b, the target gray scale difference can be changed.
判断单元40用于将目标灰阶差值与预设灰阶阈值进行比较,若目标灰阶差值大于预设灰阶阈值,则判断单元40判定待检测图像像素100为高频图像像素,否则判断单元40判定待检测图像像素100为低频图像像素。The judging unit 40 is used to compare the target grayscale difference value with the preset grayscale threshold value. If the target grayscale difference value is greater than the preset grayscale threshold value, the judging unit 40 determines that the image pixel 100 to be detected is a high frequency image pixel, otherwise The determination unit 40 determines that the image pixel 100 to be detected is a low-frequency image pixel.
具体地,于一实施例中,所述的侦测显示装置1的图像中高频成分的装置还包括与判断单元40连接的调整单元50。调整单元50用于根据预设的调整算法及目标灰阶差值调整高频图像像素的实际灰阶值,减小高频图像像素的实际灰阶值与高频图像像素的原始灰阶值之间的绝对差值。实际灰阶值为高频图像像素的原始灰阶值经过色偏补偿后得到的灰阶值。Specifically, in an embodiment, the device for detecting high-frequency components in the image of the display device 1 further includes an adjustment unit 50 connected to the determination unit 40. The adjusting unit 50 is used to adjust the actual grayscale value of the high-frequency image pixels according to the preset adjustment algorithm and the target grayscale difference, so as to reduce the difference between the actual grayscale value of the high-frequency image pixels and the original grayscale value of the high-frequency image pixels The absolute difference between. The actual grayscale value is the grayscale value obtained after the original grayscale value of the high-frequency image pixel is subjected to color shift compensation.
具体地,色偏补偿的过程为先获取高频图像像素中各个基色分量的原始灰阶值,并根据色偏补偿算法将原始灰阶转换为第一显示灰阶值和第二显示灰阶值,各个基色分量的第一显示灰阶值和第二显示灰阶值分别控制该基色分量对应的两个子像素的显示亮度,使得两个子像素实现亮暗显示,以达到色偏补偿的目的。第一显示灰阶值和第二显示灰阶值即为实际灰阶值,所述减小高频图像像素的实际灰阶值与原始灰阶值之间的差值,即为减少高频图像像素中各个基色分量对应的两个子像素之间的亮暗差异,从而减少因色偏补偿所带来的颗粒感。Specifically, the process of color shift compensation is to first obtain the original grayscale value of each primary color component in the high-frequency image pixel, and convert the original grayscale into the first display grayscale value and the second display grayscale value according to the color shift compensation algorithm The first display gray scale value and the second display gray scale value of each primary color component respectively control the display brightness of the two sub-pixels corresponding to the primary color component, so that the two sub-pixels achieve bright and dark display to achieve the purpose of color shift compensation. The first display grayscale value and the second display grayscale value are the actual grayscale values, and the reduction between the difference between the actual grayscale value of the high-frequency image pixels and the original grayscale value is the reduction of the high-frequency image The difference between the brightness and darkness of the two sub-pixels corresponding to each primary color component in the pixel, thereby reducing the graininess caused by the color shift compensation.
具体地,预设调整算法为:L’ = (L-Lo) xC+L0,其中L’为经过预设调整算法调整后实际灰阶值,L0为高频图像像素的原始灰阶值,L为在预设调整算法调整前的高频图像像素的实际灰阶值,C为预设调整系数,预设调整系数的取值范围为0〜1,预设调整系数随着目标灰阶差值的增大而减小。也就是说当目标灰阶差值越大时,高频图像像素经过色偏补偿处理后亮暗显示的幅度越小,从而能够减小因色偏补偿带来的显示不良。Specifically, the preset adjustment algorithm is: L '= (L-Lo) xC + L0, where L' is the actual grayscale value after adjustment by the preset adjustment algorithm, L0 is the original grayscale value of the high-frequency image pixel, L Is the actual grayscale value of the high-frequency image pixels before adjustment by the preset adjustment algorithm, C is the preset adjustment coefficient, the value range of the preset adjustment coefficient is 0 ~ 1, the preset adjustment coefficient varies with the target grayscale difference Increase and decrease. That is to say, when the target gray scale difference value is larger, the amplitude of the bright and dark display of the high-frequency image pixel after the color shift compensation process is smaller, so that the display failure caused by the color shift compensation can be reduced.
综上所述,由于本揭示的实施例提供了侦测显示装置的图像中高频成分的方法及装置。本实施例使用待检测图像像素的原始灰阶值与第一图像像素的原始灰阶值的差值的最大值作为第一灰阶差值,使用待检测图像像素的原始灰阶值与第二图像像素的原始灰阶值的差值的最大值作为第二灰阶差值,再根据目标灰阶差值算法、第一灰阶差值及第二灰阶差值计算得出目标灰阶差值,再将目标灰阶差值与预设灰阶阈值进行比较判断所述待检测图像像素是否为高频图像像素,接着对高频图像像素的实际灰阶值进行调整,减小高频图像像素的实际灰阶值与原始灰阶值之间的差值,能够优化图像中高频成分的侦测过程,提升显示品质。In summary, the embodiments of the present disclosure provide a method and device for detecting high-frequency components in an image of a display device. This embodiment uses the maximum value of the difference between the original grayscale value of the image pixel to be detected and the original grayscale value of the first image pixel as the first grayscale difference value, and uses the original grayscale value of the image pixel to be detected and the second The maximum value of the difference between the original grayscale values of the image pixels is used as the second grayscale difference, and then the target grayscale difference is calculated according to the target grayscale difference algorithm, the first grayscale difference and the second grayscale difference Value, and then compare the target grayscale difference with a preset grayscale threshold to determine whether the image pixel to be detected is a high-frequency image pixel, and then adjust the actual grayscale value of the high-frequency image pixel to reduce the high-frequency image The difference between the actual grayscale value of the pixel and the original grayscale value can optimize the detection process of high-frequency components in the image and improve the display quality.
尽管已经相对于一个或多个实现方式示出并描述了本揭示,但是本领域技术人员基于对本说明书和附图的阅读和理解将会想到等价变型和修改。本揭示包括所有这样的修改和变型,并且仅由所附权利要求的范围限制。特别地关于由上述组件执行的各种功能,用于描述这样的组件的术语旨在对应于执行所述组件的指定功能(例如其在功能上是等价的)的任意组件(除非另外指示),即使在结构上与执行本文所示的本说明书的示范性实现方式中的功能的公开结构不等同。此外,尽管本说明书的特定特征已经相对于若干实现方式中的仅一个被公开,但是这种特征可以与如可以对给定或特定应用而言是期望和有利的其他实现方式的一个或多个其他特征组合。而且,就术语“包括”、“具有”、“含有”或其变形被用在具体实施方式或权利要求中而言,这样的术语旨在以与术语“包含”相似的方式包括。Although the present disclosure has been shown and described with respect to one or more implementations, those skilled in the art will think of equivalent variations and modifications based on reading and understanding of this specification and the drawings. This disclosure includes all such modifications and variations, and is limited only by the scope of the appended claims. With particular reference to the various functions performed by the above-mentioned components, the terminology used to describe such components is intended to correspond to any component (unless otherwise indicated) that performs the specified function of the component (eg, it is functionally equivalent) Even if it is structurally different from the disclosed structure that performs the functions in the exemplary implementation of the present specification shown herein. Furthermore, although specific features of this specification have been disclosed with respect to only one of several implementations, such features may be combined with one or more other implementations as may be desirable and advantageous for a given or specific application Other feature combinations. Moreover, to the extent that the terms "including", "having", "containing" or variations thereof are used in specific embodiments or claims, such terms are intended to be included in a manner similar to the term "comprising".
以上仅是本揭示的优选实施方式,应当指出,对于本领域普通技术人员,在不脱离本揭示原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本揭示的保护范围。The above are only the preferred embodiments of the present disclosure. It should be noted that those of ordinary skill in the art can make several improvements and retouching without departing from the principles of the present disclosure. These improvements and retouching should also be regarded as the present disclosure. protected range.

Claims (20)

  1. 一种侦测显示装置的图像中高频成分的方法,包括:A method for detecting high-frequency components in an image of a display device, including:
    步骤S1、获取显示装置的待处理图像中图像像素的原始灰阶值,所述图像像素包括待检测图像像素、多个第一图像像素及多个第二图像像素; Step S1, obtaining the original grayscale value of the image pixels in the image to be processed of the display device, the image pixels including the image pixels to be detected, a plurality of first image pixels and a plurality of second image pixels;
    步骤S2、计算第一灰阶差值,所述第一灰阶差值为所述待检测图像像素的原始灰阶值与所述第一图像像素的原始灰阶值的差值的最大值;Step S2: Calculate a first grayscale difference value, where the first grayscale difference value is the maximum value of the difference between the original grayscale value of the image pixel to be detected and the original grayscale value of the first image pixel;
    步骤S3、计算第二灰阶差值,所述第二灰阶差值为所述待检测图像像素的所述原始灰阶值与所述第二图像像素的原始灰阶值的差值的最大值;以及Step S3: Calculate a second grayscale difference value, where the second grayscale difference value is the maximum difference between the original grayscale value of the image pixel to be detected and the original grayscale value of the second image pixel Value; and
    步骤S4、根据目标灰阶差值算法、所述第一灰阶差值及所述第二灰阶差值计算出目标灰阶差值。Step S4: Calculate the target gray scale difference according to the target gray scale difference algorithm, the first gray scale difference and the second gray scale difference.
  2. 如权利要求1所述的侦测显示装置的图像中高频成分的方法,其中所述第一图像像素位于所述待检测图像像素的外围的第一层且包围所述待检测图像像素,所述第二图像像素位于所述待检测图像像素的所述外围的第二层且部分包围所述第一图像像素。The method for detecting high-frequency components in an image of a display device according to claim 1, wherein the first image pixel is located at a first layer on the periphery of the image pixel to be detected and surrounds the image pixel to be detected, the The second image pixel is located in the second layer of the periphery of the image pixel to be detected and partially surrounds the first image pixel.
  3. 如权利要求1所述的侦测显示装置的图像中高频成分的方法,其中当所述待检测图像像素位于所述图像像素的当前行时,所述第一图像像素位于所述图像像素的所述当前行的上一行及下一行,所述第二图像像素位于所述图像像素的所述当前行的所述上一行、上二行及下一行,且所述第二图像像素不位于所述图像像素的所述当前行的下二行。The method for detecting high-frequency components in an image of a display device according to claim 1, wherein when the image pixel to be detected is located in the current line of the image pixel, the first image pixel is located at the position of the image pixel The previous row and the next row of the current row, the second image pixel is located in the previous row, the previous two rows, and the next row of the current row of the image pixel, and the second image pixel is not located in the The next two rows of the current row of image pixels.
  4. 如权利要求1所述的侦测显示装置的图像中高频成分的方法,还包括:步骤S5、将所述目标灰阶差值与预设灰阶阈值进行比较,若所述目标灰阶差值大于所述预设灰阶阈值,则判定所述待检测图像像素为高频图像像素,否则判定所述待检测图像像素为低频图像像素。The method of detecting a high-frequency component in an image of a display device according to claim 1, further comprising: step S5, comparing the target grayscale difference with a preset grayscale threshold, if the target grayscale difference If it is greater than the preset grayscale threshold, the image pixel to be detected is determined to be a high-frequency image pixel, otherwise the image pixel to be detected is determined to be a low-frequency image pixel.
  5. 如权利要求4所述的侦测显示装置的图像中高频成分的方法,其中在所述待检测图像像素为高频图像像素时,所述方法还包括:步骤S6、根据预设调整算法及所述目标灰阶差值调整所述高频图像像素的实际灰阶值,减小所述高频图像像素的所述实际灰阶值与所述高频图像像素的原始灰阶值之间的绝对差值;所述实际灰阶值为所述高频图像像素的所述原始灰阶值经过色偏补偿后得到的灰阶值。The method for detecting high-frequency components in an image of a display device according to claim 4, wherein when the image pixel to be detected is a high-frequency image pixel, the method further comprises: Step S6, adjusting the algorithm and The target grayscale difference adjusts the actual grayscale value of the high-frequency image pixel to reduce the absolute value between the actual grayscale value of the high-frequency image pixel and the original grayscale value of the high-frequency image pixel Difference; the actual grayscale value is a grayscale value obtained after the original grayscale value of the high-frequency image pixel is subjected to color shift compensation.
  6. 如权利要求1所述的侦测显示装置的图像中高频成分的方法,其中所述步骤S4中所述目标灰阶差值算法为:F=axFAl+bxFA2,其中,F为所述目标灰阶差值,FA1为所述第一灰阶差值,FA2为所述第二灰阶差值,a为预设第一权重值,b为预设第二权重值。The method for detecting high-frequency components in an image of a display device according to claim 1, wherein the target grayscale difference algorithm in step S4 is: F = axFAl + bxFA2, where F is the target grayscale For the difference, FA1 is the first grayscale difference, FA2 is the second grayscale difference, a is a preset first weight value, and b is a preset second weight value.
  7. 如权利要求1所述的侦测显示装置的图像中高频成分的方法,其中所述步骤S1中每一个图像像素均包括第一基色分量、第二基色分量及第三基色分量,每一个图像像素的原始灰阶值均包括第一基色分量的原始灰阶值、第二基色分量的原始灰阶值及第三基色分量的原始灰阶值。The method for detecting high-frequency components in an image of a display device according to claim 1, wherein each image pixel in the step S1 includes a first primary color component, a second primary color component, and a third primary color component, and each image pixel The original grayscale values of each include the original grayscale value of the first primary color component, the original grayscale value of the second primary color component, and the original grayscale value of the third primary color component.
  8. 如权利要求7所述的侦测显示装置的图像中高频成分的方法,其中所述待检测图像像素的所述原始灰阶值与所述第一图像像素的所述原始灰阶值的差值为:所述待检测图像像素中所述第一基色分量的所述原始灰阶值与所述第一图像像素中所述第一基色分量的所述原始灰阶值之间的差值、所述待检测图像像素中所述第二基色分量的所述原始灰阶值与所述第一图像像素中所述第二基色分量的所述原始灰阶值之间的差值以及所述待检测图像像素中所述第三基色分量的所述原始灰阶值与所述第一图像像素中第三基色分量的原始灰阶值之间的差值中最大的一个。The method for detecting high-frequency components in an image of a display device according to claim 7, wherein the difference between the original grayscale value of the image pixel to be detected and the original grayscale value of the first image pixel Is: the difference between the original grayscale value of the first primary color component in the image pixel to be detected and the original grayscale value of the first primary color component in the first image pixel, A difference between the original grayscale value of the second primary color component in the image pixel to be detected and the original grayscale value of the second primary color component in the first image pixel and the to-be-detected The largest one of the differences between the original grayscale value of the third primary color component in the image pixel and the original grayscale value of the third primary color component in the first image pixel.
  9. 如权利要求8所述的侦测显示装置的图像中高频成分的方法,其中所述待检测图像像素的所述原始灰阶值与所述第二图像像素的所述原始灰阶值的差值为:所述待检测图像像素中所述第一基色分量的所述原始灰阶值与所述第二图像像素中所述第一基色分量的所述原始灰阶值之间的差值、所述待检测图像像素中所述第二基色分量的所述原始灰阶值与所述第二图像像素中所述第二基色分量的所述原始灰阶值之间的差值以及所述待检测图像像素中所述第三基色分量的所述原始灰阶值与所述第二图像像素中第三基色分量的原始灰阶值之间的差值中最大的一个。The method for detecting a high-frequency component in an image of a display device according to claim 8, wherein the difference between the original grayscale value of the image pixel to be detected and the original grayscale value of the second image pixel Is: the difference between the original grayscale value of the first primary color component in the image pixel to be detected and the original grayscale value of the first primary color component in the second image pixel, A difference between the original grayscale value of the second primary color component in the image pixel to be detected and the original grayscale value of the second primary color component in the second image pixel and the to-be-detected The largest one of the differences between the original grayscale value of the third primary color component in the image pixel and the original grayscale value of the third primary color component in the second image pixel.
  10. 如权利要求5所述的侦测显示装置的图像中高频成分的方法,其中所述步骤S6中所述预设调整算法为:L’ = (L-Lo) xC+L0,其中L’为经过所述预设调整算法调整后实际灰阶值,L0为所述高频图像像素的所述原始灰阶值,L为在所述预设调整算法调整前的所述高频图像像素的所述实际灰阶值,C为预设调整系数,所述预设调整系数的取值范围为0〜1,所述预设调整系数随着所述目标灰阶差值的增大而减小。The method for detecting high-frequency components in an image of a display device according to claim 5, wherein the preset adjustment algorithm in step S6 is: L '= (L-Lo) xC + L0, where L' is The actual grayscale value after adjustment by the preset adjustment algorithm, L0 is the original grayscale value of the high-frequency image pixel, and L is the value of the high-frequency image pixel before adjustment by the preset adjustment algorithm For the actual gray scale value, C is a preset adjustment coefficient, and the value range of the preset adjustment coefficient is 0 to 1, and the preset adjustment coefficient decreases as the target gray scale difference increases.
  11.      一种侦测显示装置的图像中高频成分的装置,包括:A device for detecting high-frequency components in the image of a display device, including:
    获取单元;Acquisition unit;
    第一计算单元,与所述获取单元连接;The first calculation unit, connected to the acquisition unit;
    第二计算单元,与所述第一计算单元连接;以及A second computing unit connected to the first computing unit; and
    判断单元,与所述第二计算单元连接;Judgment unit, connected to the second calculation unit;
    其中所述获取单元用于获取显示装置的待处理图像中图像像素的原始灰阶值,所述图像像素包括待检测图像像素、多个第一图像像素及多个第二图像像素; Wherein the acquisition unit is used to acquire the original grayscale value of the image pixels in the image to be processed of the display device, the image pixels include the image pixels to be detected, a plurality of first image pixels and a plurality of second image pixels;
    其中所述第一计算单元用于计算第一灰阶差值及第二灰阶差值,所述第一灰阶差值为所述待检测图像像素的原始灰阶值与所述第一图像像素的原始灰阶值的差值的最大值,所述第二灰阶差值为所述待检测图像像素的所述原始灰阶值与所述第二图像像素的原始灰阶值的差值的最大值;以及The first calculation unit is used to calculate a first grayscale difference value and a second grayscale difference value, the first grayscale difference value is the original grayscale value of the pixel to be detected and the first image The maximum value of the difference between the original grayscale values of the pixels, and the second grayscale difference value is the difference between the original grayscale value of the pixel to be detected and the original grayscale value of the second image pixel Maximum value; and
    其中所述第二计算单元用于根据目标灰阶差值算法、所述第一灰阶差值及所述第二灰阶差值计算出目标灰阶差值。The second calculation unit is used to calculate the target gray scale difference value according to the target gray scale difference algorithm, the first gray scale difference value and the second gray scale difference value.
  12. 如权利要求11所述的侦测显示装置的图像中高频成分的装置,其中所述第一图像像素位于所述待检测图像像素的外围的第一层且包围所述待检测图像像素,所述第二图像像素位于所述待检测图像像素的所述外围的第二层且部分包围所述第一图像像素。The device for detecting high-frequency components in an image of a display device according to claim 11, wherein the first image pixel is located at a first layer on the periphery of the image pixel to be detected and surrounds the image pixel to be detected, the The second image pixel is located in the second layer of the periphery of the image pixel to be detected and partially surrounds the first image pixel.
  13. 如权利要求11所述的侦测显示装置的图像中高频成分的装置,其中当所述待检测图像像素位于所述图像像素的当前行时,所述第一图像像素位于所述图像像素的所述当前行的上一行及下一行,所述第二图像像素位于所述图像像素的所述当前行的所述上一行、上二行及下一行,且所述第二图像像素不位于所述图像像素的所述当前行的下二行。The device for detecting high-frequency components in an image of a display device according to claim 11, wherein when the image pixel to be detected is located in the current line of the image pixel, the first image pixel is located at the position of the image pixel The previous row and the next row of the current row, the second image pixel is located in the previous row, the previous two rows, and the next row of the current row of the image pixel, and the second image pixel is not located in the The next two rows of the current row of image pixels.
  14. 如权利要求11所述的侦测显示装置的图像中高频成分的装置,其中所述判断单元用于将所述目标灰阶差值与预设灰阶阈值进行比较,若所述目标灰阶差值大于所述预设灰阶阈值,则所述判断单元判定所述待检测图像像素为高频图像像素,否则所述判断单元判定所述待检测图像像素为低频图像像素。The device for detecting high-frequency components in an image of a display device according to claim 11, wherein the judgment unit is used to compare the target grayscale difference with a preset grayscale threshold, if the target grayscale difference If the value is greater than the preset grayscale threshold, the judgment unit determines that the image pixel to be detected is a high-frequency image pixel, otherwise the judgment unit determines that the image to-be-detected pixel is a low-frequency image pixel.
  15. 如权利要求14所述的侦测显示装置的图像中高频成分的装置,还包括与所述判断单元连接的调整单元,其中所述调整单元用于根据预设的调整算法及所述目标灰阶差值调整所述高频图像像素的实际灰阶值,减小所述高频图像像素的所述实际灰阶值与所述高频图像像素的原始灰阶值之间的绝对差值;所述实际灰阶值为所述高频图像像素的所述原始灰阶值经过色偏补偿后得到的灰阶值。The device for detecting high-frequency components in an image of a display device according to claim 14, further comprising an adjustment unit connected to the determination unit, wherein the adjustment unit is used for adjusting the target gray scale according to a preset adjustment algorithm The difference value adjusts the actual grayscale value of the high-frequency image pixel to reduce the absolute difference between the actual grayscale value of the high-frequency image pixel and the original grayscale value of the high-frequency image pixel; The actual grayscale value is a grayscale value obtained after the original grayscale value of the high-frequency image pixel is subjected to color shift compensation.
  16. 如权利要11所述的侦测显示装置的图像中高频成分的装置,其中所述目标灰阶差值算法为:F=axFAl+bxFA2,其中,F为所述目标灰阶差值,FA1为所述第一灰阶差值,FA2为所述第二灰阶差值,a为预设第一权重值,b为预设第二权重值。The device for detecting high-frequency components in an image of a display device according to claim 11, wherein the target grayscale difference algorithm is: F = axFAl + bxFA2, where F is the target grayscale difference and FA1 is For the first gray scale difference value, FA2 is the second gray scale difference value, a is a preset first weight value, and b is a preset second weight value.
  17. 如权利要求11所述的侦测显示装置的图像中高频成分的装置,其中每一个图像像素均包括第一基色分量、第二基色分量及第三基色分量,每一个图像像素的原始灰阶值均包括第一基色分量的原始灰阶值、第二基色分量的原始灰阶值及第三基色分量的原始灰阶值。The device for detecting high-frequency components in an image of a display device according to claim 11, wherein each image pixel includes a first primary color component, a second primary color component, and a third primary color component, and the original grayscale value of each image pixel Both include the original grayscale value of the first primary color component, the original grayscale value of the second primary color component, and the original grayscale value of the third primary color component.
  18. 如权利要求17所述的侦测显示装置的图像中高频成分的装置,其中所述待检测图像像素的所述原始灰阶值与所述第一图像像素的所述原始灰阶值的差值为:所述待检测图像像素中所述第一基色分量的所述原始灰阶值与所述第一图像像素中所述第一基色分量的所述原始灰阶值之间的差值、所述待检测图像像素中所述第二基色分量的所述原始灰阶值与所述第一图像像素中所述第二基色分量的所述原始灰阶值之间的差值以及所述待检测图像像素中所述第三基色分量的所述原始灰阶值与所述第一图像像素中第三基色分量的原始灰阶值之间的差值中最大的一个。The device for detecting high-frequency components in an image of a display device according to claim 17, wherein the difference between the original grayscale value of the image pixel to be detected and the original grayscale value of the first image pixel Is: the difference between the original grayscale value of the first primary color component in the image pixel to be detected and the original grayscale value of the first primary color component in the first image pixel, A difference between the original grayscale value of the second primary color component in the image pixel to be detected and the original grayscale value of the second primary color component in the first image pixel and the to-be-detected The largest one of the differences between the original grayscale value of the third primary color component in the image pixel and the original grayscale value of the third primary color component in the first image pixel.
  19. 如权利要求18所述的侦测显示装置的图像中高频成分的装置,其中所述待检测图像像素的所述原始灰阶值与所述第二图像像素的所述原始灰阶值的差值为:所述待检测图像像素中所述第一基色分量的所述原始灰阶值与所述第二图像像素中所述第一基色分量的所述原始灰阶值之间的差值、所述待检测图像像素中所述第二基色分量的所述原始灰阶值与所述第二图像像素中所述第二基色分量的所述原始灰阶值之间的差值以及所述待检测图像像素中所述第三基色分量的所述原始灰阶值与所述第二图像像素中第三基色分量的原始灰阶值之间的差值中最大的一个。The device for detecting high-frequency components in an image of a display device according to claim 18, wherein the difference between the original grayscale value of the image pixel to be detected and the original grayscale value of the second image pixel Is: the difference between the original grayscale value of the first primary color component in the image pixel to be detected and the original grayscale value of the first primary color component in the second image pixel, A difference between the original grayscale value of the second primary color component in the image pixel to be detected and the original grayscale value of the second primary color component in the second image pixel and the to-be-detected The largest one of the differences between the original grayscale value of the third primary color component in the image pixel and the original grayscale value of the third primary color component in the second image pixel.
  20. 如权利要求15所述的侦测显示装置的图像中高频成分的装置,其中所述预设调整算法为:L’ = (L-Lo) xC+L0,其中L’为经过所述预设调整算法调整后实际灰阶值,L0为所述高频图像像素的所述原始灰阶值,L为在所述预设调整算法调整前的所述高频图像像素的所述实际灰阶值,C为预设调整系数,所述预设调整系数的取值范围为0〜1,所述预设调整系数随着所述目标灰阶差值的增大而减小。The device for detecting high-frequency components in an image of a display device according to claim 15, wherein the preset adjustment algorithm is: L '= (L-Lo) xC + L0, where L' is the preset adjustment The actual grayscale value after the algorithm adjustment, L0 is the original grayscale value of the high-frequency image pixel, and L is the actual grayscale value of the high-frequency image pixel before adjustment by the preset adjustment algorithm, C is a preset adjustment coefficient, and the value range of the preset adjustment coefficient is 0 to 1, and the preset adjustment coefficient decreases as the target gray scale difference increases.
PCT/CN2019/075181 2018-11-09 2019-02-15 Method and device for detecting high-frequency component in image on display device WO2020093619A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811331670.6A CN109326245A (en) 2018-11-09 2018-11-09 Detect the method and device of the image high frequency components of display device
CN201811331670.6 2018-11-09

Publications (1)

Publication Number Publication Date
WO2020093619A1 true WO2020093619A1 (en) 2020-05-14

Family

ID=65261209

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/075181 WO2020093619A1 (en) 2018-11-09 2019-02-15 Method and device for detecting high-frequency component in image on display device

Country Status (2)

Country Link
CN (1) CN109326245A (en)
WO (1) WO2020093619A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108074513B (en) * 2017-12-25 2019-10-18 深圳市华星光电技术有限公司 Detect the method and device of image high frequency components
CN109326245A (en) * 2018-11-09 2019-02-12 深圳市华星光电半导体显示技术有限公司 Detect the method and device of the image high frequency components of display device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008018623A1 (en) * 2006-08-11 2008-02-14 Panasonic Corporation Method, apparatus and integrated circuit for improving image sharpness
CN102281388A (en) * 2010-06-09 2011-12-14 联咏科技股份有限公司 Method and apparatus for adaptively filtering image noise
US20160125623A1 (en) * 2013-02-04 2016-05-05 Wistron Corporation Image identification method, electronic device, and computer program product
CN106409266A (en) * 2016-12-14 2017-02-15 Tcl集团股份有限公司 Sub-pixel rendering and rendering device
CN108074513A (en) * 2017-12-25 2018-05-25 深圳市华星光电技术有限公司 Detect the method and device of image high frequency components
CN109326245A (en) * 2018-11-09 2019-02-12 深圳市华星光电半导体显示技术有限公司 Detect the method and device of the image high frequency components of display device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104680994B (en) * 2015-03-09 2017-09-15 深圳市华星光电技术有限公司 The driving method and drive device of a kind of liquid crystal display

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008018623A1 (en) * 2006-08-11 2008-02-14 Panasonic Corporation Method, apparatus and integrated circuit for improving image sharpness
CN102281388A (en) * 2010-06-09 2011-12-14 联咏科技股份有限公司 Method and apparatus for adaptively filtering image noise
US20160125623A1 (en) * 2013-02-04 2016-05-05 Wistron Corporation Image identification method, electronic device, and computer program product
CN106409266A (en) * 2016-12-14 2017-02-15 Tcl集团股份有限公司 Sub-pixel rendering and rendering device
CN108074513A (en) * 2017-12-25 2018-05-25 深圳市华星光电技术有限公司 Detect the method and device of image high frequency components
CN109326245A (en) * 2018-11-09 2019-02-12 深圳市华星光电半导体显示技术有限公司 Detect the method and device of the image high frequency components of display device

Also Published As

Publication number Publication date
CN109326245A (en) 2019-02-12

Similar Documents

Publication Publication Date Title
JP4566953B2 (en) Driving device and driving method for liquid crystal display device
JP4175485B2 (en) Driving device and driving method for liquid crystal display device
KR101147100B1 (en) Apparatus and method for driving liquid crystal display device
US7983506B2 (en) Method, medium and system processing image signals
WO2019127667A1 (en) Method and device for detecting high-frequency component in image
EP3211631A1 (en) White oled display device, as well as display control method and display control device for same
KR101319321B1 (en) Driving circuit for liquid crystal display device and method for driving the same
CN105702218A (en) Display apparatus, method of driving the same and vision inspection apparatus for the same
US8767128B2 (en) Image display device and method for adjusting correction data in look-up table
KR101308450B1 (en) Apparatus and method for driving liquid crystal display device
WO2017008362A1 (en) Display improvement method and device thereof for liquid crystal panel
CN114267291B (en) Gray scale data determination method, device, equipment and screen driving plate
KR101137872B1 (en) Apparatus and method for driving liquid crystal display device
WO2020093619A1 (en) Method and device for detecting high-frequency component in image on display device
US20180330677A1 (en) Driving methods and driving devices of display panels
KR20150078025A (en) Method And apparatus Controlling Luminance Of Organic Light Emitting Diode Display Device
US8514333B2 (en) Image display device for displaying color image on color display unit
US20230343303A1 (en) Gray scale compensation method and apparatus for display panel
CN107690658B (en) Black and white sub-identification method and system based on computer vision
KR102520697B1 (en) Display device using subpixel rendering and image processing method thereof
WO2010150299A1 (en) Liquid crystal display device
US20230154425A1 (en) Method and device for relieving fracture phenomenon of liquid crystal display panel, and display panel
KR101806117B1 (en) Method of processing data and display apparatus performing the method
WO2020124808A1 (en) Image enhancement device and image enhancement method
JP2016118689A (en) Image display method and image display device

Legal Events

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

Ref document number: 19881223

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: 19881223

Country of ref document: EP

Kind code of ref document: A1