CN112449167A - Image sawtooth elimination and image display method and device - Google Patents

Image sawtooth elimination and image display method and device Download PDF

Info

Publication number
CN112449167A
CN112449167A CN202011270144.0A CN202011270144A CN112449167A CN 112449167 A CN112449167 A CN 112449167A CN 202011270144 A CN202011270144 A CN 202011270144A CN 112449167 A CN112449167 A CN 112449167A
Authority
CN
China
Prior art keywords
image
layer
target image
target
opaque
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.)
Pending
Application number
CN202011270144.0A
Other languages
Chinese (zh)
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.)
Shenzhen Huole Science and Technology Development Co Ltd
Original Assignee
Shenzhen Huole Science and Technology Development 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 Shenzhen Huole Science and Technology Development Co Ltd filed Critical Shenzhen Huole Science and Technology Development Co Ltd
Priority to CN202011270144.0A priority Critical patent/CN112449167A/en
Publication of CN112449167A publication Critical patent/CN112449167A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/12Picture reproducers
    • H04N9/31Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
    • H04N9/3179Video signal processing therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/12Picture reproducers
    • H04N9/31Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
    • H04N9/3179Video signal processing therefor
    • H04N9/3185Geometric adjustment, e.g. keystone or convergence

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The invention discloses a method and a device for eliminating image saw teeth and displaying an image, wherein the method for eliminating the saw teeth of a target image comprises the following steps: displaying a layer in a target display area; and the periphery of the image layer is provided with an opaque frame with a first preset pixel width, and the opaque frame is used for covering image sawteeth of the target image. By implementing the invention, the sawtooth can be eliminated without excessively consuming system resources, the performance of the image delivery equipment is not influenced, image processing chips such as ichips and the like are not required to be added, and the cost for eliminating the sawtooth is reduced.

Description

