Class AlgorithmDemonsLite
java.lang.Object
java.lang.Thread
gov.nih.mipav.model.algorithms.AlgorithmBase
gov.nih.mipav.model.algorithms.registration.AlgorithmDemonsLite
- All Implemented Interfaces:
ActionListener,WindowListener,Runnable,EventListener
Algorithm for non-linear registration with the DEMONS algorithm.
* (Demons variant from Tom Vercauteren's 2009 paper,
"Diffeomorphic demons: Efficient non-parametric image registration by
Tom Vercauteren, Xavier Pennec, Aymeric Perchant, and Nicholas Ayache,
NeuroImage, 45, 2009, S61-S72.)
- Version:
- Feb 2005
- Author:
- Pierre-Louis Bazin
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DemonsRegistrationLiteprivate ModelImageprivate ModelImageprivate ModelImage[]private intprivate intprivate intprivate intprivate intprivate intprivate intprivate intprivate Stringprivate intprivate floatprivate floatprivate floatprivate floatprivate floatprivate floatprivate floatprivate floatprivate ModelImageprivate ModelImageFields inherited from class gov.nih.mipav.model.algorithms.AlgorithmBase
destFlag, image25D, mask, maxProgressValue, minProgressValue, multiThreadingEnabled, nthreads, progress, progressModulus, progressStep, runningInSeparateThread, separable, threadStoppedFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionAlgorithmDemonsLite(ModelImage srcImg, ModelImage targetImg, int levels_, int Ni_, float smooth_, float scale_, String reg_, String out_) Constructor for 3D images in which changes are placed in a predetermined destination image. -
Method Summary
Modifier and TypeMethodDescriptionvoidfinalize()Prepares this class for destruction.voidA test of the diffeomorphic demons is to transform a circle image to a letter C image.for output of resultsvoidStarts the algorithm.Methods inherited from class gov.nih.mipav.model.algorithms.AlgorithmBase
actionPerformed, addListener, addProgressChangeListener, calculateImageSize, calculatePrincipleAxis, computeElapsedTime, computeElapsedTime, convertIntoFloat, delinkProgressToAlgorithm, delinkProgressToAlgorithmMulti, displayError, errorCleanUp, fireProgressStateChanged, fireProgressStateChanged, fireProgressStateChanged, fireProgressStateChanged, fireProgressStateChanged, generateProgressValues, getDestImage, getElapsedTime, getMask, getMaxProgressValue, getMinProgressValue, getNumberOfThreads, getProgress, getProgressChangeListener, getProgressChangeListeners, getProgressModulus, getProgressStep, getProgressValues, getSrcImage, isCompleted, isImage25D, isMultiThreadingEnabled, isRunningInSeparateThread, isThreadStopped, linkProgressToAlgorithm, linkProgressToAlgorithm, makeProgress, notifyListeners, removeListener, removeProgressChangeListener, run, setCompleted, setImage25D, setMask, setMaxProgressValue, setMinProgressValue, setMultiThreadingEnabled, setNumberOfThreads, setProgress, setProgressModulus, setProgressStep, setProgressValues, setProgressValues, setRunningInSeparateThread, setSrcImage, setStartTime, setThreadStopped, startMethod, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpenedMethods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Field Details
-
srcImage
-
targetImage
-
destImage
-
output
-
nix
private int nix -
niy
private int niy -
niz
private int niz -
rix
private float rix -
riy
private float riy -
riz
private float riz -
ntx
private int ntx -
nty
private int nty -
ntz
private int ntz -
rtx
private float rtx -
rty
private float rty -
rtz
private float rtz -
algorithm
-
smoothing
private float smoothing -
scale
private float scale -
levels
private int levels -
Ni
private int Ni -
regType
private int regType -
circleImage
-
cImage
-
-
Constructor Details
-
AlgorithmDemonsLite
public AlgorithmDemonsLite(ModelImage srcImg, ModelImage targetImg, int levels_, int Ni_, float smooth_, float scale_, String reg_, String out_) Constructor for 3D images in which changes are placed in a predetermined destination image.- Parameters:
srcImg- Source image model.destImg- Image model where result image is to stored.
-
-
Method Details
-
finalize
public void finalize()Prepares this class for destruction.- Overrides:
finalizein classAlgorithmBase
-
getResultImages
for output of results -
runAlgorithm
public void runAlgorithm()Starts the algorithm.- Specified by:
runAlgorithmin classAlgorithmBase
-
generateTestImages
public void generateTestImages()A test of the diffeomorphic demons is to transform a circle image to a letter C image.
-