Abstract:
An image processing method and apparatus, where the method includes determining m boundary points of a target image, acquiring a color component of a non-boundary point in a jth area, where the jth area is a neighborhood of the jth boundary point in the m boundary points, 1≦j≦m, and m is a positive integer greater than or equal to 1, and performing synthesis processing according to the color component of the non-boundary point in the jth area, to obtain a color component of the jth boundary point, and by means of processing on a boundary point of a target image, precision of image matting and synthesis processing may be improved, and may be applied to a real-time image matting and synthesis process.
Abstract:
An image anti-aliasing method and apparatus are provided, where the method includes acquiring a to-be-displayed image in a terminal, acquiring a current distance parameter of the terminal, where the current distance parameter is used to indicate a distance between an eye of a user of the terminal and a display screen of the terminal, determining a current anti-aliasing algorithm according to the current distance parameter by using a correspondence between a distance parameter and an anti-aliasing algorithm, and performing anti-aliasing processing on the to-be-displayed image according to the current anti-aliasing algorithm. In embodiments of the present disclosure, anti-aliasing processing is performed on a to-be-displayed image based on a distance parameter, that is, an anti-aliasing processing manner of the image is dynamically adjusted according to the distance parameter.
Abstract:
The present invention discloses a method and an apparatus for detecting a convex polygon image block, and a device. The method includes: acquiring an image collected by an image sensor; acquiring a corner set, where the corner set includes a corner in the image, and the corner is an intersection point at which any two straight line sides that are not parallel to each other in the image intersect; and detecting a convex polygon image block in the image according to the corner set, where a shape of the convex polygon image block is a preset shape and a similarity between the convex polygon image block and a preset image block exceeds a preset first threshold. The apparatus includes: a first acquiring module, a second acquiring module, and a detecting module. In the present invention, the convex polygon image block can be detected from the image.
Abstract:
An image processing method and apparatus, where the method includes determining m boundary points of a target image, acquiring a color component of a non-boundary point in a jth area, where the jth area is a neighborhood of the jth boundary point in the m boundary points, 1≦j≦m, and m is a positive integer greater than or equal to 1, and performing synthesis processing according to the color component of the non-boundary point in the jth area, to obtain a color component of the jth boundary point, and by means of processing on a boundary point of a target image, precision of image matting and synthesis processing may be improved, and may be applied to a real-time image matting and synthesis process.