Class AlgorithmConcat
java.lang.Object
java.lang.Thread
gov.nih.mipav.model.algorithms.AlgorithmBase
gov.nih.mipav.model.algorithms.utilities.AlgorithmConcat
- All Implemented Interfaces:
ActionListener,WindowListener,Runnable,EventListener
Assumes the pixel resolutions are equal. Concatenates two images of compatible dimensions. Variants include
1. 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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ModelImageSource image 1.private ModelImageSource 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, threadStoppedFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionAlgorithmConcat(ModelImage srcIm1, ModelImage srcIm2, ModelImage dest) Creates a new AlgorithmConcat object. -
Method Summary
Modifier and TypeMethodDescriptionprivate voidThis function produces a new image that has been concatenated.private voidThis function produces a new image that has been concatenated.private voidThis function produces a new image that has been concatenated.private voidThis function produces a new image that has been concatenated.private voidcat.private voidcat.voidfinalize()Prepares this class for destruction.Accessor that returns the result image.voidStarts 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, 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
-
srcImage1
Source image 1. -
srcImage2
Source image 2.
-
-
Constructor Details
-
AlgorithmConcat
Creates a new AlgorithmConcat object.- Parameters:
srcIm1- source image model 1srcIm2- source image model 2dest- destination image
-
-
Method Details
-
finalize
public void finalize()Prepares this class for destruction.- Overrides:
finalizein classAlgorithmBase
-
getResultImage
Accessor that returns the result image.- Returns:
- Result image.
-
runAlgorithm
public void runAlgorithm()Starts the program.- Specified by:
runAlgorithmin 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.
-