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:
ActionListener,WindowListener,Runnable,EventListener
- Direct Known Subclasses:
AlgorithmTreT1,AlgorithmTreT2
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 ClassesNested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected booleanWhether this algorithm will utilize 4D processing optimizationprotected static double[][]Static 4x4 Gaussian kernelprotected floatprotected intprotected booleanprotected booleanstatic final intprotected floatprotected intThe number of slices in the largest volumeprotected intprotected booleanprotected booleanprotected booleanprotected booleanFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcloneFileInfo(ModelImage orig, ModelImage clo) This method givesclothe file info oforig.protected abstract voidprotected abstract voidprivate voidMethods 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, 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
-
MAX_PROCESS
public static final int MAX_PROCESS- See Also:
-
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 nSlicesThe number of slices in the largest volume -
do4D
protected boolean do4DWhether this algorithm will utilize 4D processing optimization -
Gaussian
protected static double[][] GaussianStatic 4x4 Gaussian kernel
-
-
Constructor Details
-
AlgorithmTProcess
-
AlgorithmTProcess
public AlgorithmTProcess()
-
-
Method Details
-
cloneFileInfo
This method givesclothe file info oforig.- Parameters:
orig- Original imageclo- Near clone image
-
computeProcessors
protected abstract void computeProcessors() -
displayImages
protected abstract void displayImages() -
genericInit
private void genericInit()
-