CN110675802B - Brightness compensation method and device - Google Patents

Brightness compensation method and device Download PDF

Info

Publication number
CN110675802B
CN110675802B CN201911113167.8A CN201911113167A CN110675802B CN 110675802 B CN110675802 B CN 110675802B CN 201911113167 A CN201911113167 A CN 201911113167A CN 110675802 B CN110675802 B CN 110675802B
Authority
CN
China
Prior art keywords
pixels
row
column
same
current
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
CN201911113167.8A
Other languages
Chinese (zh)
Other versions
CN110675802A (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.)
Vtron Group Co Ltd
Original Assignee
Vtron Group 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 Vtron Group Co Ltd filed Critical Vtron Group Co Ltd
Priority to CN201911113167.8A priority Critical patent/CN110675802B/en
Publication of CN110675802A publication Critical patent/CN110675802A/en
Application granted granted Critical
Publication of CN110675802B publication Critical patent/CN110675802B/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/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/0233Improving the luminance or brightness uniformity across the screen

Landscapes

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

Abstract

The invention discloses a brightness compensation method and a device, which are used for sequentially comparing two adjacent row pixels of a current row in image data to obtain a comparison result of each row pixel and simultaneously recording the number of continuous same row pixels; sequentially comparing the current row in the image data with two pixels in the same column of the adjacent previous row to obtain a comparison result of each pixel in the column, and simultaneously recording the number of the pixels in the same continuous column; according to the number of the continuous same row pixels and the number of the column pixels and the comparison result of each row pixel and each column pixel, the compensation coefficient is adaptively adjusted, the problem that the gray scale inversion is generated in a 256 gray scale image due to the fact that the brightness compensation is performed by adopting a fixed compensation coefficient in the prior art is solved, and the brightness compensation effect is further improved.

Description