Image sawtooth elimination and image display method and device
Technical Field
The invention relates to the technical field of projection, in particular to a method and a device for eliminating image saw teeth and displaying an image.
Background
The existing projection equipment on the market basically supports trapezoidal correction so as to meet the requirement that a user can adjust a rectangular picture when the user throws the projection equipment sideways. However, since the projection images are composed of pixels, due to the physical characteristics of the projection images, the projection images are not parallel to the original pixel array after the trapezoidal correction, and therefore, the projection images have saw teeth. For the aliasing problem, the existing technology generally uses an algorithm such as openGL to re-render each frame of the projection content, which causes consumption on GPU performance. And the contrast of the edge of the projection picture is large, and very obvious saw teeth still exist. Even if Ichips are added, the Ichips still have obvious saw teeth and cannot be completely eliminated.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for image aliasing cancellation and image display to solve the problem that image aliasing cannot be completely cancelled.
According to a first aspect, an embodiment of the present invention provides a method for removing aliasing in a target image, including: displaying a layer in a target display area; and the periphery of the image layer is provided with an opaque frame with a first preset pixel width, and the opaque frame is used for covering image sawteeth of the target image.
In the method for eliminating the jaggy of the target image provided by the embodiment of the invention, the layer with the opaque border at the peripheral edge is displayed in the target display area, the jaggy of the image can be covered by the opaque border at the periphery of the layer, the jaggy of the image can be eliminated without a complex algorithm, and the display of the layer on the target display area does not consume system resources.
With reference to the first aspect, in a first implementation manner of the first aspect, displaying a layer in a target display area includes: displaying the layer on the farthest side of the target display area along the direction far away from the target display area; the middle area surrounded by the opaque frames of the image layer is a transparent area, and the projection of the image layer on the plane where the target display area is located along the direction perpendicular to the target display area is at least partially overlapped with the target display area.
The image layer containing the opaque border is displayed on the farthest side in the direction far away from the target display area, the image layer is actually displayed on the side closest to a user, so that the peripheral position of an image in the target display area can be covered, sawteeth on the periphery of the target image can be automatically removed when a new target image is displayed every time, the image layer with the opaque border is not required to be separately generated when the image is displayed every time, the efficiency of removing the sawteeth is higher, in addition, the image layer containing the opaque border is displayed on the side closest to the user in the target display area, and the middle area formed by the enclosing of the opaque border is set as the transparent area, so that the influence of the image layer containing the opaque border on the display of the target image is avoided.
With reference to the first aspect, in a second implementation manner of the first aspect, the target image is displayed in a middle area surrounded by an opaque border of the layer.
With reference to the first aspect, or the first implementation manner of the first aspect, or the second implementation manner of the first aspect, in a third implementation manner of the first aspect, the layer is consistent with the resolution of the target display area.
With reference to the first aspect or any one implementation manner of the first aspect, in a fourth implementation manner of the first aspect, the target image is an image subjected to keystone correction.
With reference to the first embodiment of the first aspect or the second embodiment of the first aspect, in a fifth embodiment of the first aspect, a transition region is further disposed between the opaque bezel and the middle region, and the transition region is configured as a transparency gradual transition of a second preset pixel width.
The image layer provided by the embodiment of the invention is also provided with the transition region between the opaque frame and the middle region, so that the connection between the image layer and the image is smoother, and the influence of the image layer on the image in the target display region is further reduced.
With reference to the fifth embodiment of the first aspect, in the sixth embodiment of the first aspect, the first preset pixel width is 1 to 5 pixels; the second predetermined pixel width is 1-5 pixels.
With reference to the fifth embodiment of the first aspect or the sixth embodiment of the first aspect, in a seventh embodiment of the first aspect, the transparency gradual transition of the second preset pixel width is: the transparency of each pixel in the transition region decreases in a direction away from the opaque border.
According to a second aspect, an embodiment of the present invention provides an image display method, including: judging whether the target image generates sawteeth or not; if the target image generates saw teeth, displaying a layer according to the target image; and the periphery of the image layer is provided with an opaque frame with a first preset pixel width, and the opaque frame is used for covering image sawteeth of the target image.
According to the image display method provided by the embodiment of the invention, whether the target image generates the saw teeth is judged firstly, if the saw teeth are generated, the image layer with the opaque frame at the peripheral edge is displayed according to the target image, the saw teeth of the target image can be covered by the opaque frame at the periphery of the image layer, the saw teeth of the target image can be eliminated without a complex algorithm, the image layer displayed on the target image does not consume system resources, the performance of image delivery equipment is not influenced, image processing chips such as ichips and the like are not required to be added, and the cost for eliminating the saw teeth is reduced.
With reference to the second aspect, in a first implementation manner of the second aspect, displaying a layer according to the target image includes: displaying the layer on the target image along the farthest side in the direction away from the target image; the middle area surrounded by the opaque frames of the image layer is a transparent area, and the projection of the image layer on the plane where the target display area is located along the direction perpendicular to the target image is at least partially overlapped with the target image.
The image layer containing the opaque border is displayed on the side closest to a user, sawteeth of the target image can be automatically removed when a new target image is displayed every time, the image layer with the opaque border is not required to be independently generated when the image is displayed every time, so that the efficiency of removing the sawteeth is higher, and the middle area formed by enclosing the opaque border is set to be the transparent area because the image layer containing the opaque border is displayed on the side closest to the user in the target display area, so that the influence of the image layer containing the opaque border on the display of the target image is avoided.
With reference to the second aspect, in a second implementation manner of the second aspect, displaying a layer according to the target image includes: and displaying the target image in a middle area surrounded by the opaque border of the image layer.
With reference to the second aspect, or the first embodiment of the second aspect, or the second embodiment of the second aspect, in a third embodiment of the second aspect, the image layer is consistent with the resolution of the target image.
With reference to the second aspect, the first embodiment of the second aspect, the second embodiment of the second aspect, or the third embodiment of the second aspect, in a fourth embodiment of the second aspect, the step of determining whether the target object generates jaggies includes: judging whether adjacent vertexes of the target image are on the same horizontal line or vertical line according to the vertex coordinates of the target image; and if the adjacent vertexes which are not on the same horizontal line or vertical line exist, determining that the target image generates the sawtooth.
With reference to the second aspect, in a fifth embodiment of the second aspect, the image display method further includes: and if no sawtooth is generated, displaying a new target image, and returning to the step of judging whether the target image generates the sawtooth or not to the step of displaying a layer according to the target image if the target image generates the sawtooth.
With reference to the second aspect or the fifth embodiment of the second aspect, in a sixth embodiment of the second aspect, the target image is an image subjected to keystone correction, and if the target image does not generate jaggies, the image layer is removed.
With reference to the second aspect, or the first embodiment of the second aspect, or the second embodiment of the second aspect, in a seventh embodiment of the second aspect, a transition region is further disposed between the opaque bezel and the middle region, and the transition region is configured as a transparency gradual transition of a second preset pixel width.
The image layer provided by the embodiment of the invention is also provided with the transition region between the opaque frame and the middle region, so that the connection between the image layer and the image is smoother, and the influence of the image layer on the image in the target display region is further reduced.
With reference to the sixth embodiment of the second aspect, in the seventh embodiment of the second aspect, the first preset pixel width is 1 to 5 pixels; the second preset pixel width is 1-5 pixels.
With reference to the sixth embodiment of the second aspect or the seventh embodiment of the second aspect, in an eighth embodiment of the second aspect, the transparency gradual transition of the second preset pixel width is: the transparency of each pixel in the transition region decreases in a direction away from the opaque border.
According to a third aspect, an embodiment of the present invention provides an apparatus for removing aliasing in an image, including: the layer display module is used for displaying a layer in the target display area; the periphery of the image layer is provided with an opaque frame with a first preset pixel width, and the opaque frame is used for covering image sawteeth of the target image.
In the image sawtooth elimination device provided by the embodiment of the invention, the image layer with the opaque border at the peripheral edge of the target display area display and the target display is displayed, the sawtooth of the image can be covered by the opaque border at the periphery of the image layer, the image sawtooth can be eliminated without a complex algorithm, and the image layer displayed on the target display area does not consume system resources.
According to a fourth aspect, an embodiment of the present invention provides an image display apparatus including: the sawtooth judging module is used for judging whether the target image generates sawtooth; the layer display module is used for displaying a layer according to the target image if the target image generates the saw teeth; the periphery of the image layer is provided with an opaque frame with a first preset pixel width, and the opaque frame is used for covering image sawteeth of the target image. .
In the image display device provided by the embodiment of the invention, whether the target image generates the sawtooth is judged firstly, if the sawtooth is generated, the image layer with the opaque frame at the peripheral edge is displayed according to the target image, the sawtooth of the target image can be covered by the opaque frame at the periphery of the image layer, the sawtooth of the target image can be eliminated without a complex algorithm, the image layer displayed on the target image does not consume system resources, the performance of image delivery equipment is not influenced, image processing chips such as ichips and the like are not required to be added, and the cost for eliminating the sawtooth is reduced.
According to a fifth aspect, an embodiment of the present invention provides a projection apparatus, including: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the method for aliasing cancellation of a target image according to any one of the embodiments of the first aspect, or to perform the method for image display according to any one of the embodiments of the second aspect.
According to a sixth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions for causing a computer to execute the aliasing cancellation method for a target image in any one of the embodiments of the first aspect, or execute the image display method in any one of the embodiments of the second aspect.
Drawings
The features and advantages of the present invention will be more clearly understood by reference to the accompanying drawings, which are illustrative and not to be construed as limiting the invention in any way, and in which:
FIG. 1 is a schematic diagram of a layer in an embodiment of the invention;
FIG. 2 is a flow chart of an embodiment of an image display method according to the present invention;
FIG. 3 is a flowchart of another embodiment of an image display method according to the present invention;
FIG. 4 is a schematic diagram of a target image in an embodiment of the invention;
FIG. 5 is a schematic block diagram of an image display apparatus according to an embodiment of the present invention;
fig. 6 is a schematic block diagram of a projection apparatus provided in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1
The embodiment of the invention provides a method for eliminating saw teeth of a target image, which comprises the following steps: and displaying a layer in the target display area, as shown in fig. 1, wherein the peripheral edge of the layer has an opaque border 1 with a first preset pixel width, and in one embodiment, the opaque border 1 is black, and the opaque border is used for covering image sawteeth of the target image. For example, the opaque border is used to cover the periphery of the target image, so that when a specific target image is displayed in the target display area, the opaque border can block the periphery of the image, thereby eliminating the jaggies around the image.
In an optional embodiment, the width of the opaque border 1 at the peripheral edge of the image layer may be adjusted according to actual conditions, and the larger the width of the opaque border 1 is, the better the effect of covering the image sawtooth is, but the larger the influence on the image display in the target display area may be, so the width of the opaque border 1 may be set according to the trapezoidal correction effect of the projection device on the image. Specifically, if the image has generally jaggies with a large gradient after the trapezoidal correction of the image by the display device such as the projection device, a large value may be set for the width of the opaque border 1 in order to better eliminate the jaggies, and a small value may be set for the width of the opaque border 1 when the gradient of the jaggies generated by the image is small after the trapezoidal correction of the image by the display device such as the projection device.
In the embodiment of the present invention, the width of the opaque border 1 may be set to 1-5 pixels, that is, the first preset pixel width is 1-5 pixels, and in a preferred embodiment, the width of the opaque border 1 may be set to 1-2 pixels.
In an optional embodiment, the layer is displayed on the target display area along the farthest side far away from the target display area; the middle area surrounded by the opaque frames of the image layer is a transparent area, and the projection of the image layer on the plane where the target display area is located along the direction perpendicular to the target display area is at least partially overlapped with the target display area.
From the perspective of the user, the layer is located on the side closest to the user and can cover the periphery of the image in the target display area, and the sawtooth of the image displayed in the target display area can be automatically covered and eliminated without separately generating layers for the images each time. In practical applications, the method for eliminating aliasing of the target image in the embodiment of the present invention may be applied to, for example, a projection device, and when the projection device projects the projection image on a wall surface or a projection screen extending along the wall surface, the target display area is displayed on the wall surface or on the projection screen. The projection image is generally projected to the target display area according to each layer, and in this case, the layer displayed on the side closest to the user means the layer closest to the user. Because the layer is closest to the user, the opaque border can block the peripheral edge of the target image displayed on other layers in the target display area, so that image jaggies of the peripheral edge of the target image are eliminated.
In an optional embodiment, a middle area 3 surrounded by the opaque border 1 of the layer is a transparent area, because the layer is displayed on a side closest to a user in the target display area, when a target image needs to be displayed, in order to avoid that the target image cannot be displayed because the layer covers the target image, the middle area 3 of the layer may be set as the transparent area, and the target image may be displayed through the middle area 3 of the layer. In an alternative embodiment, the display position of the layer may be set to partially coincide with the display area, so that the middle area 3 can display the content such as the image that needs to be displayed in the target display area. In order to display the contents such as the image more completely and clearly, the middle area 3 of the layer may be set to be completely overlapped with the target display area, so as to ensure that the contents such as the image to be displayed are not blocked.
In an optional embodiment, the target image is displayed in a middle area 3 surrounded by opaque borders 1 of the layer, and areas around the target image are the opaque borders 1, in the embodiment of the present invention, the target image and the opaque borders belong to the same layer, and the edges of the target image are rendered into the opaque borders 1, so that the opaque borders 1 can also cover the saw teeth of the target image, and therefore, the target image and the rendered opaque borders 1 form the layer displayed in the target display area in the embodiment of the present invention. In practical application, the process may be, for example, applied to an Android drawing layer (surface flicker layer), and an opaque border is formed by two pixel points on the edge of a layer where a target image is located in a manner of re-rendering an image, or the border may be set to have a black gradual change effect, so as to achieve an effect of eliminating the jaggies around the target image.
In an optional embodiment, in order to better fuse the layer and the target display area, so as to achieve a better display effect, the resolution of the layer may be set to be consistent with the resolution of the target display area.
In an alternative embodiment, the target display area is used to display the image, typically because the keystone correction is performed, resulting in jagging at the peripheral edge. Therefore, in the embodiment of the present invention, the image elimination scheme may be mainly used for performing the aliasing elimination on the image after the keystone correction is performed, but those skilled in the art should understand that this is only for illustration and not for limiting the present invention, and the aliasing problem generated around the image after other forms or processing manners can be eliminated by the image elimination method of the embodiment of the present invention.
In an alternative embodiment, a transition region 2 is further disposed between the opaque border 1 and the middle region 3, and the transition region 2 is configured as a transparency gradual transition of a second preset pixel width.
In an optional embodiment, in order to make the joining between the opaque frame 1 of the layer and the target display area more natural, the width of the transition area 2 may be set in combination with the width of the opaque frame 1, if the width of the opaque frame 1 is larger, the transition area 2 with a larger width may be correspondingly set, and if the width of the opaque frame 1 is smaller, the transition area 2 with a smaller width may be correspondingly set, specifically, the width of the transition area 2 may be set to 1 to 5 pixels, that is, the width of the second preset pixel is 1 to 5 pixels.
In an alternative embodiment, in order to make the middle area 3 and the surrounding opaque border 1 of the layer smoothly transition, the transparency of each pixel in the transition area 2 may be set separately, so that the transparency of each pixel in the transition area 2 decreases in a direction away from the opaque border 1. For example, when the width of the transition region 2 is 2 pixels, the transparency of the 1 st pixel width near the opaque border 1 may be set to 50%, and the transparency of the 2 nd pixel width near the middle region 3 may be set to 25%. It should be noted that the setting ratio of the transparency is only for illustration and is not used to limit the invention.
In an alternative embodiment, although the pixels in the transition region 2 are not completely transparent, the effect of masking the image jaggies can be achieved, and therefore, the opaque border 1 with a smaller width can be provided, and even if the opaque border 1 with a smaller width cannot completely cover the image jaggies, the residual jaggies can be masked by the transition region 2.
In the method for eliminating the saw teeth of the target image provided by the embodiment of the invention, the layer with the opaque frame 1 is arranged at the peripheral edge of the target display area, the saw teeth of the image can be covered by the opaque frame 1 at the periphery of the layer, the saw teeth of the image can be eliminated without a complex algorithm, and the display layer on the target display area does not consume system resources. In addition, the middle area 3 of the layer is transparent, so that normal display of the image is not affected, and in order to make the image displayed in the target display area more natural, the layer provided in the embodiment of the present invention further provides a transition area 2 between the opaque border 1 and the middle area 3, so that the connection between the layer and the image is smoother, and the effect of the layer on the image in the target display area is further reduced.
Example 2
An embodiment of the present invention provides an image display method, as shown in fig. 2 or fig. 3, including:
step S10: it is determined whether or not the target image generates jaggies, and if so, step S20 is performed.
Step S20: displaying a layer according to the target image; the peripheral edge of the layer has an opaque border 1 with a first preset pixel width, and the opaque border 1 is used to cover the image sawtooth of the target image, and details of the layer and the opaque border 1 of the layer are described in the above embodiment 1.
In the image display method provided by the embodiment of the invention, whether the target image generates the saw teeth is judged firstly, if the saw teeth are generated, the image layer with the opaque frame 1 at the peripheral edge is displayed according to the target image, the saw teeth of the target image can be covered by the opaque frame 1 at the periphery of the image layer, the saw teeth of the target image can be eliminated without a complex algorithm, the image layer displayed on the target image does not consume system resources, the performance of image delivery equipment is not influenced, image processing chips such as ichips and the like are not required to be added, and the cost for eliminating the saw teeth is reduced.
In an optional embodiment, the step of displaying an image layer according to the target image in step S20 specifically includes: displaying the layer on the target image along the farthest side in the direction away from the target image; the middle area surrounded by the opaque frames of the image layer is a transparent area, and the projection of the image layer on the plane where the target display area is located along the direction perpendicular to the target image is at least partially overlapped with the target image.
From the perspective of the user, the layer is located on the side closest to the user; in practical applications, the method for eliminating aliasing of the target image in the embodiment of the present invention may be applied to, for example, a projection device, and when the projection device projects the projection image on a wall surface or a projection screen extending along the wall surface, the target display area is displayed on the wall surface or on the projection screen. The projection image is generally projected to the target display area according to each layer, and in this case, the layer displayed on the side closest to the user means the layer closest to the user. Because the layer is closest to the user, the opaque border can block the peripheral edge of the target image displayed on other layers in the target display area, so that image jaggies of the peripheral edge of the target image are eliminated.
In an optional embodiment, a middle area 3 surrounded by the opaque frames 1 of the layers is a transparent area. In the embodiment of the present invention, the layer having the opaque border 1 and the target image belong to different layers, and the details are described in embodiment 1 above.
The image layer containing the opaque frame 1 is displayed on the side nearest to a user, sawteeth of the target image can be automatically removed when a new target image is displayed every time, the image layer with the opaque frame 1 does not need to be separately generated when the image is displayed every time, so that the efficiency of removing the sawteeth is higher, and the middle area 3 formed by enclosing the opaque frame 1 is set as a transparent area because the image layer containing the opaque frame 1 is displayed on the side nearest to the user in the target display area, so that the influence of the image layer containing the opaque frame 1 on the display of the target image is avoided.
In an optional embodiment, the step of displaying an image layer according to the target image in step S20 specifically includes: and displaying the target image in a middle area surrounded by the opaque border 1 of the image layer. In the embodiment of the present invention, the target image and the opaque border 1 belong to the same layer, and details are described in embodiment 1 above.
In an optional embodiment, in the image display method according to the embodiment of the present invention, the step S10 specifically includes: judging whether adjacent vertexes of the target image are on the same horizontal line or vertical line according to the vertex coordinates of the target image; and if the adjacent vertexes which are not on the same horizontal line or vertical line exist, determining that the target image generates the sawtooth.
Specifically, as shown in fig. 4, coordinate data of four vertices A, B, C, D of the target image may be obtained first, and whether the point a and the point B are in the same horizontal line may be determined according to the coordinate data; judging whether the point D and the point C are in the same horizontal line; judging whether the point A and the point D are on the same vertical line; and judging whether the point B and the point C are on the same vertical line. When at least one pair of adjacent vertexes are not positioned on the same horizontal line or the same vertical line, the slope of a straight line connecting the two adjacent vertexes is indicated, and therefore the sawtooth exists in the target image.
In an optional embodiment, most of the jaggies in the target image are generated after performing the keystone correction on the target image, in the image display method provided in the embodiment of the present invention, after the step S10 is executed, if it is determined that there is a jaggy in the target image, the image layer including the opaque border 1 is displayed, but after the jaggy is generated in the target image, if the processor continues to adjust the target image, it is still necessary to continuously detect the jaggy in the target image, as shown in fig. 3, and when the processor adjusts the target image to eliminate the jaggy, the image layer is removed.
In an alternative embodiment, as shown in fig. 2, the target image may be an image after keystone correction, and in the image display method according to the embodiment of the present invention, after the step S10 is executed to determine the target image, if the target image is found to have no jaggies, a new target image is displayed, and the steps S10 to S20 are executed to determine whether the new target image has jaggies. Specifically, if image jaggies are not detected for the target image during the image display process, a new target image may be directly displayed and returned to perform the above-described steps S10 through S20 to determine whether or not jaggies are generated for the new target image. If it is detected that the target image generates the jaggies in the image display process, the image layer with the opaque border may be displayed according to the method of the embodiment of the present invention, so as to cover the jaggies of the target image, and when a new target image is displayed on the current image, the image jaggies are not detected, which indicates that the jaggies elimination process is not required at this time, and the current image layer with the opaque border may be removed.
In an alternative embodiment, a transition region 2 is further disposed between the opaque border 1 and the middle region 3, and the transition region 2 is configured as a transparency gradual transition of a second preset pixel width, which is described in detail in the foregoing embodiment 1 for the transition region 2.
The image layer provided by the embodiment of the invention is also provided with the transition region 2 between the opaque frame 1 and the middle region 3, so that the image layer is more smoothly connected with the image, and the influence of the image layer on the image in the target display region is further reduced.
In an alternative embodiment, the transparency gradual transition of the second predetermined pixel width is: the transparency of each pixel in the transition area 2 decreases in a direction away from the opaque border 1, and the details of the transition area 2 are described in embodiment 1 above.
Example 3
The embodiment of the invention provides a device for eliminating image saw teeth, which comprises: the layer display module is used for displaying a layer in the target display area; the peripheral edge of the layer has an opaque border 1 with a first preset pixel width, and the opaque border is used to cover the image sawtooth of the target image, as described in embodiment 1 above.
In the image sawtooth eliminating device provided by the embodiment of the invention, the layer with the opaque frames 1 at the peripheral edge is displayed in the target display area, the image sawtooth can be covered by the opaque frames 1 at the periphery of the layer, the image sawtooth can be eliminated without a complex algorithm, and the display layer on the target display area does not consume system resources.
Example 4
An embodiment of the present invention provides an image display device, as shown in fig. 5, including:
a jaggy judging module 10, for judging whether the target image produces jaggies, the details of which are described in the above embodiment 2 for step S10.
The layer display module 20 is configured to display a layer according to the target image if the target image generates the sawtooth; the peripheral edge of the layer has an opaque border 1 with a first preset pixel width, which is used to cover the image jaggies of the target image, as described in detail in the above embodiment 2 for step S20.
In the image display device provided by the embodiment of the invention, whether the target image generates the saw teeth is judged firstly, if the saw teeth are generated, the image layer with the opaque frame 1 at the peripheral edge is displayed according to the target image, the saw teeth of the target image can be covered by the opaque frame 1 at the periphery of the image layer, the saw teeth of the target image can be eliminated without a complex algorithm, and the image layer displayed on the target image does not consume system resources.
Example 5
An embodiment of the present invention provides a projection apparatus, as shown in fig. 6, the projection apparatus mainly includes one or more processors 31 and a memory 32, where one processor 31 is taken as an example in fig. 6.
The projection device may further include: an input device 33 and an output device 34.
The processor 31, the memory 32, the input device 33 and the output device 34 may be connected by a bus or other means, and fig. 6 illustrates the connection by a bus as an example.
The processor 31 may be a Central Processing Unit (CPU). The Processor 31 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or combinations thereof. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The memory 32 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of an image jaggy removal device, or an image display device, or the like. Further, the memory 32 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 32 may optionally include a memory remotely located from the processor 31, and these remote memories may be connected to an image jaggy removal device, or an image display device, via a network. The input device 33 may receive a calculation request (or other numerical or character information) input by a user and generate a key signal input in association with an image jagging elimination device, or an image display device. The output device 34 may include a display device such as a display screen for outputting the calculation result.
Example 6
Embodiments of the present invention provide a computer-readable storage medium storing computer instructions, where the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions can execute a method for eliminating aliasing of a target image or a method for displaying an image in any of the above method embodiments. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (10)

