Class AlgorithmDemonsLite
- java.lang.Object
-
- java.lang.Thread
-
- gov.nih.mipav.model.algorithms.AlgorithmBase
-
- gov.nih.mipav.model.algorithms.registration.AlgorithmDemonsLite
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.awt.event.WindowListener
,java.lang.Runnable
,java.util.EventListener
public class AlgorithmDemonsLite extends AlgorithmBase
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:
JDialogDemons
-
-
Field Summary
Fields Modifier and Type Field Description private DemonsRegistrationLite
algorithm
private ModelImage
cImage
private ModelImage
circleImage
private ModelImage[]
destImage
private int
levels
private int
Ni
private int
nix
private int
niy
private int
niz
private int
ntx
private int
nty
private int
ntz
private java.lang.String
output
private int
regType
private float
rix
private float
riy
private float
riz
private float
rtx
private float
rty
private float
rtz
private float
scale
private float
smoothing
private ModelImage
srcImage
private ModelImage
targetImage
-
Fields inherited from class gov.nih.mipav.model.algorithms.AlgorithmBase
destFlag, image25D, mask, maxProgressValue, minProgressValue, multiThreadingEnabled, nthreads, progress, progressModulus, progressStep, runningInSeparateThread, separable, threadStopped
-
-
Constructor Summary
Constructors Constructor Description AlgorithmDemonsLite(ModelImage srcImg, ModelImage targetImg, int levels_, int Ni_, float smooth_, float scale_, java.lang.String reg_, java.lang.String out_)
Constructor for 3D images in which changes are placed in a predetermined destination image.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finalize()
Prepares this class for destruction.void
generateTestImages()
A test of the diffeomorphic demons is to transform a circle image to a letter C image.ModelImage[]
getResultImages()
for output of resultsvoid
runAlgorithm()
Starts 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, windowOpened
-
Methods 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, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
srcImage
private ModelImage srcImage
-
targetImage
private ModelImage targetImage
-
destImage
private ModelImage[] destImage
-
output
private java.lang.String 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
private DemonsRegistrationLite algorithm
-
smoothing
private float smoothing
-
scale
private float scale
-
levels
private int levels
-
Ni
private int Ni
-
regType
private int regType
-
circleImage
private ModelImage circleImage
-
cImage
private ModelImage cImage
-
-
Constructor Detail
-
AlgorithmDemonsLite
public AlgorithmDemonsLite(ModelImage srcImg, ModelImage targetImg, int levels_, int Ni_, float smooth_, float scale_, java.lang.String reg_, java.lang.String out_)
Constructor for 3D images in which changes are placed in a predetermined destination image.- Parameters:
destImg
- Image model where result image is to stored.srcImg
- Source image model.
-
-
Method Detail
-
finalize
public void finalize()
Prepares this class for destruction.- Overrides:
finalize
in classAlgorithmBase
-
getResultImages
public ModelImage[] getResultImages()
for output of results
-
runAlgorithm
public void runAlgorithm()
Starts the algorithm.- Specified by:
runAlgorithm
in classAlgorithmBase
-
generateTestImages
public void generateTestImages()
A test of the diffeomorphic demons is to transform a circle image to a letter C image.
-
-