CN116594581A - Image display method, apparatus, computer device and storage medium - Google Patents

Image display method, apparatus, computer device and storage medium Download PDF

Info

Publication number
CN116594581A
CN116594581A CN202210708749.6A CN202210708749A CN116594581A CN 116594581 A CN116594581 A CN 116594581A CN 202210708749 A CN202210708749 A CN 202210708749A CN 116594581 A CN116594581 A CN 116594581A
Authority
CN
China
Prior art keywords
pixel
screen edge
pixels
sub
screen
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.)
Granted
Application number
CN202210708749.6A
Other languages
Chinese (zh)
Other versions
CN116594581B (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.)
Granfi Smart Technology Beijing Co ltd
Original Assignee
Granfi Smart Technology Beijing 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 Granfi Smart Technology Beijing Co ltd filed Critical Granfi Smart Technology Beijing Co ltd
Priority to CN202210708749.6A priority Critical patent/CN116594581B/en
Publication of CN116594581A publication Critical patent/CN116594581A/en
Application granted granted Critical
Publication of CN116594581B publication Critical patent/CN116594581B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/147Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels

Abstract

The application relates to an image display method, an image display device, a computer device and a storage medium. The method comprises the following steps: acquiring target display parameters of edge pixels of each screen; the target display parameters are determined according to the division result of the screen edge fitting curve on the corresponding areas of the screen edge pixels; aiming at each screen edge pixel, adjusting the pixel value corresponding to each sub-pixel in the screen edge pixel according to the target display parameters and the arrangement condition between the sub-pixel and the adjacent sub-pixel of the screen edge pixel; the adjacent sub-pixels are sub-pixels in peripheral pixels in a preset range corresponding to the screen edge pixels, and the adjacent sub-pixels and the sub-pixels of the screen edge pixels have the same channel type; and determining a target pixel value of the screen edge pixel based on the pixel value corresponding to each sub-pixel in the screen edge pixel. The method can be used for optimizing the anti-aliasing processing of the pixels at the edge of the screen, can consider the arrangement of the sub-pixels and improves the anti-aliasing effect.

Description

