CN109584792B - Method for quickly adjusting gray scale gamma of O L ED screen - Google Patents

Method for quickly adjusting gray scale gamma of O L ED screen Download PDF

Info

Publication number
CN109584792B
CN109584792B CN201811305869.1A CN201811305869A CN109584792B CN 109584792 B CN109584792 B CN 109584792B CN 201811305869 A CN201811305869 A CN 201811305869A CN 109584792 B CN109584792 B CN 109584792B
Authority
CN
China
Prior art keywords
gamma
register
gray scale
adjusted
adjusting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811305869.1A
Other languages
Chinese (zh)
Other versions
CN109584792A (en
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Jiazhicai Optoelectronics Technology Co ltd
Original Assignee
Suzhou Jiazhicai Optoelectronics Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Jiazhicai Optoelectronics Technology Co ltd filed Critical Suzhou Jiazhicai Optoelectronics Technology Co ltd
Priority to CN201811305869.1A priority Critical patent/CN109584792B/en
Publication of CN109584792A publication Critical patent/CN109584792A/en
Application granted granted Critical
Publication of CN109584792B publication Critical patent/CN109584792B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/22Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
    • G09G3/30Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
    • G09G3/32Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]
    • G09G3/3208Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED] organic, e.g. using organic light-emitting diodes [OLED]

Abstract

The invention discloses a method for quickly adjusting gray scale gamma of an O L ED screen, which comprises the steps of associating R, G, B gamma register values with brightness gamma curves in a curve fitting mode to obtain reasonable gamma register curves, conveniently and quickly calculating all register values of gray scales to be adjusted, quickly searching and adjusting in a small range, recording a gamma register fitting curve of R, G, B obtained by historical debugging for data reference in later debugging, quickly matching coefficients and calculating register values of all currently adjusted gray scales according to R, G, B gamma register fitting curves obtained by historical debugging.

Description

