Interface FaceStateServices

All Known Implementing Classes:
FaceStateServicesImpl

public interface FaceStateServices
Services for managing a state (internal elements) of a single human face.
  • Method Details

    • updateKdTree

      static 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

      static 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

      static 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

      static 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. Used only if new glyphs are computed.
      maxSamples - Maximum number of glyphs. Used only if new glyphs are computed.
    • updateCurvature

      static 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

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

      static 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

      static 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.