Class FaceStateServicesImpl
java.lang.Object
cz.fidentis.analyst.engines.face.impl.FaceStateServicesImpl
- All Implemented Interfaces:
FaceStateServices
Services for a single human face.
-
Nested Class Summary
Nested classes/interfaces inherited from interface cz.fidentis.analyst.engines.face.FaceStateServices
FaceStateServices.Mode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
Calculation of precision of the symmetry plane.protected void
computeVicinity
(HumanFace face) void
updateBoundingBox
(HumanFace face, FaceStateServices.Mode mode) Manages bounding box of the given human face.void
updateCurvature
(HumanFace face, FaceStateServices.Mode mode) Manages curvature values of the given human face.void
updateGlyphs
(HumanFace face, FaceStateServices.Mode mode, PointSamplingConfig.Method method, int maxSamples) Manages glyphs of the given human face.void
updateKdTree
(HumanFace face, FaceStateServices.Mode mode) Manages a k-d tree storing the mesh of given human face.void
updateLandmarksVicinity
(HumanFace face, FaceStateServices.Mode mode) Computes vicinity of all landmarks of the given human face.void
updateOctree
(HumanFace face, FaceStateServices.Mode mode) Manages an octree storing the mesh of given human face.void
updateSymmetryPlane
(HumanFace face, FaceStateServices.Mode mode, SymmetryConfig meshSymmetryConfig) Computes symmetry plane from mesh or landmarks.
-
Constructor Details
-
Method Details
-
updateKdTree
Manages a k-d tree storing the mesh of given human face.- Parameters:
face
- Human facemode
- Operation to be performed
-
updateOctree
Manages an octree storing the mesh of given human face.- Parameters:
face
- Human facemode
- Operation to be performed
-
updateBoundingBox
Manages bounding box of the given human face.- Parameters:
face
- Human facemode
- Operation to be performed
-
updateGlyphs
public void updateGlyphs(HumanFace face, FaceStateServices.Mode mode, PointSamplingConfig.Method method, int maxSamples) Manages glyphs of the given human face.- Parameters:
face
- Human facemode
- Operation to be performedmethod
- Sub-sampling methodmaxSamples
- Maximum number of glyphs
-
updateCurvature
Manages curvature values of the given human face.- Parameters:
face
- Human facemode
- Operation to be performed
-
updateLandmarksVicinity
Computes vicinity of all landmarks of the given human face.- Parameters:
face
- Human facemode
- Operation to be performed
-
updateSymmetryPlane
public void updateSymmetryPlane(HumanFace face, FaceStateServices.Mode mode, SymmetryConfig meshSymmetryConfig) Computes symmetry plane from mesh or landmarks.- Parameters:
face
- Human facemode
- Operation to be performedmeshSymmetryConfig
- Configuration of the mesh symmetry calculation (when needed). Ifnull
, then the symmetry plane is computed from landmarks.
-
calculateSymmetryPlanePrecision
Calculation of precision of the symmetry plane.- Parameters:
face
- Human face- Returns:
- precision of the symmetry. The closer to zero, the better. Returns -1 if no symmetry plane is available.
-
computeVicinity
-