Method for quickly adjusting gray scale gamma of O L ED screen
Technical Field
The invention belongs to the field of photoelectricity, particularly relates to an adjusting method of an O L ED screen, and particularly relates to a quick gray scale gamma adjusting method of an O L ED screen.
Background
The O L ED screen has the characteristics of ultrathin thickness, self-luminescence, wide viewing angle, fast response, high luminous efficiency, good temperature adaptability, low driving voltage, low energy consumption and the like, the use of O L ED is a development trend, O L ED has very wide application prospect, a new display method can be provided for terminal product manufacturers of household appliances, communication, computers, instruments and meters and the like, and cheaper portability, browsing, reading and viewing are brought to consumers, while O L ED needs a plurality of working procedures in the production process, wherein the gray scale gamma adjustment belongs to one of the working procedures, the gray scale gamma adjustment of O L ED is mainly carried out aiming at the brightness value of an O L ED gray display picture to ensure that the display picture is more suitable for the change response of human eyes to the brightness, and the better display effect is achieved.
Gamma results from the response curve of earlier CRT displays, i.e. the non-linear relationship between output brightness and input voltage, see fig. 1. Gamma adjustment is to adjust the gamma curve of the display screen image to perform nonlinear tone adjustment on the display screen image, so as to increase the proportion of dark color part and light color part in the image signal, thereby improving the image contrast effect.
Gamma adjustment is to change the input voltage value by adjusting a Gamma correction register in the screen, thereby changing the output of the screen and achieving better display effect.
To the knowledge of the inventors, the prior art has the following disadvantages: the adjustment speed is slow, and the requirement of quick adjustment cannot be met. During the process of adjusting the gamma register value, a reasonable adjusting range cannot be determined, and a reasonable register value cannot be quickly searched; after the gamma adjustment of the 3-color register is finished, the chromaticity coordinate cannot be corrected, or the adjustment speed of the chromaticity coordinate is slow, and the ideal effect cannot be achieved.
In view of this, in order to solve the problem, the present invention provides a method for rapidly adjusting gray-scale gamma of an O L ED panel.
Disclosure of Invention
The invention provides a method for quickly adjusting gray scale gamma of an O L ED screen, and aims to solve the problems that the prior art is slow in adjustment speed and cannot achieve an ideal effect.
In order to achieve the aim, the invention adopts the technical scheme that the method for quickly adjusting the gray scale gamma of the O L ED screen comprises a first adjusting step and a non-first adjusting step;
wherein the first adjusting step operates according to the following steps:
s1, adjusting R, G, B register initial values of 255 gray scales in an O L ED screen lightened picture based on a fast convergence search algorithm, and writing the R, G, B register initial values into a gamma register to adjust the 255 gray scales to a target brightness L v and a target color coordinate (x, y);
s2, reading the R, G, B register initial value, and according to the formula reg K (L/255)γCalculating R, G, B register values of the next gray scale to be adjusted, wherein K is R, G, B register initial value of 255 gray scales, L is the gray scale value to be adjusted, and gamma is gamma coefficient;
s3, writing the R, G, B register values of the next gray scale to be adjusted obtained in the S2 into the gamma register, so as to adjust the next gray scale to be adjusted to the target brightness L v and the target color coordinates (x, y);
s4, adopting the register values of R, G, B according to the adjusted gray scale in the step S3Least square fitting to obtain the formula reg ═ K (L/255)γA medium gamma value;
s5, repeating the steps S3 to S4 until all the gray scales to be adjusted are adjusted;
s6, according to formula reg ═ K ═ L/255)γFitting by least square method to obtain coefficients Kr, Kg, Kb and gamma of each R, G, Br、γg、γbAnd fitting the obtained coefficients Kr, Kg, Kb and gammar、γg、γbStored in a database or data set.
The relevant content in the above technical solution is explained as follows:
1. in the above scheme, the non-primary adjustment step is performed according to the following steps:
SS1, adjusting each R, G, B register value of 255 gray scales in the picture of the O L ED screen after the first adjustment based on a fast convergence search algorithm, so as to adjust the 255 gray scales to the target brightness L v and the target color coordinates (x, y) in the current state;
SS2, substituting the register values of 255 grayscales R, G, B adjusted in the step SS1 into the formula reg ═ K (L/255)γCalculating a coefficient K, and searching a matched group of coefficients from a database or a data set;
SS3, coefficient obtained from SS2 and formula reg ═ K (L/255)γCalculating the gamma register value of the next gray scale R, G, B to be measured;
SS4, detecting the brightness and color coordinates (x, y) of the current L v of the next gray scale to be detected;
SS5, judging whether the current L v brightness and color coordinate (x, y) of the next gray scale to be detected meets the target L v brightness and color coordinate (x, y), if not, quickly adjusting, if so, repeatedly executing SS4 until all the gray scales to be detected are detected;
SS6, according to formula reg ═ K ═ L/255)γFitting by least square method to obtain coefficients Kr, Kg, Kb and gamma of R, G, Br、γg、γbAnd comparing the fitted coefficients with data in a database or data set, if the same or similar coefficients exist, not storing the coefficients, otherwise, comparing the fitted coefficients with data in the database or data setThe obtained coefficients are stored in a database or data set.
2. In the above scheme, the 255 gray scale means that the gray scale value is 255. Until all the gray level adjustments to be adjusted are completed, it usually means that all the gray level adjustments with gray level values of 0-255 are completed.
Due to the application of the technical scheme, compared with the prior art, the invention has the following advantages:
the method firstly reduces the adjustment range of the gamma register through mathematical calculation and physical calculation, then quickly adjusts the gamma register based on a quick search algorithm, directly adjusts the chromaticity coordinate through the gray map, and ensures that the gray display meets the chromaticity coordinate condition while ensuring the quick adjustment.
Drawings
FIG. 1 is a diagram illustrating a non-linear relationship between output luminance and input voltage in a Gamma curve of the prior art;
fig. 2 is a schematic flow chart of a first adjusting step in the fast adjusting method according to this embodiment.
Detailed Description
The invention is further described with reference to the following figures and examples:
embodiment is a method for rapidly adjusting gray scale gamma of O L ED screen
Referring to fig. 2, including a first adjustment step and a non-first adjustment step, the operations are performed based on the lighting of an O L ED screen, in this embodiment, the gray scale value range of the O L ED screen is [0,255], wherein the first adjustment step is performed according to the following steps:
s1, adjusting R, G, B register initial values (regR255, regG255, regB255) of 255 gray scales (i.e. gray scale values of 255 frames) in the lit O L ED screen by using a fast convergence search algorithm, and writing the R, G, B register initial values (regR255, regG255, regB255) into gamma registers, respectively, to adjust the 255 gray scales to a target brightness L v and a target color coordinate (x, y).
S2, read the register value regR255, regG255, regB255 of 255 gray scale R, G, B, according to the formula reg ═ K (L/255)γCalculating the gamma register values of the next gray level to be adjusted R, G, B,the register value of gamma register of K R, G, B at 255 gray scale, that is, the initial value of R, G, B register of K255 gray scale, that is, the initial value of R, G, B register of 255 gray scale is used as the value of K (Kr-regR 255, Kg-regG 255 and Kb-regB 255), L is the value of gray scale to be adjusted, gamma is gamma coefficient, and the initial value of gamma is 1/2.2.
And S3, writing the R, G, B register values of the next gray scale to be adjusted obtained by calculation in the S2 into the gamma register, and performing small-range quick adjustment on the gray scale to be adjusted so as to adjust the next gray scale to be adjusted to the target brightness L v and the target color coordinates (x, y).
S4, obtaining formula reg-K (L/255) by least square fitting according to each R, G, B register value of the adjusted gray scale in the step S3γThe medium gamma value.
S5, repeatedly execute S3 to S4 until all the gray scale adjustments to be adjusted are completed, for example, each R, G, B register initial value of 255 gray scale (i.e. the gray scale value is 255 frames) in the frame after the 1 st adjustment O L ED screen is lit, each R, G, B register value of 254 gray scale (i.e. the gray scale value is 254 frames) in the frame after the 2 nd adjustment O L ED screen is lit, each R, G, B register value of 253 gray scale (i.e. the gray scale value is 253 frames) in the frame after the 3 rd adjustment O L ED screen is lit, and so on, each R, G, B register value of 0 gray scale (i.e. the gray scale value is 0 frames) in the frame after the 256 th adjustment O L ED screen is lit until all the gray scale adjustments to be adjusted are completed.
S7, according to formula reg ═ K ═ L/255)γFitting by least square method to obtain coefficients Kr, Kg, Kb and gamma of R, G, Br、γg、γbAnd storing the fitted coefficients into a database (which may be a data set).
In this embodiment, the non-initial adjustment step is performed according to the following steps:
and the SS1 adjusts each R, G, B register value of the 255 gray scale in the image of the O L ED screen after the first adjustment based on a fast convergence search algorithm so as to adjust the 255 gray scale to the target brightness L v and the target color coordinate (x, y) in the current state, wherein the target brightness L v and the target color coordinate (x, y) at the moment are respectively corresponding to the target brightness L v and the target color coordinate (x, y) in the first adjustment.
SS2, substituting the register values of 255 grayscales R, G, B adjusted in the step SS1 into the formula reg ═ K (L/255)γThe coefficient K is calculated and a matching set of coefficients is searched from the above mentioned database (which may be a data set).
SS3, coefficient obtained from SS2 and formula reg ═ K (L/255)γThe gamma register value of the next gray scale R, G, B to be tested is calculated.
And SS4, detecting the current L v brightness and color coordinates (x, y) of the next gray scale to be detected.
And the SS5, which judges whether the current L v brightness and color coordinate (x, y) of the next gray scale to be detected meet the target L v brightness and target color coordinate (x, y), if not, the rapid adjustment is carried out, if yes, the step SS4 is repeatedly executed until all gray scales to be detected are detected, wherein, how to judge whether the current L v brightness and color coordinate (x, y) meet the target L v brightness and target color coordinate (x, y) is the prior art, and the description is omitted here.
SS6, according to formula reg ═ K ═ L/255)γFitting by least square method to obtain coefficients Kr, Kg, Kb and gamma of R, G, Br、γg、γbAnd comparing the fitted coefficient with data in the database, if an approximate (same or similar) coefficient exists, not storing the coefficient, otherwise, storing the obtained coefficient in the database.
According to the invention, the gamma register value of R, G, B is associated with the brightness gamma curve in a curve fitting manner to obtain a reasonable gamma register curve, so that the register values of all gray scales to be adjusted can be conveniently and rapidly calculated, and rapid search and adjustment can be carried out in a small range; the fitting curve of the gamma register of R, G, B obtained by historical debugging can be recorded for data reference in later-stage debugging; according to the gamma register fitting curve of R, G, B obtained by historical debugging, the coefficient can be quickly matched and the register value of each gray scale currently debugged can be calculated.
The above embodiments are merely illustrative of the technical ideas and features of the present invention, and the purpose thereof is to enable those skilled in the art to understand the contents of the present invention and implement the present invention, and not to limit the protection scope of the present invention. All equivalent changes and modifications made according to the spirit of the present invention should be covered within the protection scope of the present invention.

