Class BatchIndirectDistanceTask
java.lang.Object
javax.swing.SwingWorker<Void,Integer>
cz.fidentis.analyst.gui.task.batch.distance.BatchDistanceTask
cz.fidentis.analyst.gui.task.batch.distance.BatchIndirectDistanceTask
- All Implemented Interfaces:
Runnable
,Future<Void>
,RunnableFuture<Void>
A task that computes distance-based similarity of the set of faces.
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.SwingWorker
SwingWorker.StateValue
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State
-
Constructor Summary
ConstructorsConstructorDescriptionBatchIndirectDistanceTask
(ProgressDialog<Void, Integer> progressDialog, BatchControlPanel controlPanel, BatchFaceDistanceServices.DistanceStrategy distanceStrategy, com.jogamp.opengl.GLContext context) Constructor. -
Method Summary
Methods inherited from class cz.fidentis.analyst.gui.task.batch.distance.BatchDistanceTask
done, getBatchDistance, getControlPanel, getDistDeviations, getDistSimilarities, getProgressDialog, setBatchDistance
Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, process, publish, removePropertyChangeListener, run, setProgress
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.concurrent.Future
exceptionNow, resultNow, state
-
Constructor Details
-
BatchIndirectDistanceTask
public BatchIndirectDistanceTask(ProgressDialog<Void, Integer> progressDialog, BatchControlPanel controlPanel, BatchFaceDistanceServices.DistanceStrategy distanceStrategy, com.jogamp.opengl.GLContext context) Constructor.- Parameters:
progressDialog
- A window that show the progress of the computation. Must not benull
controlPanel
- A control panel with computation parameters. Must not benull
The average face is skipped from the similarity measurement (i.e., we do not measure its distance to other distances)distanceStrategy
- A strategy of measuring indirect distancecontext
- Active OpenGL context on which makeCurrent() can be called. If this parameter is notnull
, then GPU can be used for acceleration. Otherwise, CPU is used instead.
-
-
Method Details
-
doInBackground
- Specified by:
doInBackground
in classSwingWorker<Void,
Integer> - Throws:
Exception
-
getSelectedFace
-
printTimeStats
protected void printTimeStats()
-