Method and system for detecting distance between pixel point to edge
A technology for detecting pixel and edge distances, applied in the field of image processing, which can solve the problems of real-time deformation of faces, huge calculation amount, replacement delay, etc., and achieve the effect of small calculation amount, simple operation, and improved replacement speed
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0034] In one embodiment, a method for detecting the distance from a pixel point to an edge, the method includes the steps of:
[0035] A method for detecting distance from a pixel point to an edge, said method comprising the steps of:
[0036] S100. For any pixel in the gradient region, for the found facial contour feature point closest to the pixel, obtain the face contour edge where the human face contour feature point is located; wherein, the gradient region is performing face replacement or local deformation, need to set transparency area;
[0037] S200. Calculate the distance from the pixel point to the acquired face contour edge; wherein: the face contour edge is a line segment connecting two adjacent face contour feature points.
[0038] For this embodiment, when the face contour edge of the face area to be replaced or partially deformed is an open curve, there may be one or two face contour edges where the feature points of the face contour are located. . When the ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 