Package cz.fidentis.analyst.data.face
Interface HumanFaceFactory
public interface HumanFaceFactory
This interface provides services that instantiates a human face.
-
Method Summary
Static Methods
-
Method Details
-
create
Reads a 3D human face from the given OBJ file.- Parameters:
file
- OBJ fileloadLandmarks
- Iftrue
, then the constructor aims to load landmarks as well- Throws:
IOException
- on I/O failure
-
create
Reads a 3D human face from the given OBJ file.- Parameters:
file
- OBJ file- Throws:
IOException
- on I/O failure
-
create
Recover human face from serialized dump file. As the dump file can contain additional objects, e.g., camera, it is supposed that the given input stream is set to a human face object.- Parameters:
in
- A dump file as object input stream- Returns:
- The instance of the human face
- Throws:
IOException
- If reading failsClassNotFoundException
- If there is no human face in the stream
-
create
Creates a human face from existing mesh model. The mesh model is stored directly (not copied).- Parameters:
model
- Mesh modelid
- Canonical path to the OBJ file- Throws:
IllegalArgumentException
- if themodel
isnull
-