Class AlgorithmRegBSpline
java.lang.Object
java.lang.Thread
gov.nih.mipav.model.algorithms.AlgorithmBase
gov.nih.mipav.model.algorithms.registration.AlgorithmRegBSpline
- All Implemented Interfaces:
ActionListener,WindowListener,Runnable,EventListener
- Direct Known Subclasses:
AlgorithmRegBSpline25D,AlgorithmRegBSpline2D,AlgorithmRegBSpline3D
This is a common base class which provides common methods and data members for all BSpline based registration.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classData structure which contains the parameters or options used to perform a BSpline based registration of two images.Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ModelImageReference to an image to store the computed deformation.protected ModelImageReference to an image to store the registered source image.protected ModelImageReference to the original input image to use as the registration source.protected ModelImageReference to the original input image to use as the registration target.protected AlgorithmRegBSpline.OptionsOptions to use for a first pass of registration.protected AlgorithmRegBSpline.OptionsOptions to use for a second pass of registration.protected RegistrationMeasureReference 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, threadStoppedFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAlgorithmRegBSpline(ModelImage kImageResult, ModelImage kImageSource, ModelImage kImageTarget, ModelImage kImageDeformation, RegistrationMeasure kRegMeasure, AlgorithmRegBSpline.Options kOptionsPass1, AlgorithmRegBSpline.Options kOptionsPass2) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidPrepares 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, 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
-
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
Reference to an image to store the registered source image. This image must have the same dimensions as the registration target image. -
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
Reference to the original input image to use as the registration target. -
m_kOptionsPass1
Options to use for a first pass of registration. This may *not* be a null reference. -
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
Reference to the particular cost measure to use for this registration. The cost measure is the same for all passes.
-
-
Constructor Details
-
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 Details
-
disposeLocal
public void disposeLocal()Prepares this class for destruction. -
finalize
public void finalize()DOCUMENT ME!- Overrides:
finalizein classAlgorithmBase
-