Class AlgorithmRegBSpline
- java.lang.Object
-
- java.lang.Thread
-
- gov.nih.mipav.model.algorithms.AlgorithmBase
-
- gov.nih.mipav.model.algorithms.registration.AlgorithmRegBSpline
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.awt.event.WindowListener,java.lang.Runnable,java.util.EventListener
- Direct Known Subclasses:
AlgorithmRegBSpline25D,AlgorithmRegBSpline2D,AlgorithmRegBSpline3D
public abstract class AlgorithmRegBSpline extends AlgorithmBase
This is a common base class which provides common methods and data members for all BSpline based registration.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAlgorithmRegBSpline.OptionsData structure which contains the parameters or options used to perform a BSpline based registration of two images.
-
Field Summary
Fields Modifier and Type Field Description protected ModelImagem_kImageDeformationReference to an image to store the computed deformation.protected ModelImagem_kImageResultReference to an image to store the registered source image.protected ModelImagem_kImageSourceReference to the original input image to use as the registration source.protected ModelImagem_kImageTargetReference to the original input image to use as the registration target.protected AlgorithmRegBSpline.Optionsm_kOptionsPass1Options to use for a first pass of registration.protected AlgorithmRegBSpline.Optionsm_kOptionsPass2Options to use for a second pass of registration.protected RegistrationMeasurem_kRegMeasureReference to the particular cost measure to use for this registration.-
Fields inherited from class gov.nih.mipav.model.algorithms.AlgorithmBase
destFlag, destImage, image25D, mask, maxProgressValue, minProgressValue, multiThreadingEnabled, nthreads, progress, progressModulus, progressStep, runningInSeparateThread, separable, srcImage, threadStopped
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAlgorithmRegBSpline(ModelImage kImageResult, ModelImage kImageSource, ModelImage kImageTarget, ModelImage kImageDeformation, RegistrationMeasure kRegMeasure, AlgorithmRegBSpline.Options kOptionsPass1, AlgorithmRegBSpline.Options kOptionsPass2)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisposeLocal()Prepares this class for destruction.voidfinalize()DOCUMENT ME!-
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, runAlgorithm, 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
-
m_kImageDeformation
protected ModelImage m_kImageDeformation
Reference to an image to store the computed deformation. This may be a null reference to indicate that the deformation is not to be computed. If this reference is not null, then the image must have the same dimensions as the target image.
-
m_kImageResult
protected ModelImage m_kImageResult
Reference to an image to store the registered source image. This image must have the same dimensions as the registration target image.
-
m_kImageSource
protected ModelImage m_kImageSource
Reference to the original input image to use as the registration source. This image does not have to have the same dimensions as the image to be used as the registration target.
-
m_kImageTarget
protected ModelImage m_kImageTarget
Reference to the original input image to use as the registration target.
-
m_kOptionsPass1
protected AlgorithmRegBSpline.Options m_kOptionsPass1
Options to use for a first pass of registration. This may *not* be a null reference.
-
m_kOptionsPass2
protected AlgorithmRegBSpline.Options m_kOptionsPass2
Options to use for a second pass of registration. This may be null to indicate that only a single pass of registration is to be performed.
-
m_kRegMeasure
protected RegistrationMeasure m_kRegMeasure
Reference to the particular cost measure to use for this registration. The cost measure is the same for all passes.
-
-
Constructor Detail
-
AlgorithmRegBSpline
protected AlgorithmRegBSpline(ModelImage kImageResult, ModelImage kImageSource, ModelImage kImageTarget, ModelImage kImageDeformation, RegistrationMeasure kRegMeasure, AlgorithmRegBSpline.Options kOptionsPass1, AlgorithmRegBSpline.Options kOptionsPass2)
Constructor.- Parameters:
kImageResult- ModelImage Reference to an image to store the registered source image. This image must have the same dimensions as the registration target image.kImageSource- ModelImage Reference to the original input image to use as the registration source. This image does not have to have the same dimensions as the image to be used as the registration target.kImageTarget- ModelImage Reference to the original input image to use as the registration target.kImageDeformation- ModelImage Reference to an image to store the computed deformation. This may be a null reference to indicate that the deformation is not to be computed. If this reference is not null, then the image must have the same dimensions as the target image.kRegMeasure- RegistrationMeasure Reference to the particular cost measure to use for this registration. The cost measure is the same for all passes.kOptionsPass1- Options Options to use for a first pass of registration. This may *not* be a null reference.kOptionsPass2- Options Options to use for a second pass of registration. This may be null to indicate that only a single pass of registration is to be performed.
-
-
Method Detail
-
disposeLocal
public void disposeLocal()
Prepares this class for destruction.
-
finalize
public void finalize()
DOCUMENT ME!- Overrides:
finalizein classAlgorithmBase
-
-