Brightness compensation method and device
Technical Field
The invention relates to the technical field of image mosaic display, in particular to a brightness compensation method and a device.
Background
In the field of image splicing display, rear-projection large screen splicing is a large screen display system consisting of a plurality of small screens and a plurality of projectors. For displaying one or more pictures in the form of windows on a large screen. Because projection display has a cosine fourth power law, incident light parallel to the optical axis of a lens is gathered at the central part of a picture to be imaged, the illumination of the projection display is assumed to be I0, oblique light rays which are not parallel to the optical axis are incident at an arbitrary angle theta with the optical axis, and the illumination of an image plane at the moment is I theta, and the relation is as follows: i θ is I0 cos4 θ, i.e., the brightness of the oblique ray image is proportional to the fourth power of the cosine of this oblique angle. Therefore, the image is darker toward the edge than the center of the screen. Especially with wide-angle lenses or large-aperture lenses, the influence of edge dimming is greater.
In order to solve the problem of dark edges and dark corners of a screen, a brightness compensation method is generally adopted at present, three groups of compensation coefficients with the same resolution as a display picture are obtained through calculation, and the middle part of each compensation coefficient is smaller and gradually increases towards the periphery. The three sets of compensation data correspond to R, G and B three primary colors. The three groups of compensation coefficients are burned into hardware, and the compensation coefficients and the corresponding primary colors are multiplied by the hardware (usually FPGA) and then output to a projector for display. Due to the characteristic that the compensation coefficient is small in the middle and large in the periphery, the data output to the projector after compensation is also small in the middle and large in the periphery, and the influence of dark corners at dark edges caused by the cosine fourth power law is just counteracted, so that the brightness displayed on a screen is uniform.
The brightness compensation method has a good compensation effect on a white screen, but when an output image is 256 gray scales, a gray scale inversion phenomenon is generated due to the fact that a 256 gray scale change gradient and a compensation gradient are opposite and hardware calculation accuracy is caused, particularly, an obvious contour line is displayed on the screen, and the watching experience of a user is reduced.
Disclosure of Invention
The invention provides a brightness compensation method and a brightness compensation device, which can solve the problem of gray scale inversion caused by the fact that a 256 gray scale change gradient is opposite to a compensation gradient and hardware calculation precision in the prior art.
In order to achieve the purpose, the invention provides the following technical scheme:
a method of brightness compensation, comprising:
receiving image data and a compensation coefficient corresponding to the image data;
sequentially comparing two adjacent row pixels of a current row in the image data to obtain a comparison result of each row pixel, and simultaneously recording the number of the pixels of the same continuous row; sequentially comparing the current row in the image data with two adjacent pixels in the same column of the previous row to obtain a comparison result of each pixel in the column, and simultaneously recording the number of the pixels in the same continuous column;
judging whether the number of the continuous same-row pixels in the current row reaches a first preset threshold or whether the number of the continuous same-column pixels reaches a second preset threshold;
if the number of the continuous same row pixels in the current row reaches a first preset threshold value or the number of the continuous same column pixels reaches a second preset threshold value, acquiring a compensation coefficient of the current row from a compensation coefficient corresponding to the image data to serve as a determined compensation coefficient;
if the number of the continuous same-row pixels in the current row is judged not to reach a first preset threshold value and the number of the continuous same-column pixels does not reach a second preset threshold value, judging whether the comparison result of the current-column pixels is the same-column pixels, if so, taking the compensation coefficient of the same previous-row column pixels as the determined compensation coefficient of the current-column pixels, if not, judging whether the comparison result of the row pixels of the current-column pixels is the same-row pixels, if so, taking the compensation coefficient of the same previous-row pixels as the determined compensation coefficient of the current-column pixels, and if not, obtaining the compensation coefficient of the current-column pixels from the compensation coefficients corresponding to the image data as the determined compensation coefficient;
and multiplying the image data by the determined compensation coefficient to finish the brightness compensation.
Optionally, the number of pixels in the same continuous row is recorded, including;
and when the comparison results of the two adjacent rows of pixels are the same, adding 1 to the recorded number, when the comparison results of the two adjacent rows of pixels are different, clearing the recorded number, and taking the number obtained when the comparison of all the rows of pixels of the current row is completed as the number of the pixels of the continuous same row.
Optionally, the number of pixels in the same continuous column is recorded, including;
and when the comparison results of the two column pixels in the same column are the same, adding 1 to the recorded number, when the comparison results of the two column pixels in the same column are different, clearing the recorded number, and taking the number obtained when the comparison of all the column pixels in the current row is completed as the number of the continuous same column pixels.
Optionally, the first preset threshold is greater than the horizontal resolution of the image data divided by 256.
Optionally, the second preset threshold is greater than the vertical resolution of the image data divided by 256.
An illumination compensation apparatus comprising:
a receiving unit configured to receive image data and a compensation coefficient corresponding to the image data;
the first comparison unit is used for sequentially comparing two adjacent row pixels of a current row in the image data to obtain a comparison result of each row pixel and simultaneously recording the number of the pixels of the same continuous row;
the second comparison unit is used for sequentially comparing the current row in the image data with two pixels in the same column of the adjacent previous row to obtain a comparison result of each pixel in the column, and simultaneously recording the number of the pixels in the same continuous column;
the coefficient generating unit is used for judging whether the number of the continuous same-row pixels in the current row reaches a first preset threshold or whether the number of the continuous same-column pixels reaches a second preset threshold;
if the number of the continuous same row pixels in the current row reaches a first preset threshold value or the number of the continuous same column pixels reaches a second preset threshold value, acquiring a compensation coefficient of the current row from a compensation coefficient corresponding to the image data to serve as a determined compensation coefficient;
if the number of the continuous same-row pixels in the current row is judged not to reach a first preset threshold value and the number of the continuous same-column pixels does not reach a second preset threshold value, judging whether the comparison result of the current-column pixels is the same-column pixels, if so, taking the compensation coefficient of the same previous-row column pixels as the determined compensation coefficient of the current-column pixels, if not, judging whether the comparison result of the row pixels of the current-column pixels is the same-row pixels, if so, taking the compensation coefficient of the same previous-row pixels as the determined compensation coefficient of the current-column pixels, and if not, obtaining the compensation coefficient of the current-column pixels from the compensation coefficients corresponding to the image data as the determined compensation coefficient;
and the compensation unit is used for multiplying the image data by the determined compensation coefficient to finish brightness compensation.
Optionally, the first comparing unit includes;
and the first counting unit is used for adding 1 to the recorded number value when the comparison results of the two adjacent rows of pixels are the same, clearing the recorded number value when the comparison results of the two adjacent rows of pixels are different, and taking the number value obtained when the comparison of all the rows of pixels of the current row is finished as the number of the pixels of the continuous same row.
Optionally, the second comparing unit includes;
and the second counting unit is used for adding 1 to the recorded number value when the comparison results of the two column pixels in the same column are the same, clearing the recorded number value when the comparison results of the two column pixels in the same column are different, and taking the number value obtained when the comparison of all the column pixels in the current row is completed as the number of the continuous same column pixels.
Optionally, the first preset threshold is greater than the horizontal resolution of the image data divided by 256.
Optionally, the second preset threshold is greater than the vertical resolution of the image data divided by 256.
According to the technical scheme, the invention discloses a brightness compensation method and a device, two adjacent line pixels of a current line in image data are sequentially compared to obtain a comparison result of each line pixel, and the number of the continuous same line pixels is recorded at the same time; sequentially comparing the current row in the image data with two pixels in the same column of the adjacent previous row to obtain a comparison result of each pixel in the column, and simultaneously recording the number of the pixels in the same continuous column; according to the number of the continuous same row pixels and the number of the column pixels and the comparison result of each row pixel and each column pixel, the compensation coefficient is adaptively adjusted, the problem that the gray scale inversion is generated in a 256 gray scale image due to the fact that the brightness compensation is performed by adopting a fixed compensation coefficient in the prior art is solved, and the brightness compensation effect is further improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flowchart illustrating a brightness compensation method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a luminance compensation method according to an embodiment of the present invention in a specific application process;
fig. 3 is a schematic diagram of a luminance compensation apparatus according to an embodiment of the disclosure.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It is known in the background art that the currently adopted brightness compensation method has a good compensation effect on a white screen, but when an output image is 256 gray scales, a phenomenon of gray scale inversion occurs due to the fact that a change gradient and a compensation gradient of the 256 gray scales are opposite and hardware calculation accuracy is caused, particularly, an obvious contour line is displayed on a screen, and viewing experience of a user is reduced.
In view of the above, the present invention provides a brightness compensation method and device, which can solve the problem in the prior art that the gray scale inversion occurs due to the inverse change gradient and compensation gradient of the 256 gray scales and the hardware calculation accuracy.
As shown in fig. 1, an embodiment of the present invention discloses a brightness compensation method, including the following steps:
s101, receiving image data and a compensation coefficient corresponding to the image data.
It should be noted that the image data includes three primary colors of RGB, which correspond to three sets of compensation coefficients. Since each primary color is processed in the same manner, a primary color processing method is described herein, the size of the compensation coefficient is consistent with the input image data, for example, the input image has 1920 × 1080 resolution, then there are 1920 × 1080 compensation coefficients, which correspond to one another, and the compensation coefficients and the image data are received synchronously.
S102, sequentially comparing two adjacent row pixels of a current row in the image data to obtain a comparison result of each row pixel, and simultaneously recording the number of the pixels of the same continuous row; and sequentially comparing the current row in the image data with two adjacent pixels in the same column in the previous row to obtain a comparison result of each pixel in the column, and simultaneously recording the number of the pixels in the same continuous column.
It should be noted that, a register may be used as a buffer carrier to store received image data, and then a row pixel comparator sequentially compares two adjacent row pixels of a current row in the image data to obtain a comparison result of each row pixel, where the specific comparison result is that the current row pixel is the same as or different from the adjacent row pixel, and meanwhile, a row counter may be used to record the number of consecutive same row pixels.
Specifically, taking 8-bit color depth as an example, the value range of each primary color is 0-255, the comparison of two adjacent rows of pixels is to compare the values of the primary colors, if the values are the same, the comparison result is that the two rows of pixels are the same, the count of the row calculator is increased by 1, if the values are different, the comparison result is that the two rows of pixels are different, and the technology of the row calculator is cleared.
Similarly, the current row and the previous row of pixels may be buffered, and then the two adjacent row pixels in the current row in the image data may be sequentially compared by the column pixel comparator to obtain a comparison result of each row of pixels, the specific comparison result may be divided into two types, i.e., the current column of pixels is the same as or different from the corresponding column of pixels in the previous row in the same column, and meanwhile, a column counter may be used to record the number of the consecutive same column of pixels.
Similarly, a comparison of two columns of pixels for the same column is also a comparison of the primary color values.
Optionally, the number of pixels in the same continuous row is recorded, including;
and when the comparison results of the two adjacent rows of pixels are the same, adding 1 to the recorded number, when the comparison results of the two adjacent rows of pixels are different, clearing the recorded number, and taking the number obtained when the comparison of all the rows of pixels of the current row is completed as the number of the pixels of the continuous same row.
Optionally, the number of pixels in the same continuous column is recorded, including;
and when the comparison results of the two column pixels in the same column are the same, adding 1 to the recorded number, when the comparison results of the two column pixels in the same column are different, clearing the recorded number, and taking the number obtained when the comparison of all the column pixels in the current row is completed as the number of the continuous same column pixels.
S103, judging whether the number of the continuous same row pixels in the current row reaches a first preset threshold value or whether the number of the continuous same column pixels reaches a second preset threshold value.
Optionally, the first preset threshold is greater than the horizontal resolution of the image data divided by 256.
Optionally, the second preset threshold is greater than the vertical resolution of the image data divided by 256.
It should be noted that, the row counter and the column counter both set corresponding thresholds, as a first preset threshold of the number of the consecutive same row pixels and a second preset threshold of the number of the consecutive same column pixels, which are recorded respectively, wherein the setting of the threshold of the row counter generally needs to be greater than the image horizontal resolution divided by 256, and the setting of the threshold of the column counter generally needs to be greater than the image vertical resolution divided by 256, that is, greater than the number of consecutive numbers of each gray stage. For 1920 × 1080 resolution, for example, 1920/256 is 7.5, i.e., the setting of the row counter threshold needs to be greater than 8, 1080/256 is 4.2, i.e., the setting of the column counter threshold needs to be greater than 5. The threshold ensures that the compensation remains effectively graduated in a solid color or in a large share of the same color.
Since the first row has no cache value of the previous row in the cache, the column comparison results are unified to be different.
In the first column, the row comparison results are uniformly different because there is no previous pixel in the register buffer.
And S104, if the number of the continuous same-row pixels in the current row reaches a first preset threshold value or the number of the continuous same-column pixels reaches a second preset threshold value, acquiring a compensation coefficient of the current row from the compensation coefficient corresponding to the image data to serve as a determined compensation coefficient.
Specifically, a compensation coefficient may be generated by a coefficient generation module according to the number of consecutive identical row pixels and column pixels and the comparison result of each row pixel and column pixel. In step S104, when it is determined that the number of pixels in the consecutive same rows reaches a first preset threshold or the number of pixels in the consecutive same columns reaches a second preset threshold, a compensation coefficient of a current row is obtained from the compensation coefficients corresponding to the image data as a way of determining the compensation coefficient, so as to avoid a problem that the compensation coefficient is not updated on the image in a pure color. In the embodiment of the invention, the gray scale inversion is prevented by using the compensation coefficients of the pixels in the same row and the pixels in the same column, but the compensation coefficients on the pure color image are always the same, which affects the brightness compensation effect, so that the threshold value is set, and the compensation coefficients can be updated normally.
And S105, if the number of the continuous same row pixels in the current row does not reach a first preset threshold value and the number of the continuous same column pixels does not reach a second preset threshold value, judging whether the comparison result of the current column pixels is the same column pixels.
And S106, if yes, taking the compensation coefficient of the column pixel of the previous row which is the same as the compensation coefficient as the determined compensation coefficient of the current column pixel.
And S107, if not, judging whether the comparison result of the row pixels of the current row pixels is the same row pixels.
And S108, if yes, taking the compensation coefficient of the pixel on the previous row which is the same as the compensation coefficient as the determined compensation coefficient of the pixel on the current column.
And S109, if not, acquiring the compensation coefficient of the current row of pixels from the compensation coefficient corresponding to the image data as the determined compensation coefficient.
It should be noted that, when it is determined that the number of the pixels in the consecutive same row in the current row does not reach the first preset threshold and the number of the pixels in the consecutive same row does not reach the second preset threshold, the method of using the compensation coefficients of the pixels in the same row and the pixels in the same row is adopted to prevent the occurrence of gray scale inversion.
Specifically, the process of S105 to S109 may also be implemented by the coefficient generation module, where the compensation coefficients of the column pixels in the previous row may be cached in a coefficient caching module when the column pixels in the previous row are used as the current row, and the compensation coefficients of the column pixels in the previous row are replaced after the compensation coefficients of the column pixels in the current row are obtained each time. Since the pixels in a row are called row pixels when the adjacent pixels in the same row are compared and are called column pixels when the pixels in the same column are compared, the compensation coefficient of the column pixel in the current row is the compensation coefficient of the row pixel in the current row.
And S110, multiplying the image data by the determined compensation coefficient to finish brightness compensation.
It should be noted that the determined compensation coefficient generated by the final coefficient generation module and the received image data may be input into a compensation module together for multiplication, so as to complete the brightness compensation.
For further understanding, fig. 2 discloses a flow chart of the brightness compensation method in a specific application process according to an embodiment of the present invention.
After receiving the image data, the image data is input into three modules: a. the compensation coefficient is input into a register for caching, and is used for comparing two adjacent pixels in the same line, the compared result is used for a coefficient generation module to obtain and generate a corresponding compensation coefficient, and a line counter is used for recording the number of the pixels in the same continuous line; b. the compensation coefficient is input into a two-row cache module and used for comparing two pixels of adjacent rows, the compared result is used for acquiring and generating a corresponding compensation coefficient by a coefficient generation module, and a column counter is used for recording the number of continuous same columns of pixels; c. and inputting the data to a compensation module for multiplying the data by a compensation coefficient to complete compensation.
In the brightness compensation method disclosed in this embodiment, two adjacent line pixels of a current line in image data are sequentially compared to obtain a comparison result of each line pixel, and the number of pixels in the same continuous line is recorded at the same time; sequentially comparing the current row in the image data with two pixels in the same column of the adjacent previous row to obtain a comparison result of each pixel in the column, and simultaneously recording the number of the pixels in the same continuous column; according to the number of the continuous same row pixels and the number of the column pixels and the comparison result of each row pixel and each column pixel, the compensation coefficient is adaptively adjusted, the problem that the gray scale inversion is generated in a 256 gray scale image due to the fact that the brightness compensation is performed by adopting a fixed compensation coefficient in the prior art is solved, and the brightness compensation effect is further improved.
Based on the brightness compensation method disclosed in the above embodiment of the present invention, fig. 3 specifically discloses a brightness compensation device applying the brightness compensation method.
As shown in fig. 3, another embodiment of the present invention discloses a luminance compensation apparatus, including:
a receiving unit 301 configured to receive image data and a compensation coefficient corresponding to the image data;
a first comparing unit 302, configured to compare two adjacent line pixels in a current line in the image data in sequence, obtain a comparison result of each line pixel, and record the number of pixels in the same continuous line;
a second comparing unit 303, configured to compare two pixels in the same column in the current row and the adjacent previous row in the image data in sequence, obtain a comparison result of each pixel in the column, and record the number of pixels in the same continuous column at the same time;
a coefficient generating unit 304, configured to determine whether the number of the consecutive same-row pixels in the current row reaches a first preset threshold or whether the number of the consecutive same-column pixels reaches a second preset threshold;
if the number of the continuous same row pixels in the current row reaches a first preset threshold value or the number of the continuous same column pixels reaches a second preset threshold value, acquiring a compensation coefficient of the current row from a compensation coefficient corresponding to the image data to serve as a determined compensation coefficient;
if the number of the continuous same-row pixels in the current row is judged not to reach a first preset threshold value and the number of the continuous same-column pixels does not reach a second preset threshold value, judging whether the comparison result of the current-column pixels is the same-column pixels, if so, taking the compensation coefficient of the same previous-row column pixels as the determined compensation coefficient of the current-column pixels, if not, judging whether the comparison result of the row pixels of the current-column pixels is the same-row pixels, if so, taking the compensation coefficient of the same previous-row pixels as the determined compensation coefficient of the current-column pixels, and if not, obtaining the compensation coefficient of the current-column pixels from the compensation coefficients corresponding to the image data as the determined compensation coefficient;
a compensation unit 305, configured to multiply the image data by the determined compensation coefficient, so as to complete brightness compensation.
Optionally, the first comparing unit 302 includes;
and the first counting unit is used for adding 1 to the recorded number value when the comparison results of the two adjacent rows of pixels are the same, clearing the recorded number value when the comparison results of the two adjacent rows of pixels are different, and taking the number value obtained when the comparison of all the rows of pixels of the current row is finished as the number of the pixels of the continuous same row.
Optionally, the second comparing unit 303 includes;
and the second counting unit is used for adding 1 to the recorded number value when the comparison results of the two column pixels in the same column are the same, clearing the recorded number value when the comparison results of the two column pixels in the same column are different, and taking the number value obtained when the comparison of all the column pixels in the current row is completed as the number of the continuous same column pixels.
Optionally, the first preset threshold is greater than the horizontal resolution of the image data divided by 256.
Optionally, the second preset threshold is greater than the vertical resolution of the image data divided by 256.
For the specific working processes of the receiving unit 301, the first comparing unit 302, the second comparing unit 303, the coefficient generating unit 304 and the compensating unit 305 in the brightness compensating device disclosed in the above embodiment of the present invention, reference may be made to the corresponding contents in the brightness compensating method disclosed in the above embodiment of the present invention, and details are not repeated here.
The brightness compensation device disclosed in this embodiment compares two adjacent line pixels of a current line in image data in sequence to obtain a comparison result of each line pixel, and records the number of pixels in the same continuous line at the same time; sequentially comparing the current row in the image data with two pixels in the same column of the adjacent previous row to obtain a comparison result of each pixel in the column, and simultaneously recording the number of the pixels in the same continuous column; according to the number of the continuous same row pixels and the number of the column pixels and the comparison result of each row pixel and each column pixel, the compensation coefficient is adaptively adjusted, the problem that the gray scale inversion is generated in a 256 gray scale image due to the fact that the brightness compensation is performed by adopting a fixed compensation coefficient in the prior art is solved, and the brightness compensation effect is further improved.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method of luminance compensation, comprising:
receiving image data and a compensation coefficient corresponding to the image data;
sequentially comparing two adjacent row pixels of a current row in the image data to obtain a comparison result of each row pixel, and simultaneously recording the number of the pixels of the same continuous row; sequentially comparing the current row in the image data with two adjacent pixels in the same column of the previous row to obtain a comparison result of each pixel in the column, and simultaneously recording the number of the pixels in the same continuous column;
judging whether the number of the continuous same-row pixels in the current row reaches a first preset threshold or whether the number of the continuous same-column pixels reaches a second preset threshold;
if the number of the continuous same row pixels in the current row reaches a first preset threshold value or the number of the continuous same column pixels reaches a second preset threshold value, acquiring a compensation coefficient of the current row from a compensation coefficient corresponding to the image data to serve as a determined compensation coefficient;
if the number of the continuous same-row pixels in the current row is judged not to reach a first preset threshold value and the number of the continuous same-column pixels does not reach a second preset threshold value, judging whether the comparison result of the current-column pixels is the same-column pixels, if so, taking the compensation coefficient of the same previous-row column pixels as the determined compensation coefficient of the current-column pixels, if not, judging whether the comparison result of the row pixels of the current-column pixels is the same-row pixels, if so, taking the compensation coefficient of the same previous-row pixels as the determined compensation coefficient of the current-column pixels, and if not, obtaining the compensation coefficient of the current-column pixels from the compensation coefficients corresponding to the image data as the determined compensation coefficient;
and multiplying the image data by the determined compensation coefficient to finish the brightness compensation.
2. The luminance compensation method according to claim 1, wherein the recording of the number of consecutive identical rows of pixels comprises;
and when the comparison results of the two adjacent rows of pixels are the same, adding 1 to the recorded number, when the comparison results of the two adjacent rows of pixels are different, clearing the recorded number, and taking the number obtained when the comparison of all the rows of pixels of the current row is completed as the number of the pixels of the continuous same row.
3. The luminance compensation method according to claim 1, wherein the recording of the number of pixels of the consecutive same column comprises;
and when the comparison results of the two column pixels in the same column are the same, adding 1 to the recorded number, when the comparison results of the two column pixels in the same column are different, clearing the recorded number, and taking the number obtained when the comparison of all the column pixels in the current row is completed as the number of the continuous same column pixels.
4. The luminance compensation method according to claim 1, wherein the first preset threshold is greater than a horizontal resolution of the image data divided by 256.
5. The illumination compensation method of claim 1, wherein the second preset threshold is greater than the vertical resolution of the image data divided by 256.
6. An illumination compensation apparatus, comprising:
a receiving unit configured to receive image data and a compensation coefficient corresponding to the image data;
the first comparison unit is used for sequentially comparing two adjacent row pixels of a current row in the image data to obtain a comparison result of each row pixel and simultaneously recording the number of the pixels of the same continuous row;
the second comparison unit is used for sequentially comparing the current row in the image data with two pixels in the same column of the adjacent previous row to obtain a comparison result of each pixel in the column, and simultaneously recording the number of the pixels in the same continuous column;
the coefficient generating unit is used for judging whether the number of the continuous same-row pixels in the current row reaches a first preset threshold or whether the number of the continuous same-column pixels reaches a second preset threshold;
if the number of the continuous same row pixels in the current row reaches a first preset threshold value or the number of the continuous same column pixels reaches a second preset threshold value, acquiring a compensation coefficient of the current row from a compensation coefficient corresponding to the image data to serve as a determined compensation coefficient;
if the number of the continuous same-row pixels in the current row is judged not to reach a first preset threshold value and the number of the continuous same-column pixels does not reach a second preset threshold value, judging whether the comparison result of the current-column pixels is the same-column pixels, if so, taking the compensation coefficient of the same previous-row column pixels as the determined compensation coefficient of the current-column pixels, if not, judging whether the comparison result of the row pixels of the current-column pixels is the same-row pixels, if so, taking the compensation coefficient of the same previous-row pixels as the determined compensation coefficient of the current-column pixels, and if not, obtaining the compensation coefficient of the current-column pixels from the compensation coefficients corresponding to the image data as the determined compensation coefficient;
and the compensation unit is used for multiplying the image data by the determined compensation coefficient to finish brightness compensation.
7. The luminance compensation device according to claim 6, wherein the first comparison unit comprises;
and the first counting unit is used for adding 1 to the recorded number value when the comparison results of the two adjacent rows of pixels are the same, clearing the recorded number value when the comparison results of the two adjacent rows of pixels are different, and taking the number value obtained when the comparison of all the rows of pixels of the current row is finished as the number of the pixels of the continuous same row.
8. The luminance compensation device according to claim 6, wherein the second comparison unit comprises;
and the second counting unit is used for adding 1 to the recorded number value when the comparison results of the two column pixels in the same column are the same, clearing the recorded number value when the comparison results of the two column pixels in the same column are different, and taking the number value obtained when the comparison of all the column pixels in the current row is completed as the number of the continuous same column pixels.
9. The luminance compensation device of claim 6, wherein the first preset threshold is greater than a horizontal resolution of the image data divided by 256.
10. The illumination compensation device of claim 6, wherein the second preset threshold is larger than the vertical resolution of the image data divided by 256.
CN201911113167.8A 2019-11-14 2019-11-14 Brightness compensation method and device Active CN110675802B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911113167.8A CN110675802B (en) 2019-11-14 2019-11-14 Brightness compensation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911113167.8A CN110675802B (en) 2019-11-14 2019-11-14 Brightness compensation method and device