Claims (2)

1. A method for quickly adjusting gray scale gamma of an O L ED screen is characterized by comprising a first adjusting step and a non-first adjusting step;
wherein the first adjusting step operates according to the following steps:
s1, adjusting R, G, B register initial values of 255 gray scales in an O L ED screen lightened picture based on a fast convergence search algorithm, and writing the R, G, B register initial values into a gamma register to adjust the 255 gray scales to a target brightness L v and a target color coordinate (x, y);
s2, reading the R, G, B register initial value, and according to the formula reg K (L/255)γCalculating R, G, B register values of the next gray scale to be adjusted, wherein K is R, G, B register initial value of 255 gray scales, L is the gray scale value to be adjusted, and gamma is gamma coefficient;
s3, writing the R, G, B register values of the next gray scale to be adjusted obtained in the S2 into the gamma register, so as to adjust the next gray scale to be adjusted to the target brightness L v and the target color coordinates (x, y);
s4, obtaining formula reg-K (L/255) by least square fitting according to each R, G, B register value of the adjusted gray scale in the step S3γA medium gamma value;
s5, repeating the steps S3 to S4 until all the gray scales to be adjusted are adjusted;
s6, according to formula reg ═ K ═ L/255)γFitting by least square method to obtain coefficients Kr, Kg, Kb and gamma of each R, G, Br、γg、γbAnd fitting the obtained coefficients Kr, Kg, Kb and gammar、γg、γbStored in a database or data set.
2. The method for rapidly adjusting gray scales gamma of an O L ED screen according to claim 1, wherein:
the non-initial adjustment step operates according to the following steps:
SS1, adjusting each R, G, B register value of 255 gray scales in the picture of the O L ED screen after the first adjustment based on a fast convergence search algorithm, so as to adjust the 255 gray scales to the target brightness L v and the target color coordinates (x, y) in the current state;
SS2, substituting the register values of 255 grayscales R, G, B adjusted in the step SS1 into the formula reg ═ K (L/255)γCalculating a coefficient K, and searching a matched group of coefficients from a database or a data set;
SS3, coefficient obtained from SS2 and formula reg ═ K (L/255)γCalculating the gamma register value of the next gray scale R, G, B to be measured;
SS4, detecting the brightness and color coordinates (x, y) of the current L v of the next gray scale to be detected;
SS5, judging whether the current L v brightness and color coordinate (x, y) of the next gray scale to be detected meet the target L v brightness and target color coordinate (x, y), if not, quickly adjusting, if so, repeatedly executing SS4 until all the gray scales to be detected are detected;
SS6, according to formula reg ═ K ═ L/255)γFitting by least square method to obtain coefficients Kr, Kg, Kb and gamma of R, G, Br、γg、γbAnd comparing the fitted coefficient with data in a database or a data set, if the same or similar coefficient exists, not storing the coefficient, otherwise, storing the obtained coefficient in the database or the data set.
CN201811305869.1A 2018-11-05 2018-11-05 Method for quickly adjusting gray scale gamma of O L ED screen Active CN109584792B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811305869.1A CN109584792B (en) 2018-11-05 2018-11-05 Method for quickly adjusting gray scale gamma of O L ED screen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811305869.1A CN109584792B (en) 2018-11-05 2018-11-05 Method for quickly adjusting gray scale gamma of O L ED screen

