Package gov.nih.mipav.model.algorithms
Class AlgorithmFuzzyConnectednessSegmentation
java.lang.Object
java.lang.Thread
gov.nih.mipav.model.algorithms.AlgorithmBase
gov.nih.mipav.model.algorithms.AlgorithmFuzzyConnectednessSegmentation
- All Implemented Interfaces:
ActionListener,WindowListener,Runnable,EventListener
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intstatic final intThis code is ported from MATLAB routines adjacency, affinity, afc, and irfc written by Joakim Lindblad References: 1.)private ModelImage[]Fuzzy images require 1 image with double values Hard images 1 image with class numbers.private intDOCUMENT ME!private doublestatic final intDOCUMENT ME!private doublestatic final intDOCUMENT ME!private intprivate intprivate ViewUserInterfaceFields inherited from class gov.nih.mipav.model.algorithms.AlgorithmBase
destFlag, 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
ConstructorsConstructorDescriptionAlgorithmFuzzyConnectednessSegmentation(ModelImage[] destImg, ModelImage srcImg, int algorithm, int L1Distance, double distanceDecline, double gradientWeight, Vector<Integer> index_seeds, Vector<Short> index_labels) -
Method Summary
Modifier and TypeMethodDescriptionprivate double[]afc(Vector<Integer> index_seeds_original, Vector<Integer> index1, Vector<Integer> index2, Vector<Double> affinity) voidfinalize()Prepares this class for destruction.private short[]irfc(Vector<Integer> index_seeds, Vector<Short> index_labels, Vector<Integer> index1, Vector<Integer> index2, Vector<Double> affinity) 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
-
BOTH_FUZZY_HARD
public static final int BOTH_FUZZY_HARDThis code is ported from MATLAB routines adjacency, affinity, afc, and irfc written by Joakim Lindblad References: 1.) "Fuzzy Connectedness and Object Definition: Theory, Algorithms, and Applications in Image Segmentation" by Jayaram K. Udupa and Supun Samarasekera, Graphical Models and Image Processing, Vol. 58, No. 3, May, 1996, pp. 246-261. 2.) "Fuzzy Connected Object Delineation: Axiomatic Path Strength Definition and the Case of Multiple Seeds" by Punam K. Saha and Jayaram K. Udupa, Computer Vision and Image Understanding, 83, 2001, pp. 275-295. 3.) "Iterative relative fuzzy connectedness for multiple objects with multiple seeds" by Krzysztof Chris Ciesielski, Jayaram K. Udupa, Punam K. Saha, and Ying Zhuge, Computer Vision and Image Understanding, 107, 2007, pp. 160-182.- See Also:
-
FUZZY_ONLY
public static final int FUZZY_ONLYDOCUMENT ME!- See Also:
-
HARD_ONLY
public static final int HARD_ONLYDOCUMENT ME!- See Also:
-
destImage
Fuzzy images require 1 image with double values Hard images 1 image with class numbers. -
destNum
private int destNumDOCUMENT ME! -
L1Distance
private int L1Distance -
distanceDecline
private double distanceDecline -
gradientWeight
private double gradientWeight -
index_seeds
-
index_labels
-
algorithm
private int algorithm -
sliceSize
private int sliceSize -
UI
-
-
Constructor Details
-
AlgorithmFuzzyConnectednessSegmentation
public AlgorithmFuzzyConnectednessSegmentation(ModelImage[] destImg, ModelImage srcImg, int algorithm, int L1Distance, double distanceDecline, double gradientWeight, Vector<Integer> index_seeds, Vector<Short> index_labels)
-
-
Method Details
-
finalize
public void finalize()Prepares this class for destruction.- Overrides:
finalizein classAlgorithmBase
-
runAlgorithm
public void runAlgorithm()Starts the program.- Specified by:
runAlgorithmin classAlgorithmBase
-
afc
-
irfc
-