Publications (2)

Publication Number Publication Date
CN110675802A CN110675802A (en) 2020-01-10
CN110675802B true CN110675802B (en) 2021-03-09

Family

ID=69087310

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911113167.8A Active CN110675802B (en) 2019-11-14 2019-11-14 Brightness compensation method and device

Country Status (1)

Country Link
CN (1) CN110675802B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114360458B (en) * 2022-01-27 2023-02-07 京东方科技集团股份有限公司 Display data compensation method, circuit and display device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047865A (en) * 2006-03-28 2007-10-03 联詠科技股份有限公司 Image process device and method for selecting image color graded
CN101640038A (en) * 2009-08-26 2010-02-03 广东威创视讯科技股份有限公司 Display device colour luminance compensation method, device and system
CN102291554A (en) * 2011-08-31 2011-12-21 广东威创视讯科技股份有限公司 Uniformity regulating method for brightness and chrominance of screen
CN106652943A (en) * 2016-12-23 2017-05-10 惠科股份有限公司 Color offset compensation method for detecting abnormal picture, terminal, and display device
CN109147651A (en) * 2017-06-28 2019-01-04 西安诺瓦电子科技有限公司 Show cabinet, display screen and its control system, display screen screen configuration method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130134814A (en) * 2012-05-31 2013-12-10 삼성디스플레이 주식회사 Liquid crystal display device
CN103489405B (en) * 2013-09-30 2015-09-16 京东方科技集团股份有限公司 A kind of display compensation method, device and display bucking-out system
CN108735178A (en) * 2018-07-24 2018-11-02 武汉华星光电技术有限公司 A kind of compensation method and In-cell touch display panel

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047865A (en) * 2006-03-28 2007-10-03 联詠科技股份有限公司 Image process device and method for selecting image color graded
CN101640038A (en) * 2009-08-26 2010-02-03 广东威创视讯科技股份有限公司 Display device colour luminance compensation method, device and system
CN102291554A (en) * 2011-08-31 2011-12-21 广东威创视讯科技股份有限公司 Uniformity regulating method for brightness and chrominance of screen
CN106652943A (en) * 2016-12-23 2017-05-10 惠科股份有限公司 Color offset compensation method for detecting abnormal picture, terminal, and display device
CN109147651A (en) * 2017-06-28 2019-01-04 西安诺瓦电子科技有限公司 Show cabinet, display screen and its control system, display screen screen configuration method and device

