Package gov.nih.mipav.model.algorithms
Class AlgorithmAnyTwoImagesSNR
- java.lang.Object
-
- java.lang.Thread
-
- gov.nih.mipav.model.algorithms.AlgorithmBase
-
- gov.nih.mipav.model.algorithms.AlgorithmAnyTwoImagesSNR
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.awt.event.WindowListener
,java.lang.Runnable
,java.util.EventListener
public class AlgorithmAnyTwoImagesSNR extends AlgorithmBase
-
-
Field Summary
Fields Modifier and Type Field Description private int
cost
DOCUMENT ME!private boolean
createRegImage
DOCUMENT ME!private ModelImage
image2
private ModelImage srcImage;.private boolean
register
DOCUMENT ME!private boolean
scale
private ViewUserInterface
UI
DOCUMENT ME!-
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 Constructor Description AlgorithmAnyTwoImagesSNR(ModelImage image, ModelImage image2, boolean scale, boolean register, int cost, boolean createRegImage)
Creates a new AlgorithmAnyTwoImagesSNR object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finalize()
Prepares this class for destruction.void
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
-
cost
private int cost
DOCUMENT ME!
-
createRegImage
private boolean createRegImage
DOCUMENT ME!
-
image2
private ModelImage image2
private ModelImage srcImage;.
-
register
private boolean register
DOCUMENT ME!
-
scale
private boolean scale
-
UI
private ViewUserInterface UI
DOCUMENT ME!
-
-
Constructor Detail
-
AlgorithmAnyTwoImagesSNR
public AlgorithmAnyTwoImagesSNR(ModelImage image, ModelImage image2, boolean scale, boolean register, int cost, boolean createRegImage)
Creates a new AlgorithmAnyTwoImagesSNR object.- Parameters:
image
- First MRI imageimage2
- Second MRI imagescale
- if true scale image 2 so its min and max match min and max of image 1register
- If true register the image2 to the image before SNRcost
- Cost function used in registrationcreateRegImage
- If register = true and createRegImage = true, then create a frame with the registered image
-
-
Method Detail
-
finalize
public void finalize()
Prepares this class for destruction.- Overrides:
finalize
in classAlgorithmBase
-
runAlgorithm
public void runAlgorithm()
starts the algorithm.- Specified by:
runAlgorithm
in classAlgorithmBase
-
-