Class BatchDistanceNearestNeighborsDirect
java.lang.Object
cz.fidentis.analyst.engines.face.batch.distance.impl.BatchIndirectDistanceImpl
cz.fidentis.analyst.engines.face.batch.distance.impl.BatchDistanceNearestNeighbors
cz.fidentis.analyst.engines.face.batch.distance.impl.BatchDistanceNearestNeighborsDirect
- All Implemented Interfaces:
BatchDistance
,BatchIndirectDistance
A class that computes similarity of a set of faces by computing
the distance of faces to an average (gauge) face and then combining these values
to get mutual similarity for all pairs. Euclidean distance to nearest neighbors
is used as the distance metric.
The computation is accelerated by using multiple CPU cores concurrently. Nearest neighbors from the gauge vertices to other vertices are cached and then their Euclidean distance is computed to estimate mutual similarity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
Cache of vectors to the nearest neighbors, from which the final distance is computed.Nested classes/interfaces inherited from class cz.fidentis.analyst.engines.face.batch.distance.impl.BatchDistanceNearestNeighbors
BatchDistanceNearestNeighbors.DistCache<T>
-
Constructor Summary
ConstructorsConstructorDescriptionBatchDistanceNearestNeighborsDirect
(HumanFace gaugeFace, int numFaces) Constructor. -
Method Summary
Methods inherited from class cz.fidentis.analyst.engines.face.batch.distance.impl.BatchDistanceNearestNeighbors
addToMeasurement
Methods inherited from class cz.fidentis.analyst.engines.face.batch.distance.impl.BatchIndirectDistanceImpl
getDistCache, getDistDeviations, getDistSimilarities, getGaugeFace, measure, setDistDeviation, setDistSimilarity
-
Constructor Details
-
BatchDistanceNearestNeighborsDirect
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)
-