Class BatchDistanceRayCasting
java.lang.Object
cz.fidentis.analyst.engines.face.batch.distance.impl.BatchIndirectDistanceImpl
cz.fidentis.analyst.engines.face.batch.distance.impl.BatchDistanceRayCasting
- All Implemented Interfaces:
BatchDistance
,BatchIndirectDistance
A class that computes similarity of a set of faces by casting rays
in the diction of template face normals.
The computation is accelerated by using multiple CPU or possibly GPU cores concurrently.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
Cache of relative distances from the average face to other faces. -
Constructor Summary
ConstructorsConstructorDescriptionBatchDistanceRayCasting
(HumanFace gaugeFace, int numFaces, com.jogamp.opengl.GLContext context) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToMeasurement
(HumanFace face) Adds the face to the N:N measurement.Methods inherited from class cz.fidentis.analyst.engines.face.batch.distance.impl.BatchIndirectDistanceImpl
getDistCache, getDistDeviations, getDistSimilarities, getGaugeFace, measure, setDistDeviation, setDistSimilarity
-
Constructor Details
-
BatchDistanceRayCasting
public BatchDistanceRayCasting(HumanFace gaugeFace, int numFaces, com.jogamp.opengl.GLContext context) Constructor.- Parameters:
gaugeFace
- A face serving as a "gauge". It is usually an average face of a set of faces.numFaces
- The number of faces to be measured (excluding the gauge face)context
- Active OpenGL context on which makeCurrent() can be called. If this parameter is notnull
, then GPU will be used. Otherwise, regular CPU implementation is used.
-
-
Method Details
-
addToMeasurement
Description copied from interface:BatchIndirectDistance
Adds the face to the N:N measurement.- Specified by:
addToMeasurement
in interfaceBatchIndirectDistance
- Specified by:
addToMeasurement
in classBatchIndirectDistanceImpl
- Parameters:
face
- Face to be measured
-