Class AlgorithmSubset
- java.lang.Object
-
- java.lang.Thread
-
- gov.nih.mipav.model.algorithms.AlgorithmBase
-
- gov.nih.mipav.model.algorithms.utilities.AlgorithmSubset
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.awt.event.WindowListener
,java.lang.Runnable
,java.util.EventListener
public class AlgorithmSubset extends AlgorithmBase
Algorithm to create a 3D subset image from a 4D image. The user specifies the dimension to remove - x, y, z, or t and the value of the removed dimension.
-
-
Field Summary
Fields Modifier and Type Field Description static int
REMOVE_T
Remove t dimension.static int
REMOVE_X
Remove x dimension.static int
REMOVE_Y
Remove y dimension.static int
REMOVE_Z
Remove z dimension.private int
removeDim
Dimension to be removed.private int
sliceNum
Slice value for removed dimension.-
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 AlgorithmSubset(ModelImage srcImage, ModelImage destImage, int removeDim, int sliceNum)
import source and destination images into the class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finalize()
Prepares this class for destruction.void
runAlgorithm()
Runs 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
-
REMOVE_X
public static final int REMOVE_X
Remove x dimension.- See Also:
- Constant Field Values
-
REMOVE_Y
public static final int REMOVE_Y
Remove y dimension.- See Also:
- Constant Field Values
-
REMOVE_Z
public static final int REMOVE_Z
Remove z dimension.- See Also:
- Constant Field Values
-
REMOVE_T
public static final int REMOVE_T
Remove t dimension.- See Also:
- Constant Field Values
-
removeDim
private final int removeDim
Dimension to be removed.
-
sliceNum
private final int sliceNum
Slice value for removed dimension.
-
-
Constructor Detail
-
AlgorithmSubset
public AlgorithmSubset(ModelImage srcImage, ModelImage destImage, int removeDim, int sliceNum)
import source and destination images into the class.- Parameters:
srcImage
- source image (image to clip from)destImage
- destination image (image to paste to)removeDim
- the dimension to be removedsliceNum
- slice value for removed dimension
-
-
Method Detail
-
finalize
public void finalize()
Prepares this class for destruction.- Overrides:
finalize
in classAlgorithmBase
-
runAlgorithm
public void runAlgorithm()
Runs the algorithm.- Specified by:
runAlgorithm
in classAlgorithmBase
-
-