Publications (2)

Publication Number Publication Date
CN109584792A CN109584792A (en) 2019-04-05
CN109584792B true CN109584792B (en) 2020-07-28

Family

ID=65921507

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811305869.1A Active CN109584792B (en) 2018-11-05 2018-11-05 Method for quickly adjusting gray scale gamma of O L ED screen

Country Status (1)

Country Link
CN (1) CN109584792B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110310596B (en) * 2019-06-17 2021-03-12 武汉精立电子技术有限公司 GAMMA (GAMMA-GAMMA) adjustment initial value prediction method and system of OLED module
CN110517634B (en) * 2019-08-28 2021-01-22 霸州市云谷电子科技有限公司 Gamma debugging method, gamma debugging system and display device
CN110459170B (en) * 2019-10-11 2020-04-10 武汉精立电子技术有限公司 Module Gamma correction method, terminal equipment and computer readable medium
CN111524484B (en) * 2020-04-30 2022-08-09 苏州佳智彩光电科技有限公司 Rapid Gamma adjustment method and one-time burning OTP system
CN111551348B (en) * 2020-05-08 2022-03-25 昆山国显光电有限公司 Gamma debugging method and device
CN114170960B (en) * 2021-12-07 2023-10-03 南京国兆光电科技有限公司 Custom Gamma correction method for silicon-based OLED micro-display screen

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101105916A (en) * 2007-08-10 2008-01-16 东莞黄江达裕科技电子厂 GAMMA curve regulation method and device
KR100815755B1 (en) * 2006-11-09 2008-03-20 삼성에스디아이 주식회사 Gamma correction device and organic light emitting display using thereof
CN104008736A (en) * 2013-02-26 2014-08-27 合肥京东方光电科技有限公司 Apparatus for automatically adjusting gamma curve of LCD, and optical debugging apparatus
CN106297664A (en) * 2016-09-28 2017-01-04 武汉精测电子技术股份有限公司 OLED module Gamma adjusting process for color sensitivity
CN106328070A (en) * 2016-09-28 2017-01-11 武汉精测电子技术股份有限公司 OLED module Gamma adjustment and calibration method and device
CN107507562A (en) * 2017-08-29 2017-12-22 深圳市佳彩光电科技有限公司 OLED GTG gamma methods of adjustment based on fast search algorithm
CN108665849A (en) * 2018-05-03 2018-10-16 武汉精测电子集团股份有限公司 A kind of method and device adjusted based on multigroup gamma and power supply dynamic adjusts

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100815755B1 (en) * 2006-11-09 2008-03-20 삼성에스디아이 주식회사 Gamma correction device and organic light emitting display using thereof
CN101105916A (en) * 2007-08-10 2008-01-16 东莞黄江达裕科技电子厂 GAMMA curve regulation method and device
CN104008736A (en) * 2013-02-26 2014-08-27 合肥京东方光电科技有限公司 Apparatus for automatically adjusting gamma curve of LCD, and optical debugging apparatus
CN106297664A (en) * 2016-09-28 2017-01-04 武汉精测电子技术股份有限公司 OLED module Gamma adjusting process for color sensitivity
CN106328070A (en) * 2016-09-28 2017-01-11 武汉精测电子技术股份有限公司 OLED module Gamma adjustment and calibration method and device
CN107507562A (en) * 2017-08-29 2017-12-22 深圳市佳彩光电科技有限公司 OLED GTG gamma methods of adjustment based on fast search algorithm
CN108665849A (en) * 2018-05-03 2018-10-16 武汉精测电子集团股份有限公司 A kind of method and device adjusted based on multigroup gamma and power supply dynamic adjusts

