Package gov.nih.mipav.model.algorithms
Class AlgorithmVOILogicalOperations
java.lang.Object
java.lang.Thread
gov.nih.mipav.model.algorithms.AlgorithmBase
gov.nih.mipav.model.algorithms.AlgorithmVOILogicalOperations
- All Implemented Interfaces:
ActionListener,WindowListener,Runnable,EventListener
Algorithm class for performing logical operations on VOIs
- Author:
- pandyan
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intoperation constantsprivate AlgorithmMorphology2Dprivate AlgorithmMorphology3Dprotected ModelImageModel Imagesprotected booleanflag indicating whether output should be VOI image or mask imageprotected ModelImageModel Imagesprivate intprivate intprivate intprotected intoperation typestatic final intoperation constantsprotected ViewVOIVectorVector of all VOIs that will have calculations performed.protected ModelImageModel Imagesstatic final intoperation constantsFields 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
ConstructorsConstructorDescriptionAlgorithmVOILogicalOperations(ModelImage clonedImage, ViewVOIVector selectedVOIset, int operation, boolean doVoiImage) constructor -
Method Summary
Modifier and TypeMethodDescriptionreturns the mask imagevoidrun algorithmMethods 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, 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
-
selectedVOIset
Vector of all VOIs that will have calculations performed. -
clonedImage
Model Images -
finalMaskImage
Model Images -
tempMaskImage
Model Images -
operation
protected int operationoperation type -
ADD
public static final int ADDoperation constants- See Also:
-
OR
public static final int ORoperation constants- See Also:
-
XOR
public static final int XORoperation constants- See Also:
-
doVoiImage
protected boolean doVoiImageflag indicating whether output should be VOI image or mask image -
alg2D
-
alg3D
-
min
private int min -
max
private int max -
kernel
private int kernel
-
-
Constructor Details
-
AlgorithmVOILogicalOperations
public AlgorithmVOILogicalOperations(ModelImage clonedImage, ViewVOIVector selectedVOIset, int operation, boolean doVoiImage) constructor- Parameters:
clonedImage-selectedVOIset-operation-doVoiImage-img-
-
-
Method Details
-
runAlgorithm
public void runAlgorithm()run algorithm- Specified by:
runAlgorithmin classAlgorithmBase
-
getFinalMaskImage
returns the mask image- Returns:
-