CN116594582A - 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
CN116594582A
CN116594582A CN202210709024.9A CN202210709024A CN116594582A CN 116594582 A CN116594582 A CN 116594582A CN 202210709024 A CN202210709024 A CN 202210709024A CN 116594582 A CN116594582 A CN 116594582A
Authority
CN
China
Prior art keywords
pixel
screen edge
template
screen
target
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
CN202210709024.9A
Other languages
Chinese (zh)
Other versions
CN116594582B (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 CN202210709024.9A priority Critical patent/CN116594582B/en
Publication of CN116594582A publication Critical patent/CN116594582A/en
Application granted granted Critical
Publication of CN116594582B publication Critical patent/CN116594582B/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Image Generation (AREA)

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 position indication information corresponding to each screen edge pixel in the screen edge section, and determining pixel position information of each screen edge pixel according to the position indication information corresponding to each screen edge pixel; splitting the screen edge section into a plurality of matched pixel templates based on preset pixel template information; determining target display parameters corresponding to the edge pixels of each screen in the matched pixel templates according to each matched pixel template; the target display parameter is used for adjusting the pixel display brightness of the screen edge pixels; and determining a target pixel value corresponding to each screen edge pixel according to the target display parameter and the pixel position information corresponding to each screen edge pixel so as to weaken the jaggy feeling of the image represented by each screen edge pixel. By adopting the method, the anti-aliasing processing optimization of the screen edge pixels can be realized, a large amount of coordinate data is not required to be stored, the storage space is saved, and the display efficiency is improved.

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 adopted to perform anti-aliasing processing, and coordinate and coefficient information of all screen edge pixels need to be stored in advance, so that a large amount of storage space is occupied, and the processing efficiency is affected.
Accordingly, the related art has a problem in that the display efficiency of the edge pixels is low.
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 position indication information corresponding to each screen edge pixel in a screen edge section, and determining pixel position information of each screen edge pixel according to the position indication information corresponding to each screen edge pixel; the pixel position information comprises pixel position coordinates and a pixel display azimuth;
Splitting the screen edge section into a plurality of matched pixel templates based on preset pixel template information; each matched pixel template has at least two of the screen edge pixels;
determining target display parameters corresponding to the screen edge pixels in each matched pixel template according to each matched pixel template; the target display parameters are used for adjusting the pixel display brightness of the corresponding screen edge pixels;
and determining a target pixel value corresponding to each screen edge pixel according to the target display parameter and the pixel position information corresponding to each screen edge pixel so as to weaken the jaggy feeling of the image represented by each screen edge pixel.
In one embodiment, the position indication information includes direction indication information and display direction information, and the determining, according to the position indication information corresponding to each of the screen edge pixels, pixel position information of each of the screen edge pixels includes:
according to the direction indication information corresponding to each screen edge pixel, sequentially determining pixel position coordinates corresponding to each screen edge pixel according to the arrangement sequence of the screen edge pixels; the direction indication information is used for representing the position relation between the screen edge pixel and the adjacent next screen edge pixel;
Determining the pixel display orientation corresponding to each screen edge pixel according to the display orientation information corresponding to each screen edge pixel; the display orientation information is used for representing the azimuth relation between the screen edge pixels and the screen display area;
and taking the pixel position coordinates and the pixel display azimuth as pixel position information of each screen edge pixel.
In one embodiment, the determining, according to the direction indication information corresponding to each of the screen edge pixels and according to the arrangement order of the screen edge pixels, the pixel position coordinates corresponding to each of the screen edge pixels sequentially includes:
acquiring reference position coordinates corresponding to reference pixels in the screen edge section; the reference pixels comprise a start position pixel and an end position pixel in the screen edge segment;
and based on the reference position coordinates, sequentially determining the pixel position coordinates corresponding to the screen edge pixels by adopting direction indication information corresponding to the screen edge pixels according to the arrangement sequence of the screen edge pixels.
In one embodiment, the splitting the screen edge segment into a plurality of matched pixel templates based on preset pixel template information includes:
Acquiring a plurality of reference pixel templates in preset pixel template information; different reference pixel templates correspond to different template shapes, or different template directions of the same template shape;
and splitting the screen edge section into a plurality of matched pixel templates according to different template shapes and different template directions of the template shapes.
In one embodiment, the determining, for each matched pixel template, a target display parameter corresponding to each of the screen edge pixels in the matched pixel template includes:
aiming at each matched pixel template, acquiring a preset slope corresponding to the template length of the matched pixel template, and taking the preset slope as a slope value of the matched pixel template;
combining the template direction and slope value of the matched pixel template and the display orientation information of each screen edge pixel in the matched pixel template to construct a target slope which is marked across the screen edge pixels in the matched pixel template;
and determining target display parameters corresponding to the screen edge pixels in the matched pixel templates according to the target oblique lines.
In one embodiment, the determining, according to the target oblique line, a target display parameter corresponding to each of the screen edge pixels in the matched pixel template includes:
Determining the template position of each screen edge pixel in the matched pixel template;
and obtaining target display parameters corresponding to the screen edge pixels according to the template positions of the screen edge pixels and the region division results of the target oblique lines which are marked across the screen edge pixels.
In one embodiment, the obtaining the target display parameter corresponding to each screen edge pixel according to the template position where each screen edge pixel is located and the region division result of each screen edge pixel by the target oblique line includes:
determining a target division area of each screen edge pixel according to the template position of each screen edge pixel and the area division result;
for each screen edge pixel, taking the ratio of the area of the target division area of the screen edge pixel to the unit pixel area as the target display parameter.
In one embodiment, the determining, according to the target display parameter and the pixel position information corresponding to each of the screen edge pixels, the target pixel value corresponding to each of the screen edge pixels includes:
acquiring image data to be displayed on a screen, and determining initial gray values corresponding to the edge pixels of the screen according to the pixel position information of the edge pixels of the screen;
And obtaining a target gray level value of each screen edge pixel based on the initial gray level value of each screen edge pixel and the target display parameter, and taking the target gray level value of each screen edge pixel as the target pixel value.
In a second aspect, the present application also provides an image display apparatus, the apparatus comprising:
the pixel position information determining module is used for acquiring position indication information corresponding to each screen edge pixel in the screen edge section and determining pixel position information of each screen edge pixel according to the position indication information corresponding to each screen edge pixel; the pixel position information comprises pixel position coordinates and a pixel display azimuth;
the matched pixel template obtaining module is used for splitting the screen edge section into a plurality of matched pixel templates based on preset pixel template information; each matched pixel template has at least two of the screen edge pixels;
the target display parameter determining module is used for determining target display parameters corresponding to the screen edge pixels in each matched pixel template; the target display parameters are used for adjusting the pixel display brightness of the corresponding screen edge pixels;
and the edge pixel display module is used for determining a target pixel value corresponding to each screen edge pixel according to the target display parameter and the pixel position information corresponding to each screen edge pixel so as to weaken the jaggy feeling of the image represented by each 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 position indication information corresponding to each screen edge pixel in the screen edge section is obtained, the pixel position information of each screen edge pixel is determined according to the position indication information corresponding to each screen edge pixel, the pixel position information comprises pixel position coordinates and pixel display orientations, then the screen edge section is split into a plurality of matched pixel templates based on preset pixel template information, each matched pixel template is provided with at least two screen edge pixels, target display parameters corresponding to each screen edge pixel in the matched pixel templates are determined according to each matched pixel template, the target display parameters are used for adjusting the pixel display brightness of the corresponding screen edge pixel, further, the target pixel value corresponding to each screen edge pixel is determined according to the target display parameters and the pixel position information corresponding to each screen edge pixel, so that the saw tooth sense of an image represented by each screen edge pixel is weakened, the pixel anti-aliasing processing optimization is realized, the pixel position information corresponding to each screen edge pixel is determined according to the position indication information, the edge section is split into a plurality of matched pixel templates, the image display parameters are saved, the display effect of the image can be improved, the display image can be displayed according to the target display parameters corresponding to the pixel image display parameters, and the display image can be stored in advance, the size of the matched image can be saved, and the display image can be 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 a direction information in one embodiment;
FIG. 3b is a schematic view of an edge orientation in one embodiment;
FIG. 3c is a schematic diagram of an example of a screen edge segment in one embodiment;
FIG. 3d is a schematic diagram of a template shape in one embodiment;
FIG. 3e is a schematic diagram of a template orientation in one embodiment;
FIG. 3f is a schematic diagram of an example U-shaped template in one embodiment;
FIG. 4a is a schematic diagram of an example of an L-shaped template calculation anti-aliasing coefficients in one embodiment;
FIG. 4b is a schematic diagram of a template anti-aliasing coefficient calculation method according to an embodiment;
FIG. 4c is a schematic diagram of an example antialiasing coefficient calculation in an embodiment;
FIG. 5 is a flow chart of another method of displaying images according to one embodiment;
FIG. 6 is a block diagram showing a structure of an image display apparatus in one embodiment;
FIG. 7 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, acquiring position indication information corresponding to each screen edge pixel in a screen edge section, and determining pixel position information of each screen edge pixel according to the position indication information corresponding to each screen edge pixel; the pixel position information comprises pixel position coordinates and a pixel display azimuth;
the screen edge segment may be an arc-shaped screen boundary segment formed by a plurality of pixel arrangements at the screen edge position, and one or more arc-shaped screen boundary segments may be obtained based on the screen arc-shaped boundary of the screen cutting place (such as 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 digging hole, and 3 is a cutting hole in fig. 2), for example, a mobile phone display screen may have one or more screen edge segments.
As an example, a direction table may be preset, which may have one or more screen edge segments therein, and position indication information corresponding to each screen edge pixel in each screen edge segment, which may include direction indication information and display orientation information, for example, each screen edge pixel may store 3 bits of direction information (i.e., direction indication information) and 1bit of edge orientation information (i.e., display orientation information).
In practical application, for a certain screen edge segment, position indication information corresponding to each screen edge pixel in the screen edge segment can be obtained, and then pixel position information of each screen edge pixel can be obtained by calculating the position indication information corresponding to each screen edge pixel, wherein the pixel position information can comprise pixel position coordinates and pixel display orientations.
Specifically, through a preset direction table, the position relation between the screen edge pixels in the screen edge section can be saved, namely the direction indication information of each screen edge pixel, so that the pixel position coordinates of each screen edge pixel can be calculated by adopting the direction indication information of each screen edge pixel, and the pixel display orientation can be determined based on the display orientation information of each screen edge pixel.
For example, for the next screen edge pixel B adjacent to the screen edge pixel a in the screen edge segment, since the direction indication information of the screen edge pixel a may characterize the positional relationship between the screen edge pixel a and the screen edge pixel B, the pixel position coordinates of the screen edge pixel B may be calculated according to the pixel position coordinates and the direction indication information of the screen edge pixel a.
As another example, the display orientation information of screen edge pixel a may characterize the azimuthal relationship of screen edge pixel a to the screen display area, and then the pixel display orientation of screen edge pixel a, i.e., the orientation of the screen display area or the screen non-display area relative to screen edge pixel a, may be determined based on the display orientation information.
Step 102, splitting the screen edge segment into a plurality of matched pixel templates based on preset pixel template information; each matched pixel template has at least two of the screen edge pixels;
the pixel template information may include a plurality of preset template shapes, and each template shape may be obtained by at least two screen edge pixel arrangements.
In a specific implementation, by acquiring preset pixel template information, template matching can be performed on a screen edge section based on a plurality of preset template shapes, and then the screen edge section can be split into a plurality of matched pixel templates, so that target display parameters, such as anti-aliasing coefficients, of each screen edge pixel can be further calculated for each matched pixel template.
In an example, after obtaining the pixel position coordinates and the pixel display orientations according to the direction indication information of each screen edge pixel in the screen edge section through the preset direction table, the screen edge section can be subjected to template detection according to a plurality of preset template shapes based on the arrangement condition of each screen edge pixel in the screen edge section, and then the screen edge section can be split into a plurality of matched pixel templates.
In an alternative embodiment, for any shape of the screen edge section, the screen edge section can be split into several fixed template shapes, such as Z-shape, L-shape and U-shape, so that the screen edge section with any shape can be supported by presetting the several fixed template shapes.
Step 103, determining target display parameters corresponding to the screen edge pixels in each matched pixel template according to each matched pixel template; the target display parameters are used for adjusting the pixel display brightness of the corresponding screen edge pixels;
after obtaining a plurality of matched pixel templates corresponding to the screen edge segments, a preset slope corresponding to each matched pixel template can be obtained for each matched pixel template, and then target display parameters of each screen edge pixel in the matched pixel template can be obtained through calculation according to the preset slope, for example, anti-aliasing coefficients of the screen edge pixels are calculated, so that anti-aliasing processing is carried out on the screen edge pixels.
Specifically, when the edge of the screen is a non-horizontal or non-vertical straight line or polygonal boundary, such as cutting a round angle, digging a hole, cutting a notch and the like, the edge of the screen can have a saw-tooth appearance when an image is presented, so that the display of image information is distorted, namely, the sample passing effect is caused, and in order to reduce or eliminate the sample passing effect, anti-sample passing treatment is needed to be carried out, so that the sample passing effect is realized; and calculating anti-aliasing coefficients of all the screen edge pixels in the matched pixel templates according to a plurality of matched pixel templates detected by the screen edge segments, so that anti-aliasing processing can be carried out on all the screen edge pixels based on the anti-aliasing coefficients.
In an example, by obtaining a preset slope corresponding to each matched pixel template, a target slope corresponding to the matched pixel template may be constructed according to the preset slope, and then an anti-aliasing coefficient of the screen edge pixel may be calculated based on the target slope, for example, the target slope may be used to attenuate the brightness of the screen edge pixel to achieve the anti-aliasing effect.
Step 104, determining a target pixel value corresponding to each screen edge pixel according to the target display parameter and the pixel position information corresponding to each screen edge pixel, so as to weaken the jaggy feel of the image represented by each screen edge pixel.
In practical application, when image data is acquired for screen display, a target pixel value corresponding to a screen edge pixel can be calculated and obtained for display according to target display parameters and pixel position information corresponding to the screen edge pixel for each screen edge pixel, so that the jaggy sense of an image represented by the screen edge pixel can be weakened, and the 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, the position relation among the screen edge pixels is obtained through a direction meter, the pixel position coordinates and the pixel display orientation of each screen edge pixel can be determined, then the pixel position coordinates and the pixel display orientation of each screen edge pixel can be determined by splitting a screen edge segment into a plurality of fixed template shapes (i.e. matched pixel templates), the anti-aliasing coefficient (i.e. target display parameter) of each screen edge pixel can be calculated according to template information (such as preset slope), and then the target pixel value output by the screen edge pixel during screen display can be determined based on the anti-aliasing coefficient, so that the jaggy feeling at the screen edge can be eliminated, and the display effect can be improved.
Compared with the traditional method, the method occupies a large amount of storage space by storing the coordinates and coefficient information of all the pixels at the edge of the screen, and the technical scheme of the embodiment ensures the pixel position information of the pixels at the edge of each screen in the edge section of the screen based on the direction table, and then calculates the anti-aliasing coefficient of the pixels at the edge of each screen according to the detected matched pixel template, so that each pixel point at the edge of the screen only needs to store 4 bits of information, the storage space is saved, the anti-aliasing effect can be realized, and the jaggy feeling of the image represented by the pixels at the edge of the screen is weakened.
According to the image display method, the position indication information corresponding to each screen edge pixel in the screen edge section is obtained, the pixel position information of each screen edge pixel is determined according to the position indication information corresponding to each screen edge pixel, then the screen edge section is split into a plurality of matched pixel templates based on the preset pixel template information, the target display parameters corresponding to each screen edge pixel in the matched pixel templates are determined according to each matched pixel template, further the target pixel value corresponding to each screen edge pixel is determined according to the target display parameters corresponding to each screen edge pixel and the pixel position information, so that the saw tooth sense of an image represented by each screen edge pixel is weakened, the anti-aliasing processing optimization of the screen edge pixels is realized, the pixel position information corresponding to each screen edge pixel is determined according to the position indication information, the screen edge section is split into a plurality of matched pixel templates, the target display parameters of each screen edge pixel are determined based on the matched pixel templates, the anti-aliasing effect is achieved, the saw tooth sense at the screen edge is improved, a large amount of coordinate data is not required to be stored in advance, the storage space is saved, and the display efficiency is saved.
In one embodiment, the position indication information includes direction indication information and display direction information, and the determining, according to the position indication information corresponding to each of the screen edge pixels, pixel position information of each of the screen edge pixels may include the following steps:
according to the direction indication information corresponding to each screen edge pixel, sequentially determining pixel position coordinates corresponding to each screen edge pixel according to the arrangement sequence of the screen edge pixels; the direction indication information is used for representing the position relation between the screen edge pixel and the adjacent next screen edge pixel;
in practical application, since the direction indication information can represent the position relationship between the current screen edge pixel and the next adjacent screen edge pixel, the screen edge segments can be traversed according to the direction indication information corresponding to each screen edge pixel and the arrangement sequence of the screen edge pixels, so that the pixel position coordinates corresponding to each screen edge pixel can be calculated in sequence.
In an example, the direction indication information is shown in fig. 3a, which may represent the direction of the coordinates of the next screen edge pixel relative to the coordinates of the current screen edge pixel, and by using the coordinates of the current screen edge pixel and the directions of the adjacent next screen edge pixels, the coordinates of the next screen edge pixel (i.e. the pixel position coordinates) may be calculated, and thus the coordinates of all the screen edge pixels in the screen edge segment may be sequentially calculated.
Determining the pixel display orientation corresponding to each screen edge pixel according to the display orientation information corresponding to each screen edge pixel; the display orientation information is used for representing the azimuth relation between the screen edge pixels and the screen display area;
in a specific implementation, since the display orientation information may represent the azimuth relationship between the screen edge pixels and the screen display area, the pixel display orientation corresponding to each screen edge pixel may be determined according to the display orientation information corresponding to each screen edge pixel, as shown in fig. 3b, the upper left orientation of 1 in fig. 3b is the screen non-display area, and the lower right orientation of 2 in fig. 3b is the screen non-display area.
And taking the pixel position coordinates and the pixel display azimuth as pixel position information of each screen edge pixel.
In practical application, by determining the pixel position coordinates and the pixel display orientations of the screen edge pixels in the screen edge segments based on the direction table, as the pixel position information of the screen edge pixels, only 3 bits of direction information (i.e., direction indication information) and 1bit of edge orientation information (i.e., display orientation information) can be stored for each screen edge pixel, saving storage space.
In this embodiment, the pixel position coordinates corresponding to the edge pixels of each screen are sequentially determined according to the direction indication information corresponding to the edge pixels of each screen and the arrangement order of the edge pixels of each screen, and then the pixel display orientation corresponding to the edge pixels of each screen is determined according to the display orientation information corresponding to the edge pixels of each screen, so that the pixel position coordinates and the pixel display orientation are used as the pixel position information of the edge pixels of each screen, which can save storage space and improve display efficiency.
In one embodiment, the determining, according to the direction indication information corresponding to each of the screen edge pixels, the pixel position coordinates corresponding to each of the screen edge pixels sequentially according to the arrangement order of the screen edge pixels may include the following steps:
acquiring reference position coordinates corresponding to reference pixels in the screen edge section; the reference pixels comprise a start position pixel and an end position pixel in the screen edge segment; and based on the reference position coordinates, sequentially determining the pixel position coordinates corresponding to the screen edge pixels by adopting direction indication information corresponding to the screen edge pixels according to the arrangement sequence of the screen edge pixels.
In practical application, the direction table may store coordinates (i.e. reference position coordinates) of a start position and an end position in the screen edge segment, so that the entire screen edge segment may be traversed from the start position and the end position according to direction indication information corresponding to each screen edge pixel, or may be traversed from one side of the start position or the end position, and pixel position coordinates corresponding to each screen edge pixel may be obtained by sequentially calculating according to the arrangement order of the screen edge pixels in the screen edge segment.
In an example, as shown in fig. 3c, it may be a section of an upper left corner of the screen, where the upper left direction of the screen edge section is a screen non-display area, then bit 4 may be set to 0 (i.e. the display orientation information corresponding to the screen edge pixel), and a virtual direction other than the screen edge section may be taken as the starting position of the whole screen edge section, as shown by a dashed box 5 in fig. 3c, direction 5 (i.e. the direction indication information corresponding to the screen edge pixel) may indicate that the next screen edge pixel is located at the lower left of the starting position, and direction 2 may indicate that the next screen edge pixel is located at the left of the current screen edge pixel, where the preset manner of the direction indication information is not limited in this embodiment.
In this embodiment, the pixel position coordinates corresponding to the edge pixels of each screen are sequentially determined by acquiring the reference position coordinates corresponding to the reference pixels in the edge segments of the screen and further adopting the direction indication information corresponding to the edge pixels of each screen according to the arrangement sequence of the edge pixels of the screen based on the reference position coordinates, so that the pixel position coordinates corresponding to the edge pixels of each screen can be sequentially traversed based on the reference coordinates in the edge segments of the screen, data support is provided for subsequent template detection, and processing efficiency is improved.
In one embodiment, the splitting the screen edge segment into a plurality of matched pixel templates based on the preset pixel template information may include the following steps:
acquiring a plurality of reference pixel templates in preset pixel template information; different reference pixel templates correspond to different template shapes, or different template directions of the same template shape; and splitting the screen edge section into a plurality of matched pixel templates according to different template shapes and different template directions of the template shapes.
As an example, the different template shapes may be fixed template shapes such as Z-shape, L-shape and U-shape (as shown in fig. 3 d), wherein the U-shape template may be combined from two L-shape templates; the template directions may include different template directions such as lower left, upper left, lower right, upper left, upper right, lower left, lower right, etc., and the same template shape may have a plurality of different template directions, as shown in fig. 3 e.
In practical application, a plurality of reference pixel templates can be obtained based on preset pixel template information, and as different reference pixel templates correspond to different template shapes or different template directions of the same template shape, template matching can be carried out on the edge section of the screen according to different template shapes and different template directions of the template shapes, and a plurality of matched pixel templates are obtained through splitting.
In an example, as shown in fig. 3f, by inserting two false direction indication information (such as the dashed box 4 and the dashed box 7 in fig. 3 f), the U-shaped template can be split into two L-shaped templates, the direction indication information is 4000007 when the false direction is not added, the direction indication information is 40047007 when the false direction is added, and the false direction can be judged as the case that the lower right direction 4 and the upper right direction 7 are unreasonable continuously occurs.
In this embodiment, by acquiring a plurality of reference pixel templates in the preset pixel template information, and then splitting the screen edge segment into a plurality of matched pixel templates according to different template shapes and different template directions of each template shape, the screen edge segment with any shape can be split into a fixed template shape, so as to further calculate the anti-aliasing coefficient of each screen edge pixel, and improve the anti-aliasing processing efficiency.
In one embodiment, the determining, for each matched pixel template, the target display parameter corresponding to each of the screen edge pixels in the matched pixel template may include the following steps:
aiming at each matched pixel template, acquiring a preset slope corresponding to the template length of the matched pixel template, and taking the preset slope as a slope value of the matched pixel template; combining the template direction and slope value of the matched pixel template and the display orientation information of each screen edge pixel in the matched pixel template to construct a target slope which is marked across the screen edge pixels in the matched pixel template; and determining target display parameters corresponding to the screen edge pixels in the matched pixel templates according to the target oblique lines.
As an example, when a template with a maximum length of 16 is supported in hardware implementation, the slopes corresponding to the lengths of 16 templates (i.e., preset slopes) may be stored in the lookup Table in advance, for example, the slopes corresponding to different template lengths may be preset through a LUT (Look-Up Table).
After obtaining a plurality of matched pixel templates, a corresponding preset slope can be obtained for each matched pixel template according to the template length of the matched pixel template to serve as a slope value of the matched pixel template, then a target oblique line which is marked across the screen edge pixels in the matched pixel template can be constructed based on the template direction and the slope value of the matched pixel template and the display orientation information of each screen edge pixel in the matched pixel template, and further a target display parameter corresponding to the screen edge pixels, namely an anti-aliasing coefficient, can be calculated according to the target oblique line.
For example, as shown in fig. 4a, each 3 rd bit is in the direction of 1, that is, in the directions of 4 opposite angles of upper left, upper right, lower right and lower left, the starting position and the ending position of a matching pixel template can be represented, so that the template length of the matching pixel template can be obtained, and according to the template direction (such as the direction in which the dotted line frame is a non-display area in fig. 4 a) of the matching pixel template and the preset slope corresponding to the template length, and the display orientation information of each screen edge pixel in the matching pixel template, a diagonal line (that is, a target diagonal line) which is drawn across the screen edge pixels in the matching pixel template can be obtained, and further, the area division condition for the matching pixel template can be determined based on the diagonal line.
In this embodiment, a preset slope corresponding to the template length of the matched pixel template is obtained for each matched pixel template, and is used as a slope value of the matched pixel template, then a target slope which is drawn across the screen edge pixels in the matched pixel template is constructed by combining the template direction and the slope value of the matched pixel template and the display orientation information of the screen edge pixels in the matched pixel template, and then a target display parameter corresponding to each screen edge pixel in the matched pixel template is determined according to the target slope, so that a slope corresponding to the matched pixel template can be obtained based on the preset slope, and data support is provided for calculating the antialiasing coefficient of each screen edge pixel in the matched pixel template.
In one embodiment, the determining, according to the target diagonal line, the target display parameter corresponding to each of the screen edge pixels in the matched pixel template may include the following steps:
determining the template position of each screen edge pixel in the matched pixel template; and obtaining target display parameters corresponding to the screen edge pixels according to the template positions of the screen edge pixels and the region division results of the target oblique lines which are marked across the screen edge pixels.
In practical application, by judging that the marked screen edge pixel is at a specific position in the current matched pixel template, namely, the template position where the screen edge pixel is located, the anti-aliasing coefficient corresponding to the screen edge pixel, namely, the target display parameter, can be further calculated according to the template position and the region division result of the target diagonal marked screen edge pixel.
For example, as shown in fig. 4a, for the screen edge pixel 1 in the matching pixel template, the screen edge pixel 1 may be divided into a region 1a and a region 1b (i.e., a region division result) based on the oblique line drawn through the matching pixel template, and then the corresponding antialiasing coefficient may be further calculated by combining the position of the screen edge pixel 1 in the matching pixel template; since there are screen pixel points at the peripheral positions of the respective screen edge pixels in the matched pixel template at the time of hardware implementation, the screen pixels 2 may be divided into the region 2a and the region 2b by oblique lines for the screen pixels 2 located outside the matched pixel template in fig. 4 a.
In this embodiment, by determining the template position where each screen edge pixel in the matched pixel template is located, further, according to the template position where each screen edge pixel is located and the area division result that the target diagonal line passes through each screen edge pixel, the target display parameter corresponding to each screen edge pixel is obtained, and the anti-aliasing coefficient can be determined based on the template position where the screen edge pixel is located, so as to achieve the anti-aliasing effect, and improve the display efficiency.
In one embodiment, the obtaining the target display parameter corresponding to each screen edge pixel according to the template position where each screen edge pixel is located and the region division result of each screen edge pixel by the target diagonal line may include the following steps:
determining a target division area of each screen edge pixel according to the template position of each screen edge pixel and the area division result; for each screen edge pixel, taking the ratio of the area of the target division area of the screen edge pixel to the unit pixel area as the target display parameter.
In practical applications, based on the diagonal line drawn through the matching pixel template and the position of the screen edge pixel in the matching pixel template, the area occupied by the diagonal line drawn through the screen edge pixel (i.e. the target division area) can be determined, and then the ratio of the area occupied by the diagonal line drawn through the screen edge pixel to the unit pixel area of the screen edge pixel can be used as the antialiasing coefficient (i.e. the target display parameter).
For example, as shown in fig. 4a, a schematic diagram may be calculated for an antialiasing coefficient of an L-shaped template, based on a target diagonal line corresponding to a matched pixel template, a length of a diagonal line in a drawn screen edge pixel, which is drawn across both left and right sides of a pixel region, may be determined, and then an area of a target division region of the screen edge pixel, such as a region 1b in fig. 4a, may be calculated; the anti-aliasing coefficients for other fixed template shapes are calculated as shown in FIG. 4 b.
In one example, by determining that the scratched screen edge pixel is at a particular location in the current matching pixel template (i.e., the template location), the area of the target partitioned area of the screen edge pixel can be calculated, which can be obtained as follows:
when the unit pixel area is 1, a is an antialiasing coefficient (i.e., a target display parameter), D is a template length of a current matching pixel template, lut is a preset slope pre-stored based on a lookup table, i is a template position where a scratched screen edge pixel is located, and further, the area of a trapezoid area can be calculated according to the template position, and whether the calculated trapezoid area needs to be subtracted from the unit area of the screen edge pixel can be judged based on whether the scratched screen edge pixel is located in the first half or the second half of the template.
For example, as shown in fig. 4c, the template length D of the current matching pixel template is 4, and for the screen edge pixel 0 in the current matching pixel template, the area a corresponding to the target division area thereof 0 Can be obtained by A when the unit pixel area is 1 0 As an antialiasing coefficient:
for another example, for the screen pixel 1 outside the current matching pixel template, the target division area corresponds to the area A 1 Can be obtained byWhen 1, A 1 As an antialiasing coefficient:
in this embodiment, the target division area of each screen edge pixel is determined according to the template position and the area division result where each screen edge pixel is located, and then, for each screen edge pixel, the ratio of the area of the target division area of the screen edge pixel to the unit pixel area is used as the target display parameter, so that the anti-aliasing coefficient can be obtained to realize anti-aliasing processing, and the screen display effect can be improved.
In one embodiment, the determining the target pixel value corresponding to each of the screen edge pixels according to the target display parameter and the pixel position information corresponding to each of the screen edge pixels may include the following steps:
Acquiring image data to be displayed on a screen, and determining initial gray values corresponding to the edge pixels of the screen according to the pixel position information of the edge pixels of the screen; obtaining a target gray value of each screen edge pixel based on the initial gray value of each screen edge pixel and a target display parameter, and taking the target gray value as the target pixel value
In practical application, when obtaining the image data to be displayed on the screen for display, an initial gray value can be determined for each screen edge pixel according to the pixel position information of the screen edge pixel, then a target gray value can be output based on the initial gray value and the target display parameter and used as a target pixel value corresponding to the screen edge pixel for display, and the brightness of the screen edge pixel can be attenuated based on the target display parameter, so that the jaggy feeling of the image represented by the screen edge pixel can be weakened, and the anti-aliasing effect can be realized.
For example, the gray value (i.e., the initial gray value) of the edge pixel of the screen can be multiplied by the calculated anti-aliasing coefficient (i.e., the target display parameter), and then the final output gray value (i.e., the target gray value) can be obtained by dividing the unit area of the edge pixel of the screen through shift, so that only integer multiplication is used in the calculation process of the anti-aliasing coefficient, and the anti-aliasing processing efficiency is improved.
In this embodiment, by acquiring image data to be displayed on a screen, determining an initial gray value corresponding to each screen edge pixel according to pixel position information of each screen edge pixel, and further obtaining a target gray value of each screen edge pixel based on the initial gray value and a target display parameter of each screen edge pixel, the target gray value is used as a target pixel value, so that a jaggy feel of an image represented by the screen edge pixel can be weakened, and display efficiency is improved.
In one embodiment, as shown in fig. 5, a flow diagram of another image display method is provided. In this embodiment, the method includes the steps of:
in step 501, position indication information corresponding to each screen edge pixel in the screen edge segment is acquired. In step 502, the position indication information includes direction indication information and display orientation information, and according to the direction indication information corresponding to each screen edge pixel, pixel position coordinates corresponding to each screen edge pixel are sequentially determined according to the arrangement order of the screen edge pixels. In step 503, according to the display orientation information corresponding to each screen edge pixel, determining a pixel display orientation corresponding to each screen edge pixel; the display orientation information is used to characterize the azimuthal relationship of the screen edge pixels to the screen display area. In step 504, the pixel position coordinates and the pixel display orientation are used as pixel position information for each screen edge pixel. In step 505, splitting the screen edge segment into a plurality of matched pixel templates based on preset pixel template information; each matching pixel template has at least two screen edge pixels. In step 506, for each matching pixel template, a preset slope corresponding to the template length of the matching pixel template is obtained as a slope value of the matching pixel template. In step 507, a target diagonal line drawn across the screen edge pixels in the matched pixel template is constructed in combination with the template direction and the slope value of the matched pixel template and the display orientation information of each screen edge pixel in the matched pixel template. In step 508, a target display parameter corresponding to each screen edge pixel in the matched pixel template is determined according to the target diagonal line. In step 509, according to the target display parameter and the pixel position information corresponding to each screen edge pixel, a target pixel value corresponding to each screen edge pixel is determined to weaken the jaggy feel of the image presented by each screen edge pixel. 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. 6, there is provided an image display apparatus including:
a pixel position information determining module 601, configured to obtain position indication information corresponding to each screen edge pixel in a screen edge segment, and determine pixel position information of each screen edge pixel according to the position indication information corresponding to each screen edge pixel; the pixel position information comprises pixel position coordinates and a pixel display azimuth;
a matched pixel template obtaining module 602, configured to split the screen edge segment into a plurality of matched pixel templates based on preset pixel template information; each matched pixel template has at least two of the screen edge pixels;
a target display parameter determining module 603, configured to determine, for each matching pixel template, a target display parameter corresponding to each screen edge pixel in the matching pixel template; the target display parameters are used for adjusting the pixel display brightness of the corresponding screen edge pixels;
the edge pixel display module 604 is configured to determine, according to the target display parameter and the pixel position information corresponding to each of the screen edge pixels, a target pixel value corresponding to each of the screen edge pixels, so as to weaken a jaggy feel of an image represented by each of the screen edge pixels.
In one embodiment, the location indication information includes direction indication information and display orientation information, and the pixel location information determining module 601 includes:
the pixel position coordinate obtaining submodule is used for sequentially determining the pixel position coordinates corresponding to the screen edge pixels according to the direction indication information corresponding to the screen edge pixels and the arrangement sequence of the screen edge pixels; the direction indication information is used for representing the position relation between the screen edge pixel and the adjacent next screen edge pixel;
a pixel display orientation obtaining sub-module, configured to determine a pixel display orientation corresponding to each screen edge pixel according to display orientation information corresponding to each screen edge pixel; the display orientation information is used for representing the azimuth relation between the screen edge pixels and the screen display area;
and the pixel position information obtaining submodule is used for taking the pixel position coordinates and the pixel display azimuth as pixel position information of each screen edge pixel.
In one embodiment, the pixel position coordinate deriving submodule includes:
a reference position coordinate acquiring unit, configured to acquire a reference position coordinate corresponding to a reference pixel in the screen edge segment; the reference pixels comprise a start position pixel and an end position pixel in the screen edge segment;
And the coordinate sequential determining unit is used for sequentially determining the pixel position coordinates corresponding to the screen edge pixels by adopting the direction indication information corresponding to the screen edge pixels according to the arrangement sequence of the screen edge pixels based on the reference position coordinates.
In one embodiment, the matched pixel template derivation module 602 includes:
the reference template acquisition sub-module is used for acquiring a plurality of reference pixel templates in preset pixel template information; different reference pixel templates correspond to different template shapes, or different template directions of the same template shape;
and the splitting module is used for splitting the screen edge section into a plurality of matched pixel templates according to different template shapes and different template directions of the template shapes.
In one embodiment, the target display parameter determination module 603 includes:
a preset slope obtaining sub-module, configured to obtain, for each matched pixel template, a preset slope corresponding to a template length of the matched pixel template, as a slope value of the matched pixel template;
a target oblique line construction submodule, configured to combine a template direction and an oblique value of the matched pixel template and display orientation information of each screen edge pixel in the matched pixel template to construct a target oblique line that cuts through the screen edge pixels in the matched pixel template;
And the target display parameter determining submodule is used for determining target display parameters corresponding to the screen edge pixels in the matched pixel template according to the target oblique lines.
In one embodiment, the target display parameter determination submodule includes:
a template position determining unit, configured to determine a template position where each of the screen edge pixels in the matched pixel template is located;
and the target display parameter obtaining unit is used for obtaining target display parameters corresponding to the screen edge pixels according to the template positions of the screen edge pixels and the area division results of the target oblique lines which are marked through the screen edge pixels.
In one embodiment, the target display parameter obtaining unit includes:
a target division area determining subunit, configured to determine a target division area of each screen edge pixel according to a template position where each screen edge pixel is located and the area division result;
and the parameter calculation subunit is used for taking the area ratio of the target dividing area of the screen edge pixels to the original pixel area as the target display parameter for each screen edge pixel.
In one embodiment, the edge pixel display module 604 includes:
the initial gray value acquisition sub-module is used for acquiring image data to be displayed on a screen and determining initial gray values corresponding to the edge pixels of the screen according to the pixel position information of the edge pixels of the screen;
the target pixel value obtaining submodule is used for obtaining the target gray value of each screen edge pixel based on the initial gray value of each screen edge pixel and the target display parameter, and the target gray value is used as the target pixel value.
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. 7. 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. 7 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 position indication information corresponding to each screen edge pixel in a screen edge section, and determining pixel position information of each screen edge pixel according to the position indication information corresponding to each screen edge pixel; the pixel position information comprises pixel position coordinates and a pixel display azimuth;
splitting the screen edge section into a plurality of matched pixel templates based on preset pixel template information; each matched pixel template has at least two of the screen edge pixels;
determining target display parameters corresponding to the screen edge pixels in each matched pixel template according to each matched pixel template; the target display parameters are used for adjusting the pixel display brightness of the corresponding screen edge pixels;
And determining a target pixel value corresponding to each screen edge pixel according to the target display parameter and the pixel position information corresponding to each screen edge pixel so as to weaken the jaggy feeling of the image represented by each 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 position indication information corresponding to each screen edge pixel in a screen edge section, and determining pixel position information of each screen edge pixel according to the position indication information corresponding to each screen edge pixel; the pixel position information comprises pixel position coordinates and a pixel display azimuth;
splitting the screen edge section into a plurality of matched pixel templates based on preset pixel template information; each matched pixel template has at least two of the screen edge pixels;
determining target display parameters corresponding to the screen edge pixels in each matched pixel template according to each matched pixel template; the target display parameters are used for adjusting the pixel display brightness of the corresponding screen edge pixels;
And determining a target pixel value corresponding to each screen edge pixel according to the target display parameter and the pixel position information corresponding to each screen edge pixel so as to weaken the jaggy feeling of the image represented by each 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 position indication information corresponding to each screen edge pixel in a screen edge section, and determining pixel position information of each screen edge pixel according to the position indication information corresponding to each screen edge pixel; the pixel position information comprises pixel position coordinates and a pixel display azimuth;
splitting the screen edge section into a plurality of matched pixel templates based on preset pixel template information; each matched pixel template has at least two of the screen edge pixels;
determining target display parameters corresponding to the screen edge pixels in each matched pixel template according to each matched pixel template; the target display parameters are used for adjusting the pixel display brightness of the corresponding screen edge pixels;
And determining a target pixel value corresponding to each screen edge pixel according to the target display parameter and the pixel position information corresponding to each screen edge pixel so as to weaken the jaggy feeling of the image represented by each 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 (12)

1. An image display method, the method comprising:
acquiring position indication information corresponding to each screen edge pixel in a screen edge section, and determining pixel position information of each screen edge pixel according to the position indication information corresponding to each screen edge pixel; the pixel position information comprises pixel position coordinates and a pixel display azimuth;
Splitting the screen edge section into a plurality of matched pixel templates based on preset pixel template information; each matched pixel template has at least two of the screen edge pixels;
determining target display parameters corresponding to the screen edge pixels in each matched pixel template according to each matched pixel template; the target display parameters are used for adjusting the pixel display brightness of the corresponding screen edge pixels;
and determining a target pixel value corresponding to each screen edge pixel according to the target display parameter and the pixel position information corresponding to each screen edge pixel so as to weaken the jaggy feeling of the image represented by each screen edge pixel.
2. The method according to claim 1, wherein the position indication information includes direction indication information and display orientation information, and the determining pixel position information of each of the screen edge pixels according to the position indication information corresponding to each of the screen edge pixels includes:
according to the direction indication information corresponding to each screen edge pixel, sequentially determining pixel position coordinates corresponding to each screen edge pixel according to the arrangement sequence of the screen edge pixels; the direction indication information is used for representing the position relation between the screen edge pixel and the adjacent next screen edge pixel;
Determining the pixel display orientation corresponding to each screen edge pixel according to the display orientation information corresponding to each screen edge pixel; the display orientation information is used for representing the azimuth relation between the screen edge pixels and the screen display area;
and taking the pixel position coordinates and the pixel display azimuth as pixel position information of each screen edge pixel.
3. The method according to claim 2, wherein the sequentially determining the pixel position coordinates corresponding to the screen edge pixels according to the direction indication information corresponding to the screen edge pixels and the screen edge pixel arrangement sequence includes:
acquiring reference position coordinates corresponding to reference pixels in the screen edge section; the reference pixels comprise a start position pixel and an end position pixel in the screen edge segment;
and based on the reference position coordinates, sequentially determining the pixel position coordinates corresponding to the screen edge pixels by adopting direction indication information corresponding to the screen edge pixels according to the arrangement sequence of the screen edge pixels.
4. The method of claim 1, wherein splitting the screen edge segment into a plurality of matched pixel templates based on the preset pixel template information comprises:
Acquiring a plurality of reference pixel templates in preset pixel template information; different reference pixel templates correspond to different template shapes, or different template directions of the same template shape;
and splitting the screen edge section into a plurality of matched pixel templates according to different template shapes and different template directions of the template shapes.
5. The method according to claim 1, wherein determining, for each matched pixel template, a target display parameter corresponding to each of the screen edge pixels in the matched pixel template comprises:
aiming at each matched pixel template, acquiring a preset slope corresponding to the template length of the matched pixel template, and taking the preset slope as a slope value of the matched pixel template;
combining the template direction and slope value of the matched pixel template and the display orientation information of each screen edge pixel in the matched pixel template to construct a target slope which is marked across the screen edge pixels in the matched pixel template;
and determining target display parameters corresponding to the screen edge pixels in the matched pixel templates according to the target oblique lines.
6. The method of claim 5, wherein determining the target display parameter corresponding to each of the screen edge pixels in the matched pixel template according to the target diagonal line comprises:
Determining the template position of each screen edge pixel in the matched pixel template;
and obtaining target display parameters corresponding to the screen edge pixels according to the template positions of the screen edge pixels and the region division results of the target oblique lines which are marked across the screen edge pixels.
7. The method of claim 6, wherein the obtaining the target display parameter corresponding to each of the screen edge pixels according to the template position where each of the screen edge pixels is located and the region division result of the target diagonal line across each of the screen edge pixels comprises:
determining a target division area of each screen edge pixel according to the template position of each screen edge pixel and the area division result;
for each screen edge pixel, taking the ratio of the area of the target division area of the screen edge pixel to the unit pixel area as the target display parameter.
8. The method according to any one of claims 1 to 7, wherein determining a target pixel value corresponding to each of the screen edge pixels according to the target display parameter and the pixel position information corresponding to each of the screen edge pixels comprises:
Acquiring image data to be displayed on a screen, and determining initial gray values corresponding to the edge pixels of the screen according to the pixel position information of the edge pixels of the screen;
and obtaining a target gray level value of each screen edge pixel based on the initial gray level value of each screen edge pixel and the target display parameter, and taking the target gray level value of each screen edge pixel as the target pixel value.
9. An image display device, the device comprising:
the pixel position information determining module is used for acquiring position indication information corresponding to each screen edge pixel in the screen edge section and determining pixel position information of each screen edge pixel according to the position indication information corresponding to each screen edge pixel; the pixel position information comprises pixel position coordinates and a pixel display azimuth;
the matched pixel template obtaining module is used for splitting the screen edge section into a plurality of matched pixel templates based on preset pixel template information; each matched pixel template has at least two of the screen edge pixels;
the target display parameter determining module is used for determining target display parameters corresponding to the screen edge pixels in each matched pixel template; the target display parameters are used for adjusting the pixel display brightness of the corresponding screen edge pixels;
And the edge pixel display module is used for determining a target pixel value corresponding to each screen edge pixel according to the target display parameter and the pixel position information corresponding to each screen edge pixel so as to weaken the jaggy feeling of the image represented by each screen edge pixel.
10. 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 one of claims 1 to 8 when the computer program is executed.
11. 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 8.
12. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the steps of the method of any one of claims 1 to 8.
CN202210709024.9A 2022-06-22 2022-06-22 Image display method, apparatus, computer device and storage medium Active CN116594582B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210709024.9A CN116594582B (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
CN202210709024.9A CN116594582B (en) 2022-06-22 2022-06-22 Image display method, apparatus, computer device and storage medium

Publications (2)

Publication Number Publication Date
CN116594582A true CN116594582A (en) 2023-08-15
CN116594582B CN116594582B (en) 2024-03-22

Family

ID=87588594

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN116594582B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07105387A (en) * 1993-10-07 1995-04-21 Mitsubishi Precision Co Ltd Method and device for anti-aliasing
CN1601562A (en) * 2003-09-25 2005-03-30 索尼株式会社 Image processing apparatus and method of same
WO2006021899A2 (en) * 2004-08-25 2006-03-02 Koninklijke Philips Electronics N.V. 3d-graphics
CN103617640A (en) * 2013-11-13 2014-03-05 南京航空航天大学 Line pattern anti-aliasing display method
CN107481200A (en) * 2017-07-31 2017-12-15 腾讯科技(深圳)有限公司 Image processing method and device
CN109064483A (en) * 2018-08-29 2018-12-21 广州市保伦电子有限公司 Picture antialiasing method, apparatus, single-chip microcontroller and the storage medium of LCD screen

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07105387A (en) * 1993-10-07 1995-04-21 Mitsubishi Precision Co Ltd Method and device for anti-aliasing
CN1601562A (en) * 2003-09-25 2005-03-30 索尼株式会社 Image processing apparatus and method of same
WO2006021899A2 (en) * 2004-08-25 2006-03-02 Koninklijke Philips Electronics N.V. 3d-graphics
CN103617640A (en) * 2013-11-13 2014-03-05 南京航空航天大学 Line pattern anti-aliasing display method
CN107481200A (en) * 2017-07-31 2017-12-15 腾讯科技(深圳)有限公司 Image processing method and device
CN109064483A (en) * 2018-08-29 2018-12-21 广州市保伦电子有限公司 Picture antialiasing method, apparatus, single-chip microcontroller and the storage medium of LCD screen

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
桂丽娟 等: "基于亚像素精度的任意宽度直线反走样算法", 《计算机仿真》, no. 09, pages 244 - 247 *
桂丽娟 等: "基于亚像素精度的任意宽度直线反走样算法", 计算机仿真, no. 09, 15 September 2013 (2013-09-15), pages 244 - 247 *

Also Published As

Publication number Publication date
CN116594582B (en) 2024-03-22

Similar Documents

Publication Publication Date Title
US10504400B2 (en) Method and apparatus for performing correction processing on grayscale of a pixel in an image
CN110377264B (en) Layer synthesis method, device, electronic equipment and storage medium
EP3985612B1 (en) Method and device for rendering animation, computer readable storage medium, and computer apparatus
KR20160051154A (en) Rendering method and apparatus, and electronic apparatus
CN111192352B (en) Map rendering method, map rendering device, computer equipment and storage medium
US20090256852A1 (en) Character display apparatus
CN114546206B (en) Special-shaped screen display method and device, computer equipment and storage medium
US6927773B2 (en) Font processing device, terminal device, font processing method, and font processing program
JP2006284857A (en) Document image generating program, and its system and its method
CN116594582B (en) Image display method, apparatus, computer device and storage medium
CN112114919B (en) Screen rotation display optimization method and device
JP2006048042A (en) Dma overlay addressing methodology for optimizing power and improving memory bandwidth for display engine
CN110097525B (en) Image rendering method and device and computing equipment
US20100134509A1 (en) Image rendering processing apparatus
CN110909276A (en) Data rendering method and device, computer equipment and storage medium
US20130063475A1 (en) System and method for text rendering
CN116594581B (en) Image display method, apparatus, computer device and storage medium
US8754908B2 (en) Optimized on-screen video composition for mobile device
CN116433515B (en) Image rotation antialiasing method, apparatus, computer device, and storage medium
CN116129816B (en) Pixel rendering method, device, computer equipment and storage medium
CN116645428A (en) Image display method, device, computer equipment and storage medium
EP1351189A1 (en) Image processing
CN116527908B (en) Motion field estimation method, motion field estimation device, computer device and storage medium
WO2017084038A1 (en) Image display method and apparatus, electronic device and storage medium
US20130162652A1 (en) Method and System for Improved Glyph Cache Efficiency

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