1. A method for removing aliasing of a target image, the method comprising:
displaying a layer in a target display area; the periphery of the image layer is provided with an opaque frame with a first preset pixel width, and the opaque frame is used for covering image sawteeth of the target image.
2. The method according to claim 1, wherein the displaying a layer in the target display area comprises:
displaying the layer on the target display area along the farthest side of the direction far away from the target display area; the middle area surrounded by the opaque frames of the image layer is a transparent area, and the projection of the image layer on the plane where the target display area is located along the direction perpendicular to the target display area is at least partially overlapped with the target display area.
3. The method according to claim 1, wherein the target image is displayed in a middle area surrounded by the opaque borders of the image layers.
4. A method for aliasing cancellation according to claim 2 or 3, wherein said image layers are in accordance with the resolution of said target display area;
preferably, the target image is an image subjected to keystone correction;
preferably, a transition area is further arranged between the opaque border and the middle area, and the transition area is set to be in transparency gradual transition with a second preset pixel width;
preferably, the first preset pixel width is 1-5 pixels; and/or the width of the second preset pixel is 1-5 pixels;
preferably, the transparency gradual transition of the second preset pixel width is as follows: the transparency of each pixel in the transition region decreases in a direction away from the opaque border.
5. An image display method, characterized in that the image display method comprises:
judging whether the target image generates sawteeth or not;
if the target image generates saw teeth, displaying a layer according to the target image; the periphery of the image layer is provided with an opaque frame with a first preset pixel width, and the opaque frame is used for covering image sawteeth of the target image.
6. The image display method according to claim 5, wherein the displaying a layer according to the target image comprises:
displaying the layer on the target image along the farthest side in the direction away from the target image; the middle area surrounded by the opaque frames of the image layer is a transparent area, and the projection of the image layer on the plane where the target display area is located along the direction perpendicular to the target image is at least partially overlapped with the target image.
7. The image display method according to claim 5, wherein displaying a layer according to the target image comprises:
and displaying the target image in a middle area surrounded by the opaque border of the image layer.
8. The image display method according to claim 6 or 7, wherein the layer corresponds to a resolution of the target image;
preferably, the determining whether the target image generates jaggies includes:
judging whether adjacent vertexes of the target image are on the same horizontal line or vertical line according to the vertex coordinates of the target image;
if adjacent vertexes which are not on the same horizontal line or vertical line exist, determining that the target image generates sawteeth;
preferably, the image display method further includes:
if the target image does not generate the sawtooth, displaying a new target image, and returning to the step of judging whether the target image generates the sawtooth or not to the step of displaying a layer according to the target image if the target image generates the sawtooth;
preferably, the target image is an image subjected to keystone correction,
the image display method further includes: if the target image does not generate sawteeth, removing the image layer;
preferably, a transition area is further arranged between the opaque border and the middle area, and the transition area is set to be in transparency gradual transition with a second preset pixel width;
preferably, the first preset pixel width is 1-5 pixels; the width of the second preset pixel is 1-5 pixels;
preferably, the transparency gradual transition of the second preset pixel width is as follows: the transparency of each pixel in the transition region decreases in a direction away from the opaque border.
9. A projection device, comprising:
a memory and a processor, the memory and the processor being communicatively connected to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the method of aliasing cancellation of an object image according to any one of claims 1-4, or to perform the method of image display according to any one of claims 5-8.
10. A computer-readable storage medium storing computer instructions for causing a computer to execute the method of jagging elimination of a target image according to any one of claims 1 to 4 or the method of displaying an image according to any one of claims 5 to 8.
CN202011270144.0A 2020-11-13 2020-11-13 Image sawtooth elimination and image display method and device Pending CN112449167A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011270144.0A CN112449167A (en) 2020-11-13 2020-11-13 Image sawtooth elimination and image display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011270144.0A CN112449167A (en) 2020-11-13 2020-11-13 Image sawtooth elimination and image display method and device

