CN109710208B - Edge compensation method and storage device - Google Patents
Edge compensation method and storage device Download PDFInfo
- Publication number
- CN109710208B CN109710208B CN201811539962.9A CN201811539962A CN109710208B CN 109710208 B CN109710208 B CN 109710208B CN 201811539962 A CN201811539962 A CN 201811539962A CN 109710208 B CN109710208 B CN 109710208B
- Authority
- CN
- China
- Prior art keywords
- compensated
- brightness
- edge
- coordinates
- steps
- 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
Links
Images
Landscapes
- Image Processing (AREA)
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
Abstract
The present invention relates to the field of information processing technologies, and in particular, to an edge compensation method and a storage device. The edge compensation method comprises the following steps: step 1: calculating the coordinates of the edge pixels to be compensated; step 2: setting the edge brightness to be compensated according to the coordinates; and repeating the step 1 and the step 2 until the brightness of all edges to be compensated is set. By executing the steps, the jaggy phenomenon of AA hole edge position display can be compensated under the condition of using less hardware space, and a better display effect is obtained.
Description
Technical Field
The present invention relates to the field of information processing technologies, and in particular, to an edge compensation method and a storage device.
Background
Almost a cell-phone of modern society, and need the light source to reach the photoreceptor because of when shooing, if there is the foreign matter before the camera, the camera can't normally shoot, accounts for the ratio in order to increase the screen, adopts the bang screen that carries out U type recess cutting in the camera position at present. However, in the new generation of models, in order to further increase the screen occupation ratio, a camera is placed in a display screen light guide plate by punching. FIG. 1 is a schematic view of an AA hole full screen.
However, as shown in FIG. 2, the AA hole edge position display shows the jagging phenomenon, so the AA hole edge position display needs to be compensated to eliminate the jagging phenomenon.
Disclosure of Invention
Therefore, an edge compensation method is needed to solve the problem that the jagged edge positions of the AA hole full-area screen are obvious. The specific technical scheme is as follows:
an edge compensation method comprising the steps of: step 1: calculating the coordinates of the edge pixels to be compensated; and 2, step: setting the edge brightness to be compensated according to the coordinates; and repeating the step 1 and the step 2 until the brightness of all edges to be compensated is set.
Further, the step 1 further comprises the steps of: acquiring the circle center position (a, b) of a circle to be compensated, and substituting the a, b values into a circle formula: [ (x-a) ^2+ (y-b)^2]Let n be different values, calculate the edge position coordinates (x, y), and set the edge position brightness.
Further, the method also comprises the following steps: the step 2 further comprises the steps of: when n is g, the brightness is set to (g +1)/m of the original brightness; wherein m is the sum of the maximum value of the value of n plus 1.
Further, the method also comprises the following steps: n is 0-4 or 0-9.
In order to solve the technical problem, the storage device is further provided, and the specific technical scheme is as follows:
a storage device having stored therein a set of instructions for performing: step 1: calculating the coordinates of the edge pixels to be compensated; step 2: setting the edge brightness to be compensated according to the coordinates; and repeating the step 1 and the step 2 until the brightness of all edges to be compensated is set.
Further, the set of instructions is further for performing: the step 1 further comprises the steps of: acquiring the circle center position (a, b) of a circle to be compensated, and substituting the a, b values into a circle formula: [ (x-a)^2+(y-b)^2]Let n be different values, calculate the edge position coordinates (x, y), and set the edge position brightness.
Further, the set of instructions is further for performing: the step 2 further comprises the steps of: when n is g, the brightness is set to (g +1)/m of the original brightness; wherein m is the sum of the maximum value of the value of n plus 1.
Further, n is 0-4 or 0-9.
The invention has the beneficial effects that: through the steps of 1: calculating the coordinates of the edge pixels to be compensated; step 2: setting the edge brightness to be compensated according to the coordinates; and (3) repeating the step (1) and the step (2) until the brightness of all edges to be compensated is set, so that the sawtooth phenomenon of AA hole edge position display can be compensated under the condition of using less hardware space, and a better display effect is obtained.
Drawings
FIG. 1 is a schematic diagram of a AA hole full screen in the background art;
FIG. 2 is a schematic diagram showing the jagging phenomenon at the edge position of AA hole in the prior art;
FIG. 3 is a flow chart of an edge compensation method according to an embodiment;
FIG. 4 is a schematic representation of an embodiment of the AA hole edge jagged treatment;
fig. 5 is a block diagram of a storage device according to an embodiment.
Description of reference numerals:
500. a storage device.
Detailed Description
To explain technical contents, structural features, and objects and effects of the technical solutions in detail, the following detailed description is given with reference to the accompanying drawings in conjunction with the embodiments.
Referring to fig. 3 to 4, in the present embodiment, an edge compensation method may be applied to a storage device, which may be a smart phone, a tablet computer, a desktop computer, a notebook computer, or the like.
In this embodiment, a specific embodiment of an edge compensation method is as follows:
step S301: step 1: and calculating the coordinates of the edge pixels to be compensated.
Step S302: step 2: and setting the brightness of the edge to be compensated according to the coordinates.
Step S303: and repeating the step 1 and the step 2 until the brightness of all edges to be compensated is set.
Through the steps of 1: calculating the coordinates of the edge pixels to be compensated; step 2: setting the edge brightness to be compensated according to the coordinates; and (3) repeating the step (1) and the step (2) until the brightness of all edges to be compensated is set, so that the sawtooth phenomenon of AA hole edge position display can be compensated under the condition of using less hardware space, and a better display effect is obtained.
In this embodiment, the step 1 further includes the steps of:
obtaining the circle center positions (a, b) of the circle to be compensated,
substituting the a and b values into a circle formula: (x-a) 2+ (y-b) 2 ═ A + n ^ s, let n be different values, calculate the edge position coordinates (x, y), set the edge position brightness.
Where a is the square of the radius of AA hole, n is 0,1,2 …, the s value is adjustable, and in this embodiment n is 0 to 4.
Further, in this embodiment, the step 2 further includes the steps of: when n is g, the brightness is set to (g +1)/m of the original brightness; wherein m is the sum of the maximum value of the value of n plus 1. The following may be used:
when n is 0, the luminance is set to be the lowest, and is set to be 1/m of the original luminance, that is, the lower the value of n, the position of the mark is approximately close to the edge. For example, n is 1,2,3, 4; when m is 5 and n is 0, the brightness is 1/5 of the original brightness; when n is 2, the brightness is 2/5 of the original brightness, and so on.
In the embodiment, the value of n is 0 to 4 or 0 to 9, which is selected according to specific situations, and if the requirement on the compensation effect is high and the hardware space is sufficient, 0 to 9 is selected; if the requirement on the compensation effect is low, 0-4 is selected, which is beneficial to saving more hardware space.
In this embodiment, step S303 may be repeated step 1 and step 27 times to obtain the compensated panel display, as shown in fig. 4, and in other embodiments, the repeated steps may be set to be repeated for other times, as the case may be.
Referring to fig. 5, in this embodiment, a specific implementation of a storage device 500 is shown as follows:
a storage device 500 having stored therein a set of instructions for performing:
step 1: calculating the coordinates of the edge pixels to be compensated;
step 2: setting the edge brightness to be compensated according to the coordinates;
and repeating the step 1 and the step 2 until the brightness of all edges to be compensated is set.
Further, the set of instructions is further for performing:
the step 1 further comprises the steps of:
obtaining the circle center positions (a, b) of the circle to be compensated,
substituting the a and b values into a circle formula: [ (x-a) ^2+ (y-b)^2]Let n be different values, calculate the edge position coordinates (x, y), and set the edge position brightness.
Further, the set of instructions is further for performing:
the step 2 further comprises the steps of:
when n is g, the brightness is set to (g +1)/m of the original brightness;
wherein m is the sum of the maximum value of the value of n plus 1.
Further, n is 0-4 or 0-9.
The following steps are performed by an instruction set on the storage device 500: step 1: calculating the coordinates of the edge pixels to be compensated; step 2: setting the edge brightness to be compensated according to the coordinates; and (3) repeating the step (1) and the step (2) until the brightness of all edges to be compensated is set, so that the sawtooth phenomenon of AA hole edge position display can be compensated under the condition of using less hardware space, and a better display effect is obtained.
It should be noted that, although the above embodiments have been described herein, the invention is not limited thereto. Therefore, based on the innovative concepts of the present invention, the technical solutions of the present invention can be directly or indirectly applied to other related technical fields by making changes and modifications to the embodiments described herein, or by using equivalent structures or equivalent processes performed in the content of the present specification and the attached drawings, which are included in the scope of the present invention.
Claims (2)
1. An edge compensation method, comprising the steps of:
step 1: calculating the coordinates of the edge pixels to be compensated;
step 2: setting the edge brightness to be compensated according to the coordinates;
repeating the step 1 and the step 2 until the brightness of all edges to be compensated is set;
the step 1 further comprises the steps of:
acquiring the center positions (a, b) of the circle to be compensated,
substituting the a and b values into a circle formula: [ (x-a)^2+(y-b)^2]Let n be different values, calculate edge position coordinates (x, y), set the edge position brightness;
the step 2 further comprises the steps of:
when n is g, the brightness is set to (g +1)/m of the original brightness;
wherein m is the sum of the maximum value of the value of n plus 1;
wherein A is the square of the radius of AA hole, n is 0-4 or 0-9, s is an adjustable value, which satisfies the condition that (A + n × s) is the square of the radius of a circle formed by the coordinate pixels to be compensated, g is n, and the value of g is the same as n.
2. A storage device having a set of instructions stored therein, the set of instructions being operable to perform:
step 1: calculating the coordinates of the edge pixels to be compensated;
step 2: setting the edge brightness to be compensated according to the coordinates;
repeating the step 1 and the step 2 until the brightness of all edges to be compensated is set; the set of instructions is further for performing:
the step 1 further comprises the steps of:
obtaining the circle center positions (a, b) of the circle to be compensated,
substituting the a and b values into a circle formula: [ (x-a)^2+(y-b)^2]Let n be different values, calculate edge position coordinates (x, y), set the edge position brightness; the set of instructions is further for performing:
the step 2 further comprises the steps of:
when n is g, the brightness is set to (g +1)/m of the original brightness;
wherein m is the sum of the maximum value of the value of n plus 1;
wherein A is the square of the radius of AA hole, n is 0-4 or 0-9, s is an adjustable value, which satisfies the condition that (A + n × s) is the square of the radius of a circle formed by the coordinate pixels to be compensated, g is n, and the value of g is the same as n.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811539962.9A CN109710208B (en) | 2018-12-17 | 2018-12-17 | Edge compensation method and storage device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811539962.9A CN109710208B (en) | 2018-12-17 | 2018-12-17 | Edge compensation method and storage device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109710208A CN109710208A (en) | 2019-05-03 |
CN109710208B true CN109710208B (en) | 2022-05-24 |
Family
ID=66256689
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811539962.9A Active CN109710208B (en) | 2018-12-17 | 2018-12-17 | Edge compensation method and storage device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109710208B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110556070B (en) * | 2019-07-23 | 2023-04-07 | 福建华佳彩有限公司 | Compensation method for R angle in display area |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20080003626A (en) * | 2006-07-03 | 2008-01-08 | 삼성전자주식회사 | Apparatus and method for correcting edge |
CN107577078A (en) * | 2017-09-19 | 2018-01-12 | 厦门天马微电子有限公司 | A kind of display panel and display device |
CN108198534A (en) * | 2018-01-12 | 2018-06-22 | 京东方科技集团股份有限公司 | Display methods, display optimization device and display device |
CN108364568A (en) * | 2018-03-19 | 2018-08-03 | 京东方科技集团股份有限公司 | A kind of display panel, display device and color membrane substrates |
-
2018
- 2018-12-17 CN CN201811539962.9A patent/CN109710208B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20080003626A (en) * | 2006-07-03 | 2008-01-08 | 삼성전자주식회사 | Apparatus and method for correcting edge |
CN107577078A (en) * | 2017-09-19 | 2018-01-12 | 厦门天马微电子有限公司 | A kind of display panel and display device |
CN108198534A (en) * | 2018-01-12 | 2018-06-22 | 京东方科技集团股份有限公司 | Display methods, display optimization device and display device |
CN108364568A (en) * | 2018-03-19 | 2018-08-03 | 京东方科技集团股份有限公司 | A kind of display panel, display device and color membrane substrates |
Also Published As
Publication number | Publication date |
---|---|
CN109710208A (en) | 2019-05-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11302286B2 (en) | Picture obtaining method and apparatus and picture processing method and apparatus | |
CN105301810A (en) | Screen defect detecting method and screen defect detecting device | |
CN108628656A (en) | Interface adaptation method, device, computer equipment and storage medium on ios device | |
US11830224B2 (en) | Page displaying method and apparatus, electronic device and storage medium | |
WO2019101005A1 (en) | Pixel compensation method and apparatus, and terminal device | |
CN106412457A (en) | Image processing method and mobile terminal | |
CN109616080B (en) | Special-shaped screen contour compensation method and terminal | |
EP4310651A1 (en) | Screen capture method and apparatus, electronic device, and readable storage medium | |
CN114489608B (en) | Display screen icon control method and device, terminal equipment and storage medium | |
CN113240578B (en) | Image special effect generation method and device, electronic equipment and storage medium | |
CN109710208B (en) | Edge compensation method and storage device | |
CN114201627A (en) | Display method, device and equipment for electronic ink screen and storage medium | |
JP2015075920A (en) | Image processing apparatus, image processing method, and program | |
CN109284039A (en) | Icon auto arranging method | |
JP2016197377A (en) | Computer program for image correction, image correction device, and image correction method | |
CN109739403B (en) | Method and apparatus for processing information | |
CN108780572A (en) | The method and device of image rectification | |
CN107330905B (en) | Image processing method, device and storage medium | |
CN111861965A (en) | Image backlight detection method, image backlight detection device and terminal equipment | |
CN110955485A (en) | Method and device for adjusting interface elements | |
CN113033394B (en) | Image signature generation method and device, electronic equipment and storage medium | |
CN109345995A (en) | A kind of R angle compensation method and storage equipment | |
CN111784607A (en) | Image tone mapping method, device, terminal equipment and storage medium | |
CN113870142B (en) | Method and device for enhancing image contrast | |
CN112541948B (en) | Object detection method, device, terminal equipment and storage medium |
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 |