Also Published As

Publication number Publication date
CN110675802A (en) 2020-01-10

Similar Documents

Publication Publication Date Title
CN107644410B (en) Image processing method, image processing apparatus, image processing system, and display apparatus
US8712183B2 (en) System and method for performing image correction
CN111916031B (en) Display method and display device
CN109068025B (en) Lens shadow correction method and system and electronic equipment
KR20190052195A (en) Method of compensating for non-uniformity of luminance of a display panel and display device employing the same
KR102542503B1 (en) Apparatus for testing a display panel and driving method thereof
JP2004534490A (en) Method and system for calculating a transformed image from a digital image
CN108364615B (en) Mura compensation method and Mura compensation system
EP2141655A2 (en) Color enhancement for graphic images
US9508281B2 (en) Apparatus and method for image analysis and image display
US10534397B2 (en) Display panel, display device and method for driving display panel
WO2019061654A1 (en) Driving method and system for liquid crystal display, and computer-readable medium
JP4176369B2 (en) Compensating digital images for optical falloff while minimizing changes in light balance
CN102859573A (en) Method and apparatus for adaptive main back-light blanking in liquid crystal displays
JP2010503896A (en) Masking visual defects
CN110675802B (en) Brightness compensation method and device
CN114359055B (en) Image splicing method and related device for multi-camera shooting screen body
CN114187880B (en) Image display method, image display device and display system
CN108320696A (en) Whole screen bearing calibration, correction system and the storage medium of LED display
CN112767891B (en) Mura compensation method, display panel and display device
CN117499616A (en) Control method, system, equipment and medium for camera module lens shading correction
US10540921B2 (en) Systems and methods for detection and/or correction of pixel luminosity and/or chrominance response variation in displays
US20240062696A1 (en) Demura method for display panel
US20230196522A1 (en) Plenoptic image tile organization for single image display or capture
CN115775541A (en) Backlight compensation method and device of display screen, chip and terminal

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