Package gov.nih.mipav.model.algorithms
Class AlgorithmTProcess
- java.lang.Object
-
- java.lang.Thread
-
- gov.nih.mipav.model.algorithms.AlgorithmBase
-
- gov.nih.mipav.model.algorithms.AlgorithmTProcess
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.awt.event.WindowListener
,java.lang.Runnable
,java.util.EventListener
- Direct Known Subclasses:
AlgorithmTreT1
,AlgorithmTreT2
public abstract class AlgorithmTProcess extends AlgorithmBase
This abstract class defines terms common to both T1 and T2 processing, such as thresholding and multithreading management methods. Some methods were adapted from the ImageJ code by Sean Deoni.- Author:
- senseneyj
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
AlgorithmTProcess.CalculateT
-
Field Summary
Fields Modifier and Type Field Description protected int
computeDataThreads
protected boolean
do4D
Whether this algorithm will utilize 4D processing optimizationprotected static double[][]
Gaussian
Static 4x4 Gaussian kernelprotected float
hardNoiseThreshold
protected int
loadDataThreads
protected boolean
lowerLeftCorner
protected boolean
lowerRightCorner
static int
MAX_PROCESS
protected float
noiseScale
protected int
nSlices
The number of slices in the largest volumeprotected int
processDataThreads
protected boolean
upperLeftCorner
protected boolean
upperRightCorner
protected boolean
useHardThresholding
protected boolean
useSmartThresholding
-
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 AlgorithmTProcess()
AlgorithmTProcess(ModelImage destImage, ModelImage srcImage)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
cloneFileInfo(ModelImage orig, ModelImage clo)
This method givesclo
the file info oforig
.protected abstract void
computeProcessors()
protected abstract void
displayImages()
private void
genericInit()
-
Methods inherited from class gov.nih.mipav.model.algorithms.AlgorithmBase
actionPerformed, addListener, addProgressChangeListener, calculateImageSize, calculatePrincipleAxis, computeElapsedTime, computeElapsedTime, convertIntoFloat, delinkProgressToAlgorithm, delinkProgressToAlgorithmMulti, displayError, errorCleanUp, finalize, 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, 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
-
MAX_PROCESS
public static final int MAX_PROCESS
- See Also:
- Constant Field Values
-
upperLeftCorner
protected boolean upperLeftCorner
-
upperRightCorner
protected boolean upperRightCorner
-
lowerLeftCorner
protected boolean lowerLeftCorner
-
lowerRightCorner
protected boolean lowerRightCorner
-
useSmartThresholding
protected boolean useSmartThresholding
-
useHardThresholding
protected boolean useHardThresholding
-
noiseScale
protected float noiseScale
-
hardNoiseThreshold
protected float hardNoiseThreshold
-
processDataThreads
protected int processDataThreads
-
computeDataThreads
protected int computeDataThreads
-
loadDataThreads
protected int loadDataThreads
-
nSlices
protected int nSlices
The number of slices in the largest volume
-
do4D
protected boolean do4D
Whether this algorithm will utilize 4D processing optimization
-
Gaussian
protected static double[][] Gaussian
Static 4x4 Gaussian kernel
-
-
Constructor Detail
-
AlgorithmTProcess
public AlgorithmTProcess(ModelImage destImage, ModelImage srcImage)
-
AlgorithmTProcess
public AlgorithmTProcess()
-
-
Method Detail
-
cloneFileInfo
public void cloneFileInfo(ModelImage orig, ModelImage clo)
This method givesclo
the file info oforig
.- Parameters:
orig
- Original imageclo
- Near clone image
-
computeProcessors
protected abstract void computeProcessors()
-
displayImages
protected abstract void displayImages()
-
genericInit
private void genericInit()
-
-