Class AlgorithmConcat
- java.lang.Object
-
- java.lang.Thread
-
- gov.nih.mipav.model.algorithms.AlgorithmBase
-
- gov.nih.mipav.model.algorithms.utilities.AlgorithmConcat
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.awt.event.WindowListener
,java.lang.Runnable
,java.util.EventListener
public class AlgorithmConcat extends AlgorithmBase
Assumes the pixel resolutions are equal. Concatenates two images of compatible dimensions. Variants include1. 2D to 2D -> 3D 2. 2D to 3D -> 3D 3. 3D to 2D -> 3D 4. 3D to 3D -> 3D 5. 3D to 3D -> 4D 6. 3D to 4D -> 4D 7. 4D to 3D -> 4D 8. 4D to 4D -> 4D
- Version:
- 1.0 March 22, 2001
- Author:
- Matthew J. McAuliffe, Ph.D.
-
-
Field Summary
Fields Modifier and Type Field Description private ModelImage
srcImage1
Source image 1.private ModelImage
srcImage2
Source image 2.-
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 AlgorithmConcat(ModelImage srcIm1, ModelImage srcIm2, ModelImage dest)
Creates a new AlgorithmConcat object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
cat2D_2D_3D()
This function produces a new image that has been concatenated.private void
cat2D_3D_3D()
This function produces a new image that has been concatenated.private void
cat3D_3D_3D()
This function produces a new image that has been concatenated.private void
cat3D_3D_4D()
This function produces a new image that has been concatenated.private void
cat3D_4D_4D()
cat.private void
cat4D_4D_4D()
cat.void
finalize()
Prepares this class for destruction.ModelImage
getResultImage()
Accessor that returns the result image.void
runAlgorithm()
Starts the program.-
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
-
srcImage1
private ModelImage srcImage1
Source image 1.
-
srcImage2
private ModelImage srcImage2
Source image 2.
-
-
Constructor Detail
-
AlgorithmConcat
public AlgorithmConcat(ModelImage srcIm1, ModelImage srcIm2, ModelImage dest)
Creates a new AlgorithmConcat object.- Parameters:
srcIm1
- source image model 1srcIm2
- source image model 2dest
- destination image
-
-
Method Detail
-
finalize
public void finalize()
Prepares this class for destruction.- Overrides:
finalize
in classAlgorithmBase
-
getResultImage
public ModelImage getResultImage()
Accessor that returns the result image.- Returns:
- Result image.
-
runAlgorithm
public void runAlgorithm()
Starts the program.- Specified by:
runAlgorithm
in classAlgorithmBase
-
cat2D_2D_3D
private void cat2D_2D_3D()
This function produces a new image that has been concatenated. Two 2D-images become one 3D image.
-
cat2D_3D_3D
private void cat2D_3D_3D()
This function produces a new image that has been concatenated. One 2D- and one 3D-image become one 3D image.
-
cat3D_3D_3D
private void cat3D_3D_3D()
This function produces a new image that has been concatenated. Two 3D--images become one 3D image.
-
cat3D_3D_4D
private void cat3D_3D_4D()
This function produces a new image that has been concatenated. Two 3D--images become one 4D image.
-
cat3D_4D_4D
private void cat3D_4D_4D()
cat.
-
cat4D_4D_4D
private void cat4D_4D_4D()
cat.
-
-