Image display method, apparatus, computer device and storage medium
Technical Field
The present application relates to the field of display technology, and in particular, to an image display method, an image display apparatus, a computer device, a storage medium, and a computer program product.
Background
OLED (Organic Light-Emitting Diode) panels require cutting the panel, including cutting rounded corners, hole digging, kerfs, etc., based on product design requirements. Because the screen cutting is performed by taking the sub-pixels as a unit, if the anti-aliasing processing is not performed on the edge pixels, serious jaggy feeling can occur in the display at the edge of the screen, and the product quality is affected. However, the conventional method is usually to perform anti-aliasing processing in pixel units, and the anti-aliasing effect is poor.
Therefore, the related art has a problem that the anti-aliasing effect of the edge pixels is poor.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an image display method, apparatus, computer device, storage medium, and computer program product that can solve the above-described problems.
In a first aspect, the present application provides an image display method, the method comprising:
acquiring target display parameters of edge pixels of each screen; the target display parameters are determined according to the division result of the screen edge fitting curve on the corresponding areas of the screen edge pixels; the screen edge fitting curve is a second-order curve obtained by fitting the screen edge;
For each screen edge pixel, according to the target display parameters and arrangement conditions between the sub-pixels of the screen edge pixel and adjacent sub-pixels, adjusting pixel values corresponding to the sub-pixels in the screen edge pixel; the adjacent sub-pixels are sub-pixels in peripheral pixels in a preset range corresponding to the screen edge pixels, and the adjacent sub-pixels and the sub-pixels of the screen edge pixels have the same channel type;
and determining a target pixel value of the screen edge pixel based on the pixel value corresponding to each sub-pixel in the screen edge pixel.
In one embodiment, before the step of obtaining the target display parameter of each screen edge pixel, the method further includes:
fitting is carried out based on the edge shape of the screen edge, and a second-order curve corresponding to the screen edge is constructed and used as the screen edge fitting curve.
In one embodiment, after the step of fitting the edge shape based on the screen edge to construct a second-order curve corresponding to the screen edge as the screen edge fitting curve, the method further includes:
sampling the screen edge fitting curve according to the sampling interval information, and obtaining a plurality of sampling points and sampling point coordinates thereof in each screen edge pixel based on the dividing result of the screen edge fitting curve on the corresponding area of each screen edge pixel;
And aiming at each screen edge pixel, obtaining target display parameters of the screen edge pixel according to the plurality of sampling points and the sampling point coordinates thereof, the sampling interval information and the pixel display azimuth of the screen edge pixel.
In one embodiment, the obtaining a plurality of sampling points and sampling point coordinates thereof in each of the screen edge pixels includes:
determining a plurality of sampling points and sampling point coordinates thereof in each screen edge pixel according to pixel position coordinates corresponding to each screen edge pixel and the sampling interval information;
for each screen edge pixel, obtaining a target display parameter of the screen edge pixel according to the plurality of sampling points and the sampling point coordinates thereof, the sampling interval information and the pixel display azimuth of the screen edge pixel, including:
obtaining a sampling area corresponding to each sampling point in the screen edge pixel according to the coordinates of the sampling points, the sampling interval information and the pixel display azimuth of the screen edge pixel;
and accumulating the sampling areas corresponding to the sampling points to obtain target dividing areas of the screen edge pixels, and taking the ratio of the areas of the target dividing areas to the areas of the unit pixels as the target display parameters.
In one embodiment, for each of the screen edge pixels, adjusting, according to the target display parameter and the arrangement between the sub-pixels of the screen edge pixel and the adjacent sub-pixels, a pixel value corresponding to each sub-pixel in the screen edge pixel includes:
for each screen edge pixel, acquiring an initial gray value of a preset range corresponding to the screen edge pixel; a plurality of peripheral pixels are arranged in the preset range;
and adjusting pixel values corresponding to all sub-pixels in the screen edge pixels according to the target display parameters and arrangement conditions between the sub-pixels and adjacent sub-pixels of the screen edge pixels based on the initial gray values.
In one embodiment, the adjusting, based on the initial gray value, a pixel value corresponding to each sub-pixel in the screen edge pixel according to the target display parameter and an arrangement condition between the sub-pixel and an adjacent sub-pixel of the screen edge pixel includes:
acquiring a weight coefficient set corresponding to each sub-pixel in the screen edge pixel; the weight coefficient set is obtained based on the arrangement positions and arrangement distances of the sub-pixels of the screen edge pixels and adjacent sub-pixels and the channel type, and each adjacent sub-pixel has a corresponding weight coefficient based on the channel type, the arrangement positions and the arrangement distances;
And aiming at the sub-pixels of each channel type, determining the gray value corresponding to the sub-pixel by combining the weight coefficient set corresponding to the sub-pixel, the target display parameter and the initial gray value so as to adjust the pixel value corresponding to each sub-pixel in the screen edge pixel.
In one embodiment, the determining the target pixel value of the screen edge pixel based on the pixel value corresponding to each sub-pixel in the screen edge pixel includes:
and fusing pixel values corresponding to all sub-pixels in the screen edge pixels to obtain fused pixel values which are used as target pixel values of the screen edge pixels so as to weaken the jaggy feeling of the image represented by the screen edge pixels and present a transition zone effect based on the sub-pixel scale.
In a second aspect, the present application also provides an image display apparatus, the apparatus comprising:
the target display parameter acquisition module is used for acquiring target display parameters of the edge pixels of each screen; the target display parameters are determined according to the division result of the screen edge fitting curve on the corresponding areas of the screen edge pixels; the screen edge fitting curve is a second-order curve obtained by fitting the screen edge;
The sub-pixel processing module is used for adjusting the pixel value corresponding to each sub-pixel in the screen edge pixel according to the target display parameter and the arrangement condition between the sub-pixel of the screen edge pixel and the adjacent sub-pixel; the adjacent sub-pixels are sub-pixels in peripheral pixels in a preset range corresponding to the screen edge pixels, and the adjacent sub-pixels and the sub-pixels of the screen edge pixels have the same channel type;
and the target pixel value determining module is used for determining the target pixel value of the screen edge pixel based on the pixel value corresponding to each sub-pixel in the screen edge pixel.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the steps of the image display method as described above when the processor executes the computer program.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the image display method as described above.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of the image display method as described above.
According to the image display method, the device, the computer equipment, the storage medium and the computer program product, the target display parameters of all the screen edge pixels are obtained, the target display parameters are determined according to the dividing result of the screen edge fitting curve on the corresponding area of the screen edge pixels, the screen edge fitting curve is a second-order curve obtained by fitting the screen edge, then for each screen edge pixel, according to the arrangement condition of the target display parameters and the sub-pixels of the screen edge pixels and the adjacent sub-pixels, the pixel values corresponding to all the sub-pixels in the screen edge pixels are adjusted, the adjacent sub-pixels are the sub-pixels in the peripheral pixels in the preset range corresponding to the screen edge pixels, the adjacent sub-pixels and the sub-pixels of the screen edge pixels have the same channel type, the target pixel values of the screen edge pixels are determined based on the pixel values corresponding to all the sub-pixels in the screen edge pixels, the anti-aliasing processing optimization of the screen edge pixels is achieved, the target display parameters of all the screen edge pixels are determined based on the second-order curve obtained by the screen edge fitting, the pixel values corresponding to all the sub-pixels are adjusted according to the arrangement condition between the adjacent sub-pixels, the sub-pixels are adjusted, the anti-aliasing effect of the screen edge pixels is improved, the display effect of the pixel is improved, and the image display effect is improved.
Drawings
FIG. 1 is a flow chart of an image display method according to an embodiment;
FIG. 2 is a schematic diagram of an example of screen cropping in one embodiment;
FIG. 3a is a schematic diagram of edge pixel curve sampling in one embodiment;
FIG. 3b is a schematic diagram of one embodiment of a sub-pixel arrangement;
FIG. 4 is a flow chart of another image display method according to an embodiment;
FIG. 5 is a block diagram showing an image display apparatus according to an embodiment;
FIG. 6 is an internal block diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for presentation, analyzed data, etc.) related to the present application are both information and data authorized by the user or sufficiently authorized by each party; correspondingly, the application also provides a corresponding user authorization entry for the user to select authorization or select rejection.
In one embodiment, as shown in fig. 1, an image display method is provided, and this embodiment is applied to a terminal for illustration by the method. In this embodiment, the method includes the steps of:
step 101, obtaining target display parameters of edge pixels of each screen; the target display parameters are determined according to the division result of the screen edge fitting curve on the corresponding areas of the screen edge pixels; the screen edge fitting curve is a second-order curve obtained by fitting the screen edge;
the screen edge pixels may be located in a border area of the screen edge, and the border area of the screen edge may be obtained based on a screen arc border of a screen clipping (e.g. cutting a round corner, digging a hole, and cutting a position, as shown in fig. 2, where 1 is a round corner, 2 is a hole, and 3 is a cut in fig. 2), for example, the screen edge of the mobile phone display screen may have a plurality of screen edge pixels.
As an example, the screen edge may be fitted in advance to construct a second order curve for the screen edge, and as the screen edge fitting curve, for example, the screen edge may be fitted by a second order curve equation such as a B-spline curve, a circle, or an ellipse, to obtain the screen edge fitting curve.
In practical application, a screen edge fitting curve obtained by fitting the screen edge can be adopted, and the target display parameters, such as anti-aliasing coefficients, of the screen edge pixels can be determined according to the division result of the screen edge fitting curve on the corresponding areas of the screen edge pixels by sampling the screen edge fitting curve.
Specifically, a screen edge fitting curve for the screen edge fitting may be pre-constructed, and the pre-stored anti-aliasing coefficients (i.e., target display parameters) of each screen edge pixel may be obtained by sampling the screen edge fitting curve, calculating the anti-aliasing coefficients of each screen edge pixel based on the division result of the screen edge fitting curve for the corresponding region of each screen edge pixel, and sequentially storing the anti-aliasing coefficients into hardware, e.g., by pre-generating the screen edge fitting curve and calculating the anti-aliasing coefficients of each screen edge pixel.
In an example, compared with a conventional method in which an edge arc edge is formed by combining a plurality of first-order folding lines, the problem of low anti-aliasing edge smoothness exists at a position with a large slope change, and the technical scheme of the embodiment is to fit a screen edge through a second-order curve equation such as a B-spline curve, a circle or an ellipse, and the like, so that a screen edge fitting curve is constructed.
Step 102, for each of the screen edge pixels, adjusting a pixel value corresponding to each sub-pixel in the screen edge pixel according to the target display parameter and an arrangement condition between the sub-pixel and an adjacent sub-pixel of the screen edge pixel; the adjacent sub-pixels are sub-pixels in peripheral pixels in a preset range corresponding to the screen edge pixels, and the adjacent sub-pixels and the sub-pixels of the screen edge pixels have the same channel type;
the sub-pixels of the edge-of-screen pixel may correspond to different channel types, and may include an R channel corresponding to a red sub-pixel, a G channel corresponding to a green sub-pixel, and a B channel corresponding to a blue sub-pixel; different arrangement conditions of the sub-pixels can exist in the peripheral pixels corresponding to the edge pixels of the screen, for example, the arrangement positions and/or the arrangement distances between the sub-pixels and the adjacent sub-pixels are different.
In a specific implementation, for each screen edge pixel, according to the target display parameter of the screen edge pixel and the arrangement condition between the sub-pixels of the screen edge pixel and the adjacent sub-pixels, the pixel value corresponding to each sub-pixel in the screen edge pixel is adjusted, so that the anti-aliasing effect can be further improved by considering the influence of arrangement of different sub-pixels.
For example, after the anti-aliasing coefficient of each screen edge pixel is obtained through the hardware storage space, the target display parameter of each screen edge pixel is obtained, the anti-aliasing coefficient of the pixel point can be distributed to the adjacent sub-pixels based on convolution operation of the sub-pixel scale, and then a transition zone can be formed under the sub-pixel scale, so that the anti-aliasing effect is further improved.
In an example, when the edge of the screen is a non-horizontal, non-vertical straight line or polygonal boundary, such as cutting a rounded corner, hole digging, notch and the like, when the screen is cut, the edge of the screen can have a saw-tooth appearance, so that the display of image information is distorted, namely, the aliasing effect is caused, and in order to reduce or eliminate the aliasing effect, anti-aliasing processing is required to be performed, so that the anti-aliasing effect is realized; and drawing a second-order curve by fitting the edges of the screen, sampling the second-order curve to calculate an anti-aliasing coefficient of each screen edge pixel, and further distributing the anti-aliasing coefficient to the adjacent sub-pixels by utilizing convolution of the sub-pixel scale, thereby realizing the anti-aliasing effect.
Step 103, determining a target pixel value of the screen edge pixel based on the pixel value corresponding to each sub-pixel in the screen edge pixel.
In practical application, when image data is acquired for screen display, for each screen edge pixel, a target pixel value is displayed based on a pixel value corresponding to each sub-pixel in the screen edge pixel, so that the jaggy feeling of an image represented by the screen edge pixel can be weakened, and an anti-aliasing effect is realized.
In an example, an AMOLED (Active-matrix organic light-emitting diode) screen has the characteristic of Active luminescence, the display of mobile phone screen pixels can be independently controlled through a single pixel, when anti-aliasing processing is performed on the AMOLED screen, a second order curve (namely a screen edge fitting curve) is drawn through fitting the screen edge, the second order curve is sampled, anti-aliasing coefficients of all the screen edge pixels are obtained through calculation, the smooth effect of the anti-aliasing curves is ensured, further, the anti-aliasing coefficients can be distributed to nearby sub-pixels through convolution of sub-pixel dimensions, the problem that the coefficients are calculated and distributed in units of pixels in the traditional method, the arrangement of the sub-pixels is not considered is solved, and the anti-aliasing effect is improved by combining and considering the influence of different sub-pixel arrangements.
According to the image display method, the target display parameters of the edge pixels of the screen are obtained, then, for each edge pixel of the screen, the pixel values corresponding to the sub-pixels in the edge pixels of the screen are adjusted according to the target display parameters and the arrangement conditions between the sub-pixels and the adjacent sub-pixels of the edge pixels of the screen, and then, the target pixel values of the edge pixels of the screen are determined based on the pixel values corresponding to the sub-pixels in the edge pixels of the screen, so that the anti-aliasing processing optimization of the edge pixels of the screen is realized, the target display parameters of the edge pixels of the screen are determined based on a second-order curve obtained by fitting the edge of the screen, and then, the pixel values corresponding to the sub-pixels are adjusted according to the arrangement conditions between the adjacent sub-pixels, so that the target pixel values of the edge pixels of the screen are obtained, the jaggy feeling at the edge of the screen is eliminated, the display effect of the screen is improved, the arrangement of the sub-pixels is considered, and the anti-aliasing effect is improved.
In one embodiment, before the step of acquiring the target display parameter of each screen edge pixel, the steps of:
fitting is carried out based on the edge shape of the screen edge, and a second-order curve corresponding to the screen edge is constructed and used as the screen edge fitting curve.
In practical application, the edge shape of the screen edge is fitted through a B-spline curve, a circle or an elliptic curve to obtain a screen edge fitting curve, and continuity of first-order leads of each part of the curve can be ensured based on the property of a second-order curve equation, so that the anti-aliasing curve is smoother.
For example, the parameters of the B-spline curve may include n+1 control points, a node vector of m+1 nodes, and the number of times p, where n, m, p need to satisfy a preset condition, such as m=n+p+1, and since it is determined as a second-order curve, the numbers of the control points and nodes of the B-spline curve may be n+1 and n+4, respectively, and the second-order B-spline curve controlled by the control points and nodes may be represented as follows:
wherein N is i,2 (u) is a quadratic B-spline basis function; the nodes are uniformly distributed, and the repeatability of the first node and the last node is 3 so as to ensure that the curve is tangent to the first side and the last side of the control fold line; a second order curve approximating the edge shape of the screen edge can be obtained by changing the positions of the n+1 control points.
In this embodiment, by fitting based on the edge shape of the screen edge, a second order curve corresponding to the screen edge is constructed, and the second order curve can be drawn by fitting the screen edge as the screen edge fitting curve, so that data support is provided for further sampling the second order curve, and the anti-aliasing curve can be smoother.
In one embodiment, after the step of fitting based on the edge shape of the screen edge to construct a second-order curve corresponding to the screen edge as the screen edge fitting curve, the method may include the following steps:
sampling the screen edge fitting curve according to the sampling interval information, and obtaining a plurality of sampling points and sampling point coordinates thereof in each screen edge pixel based on the dividing result of the screen edge fitting curve on the corresponding area of each screen edge pixel;
as an example, sample interval information may be preset, which may be used to equally sample the screen edge fit curve.
In a specific implementation, by constructing a screen edge fitting curve, the screen edge fitting curve can be sampled at equal intervals according to sampling interval information, and then a plurality of sampling points and coordinates of the sampling points in each screen edge pixel can be obtained based on a division result of the screen edge fitting curve on a corresponding area of each screen edge pixel, for example, the coordinates corresponding to each sampling point can be obtained according to the condition that the sampling points fall in the screen edge pixel.
And aiming at each screen edge pixel, obtaining target display parameters of the screen edge pixel according to the plurality of sampling points and the sampling point coordinates thereof, the sampling interval information and the pixel display azimuth of the screen edge pixel.
Wherein the pixel display orientation may be used to characterize the orientation of the screen edge pixels to the screen display area, such as from the pixel display orientation of the screen edge pixels a, the orientation of the screen display area or the screen non-display area relative to the screen edge pixels a may be determined.
After the sampling point coordinates are obtained, for each screen edge pixel, according to a plurality of sampling points and the sampling point coordinates thereof, sampling interval information and pixel display orientations of the screen edge pixels, target display parameters of the screen edge pixels are obtained, for example, the occupied area of each sampling point can be calculated and summed according to the positions of each sampling point in the screen edge pixels, the sampling point intervals and the directions of the screen edges, and the anti-aliasing coefficients of the screen edge pixels, namely the target display parameters, are obtained.
In an example, as shown in fig. 3a, the pixel point on the right side of the figure faces upward (i.e. the pixel display orientation of the pixel on the screen edge), the screen edge fitting curve may be sampled at equal intervals by presetting the sampling interval information, for example, the sampling interval is 1/m, where n+1 sampling points (i.e. multiple sampling points) fall in the pixel point, and the coordinates of each sampling point may be (x 0 ,y 0 ),…(x i ,y i ),…(x n ,y n ) The gray area in the pixel point is the area to be calculated, the anti-aliasing coefficient can be obtained by accumulating the areas corresponding to the sampling points in the pixel point, for example, the area of the screen edge pixel can be divided by the unit pixel area by the accumulated screen edge fitting curve to obtain the anti-aliasing coefficient, when the unit pixel area is 1, the accumulated area value is the anti-aliasing coefficient, and the calculated anti-aliasing coefficient can be stored in the hardware storage space according to the sequence of the screen edge pixel.
For example, the antialiasing coefficient may be obtained in such a manner that when the unit pixel area is 1, a is the antialiasing coefficient:
wherein A is the area of the screen edge fitting curve drawn across the screen edge pixels, when the unit pixel area is 1, A is the antialiasing coefficient, the screen edge pixels have corresponding coordinates of (X, Y) - (X+1, Y), i is one of the n+1 sampling points in the screen edge pixels, and the sampling interval is 1/m.
In this embodiment, a plurality of sampling points and sampling point coordinates thereof in each screen edge pixel are obtained by sampling a screen edge fitting curve according to sampling interval information, and based on a division result of the screen edge fitting curve in a region corresponding to each screen edge pixel, so that for each screen edge pixel, a target display parameter of the screen edge pixel is obtained according to the plurality of sampling points and the sampling point coordinates thereof, the sampling interval information, and a pixel display azimuth of the screen edge pixel, and an anti-aliasing coefficient of the pixel can be obtained by sampling a second-order curve according to a condition that the sampling points fall on the pixel, thereby providing data support for a convolution operation of a subsequent sub-pixel scale.
In one embodiment, the obtaining the plurality of sampling points and the coordinates of the sampling points thereof in each of the screen edge pixels may include the following steps:
determining a plurality of sampling points and sampling point coordinates thereof in each screen edge pixel according to pixel position coordinates corresponding to each screen edge pixel and the sampling interval information;
in an example, the plurality of sampling points and the coordinates of the sampling points thereof in each screen edge pixel can be determined according to the coordinates of the pixel positions corresponding to each screen edge pixel, such as coordinates (X, Y) - (x+1, Y) corresponding to the pixel points in fig. 3a, and the sampling interval information, such as sampling interval of 1/m, such as n+1 sampling points and the coordinates (X) of the sampling points thereof in the pixel points on the right side of fig. 3a 0 ,y 0 ),…(x i ,y i ),…(x n ,y n )。
For each screen edge pixel, obtaining a target display parameter of the screen edge pixel according to the plurality of sampling points and the sampling point coordinates thereof, the sampling interval information and the pixel display azimuth of the screen edge pixel, including:
obtaining a sampling area corresponding to each sampling point in the screen edge pixel according to the coordinates of the sampling points, the sampling interval information and the pixel display azimuth of the screen edge pixel; and accumulating the sampling areas corresponding to the sampling points to obtain target dividing areas of the screen edge pixels, and taking the ratio of the areas of the target dividing areas to the areas of the unit pixels as the target display parameters.
In practical application, as shown in fig. 3a, for each sampling point in the pixel points on the right side of the figure, the coordinates of each sampling point, such as (x 0 ,y 0 ),…(x i ,y i ),…(x n ,y n ) The sampling interval information, such as the sampling interval of 1/m, and the pixel display azimuth of the pixel point, such as the edge of the pixel point facing upwards, calculate the sampling area corresponding to the sampling point, such as the area corresponding to the sampling point in the gray area, and further, by accumulating the areas corresponding to the sampling points in the pixel point, the area of the gray area (i.e. the target dividing area) in the pixel point can be obtained, and further, the ratio of the obtained sampling area to the unit pixel area, i.e. the anti-aliasing coefficient, can be used as the target display parameter.
For example, when the unit pixel area is 1, the area corresponding to the target division area may be an antialiasing coefficient, that is, a target display parameter.
In this embodiment, a plurality of sampling points and sampling point coordinates thereof in each screen edge pixel are determined according to pixel position coordinates and sampling interval information corresponding to each screen edge pixel, then, for each sampling point in the screen edge pixel, according to the sampling point coordinates, the sampling interval information and the pixel display orientation of the screen edge pixel, a sampling area corresponding to the sampling point is obtained, and further, accumulation processing is performed on the sampling areas corresponding to the plurality of sampling points, so as to obtain a target division area of the screen edge pixel, and a ratio of an area of the target division area to an area of a unit pixel is used as a target display parameter.
In one embodiment, for each of the screen edge pixels, according to the target display parameter and the arrangement between the sub-pixels of the screen edge pixel and the adjacent sub-pixels, the adjusting the pixel value corresponding to each sub-pixel in the screen edge pixel may include the following steps:
for each screen edge pixel, acquiring an initial gray value of a preset range corresponding to the screen edge pixel; a plurality of peripheral pixels are arranged in the preset range;
in practical application, for each screen edge pixel, a preset range, such as a sub-pixel convolution range, corresponding to the screen edge pixel may be determined, and then, based on a plurality of peripheral pixels included in the preset range, a gray value displayed in the range, that is, an initial gray value, may be obtained.
And adjusting pixel values corresponding to all sub-pixels in the screen edge pixels according to the target display parameters and arrangement conditions between the sub-pixels and adjacent sub-pixels of the screen edge pixels based on the initial gray values.
In an example, based on the displayed gray values (i.e., initial gray values) corresponding to the plurality of peripheral pixels in the preset range, the anti-aliasing coefficients (i.e., target display parameters) of the edge pixels of the screen are allocated to the adjacent sub-pixels according to the arrangement condition, such as the arrangement position and the arrangement distance, between the sub-pixels of the edge pixels of the screen and the adjacent sub-pixels through the convolution operation of the sub-pixel scale, so as to adjust the pixel values corresponding to the sub-pixels in the edge pixels of the screen, such as obtaining the final output values of the red sub-pixel, the green sub-pixel and the blue sub-pixel.
In this embodiment, by acquiring, for each screen edge pixel, an initial gray value of a preset range corresponding to the screen edge pixel, and further adjusting, based on the initial gray value, a pixel value corresponding to each sub-pixel in the screen edge pixel according to a target display parameter and an arrangement condition between the sub-pixel and an adjacent sub-pixel of the screen edge pixel, by considering an influence of arrangement of different sub-pixels, an anti-aliasing effect can be further improved.
In one embodiment, the adjusting, based on the initial gray value, the pixel value corresponding to each sub-pixel in the edge pixel of the screen according to the target display parameter and the arrangement between the sub-pixel and the adjacent sub-pixel of the edge pixel of the screen may include the following steps:
acquiring a weight coefficient set corresponding to each sub-pixel in the screen edge pixel; the weight coefficient set is obtained based on the arrangement positions and arrangement distances of the sub-pixels of the screen edge pixels and adjacent sub-pixels and the channel type, and each adjacent sub-pixel has a corresponding weight coefficient based on the channel type, the arrangement positions and the arrangement distances; and aiming at the sub-pixels of each channel type, determining the gray value corresponding to the sub-pixel by combining the weight coefficient set corresponding to the sub-pixel, the target display parameter and the initial gray value so as to adjust the pixel value corresponding to each sub-pixel in the screen edge pixel.
In an example, as shown in fig. 3b, weights may be set for each sub-pixel separately according to different sub-pixel arrangements. Because the arrangement and the area of the sub-pixels are different, the distance between the sub-pixels in the odd and even columns and the output sub-pixels (i.e. the sub-pixels adjacent to the sub-pixels and the edge pixels of the screen) is different, different weights can be set for the sub-pixels of different channel types in the odd and even columns.
For example, for the final output value of the red sub-pixel, the final output value of the red sub-pixel needs to be obtained by multiplying the gray value of the red sub-pixel in the m×n range (i.e. the preset range), multiplying the antialiasing coefficient of the pixel point, and multiplying the convolution weight (i.e. the weight coefficient set corresponding to each sub-pixel) for accumulation, which can be calculated as follows:
where m and n represent the range of the sub-pixel convolution (i.e., a preset range), if the convolution range is 3x3, then m=3, n=3; g (x+i, y+j) characterizes the gray values displayed in the m×n range (i.e., the initial gray values); w (W) ood\even (i, j) representing weights corresponding to the sub-pixels of different channel types in odd and even columns; g (x, y) characterizes the gray value (i.e., the target pixel value of the screen edge pixel) that is ultimately output at (x, y).
In yet another example, the gray values displayed in the range of 4x3 in fig. 3b may be represented as follows:
(R 00 ,G 00 ,B 00 ) (R 01 ,G 01 ,B 01 ) (R 02 ,G 02 ,B 02 ) (R 03 ,G 03 ,B 03 )
(R 10 ,G 10 ,B 10 ) (R 11 ,G 11 ,B 11 ) (R 12 ,G 12 ,B 12 ) (R 13 ,G 13 ,B 13 )
(R 20 ,G 20 ,B 20 ) (R 21 ,G 21 ,B 21 ) (R 22 ,G 22 ,B 22 ) (R 23 ,G 23 ,B 23 )
The output gray value of the subpixel R at (1, 1) can be calculated as follows:
R(1,1)=R 00 *A 00 *W Rodd00 +R 01 *A 01 *W Rodd01 +R 02 *A 02 *W Rodd02 +R 10 *A 10 *W Rodd10 +R 11 *A 11 *W Rodd11 +R 12 *A 12 *W Rodd12 +R 20 *A 20 *W Rodd20 +R 21 *A 21 *W Rodd21 +R 22 *A 22 *W Rodd22
the output gray value of the sub-pixel G at (1, 1) can be calculated as follows:
G(2,1)=G 01 *A 01 *W Geven00 +G 02 *A 02 *W Geven01 +G 03 *A 03 *W Geven02 +G 11 *A 11 *W Geven10 +G 12 *A 12 *W Geven11 +G 13 *A 13 *W Geven12 +G 21 *A 21 *W Geven20 +G 22 *A 22 *W Geven21 +G 23 *A 23 *W Geven22
in this embodiment, by acquiring the set of weight coefficients corresponding to each sub-pixel in the edge pixel of the screen, and further combining the set of weight coefficients corresponding to each sub-pixel, the target display parameter, and the initial gray value for each sub-pixel of the channel type, determining the gray value corresponding to the sub-pixel, so as to adjust the pixel value corresponding to each sub-pixel in the edge pixel of the screen, a transition zone can be formed at the sub-pixel scale based on convolution operation of the sub-pixel scale, and thus the anti-aliasing effect can be improved.
In one embodiment, the determining the target pixel value of the screen edge pixel based on the pixel value corresponding to each sub-pixel in the screen edge pixel may include the following steps:
and fusing pixel values corresponding to all sub-pixels in the screen edge pixels to obtain fused pixel values which are used as target pixel values of the screen edge pixels so as to weaken the jaggy feeling of the image represented by the screen edge pixels and present a transition zone effect based on the sub-pixel scale.
In practical application, the pixel values corresponding to all the sub-pixels in the screen edge pixels can be fused to obtain fused pixel values, such as final output gray values at the corresponding coordinates of the screen edge pixels, so that the target pixel values of the screen edge pixels can be determined, the jaggy feeling of the image represented by the screen edge pixels is weakened, and the transition zone effect is represented based on the sub-pixel scale.
In this embodiment, the pixel values corresponding to the sub-pixels in the edge pixels of the screen are fused to obtain the fused pixel value, which is used as the target pixel value of the edge pixels of the screen, so as to weaken the jaggy feel of the image represented by the edge pixels of the screen, and the transition zone effect is represented based on the sub-pixel scale, thereby improving the display efficiency.
In one embodiment, as shown in FIG. 4, a flow diagram of another image display method is provided. In this embodiment, the method includes the steps of:
in step 401, fitting is performed based on the edge shape of the screen edge, and a second-order curve corresponding to the screen edge is constructed as a screen edge fitting curve. In step 402, a screen edge fitting curve is sampled according to the sampling interval information, and a plurality of sampling points and sampling point coordinates thereof in each screen edge pixel are obtained based on the division result of the screen edge fitting curve on the corresponding area of each screen edge pixel. In step 403, for each sampling point in the screen edge pixel, a sampling area corresponding to the sampling point is obtained according to the coordinates of the sampling point, the sampling interval information, and the pixel display azimuth of the screen edge pixel. In step 404, the sampling areas corresponding to the plurality of sampling points are accumulated to obtain a target divided area of the screen edge pixels, and the ratio of the area of the target divided area to the area of the unit pixel is used as the target display parameter. In step 405, target display parameters for each screen edge pixel are obtained. In step 406, for each screen edge pixel, an initial gray value of a preset range corresponding to the screen edge pixel is obtained; the preset range is provided with a plurality of peripheral pixels. In step 407, a set of weight coefficients corresponding to each sub-pixel in the edge pixels of the screen is obtained; the weight coefficient set is obtained based on the arrangement positions and arrangement distances of the sub-pixels of the screen edge pixels and the adjacent sub-pixels and the channel type. In step 408, for each sub-pixel of the channel type, the gray value corresponding to the sub-pixel is determined by combining the set of weight coefficients corresponding to the sub-pixel, the target display parameter, and the initial gray value, so as to adjust the pixel value corresponding to each sub-pixel in the edge pixel of the screen. In step 409, the pixel values corresponding to the sub-pixels in the edge pixels of the screen are fused to obtain a fused pixel value, which is used as the target pixel value of the edge pixels of the screen to weaken the jaggy feel of the image presented by the edge pixels of the screen, and the transition zone effect is presented based on the sub-pixel scale. It should be noted that, the specific limitation of the above steps may be referred to the specific limitation of an image display method, which is not described herein.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides an image display device for realizing the above related image display method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in one or more embodiments of the image display device provided below may refer to the limitation of the image display method hereinabove, and will not be repeated herein.
In one embodiment, as shown in fig. 5, there is provided an image display apparatus including:
a target display parameter obtaining module 501, configured to obtain target display parameters of edge pixels of each screen; the target display parameters are determined according to the division result of the screen edge fitting curve on the corresponding areas of the screen edge pixels; the screen edge fitting curve is a second-order curve obtained by fitting the screen edge;
the sub-pixel processing module 502 is configured to adjust, for each of the screen edge pixels, a pixel value corresponding to each sub-pixel in the screen edge pixel according to the target display parameter and an arrangement condition between the sub-pixel and an adjacent sub-pixel of the screen edge pixel; the adjacent sub-pixels are sub-pixels in peripheral pixels in a preset range corresponding to the screen edge pixels, and the adjacent sub-pixels and the sub-pixels of the screen edge pixels have the same channel type;
a target pixel value determining module 503, configured to determine a target pixel value of the screen edge pixel based on the pixel values corresponding to the sub-pixels in the screen edge pixel.
In one embodiment, the apparatus further comprises:
The second-order curve construction module is used for carrying out fitting based on the edge shape of the screen edge, constructing a second-order curve corresponding to the screen edge and taking the second-order curve as the screen edge fitting curve.
In one embodiment, the apparatus further comprises:
the curve sampling module is used for sampling the screen edge fitting curve according to the sampling interval information, and obtaining a plurality of sampling points and sampling point coordinates thereof in each screen edge pixel based on the division result of the screen edge fitting curve on the corresponding area of each screen edge pixel;
the target display parameter obtaining module is used for obtaining target display parameters of the screen edge pixels according to the plurality of sampling points and the sampling point coordinates thereof, the sampling interval information and the pixel display orientation of the screen edge pixels.
In one embodiment, the curve sampling module includes:
the sampling point determining submodule is used for determining a plurality of sampling points and sampling point coordinates thereof in each screen edge pixel according to the pixel position coordinates corresponding to each screen edge pixel and the sampling interval information;
the target display parameter obtaining module comprises:
The sampling point region determining submodule is used for obtaining a sampling region corresponding to each sampling point in the screen edge pixels according to the sampling point coordinates, the sampling interval information and the pixel display azimuth of the screen edge pixels;
and the region accumulation sub-module is used for carrying out accumulation processing on sampling regions corresponding to a plurality of sampling points to obtain target division regions of the screen edge pixels, and taking the ratio of the areas of the target division regions to the areas of unit pixels as the target display parameters.
In one embodiment, the sub-pixel processing module 502 includes:
the in-range gray value determining submodule is used for obtaining an initial gray value of a preset range corresponding to each screen edge pixel; a plurality of peripheral pixels are arranged in the preset range;
and the sub-pixel processing sub-module is used for adjusting the pixel value corresponding to each sub-pixel in the screen edge pixel according to the target display parameter and the arrangement condition between the sub-pixel of the screen edge pixel and the adjacent sub-pixel based on the initial gray value.
In one embodiment, the sub-pixel processing sub-module includes:
The sub-pixel weight determining unit is used for obtaining a weight coefficient set corresponding to each sub-pixel in the screen edge pixels; the weight coefficient set is obtained based on the arrangement positions and arrangement distances of the sub-pixels of the screen edge pixels and adjacent sub-pixels and the channel type, and each adjacent sub-pixel has a corresponding weight coefficient based on the channel type, the arrangement positions and the arrangement distances;
the sub-pixel calculating unit is used for determining the gray value corresponding to the sub-pixel according to the sub-pixel of each channel type by combining the weight coefficient set corresponding to the sub-pixel, the target display parameter and the initial gray value, so as to adjust the pixel value corresponding to each sub-pixel in the screen edge pixel.
In one embodiment, the target pixel value determining module 503 includes:
and the fusion sub-module is used for fusing pixel values corresponding to all sub-pixels in the screen edge pixels to obtain fused pixel values which are used as target pixel values of the screen edge pixels so as to weaken the jaggy feeling of the image represented by the screen edge pixels and present a transition zone effect based on the sub-pixel scale.
The respective modules in the above-described image display apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 6. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement an image display method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 6 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
acquiring target display parameters of edge pixels of each screen; the target display parameters are determined according to the division result of the screen edge fitting curve on the corresponding areas of the screen edge pixels; the screen edge fitting curve is a second-order curve obtained by fitting the screen edge;
aiming at each screen edge pixel, according to the target display parameters and the arrangement condition between the sub-pixels of the screen edge pixel and the adjacent sub-pixels, adjusting the pixel value corresponding to each sub-pixel in the screen edge pixel; the adjacent sub-pixels are sub-pixels in peripheral pixels in a preset range corresponding to the screen edge pixels, and the adjacent sub-pixels and the sub-pixels of the screen edge pixels have the same channel type;
And determining a target pixel value of the screen edge pixel based on the pixel value corresponding to each sub-pixel in the screen edge pixel.
In one embodiment, the processor, when executing the computer program, also implements the steps of the image display method in the other embodiments described above.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring target display parameters of edge pixels of each screen; the target display parameters are determined according to the division result of the screen edge fitting curve on the corresponding areas of the screen edge pixels; the screen edge fitting curve is a second-order curve obtained by fitting the screen edge;
for each screen edge pixel, according to the target display parameters and arrangement conditions between the sub-pixels of the screen edge pixel and adjacent sub-pixels, adjusting pixel values corresponding to the sub-pixels in the screen edge pixel; the adjacent sub-pixels are sub-pixels in peripheral pixels in a preset range corresponding to the screen edge pixels, and the adjacent sub-pixels and the sub-pixels of the screen edge pixels have the same channel type;
And determining a target pixel value of the screen edge pixel based on the pixel value corresponding to each sub-pixel in the screen edge pixel.
In an embodiment, the computer program, when executed by a processor, further implements the steps of the image display method in the other embodiments described above.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of:
acquiring target display parameters of edge pixels of each screen; the target display parameters are determined according to the division result of the screen edge fitting curve on the corresponding areas of the screen edge pixels; the screen edge fitting curve is a second-order curve obtained by fitting the screen edge;
for each screen edge pixel, according to the target display parameters and arrangement conditions between the sub-pixels of the screen edge pixel and adjacent sub-pixels, adjusting pixel values corresponding to the sub-pixels in the screen edge pixel; the adjacent sub-pixels are sub-pixels in peripheral pixels in a preset range corresponding to the screen edge pixels, and the adjacent sub-pixels and the sub-pixels of the screen edge pixels have the same channel type;
And determining a target pixel value of the screen edge pixel based on the pixel value corresponding to each sub-pixel in the screen edge pixel.
In an embodiment, the computer program, when executed by a processor, further implements the steps of the image display method in the other embodiments described above.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (11)