Also Published As

Publication number Publication date
CN109584792A (en) 2019-04-05

Similar Documents

Publication Publication Date Title
CN109584792B (en) Method for quickly adjusting gray scale gamma of O L ED screen
US10460701B2 (en) Display mura correction method, apparatus, and system
US10971098B2 (en) Method and device for adjusting gray scale of display panel
US10535294B2 (en) OLED display system and method
WO2021190158A1 (en) Adjusting apparatus, method for adjusting gamma voltage and white balance of display screen, and medium
WO2020093685A1 (en) Compensation method and compensation device used for display screen, and display device
CN105096829A (en) Ghost shadow elimination method and device and displayer
KR20190141735A (en) Display method of mura phenomenon compensation and display panel
KR101738105B1 (en) Image Processing Device, Image Processing Method and Flat Panel Display
CN107872662A (en) Display device
WO2019090794A1 (en) Gamma correction system and correction method for same
TWI413101B (en) Control method for improving the luminous uniformity and related luminosity calibrating controller and display device
CN104809974A (en) Automatic gamma and white balance correction method and device for display device
WO2018045676A1 (en) Method and system for adjusting and calculating brightness and chrominance of display panel
CN105336307A (en) Method and system for correcting gamma curve of display based on color temperature
CN103926714A (en) Gamma correction system of display device and correction method
CN109410839B (en) Correction optimization method and device for display screen, electronic equipment and storage medium
CN108376532A (en) A kind of luminance compensation method and device of display device
CN112599088B (en) Screen light leakage and ambient light detection method, chip, terminal and storage medium
CN109308874B (en) Display screen brightness adjusting method and device
TW201501115A (en) Correcting system and correcting method for display device
CN111524484B (en) Rapid Gamma adjustment method and one-time burning OTP system
US11217188B2 (en) Method for displaying image on dual-screen display panel and related apparatus
CN110767164A (en) Gamma correction method for cubic spline curve fitting
CN103151004B (en) Over-excitation driving adjustment method and system

Legal Events

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