Class BatchDistanceNearestNeighborsCombined

All Implemented Interfaces:
BatchDistance, BatchIndirectDistance

public class BatchDistanceNearestNeighborsCombined 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.

  • Constructor Details

    • BatchDistanceNearestNeighborsCombined

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