Package cz.fidentis.analyst.data.face
Interface HumanFace
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
HumanFaceImpl
A single human face consisting of a mesh, feature points, space partitioning structures, and other data structures.
The object contains only data about the face, the object can be stored in the database as a part of FaceWithDataEntity or in memory.
This class does not include any metadata or additional information
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns bounding box ornull
Gets face frontal direction.Gets the glyphs of the face or empty listReturns already computed k-d tree of the triangular mesh ornull
.Returns landmarks of the face.Returns already computed left-balanced k-d tree of the triangular mesh ornull
.Returns the triangular mesh model of the human face.Returns already computed octree of the triangular mesh ornull
.Returns short name of the face without its path in the name.getState()
Returns a deep copy of current state.Returns Interactive mask.boolean
Checks if the human face has assigned a bounding boxboolean
Checks face frontal direction is computed.boolean
Checks if the human face has assigned glyphsboolean
Checks if HumanFace has KdTree calculatedboolean
Checks if HumanFace has LeftBalancedKdTree calculatedboolean
Checks if HumanFace has octree calculatedboolean
Returnstrue
if the face has the symmetry plane computed.boolean
void
setBoundingBox
(Box boundingBox) Set a bounding box.void
setFaceFrontalDirection
(Ray faceFrontalDirection) Set face frontal direction.void
Sets the glyphs.void
Sets the k-d treevoid
Sets the k-d tree left-balanced k-d tree.void
Sets the octreevoid
setState
(HumanFaceState state) Falls back to given state.void
setSurfaceMask
(SurfaceMask surfaceMask) Set a surface mask.void
setSymmetryPlane
(Plane plane) Sets the symmetry plane.
-
Field Details
-
LANDMARK_FILE_SUFFIX
- See Also:
-
-
Method Details
-
isAverageFace
boolean isAverageFace()- Returns:
- is average face
-
getMeshModel
MeshModel getMeshModel()Returns the triangular mesh model of the human face.- Returns:
- the triangular mesh model of the human face
-
setSymmetryPlane
Sets the symmetry plane. If the input argument isnull
, then removes the plane.- Parameters:
plane
- The new symmetry plane
-
getSymmetryPlane
Plane getSymmetryPlane()- Returns:
- The face's symmetry plane
-
hasSymmetryPlane
boolean hasSymmetryPlane()Returnstrue
if the face has the symmetry plane computed.- Returns:
true
if the face has the symmetry plane computed.
-
getLandmarks
Landmarks getLandmarks()Returns landmarks of the face.- Returns:
Landmarks
of the face
-
getShortName
String getShortName()Returns short name of the face without its path in the name. May not be unique.- Returns:
- short name of the face without its path in the name
-
getOctree
Octree getOctree()Returns already computed octree of the triangular mesh ornull
.- Returns:
- Already computed octree of the triangular mesh or
null
-
hasOctree
boolean hasOctree()Checks if HumanFace has octree calculated- Returns:
- true if yes and false if not
-
setOctree
Sets the octree- Parameters:
octree
- New octree. Can benull
-
getKdTree
KdTree getKdTree()Returns already computed k-d tree of the triangular mesh ornull
.- Returns:
- Already computed k-d tree of the triangular mesh or
null
-
setKdTree
Sets the k-d tree- Parameters:
kdTree
- New k-d tree. Can benull
-
hasKdTree
boolean hasKdTree()Checks if HumanFace has KdTree calculated- Returns:
- true if yes and false if not
-
getLeftBalancedKdTree
LeftBalancedKdTree getLeftBalancedKdTree()Returns already computed left-balanced k-d tree of the triangular mesh ornull
.- Returns:
- Already computed left-balanced k-d tree of the triangular mesh or
null
-
setLeftBalancedKdTree
Sets the k-d tree left-balanced k-d tree.- Parameters:
kdTree
- New left-balanced k-d tree. Can benull
.
-
hasLeftBalancedKdTree
boolean hasLeftBalancedKdTree()Checks if HumanFace has LeftBalancedKdTree calculated- Returns:
- true if yes and false if not
-
getSurfaceMask
SurfaceMask getSurfaceMask()Returns Interactive mask. The mask can be empty;- Returns:
- the interactive mask
-
getState
HumanFaceState getState()Returns a deep copy of current state.- Returns:
- a deep copy of current state.
-
setState
Falls back to given state. No event is triggered - it up to the caller.- Parameters:
state
- Old state. Must not benull
-
getGlyphs
Gets the glyphs of the face or empty list- Returns:
- list of glyphs or empty list
-
setGlyphs
Sets the glyphs.- Parameters:
glyphs
- Glyphs. Can benull
-
hasGlyphs
boolean hasGlyphs()Checks if the human face has assigned glyphs- Returns:
true
, if the glyphs exist
-
getBoundingBox
Box getBoundingBox()Returns bounding box ornull
- Returns:
- bounding box or
null
-
setBoundingBox
Set a bounding box.- Parameters:
boundingBox
- Bounding box ornull
-
hasBoundingBox
boolean hasBoundingBox()Checks if the human face has assigned a bounding box- Returns:
true
, if the bounding box exists
-
setSurfaceMask
Set a surface mask.- Parameters:
surfaceMask
- surfaceMask ornull
-
getFaceFrontalDirection
Ray getFaceFrontalDirection()Gets face frontal direction.- Returns:
- face frontal direction
-
setFaceFrontalDirection
Set face frontal direction.- Parameters:
faceFrontalDirection
- new face frontal direction
-
hasFaceFrontalDirection
boolean hasFaceFrontalDirection()Checks face frontal direction is computed.- Returns:
true
if face frontal direction exists
-