1. An image display method, the method comprising:
acquiring target display parameters of edge pixels of each screen; the target display parameters are determined according to the division result of the screen edge fitting curve on the corresponding areas of the screen edge pixels; the screen edge fitting curve is a second-order curve obtained by fitting the screen edge;
for each screen edge pixel, according to the target display parameters and arrangement conditions between the sub-pixels of the screen edge pixel and adjacent sub-pixels, adjusting pixel values corresponding to the sub-pixels in the screen edge pixel; the adjacent sub-pixels are sub-pixels in peripheral pixels in a preset range corresponding to the screen edge pixels, and the adjacent sub-pixels and the sub-pixels of the screen edge pixels have the same channel type;
And determining a target pixel value of the screen edge pixel based on the pixel value corresponding to each sub-pixel in the screen edge pixel.
2. The method of claim 1, further comprising, prior to the step of obtaining the target display parameter for each screen edge pixel:
fitting is carried out based on the edge shape of the screen edge, and a second-order curve corresponding to the screen edge is constructed and used as the screen edge fitting curve.
3. The method according to claim 2, wherein after the step of fitting based on the edge shape of the screen edge to construct a second order curve corresponding to the screen edge as the screen edge fitting curve, further comprising:
sampling the screen edge fitting curve according to the sampling interval information, and obtaining a plurality of sampling points and sampling point coordinates thereof in each screen edge pixel based on the dividing result of the screen edge fitting curve on the corresponding area of each screen edge pixel;
and aiming at each screen edge pixel, obtaining target display parameters of the screen edge pixel according to the plurality of sampling points and the sampling point coordinates thereof, the sampling interval information and the pixel display azimuth of the screen edge pixel.
4. A method according to claim 3, wherein said deriving a plurality of sampling points and their sampling point coordinates in each of said screen edge pixels comprises:
determining a plurality of sampling points and sampling point coordinates thereof in each screen edge pixel according to pixel position coordinates corresponding to each screen edge pixel and the sampling interval information;
for each screen edge pixel, obtaining a target display parameter of the screen edge pixel according to the plurality of sampling points and the sampling point coordinates thereof, the sampling interval information and the pixel display azimuth of the screen edge pixel, including:
obtaining a sampling area corresponding to each sampling point in the screen edge pixel according to the coordinates of the sampling points, the sampling interval information and the pixel display azimuth of the screen edge pixel;
and accumulating the sampling areas corresponding to the sampling points to obtain target dividing areas of the screen edge pixels, and taking the ratio of the areas of the target dividing areas to the areas of the unit pixels as the target display parameters.
5. The method according to claim 1, wherein for each of the screen edge pixels, adjusting the pixel value corresponding to each sub-pixel in the screen edge pixel according to the target display parameter and the arrangement between the sub-pixel and the adjacent sub-pixel of the screen edge pixel comprises:
For each screen edge pixel, acquiring an initial gray value of a preset range corresponding to the screen edge pixel; a plurality of peripheral pixels are arranged in the preset range;
and adjusting pixel values corresponding to all sub-pixels in the screen edge pixels according to the target display parameters and arrangement conditions between the sub-pixels and adjacent sub-pixels of the screen edge pixels based on the initial gray values.
6. The method according to claim 5, wherein adjusting the pixel value corresponding to each sub-pixel in the screen edge pixel according to the target display parameter and the arrangement between the sub-pixel and the adjacent sub-pixel of the screen edge pixel based on the initial gray value comprises:
acquiring a weight coefficient set corresponding to each sub-pixel in the screen edge pixel; the weight coefficient set is obtained based on the arrangement positions and arrangement distances of the sub-pixels of the screen edge pixels and adjacent sub-pixels and the channel type, and each adjacent sub-pixel has a corresponding weight coefficient based on the channel type, the arrangement positions and the arrangement distances;
and aiming at the sub-pixels of each channel type, determining the gray value corresponding to the sub-pixel by combining the weight coefficient set corresponding to the sub-pixel, the target display parameter and the initial gray value so as to adjust the pixel value corresponding to each sub-pixel in the screen edge pixel.
7. The method of any one of claims 1 to 6, wherein determining the target pixel value of the screen edge pixel based on the pixel value corresponding to each sub-pixel in the screen edge pixel comprises:
and fusing pixel values corresponding to all sub-pixels in the screen edge pixels to obtain fused pixel values which are used as target pixel values of the screen edge pixels so as to weaken the jaggy feeling of the image represented by the screen edge pixels and present a transition zone effect based on the sub-pixel scale.
8. An image display device, the device comprising:
the target display parameter acquisition module is used for acquiring target display parameters of the edge pixels of each screen; the target display parameters are determined according to the division result of the screen edge fitting curve on the corresponding areas of the screen edge pixels; the screen edge fitting curve is a second-order curve obtained by fitting the screen edge;
the sub-pixel processing module is used for adjusting the pixel value corresponding to each sub-pixel in the screen edge pixel according to the target display parameter and the arrangement condition between the sub-pixel of the screen edge pixel and the adjacent sub-pixel; the adjacent sub-pixels are sub-pixels in peripheral pixels in a preset range corresponding to the screen edge pixels, and the adjacent sub-pixels and the sub-pixels of the screen edge pixels have the same channel type;
And the target pixel value determining module is used for determining the target pixel value of the screen edge pixel based on the pixel value corresponding to each sub-pixel in the screen edge pixel.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
11. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
CN202210708749.6A 2022-06-22 2022-06-22 Image display method, apparatus, computer device and storage medium Active CN116594581B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210708749.6A CN116594581B (en) 2022-06-22 2022-06-22 Image display method, apparatus, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210708749.6A CN116594581B (en) 2022-06-22 2022-06-22 Image display method, apparatus, computer device and storage medium

