Package gov.nih.mipav.model.algorithms
Class AlgorithmEmbeddedConfidenceEdgeDetection
java.lang.Object
java.lang.Thread
gov.nih.mipav.model.algorithms.AlgorithmBase
gov.nih.mipav.model.algorithms.AlgorithmEmbeddedConfidenceEdgeDetection
- All Implemented Interfaces:
ActionListener,WindowListener,Runnable,EventListener
The java code is ported from C++ code downloaded from http://coewww.rutgers.edu/riul/research/code.html.
The relevant web page section says:
Edge Detection and Image SegmentatiON (EDISON) System
C++ code, can be used through a graphical interface or command line.
The system is described in Synergism in low level vision.
For comments, please contact Bogdan Georgescu or Chris M. Christoudias.
The EDISON system contains the image segmentation/edge preserving filtering algorithm described in the
paper Mean shift: A robust approach toward feature space analysis and the edge detection algorithm
described in the paper Edge detection with embedded confidence.
This code was ported by William Gandler.
References
-------------------------------------------------------------------------------------------------
[1] D. Comanicu, P. Meer: "Mean shift: A robust approach toward feature space analysis".
IEEE Trans. Pattern Anal. Machine Intell., May 2002.
[2] P. Meer, B. Georgescu: "Edge detection with embedded confidence". IEEE Trans. Pattern Anal.
Machine Intell., 28, 2001.
[3] C. Christoudias, B. Georgescu, P. Meer: "Synergism in low level vision". 16th International
Conference of Pattern Recognition, Track 1 - Computer Vision and Robotics, Quebec City,
Canada, August 2001.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classclassprivate classprivate classNested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final doubleprivate doubleprivate doubleprivate static final doubleprivate static final doubleprivate static final doubleprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final int[][]private static final doubleprivate static final doubleprivate intprivate intprivate static final intprivate intprivate static final intprivate static final intprivate intprivate static final intprivate doubleprivate doubleprivate intprivate static final intprivate static final doubleprivate static final doubleprivate static final doubleprivate static final doubleprivate doubleprivate doubleprivate static final doubleprivate static final doubleFields 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
ConstructorsConstructorDescriptionAlgorithmEmbeddedConfidenceEdgeDetection(ModelImage destImage, ModelImage srcImage, int kernelSize, double nmxr, double nmxc, double rh, double ch, double rl, double cl, int nMin, int nmxType, int hystTypeHigh, int hystTypeLow) -
Method Summary
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, 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
-
RED_WEIGHT
private static final double RED_WEIGHT- See Also:
-
GREEN_WEIGHT
private static final double GREEN_WEIGHT- See Also:
-
BLUE_WEIGHT
private static final double BLUE_WEIGHT- See Also:
-
MAX_FILTS
private static final int MAX_FILTS- See Also:
-
MAX_CUSTT
private static final int MAX_CUSTT- See Also:
-
NO_ANGLES
private static final int NO_ANGLES- See Also:
-
TOL_E
private static final double TOL_E- See Also:
-
ZERO_TRESH
private static final double ZERO_TRESH- See Also:
-
HYST_LOW_CUT
private static final double HYST_LOW_CUT- See Also:
-
CONF_NMX
private static final double CONF_NMX- See Also:
-
RANK_NMX
private static final double RANK_NMX- See Also:
-
CONF_H
private static final double CONF_H- See Also:
-
RANK_H
private static final double RANK_H- See Also:
-
CONF_L
private static final double CONF_L- See Also:
-
RANK_L
private static final double RANK_L- See Also:
-
NMIN
private static final int NMIN- See Also:
-
KERNEL_SIZE
private static final int KERNEL_SIZE- See Also:
-
FC_ELLIPSE
private static final int FC_ELLIPSE- See Also:
-
FC_VERT_LINE
private static final int FC_VERT_LINE- See Also:
-
FC_HORIZ_LINE
private static final int FC_HORIZ_LINE- See Also:
-
FC_LINE
private static final int FC_LINE- See Also:
-
FC_SQUARE_BOX
private static final int FC_SQUARE_BOX- See Also:
-
FC_CUSTOM
private static final int FC_CUSTOM- See Also:
-
gNb
private static final int[][] gNb -
cbgImage_
-
cbgEdgeDetect_
-
kernelSize
private int kernelSize -
nmxr
private double nmxr -
nmxc
private double nmxc -
rh
private double rh -
ch
private double ch -
rl
private double rl -
cl
private double cl -
nMin
private int nMin -
nmxType
private int nmxType -
hystTypeHigh
private int hystTypeHigh -
hystTypeLow
private int hystTypeLow
-
-
Constructor Details
-
AlgorithmEmbeddedConfidenceEdgeDetection
public AlgorithmEmbeddedConfidenceEdgeDetection(ModelImage destImage, ModelImage srcImage, int kernelSize, double nmxr, double nmxc, double rh, double ch, double rl, double cl, int nMin, int nmxType, int hystTypeHigh, int hystTypeLow)
-
-
Method Details
-
runAlgorithm
public void runAlgorithm()Description copied from class:AlgorithmBaseActually runs the algorithm. Implemented by inheriting algorithms.- Specified by:
runAlgorithmin classAlgorithmBase
-
factorial
private double factorial(double num) -
my_sign
private int my_sign(double val)
-