Class BatchDistanceNearestNeighborsDirect

All Implemented Interfaces:
BatchDistance, BatchIndirectDistance

public class BatchDistanceNearestNeighborsDirect 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. Nearest neighbors from the gauge vertices to other vertices are cached and then their Euclidean distance is computed to estimate mutual similarity.

  • Constructor Details

    • BatchDistanceNearestNeighborsDirect

      public BatchDistanceNearestNeighborsDirect(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)