Class FaceStateServicesImpl

java.lang.Object
cz.fidentis.analyst.engines.face.impl.FaceStateServicesImpl
All Implemented Interfaces:
FaceStateServices

public class FaceStateServicesImpl extends Object implements FaceStateServices
Services for a single human face.
  • Constructor Details Link icon

    • FaceStateServicesImpl Link icon

      public FaceStateServicesImpl()
  • Method Details Link icon

    • updateKdTree Link icon

      public void updateKdTree(HumanFace face, FaceStateServices.Mode mode)
      Manages a k-d tree storing the mesh of given human face.
      Parameters:
      face - Human face
      mode - Operation to be performed
    • updateOctree Link icon

      public void updateOctree(HumanFace face, FaceStateServices.Mode mode)
      Manages an octree storing the mesh of given human face.
      Parameters:
      face - Human face
      mode - Operation to be performed
    • updateBoundingBox Link icon

      public void updateBoundingBox(HumanFace face, FaceStateServices.Mode mode)
      Manages bounding box of the given human face.
      Parameters:
      face - Human face
      mode - Operation to be performed
    • updateGlyphs Link icon

      public void updateGlyphs(HumanFace face, FaceStateServices.Mode mode, PointSamplingConfig.Method method, int maxSamples)
      Manages glyphs of the given human face.
      Parameters:
      face - Human face
      mode - Operation to be performed
      method - Sub-sampling method
      maxSamples - Maximum number of glyphs
    • updateCurvature Link icon

      public void updateCurvature(HumanFace face, FaceStateServices.Mode mode)
      Manages curvature values of the given human face.
      Parameters:
      face - Human face
      mode - Operation to be performed
    • updateLandmarksVicinity Link icon

      public void updateLandmarksVicinity(HumanFace face, FaceStateServices.Mode mode)
      Computes vicinity of all landmarks of the given human face.
      Parameters:
      face - Human face
      mode - Operation to be performed
    • updateSymmetryPlane Link icon

      public void updateSymmetryPlane(HumanFace face, FaceStateServices.Mode mode, SymmetryConfig meshSymmetryConfig)
      Computes symmetry plane from mesh or landmarks.
      Parameters:
      face - Human face
      mode - Operation to be performed
      meshSymmetryConfig - Configuration of the mesh symmetry calculation (when needed). If null, then the symmetry plane is computed from landmarks.
    • calculateSymmetryPlanePrecision Link icon

      public double calculateSymmetryPlanePrecision(HumanFace face)
      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 Link icon

      protected void computeVicinity(HumanFace face)