Publications (2)

Publication Number Publication Date
CN116594581A true CN116594581A (en) 2023-08-15
CN116594581B CN116594581B (en) 2024-01-30

Family

ID=87599603

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210708749.6A Active CN116594581B (en) 2022-06-22 2022-06-22 Image display method, apparatus, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN116594581B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030214512A1 (en) * 2002-05-14 2003-11-20 Cheng Brett Anthony Hardware method for sub-pixel anti-aliasing of text on an LCD display
US20070153022A1 (en) * 2005-12-01 2007-07-05 Renato Keshet Upscaling of anti-aliased graphical elements
CN103198513A (en) * 2013-03-29 2013-07-10 浙江大学 Movie post-synthesis anti-aliasing method
CN108665842A (en) * 2018-05-14 2018-10-16 昆山国显光电有限公司 Show platen edge display control method, control device and display device
CN109859668A (en) * 2019-03-12 2019-06-07 深圳市华星光电技术有限公司 A kind of image compensation method and its device of circle display panel
CN113553128A (en) * 2020-04-24 2021-10-26 北京小米移动软件有限公司 Picture corner generation method and device, electronic equipment and storage medium
US11250770B1 (en) * 2020-09-18 2022-02-15 Himax Technologies Limited De-jaggy processing system and method for OLED display with curved space

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030214512A1 (en) * 2002-05-14 2003-11-20 Cheng Brett Anthony Hardware method for sub-pixel anti-aliasing of text on an LCD display
US20070153022A1 (en) * 2005-12-01 2007-07-05 Renato Keshet Upscaling of anti-aliased graphical elements
CN103198513A (en) * 2013-03-29 2013-07-10 浙江大学 Movie post-synthesis anti-aliasing method
CN108665842A (en) * 2018-05-14 2018-10-16 昆山国显光电有限公司 Show platen edge display control method, control device and display device
CN109859668A (en) * 2019-03-12 2019-06-07 深圳市华星光电技术有限公司 A kind of image compensation method and its device of circle display panel
CN113553128A (en) * 2020-04-24 2021-10-26 北京小米移动软件有限公司 Picture corner generation method and device, electronic equipment and storage medium
US11250770B1 (en) * 2020-09-18 2022-02-15 Himax Technologies Limited De-jaggy processing system and method for OLED display with curved space

