Class BatchDistanceTask

java.lang.Object
javax.swing.SwingWorker<Void,Integer>
cz.fidentis.analyst.gui.task.batch.distance.BatchDistanceTask
All Implemented Interfaces:
Runnable, Future<Void>, RunnableFuture<Void>
Direct Known Subclasses:
NearestNeighborsDistanceTask, PairwiseDistanceTask, RayCastingDistanceTask

public abstract class BatchDistanceTask extends SwingWorker<Void,Integer>
A task that computes distance-based similarity of the set of faces.
  • Constructor Details

    • BatchDistanceTask

      protected BatchDistanceTask(ProgressDialog<Void,Integer> progressDialog, BatchDistancePanel controlPanel)
      Constructor.
      Parameters:
      progressDialog - A window that show the progress of the computation. Must not be null
      controlPanel - A control panel with computation parameters. Must not be null The average face is skipped from the similarity measurement (i.e., we do not measure its distance to other distances)
  • Method Details

    • done

      protected void done()
      Overrides:
      done in class SwingWorker<Void,Integer>
    • getDistSimilarities

      public double[][] getDistSimilarities()
      Returns computed 2D matrix of distance similarities or null
      Returns:
      computed 2D matrix of distance similarities or null
    • getDistDeviations

      public double[][] getDistDeviations()
      Returns computed 2D matrix of sample standard deviations or null
      Returns:
      computed 2D matrix of sample standard deviations or null
    • getProgressDialog

      public ProgressDialog<Void,Integer> getProgressDialog()
    • getControlPanel

      public final BatchDistancePanel getControlPanel()
    • getFaceFromFaceFactory

      protected HumanFace getFaceFromFaceFactory(int faceIndex)
    • getSelectedFace

      protected HumanFace getSelectedFace()
    • setDistSimilarity

      protected void setDistSimilarity(int i, int j, double val)
    • setDistDeviation

      protected void setDistDeviation(int i, int j, double val)