Class BatchRegistrationTask
java.lang.Object
javax.swing.SwingWorker<MeshModel,StoredHumanFace>
cz.fidentis.analyst.gui.task.batch.registration.BatchRegistrationTask
- All Implemented Interfaces:
Runnable
,Future<MeshModel>
,RunnableFuture<MeshModel>
A concurrent task that registers multiple faces to selected template face. Simultaneously, it computes
average face. The exact computation parameters are taken from the
BatchRegistrationPanel
.-
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
ConstructorsConstructorDescriptionBatchRegistrationTask
(ProgressDialog<MeshModel, StoredHumanFace> progressDialog, BatchRegistrationPanel controlPanel, Canvas canvas) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected StoredHumanFace
createAvgFace
(MeshModel avgMesh) protected MeshModel
protected void
done()
protected StoredHumanFace
protected void
protected void
process
(List<StoredHumanFace> chunks) protected void
Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, 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
-
BatchRegistrationTask
public BatchRegistrationTask(ProgressDialog<MeshModel, StoredHumanFace> progressDialog, BatchRegistrationPanel controlPanel, Canvas canvas) 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
canvas
- Canvas with a 3D scene.
-
-
Method Details
-
doInBackground
- Specified by:
doInBackground
in classSwingWorker<MeshModel,
StoredHumanFace> - Throws:
Exception
-
done
protected void done()- Overrides:
done
in classSwingWorker<MeshModel,
StoredHumanFace>
-
process
- Overrides:
process
in classSwingWorker<MeshModel,
StoredHumanFace>
-
printTimeStats
protected void printTimeStats() -
createAvgFace
- Throws:
IOException
-
setHumanFaceFactoryParams
protected void setHumanFaceFactoryParams() -
getTemplateFace
-