Class BatchDistanceNearestNeighborsRelative

All Implemented Interfaces:
BatchDistance, BatchIndirectDistance

public class BatchDistanceNearestNeighborsRelative extends BatchDistanceNearestNeighbors
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. Relative distances from the gauge vertices to other vertices are cached and combined to estimate mutual similarity.

  • Constructor Details

    • BatchDistanceNearestNeighborsRelative

      public BatchDistanceNearestNeighborsRelative(HumanFace gaugeFace, int numFaces)
      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)