Publications (1)

Publication Number Publication Date
CN112449167A true CN112449167A (en) 2021-03-05

Family

ID=74737977

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011270144.0A Pending CN112449167A (en) 2020-11-13 2020-11-13 Image sawtooth elimination and image display method and device

Country Status (1)

Country Link
CN (1) CN112449167A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114401388A (en) * 2022-01-26 2022-04-26 深圳市火乐科技发展有限公司 Projection method, projection device, storage medium and projection equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101321240A (en) * 2008-06-25 2008-12-10 华为技术有限公司 Method and device for multi-drawing layer stacking
CN103559690A (en) * 2013-11-05 2014-02-05 北京京东尚科信息技术有限公司 Method for achieving smoothness of image edges
CN106162118A (en) * 2015-04-27 2016-11-23 上海分众软件技术有限公司 A kind of method of video image processing and system
CN207037632U (en) * 2017-08-09 2018-02-23 江西合力泰科技有限公司 GFM individual layer multiple spot Rimless touch-screens
CN107742499A (en) * 2017-11-30 2018-02-27 武汉天马微电子有限公司 A kind of special-shaped display panel and display device
CN108597000A (en) * 2018-04-25 2018-09-28 网易(杭州)网络有限公司 The method and device of Image Rendering
CN109064390A (en) * 2018-08-01 2018-12-21 Oppo(重庆)智能科技有限公司 A kind of image processing method, image processing apparatus and mobile terminal
CN109309861A (en) * 2018-10-30 2019-02-05 广州虎牙科技有限公司 A kind of media processing method, device, terminal device and storage medium
CN110764341A (en) * 2019-10-30 2020-02-07 明基智能科技(上海)有限公司 Projector with a light source
CN110989069A (en) * 2020-01-03 2020-04-10 云谷(固安)科技有限公司 Display panel and display device
CN111274618A (en) * 2020-01-13 2020-06-12 Oppo广东移动通信有限公司 Display control method and related product

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101321240A (en) * 2008-06-25 2008-12-10 华为技术有限公司 Method and device for multi-drawing layer stacking
CN103559690A (en) * 2013-11-05 2014-02-05 北京京东尚科信息技术有限公司 Method for achieving smoothness of image edges
CN106162118A (en) * 2015-04-27 2016-11-23 上海分众软件技术有限公司 A kind of method of video image processing and system
CN207037632U (en) * 2017-08-09 2018-02-23 江西合力泰科技有限公司 GFM individual layer multiple spot Rimless touch-screens
CN107742499A (en) * 2017-11-30 2018-02-27 武汉天马微电子有限公司 A kind of special-shaped display panel and display device
CN108597000A (en) * 2018-04-25 2018-09-28 网易(杭州)网络有限公司 The method and device of Image Rendering
CN109064390A (en) * 2018-08-01 2018-12-21 Oppo(重庆)智能科技有限公司 A kind of image processing method, image processing apparatus and mobile terminal
CN109309861A (en) * 2018-10-30 2019-02-05 广州虎牙科技有限公司 A kind of media processing method, device, terminal device and storage medium
CN110764341A (en) * 2019-10-30 2020-02-07 明基智能科技(上海)有限公司 Projector with a light source
CN110989069A (en) * 2020-01-03 2020-04-10 云谷(固安)科技有限公司 Display panel and display device
CN111274618A (en) * 2020-01-13 2020-06-12 Oppo广东移动通信有限公司 Display control method and related product

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张景生等: "《投影机使用与维修》", 31 January 2008 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114401388A (en) * 2022-01-26 2022-04-26 深圳市火乐科技发展有限公司 Projection method, projection device, storage medium and projection equipment