Also Published As

Publication number Publication date
CN116594581B (en) 2024-01-30

Similar Documents

Publication Publication Date Title
US20060050074A1 (en) System and method for representing a general two dimensional spatial transformation
US20130194272A1 (en) Placing pixels according to attribute values in positions in a graphical visualization that correspond to geographic locations
CN111681165A (en) Image processing method, image processing device, computer equipment and computer readable storage medium
US8072472B2 (en) System and method for scaling overlay images
US20130088493A1 (en) Providing an ellipsoid having a characteristic based on local correlation of attributes
CN104851133A (en) Image self-adaptive grid generation variational method
CN116594581B (en) Image display method, apparatus, computer device and storage medium
CN111698491B (en) Multi-projection image display method and device, electronic equipment and storage medium
CN106445276A (en) Desktop icon processing method and apparatus
US10713753B2 (en) Data processing systems
CN116843566A (en) Tone mapping method, tone mapping device, display device and storage medium
CN111161289A (en) Method, device and computer program product for improving contour precision of object in image
US20220051644A1 (en) Subpixel text rendering
CN114022518B (en) Method, device, equipment and medium for acquiring optical flow information of image
CN110097525A (en) A kind of image rendering method, device and calculate equipment
CN108537736B (en) Method and device for enhancing image contrast in curved surface display screen
CN101739696A (en) System and method for rasterizing convex polygon
CN114429511A (en) Fusion rendering method and device, computer equipment and storage medium
JP6060772B2 (en) Processing program, processing apparatus, and processing method
CN116645428A (en) Image display method, device, computer equipment and storage medium
JP4265363B2 (en) Image processing device
US20150123974A1 (en) Visualization Method Of Entire Grid Data Of Numerical Weather Prediction Model Having Ultra-High Grid Resolution By Magnification Mode And Hardware Device Performing The Same
CN112035199A (en) Interface layout method, electronic equipment and computer readable storage medium
CN118014845A (en) Image processing method, apparatus, computer device, storage medium, and program product
CN116594582A (en) Image display method, apparatus, computer device 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