Similar Documents

Publication Publication Date Title
KR102475212B1 (en) Foveated rendering in tiled architectures
US9449421B2 (en) Method and apparatus for rendering image data
US9633405B2 (en) Tile based computer graphics
WO2018222271A1 (en) Storage for foveated rendering
JP2006120158A (en) Method for hardware accelerated anti-aliasing in three-dimension
CN115147579B (en) Block rendering mode graphic processing method and system for expanding block boundary
TWI479447B (en) Re-render acceleration of frame with lighting change
US9639971B2 (en) Image processing apparatus and method for processing transparency information of drawing commands
US10134171B2 (en) Graphics processing systems
CN115330986B (en) Method and system for processing graphics in block rendering mode
CN110415237B (en) Skin flaw detection method, skin flaw detection device, terminal device and readable storage medium
US8854392B2 (en) Circular scratch shader
CN111260750B (en) Processing method and device for openFL drawing vector graphics and electronic equipment
KR102250254B1 (en) Method and apparatus for processing image
CN112449167A (en) Image sawtooth elimination and image display method and device
US20190026925A1 (en) Texture mapping apparatus and computer readable medium
US8098264B2 (en) Method and apparatus for rendering computer graphics primitive
CN109063085A (en) Reduced graph generating method and device
EP4343679A1 (en) Image processing method and apparatus, and readable storage medium
US20240127525A1 (en) Method and system for processing graphics in tile-based rendering mode
CN111988650B (en) Video playing method, device, equipment and storage medium of three-dimensional screen
CN112991214B (en) Image processing method, image rendering method, image processing device and shadow equipment
US20160055620A1 (en) System and method for scaling and copying graphics
CN115660935A (en) Method and system for processing graphics in block rendering mode
KR20160092756A (en) Method and apparatus for processing graphics data and recording medium thereof

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210305