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:
java.awt.event.ActionListener
,java.awt.event.WindowListener
,java.lang.Runnable
,java.util.EventListener
public class AlgorithmEmbeddedConfidenceEdgeDetection extends AlgorithmBase
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 Classes Modifier and Type Class Description private class
AlgorithmEmbeddedConfidenceEdgeDetection.BgEdge
class
AlgorithmEmbeddedConfidenceEdgeDetection.BgEdgeDetect
private class
AlgorithmEmbeddedConfidenceEdgeDetection.BgEdgeList
private class
AlgorithmEmbeddedConfidenceEdgeDetection.BgImage
-
Field Summary
Fields Modifier and Type Field Description private static double
BLUE_WEIGHT
private AlgorithmEmbeddedConfidenceEdgeDetection.BgEdgeDetect
cbgEdgeDetect_
private AlgorithmEmbeddedConfidenceEdgeDetection.BgImage
cbgImage_
private double
ch
private double
cl
private static double
CONF_H
private static double
CONF_L
private static double
CONF_NMX
private static int
FC_CUSTOM
private static int
FC_ELLIPSE
private static int
FC_HORIZ_LINE
private static int
FC_LINE
private static int
FC_SQUARE_BOX
private static int
FC_VERT_LINE
private static int[][]
gNb
private static double
GREEN_WEIGHT
private static double
HYST_LOW_CUT
private int
hystTypeHigh
private int
hystTypeLow
private static int
KERNEL_SIZE
private int
kernelSize
private static int
MAX_CUSTT
private static int
MAX_FILTS
private int
nMin
private static int
NMIN
private double
nmxc
private double
nmxr
private int
nmxType
private static int
NO_ANGLES
private static double
RANK_H
private static double
RANK_L
private static double
RANK_NMX
private static double
RED_WEIGHT
private double
rh
private double
rl
private static double
TOL_E
private static double
ZERO_TRESH
-
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 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private double
factorial(double num)
private int
my_sign(double val)
void
runAlgorithm()
Actually runs the algorithm.-
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, 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
-
RED_WEIGHT
private static final double RED_WEIGHT
- See Also:
- Constant Field Values
-
GREEN_WEIGHT
private static final double GREEN_WEIGHT
- See Also:
- Constant Field Values
-
BLUE_WEIGHT
private static final double BLUE_WEIGHT
- See Also:
- Constant Field Values
-
MAX_FILTS
private static final int MAX_FILTS
- See Also:
- Constant Field Values
-
MAX_CUSTT
private static final int MAX_CUSTT
- See Also:
- Constant Field Values
-
NO_ANGLES
private static final int NO_ANGLES
- See Also:
- Constant Field Values
-
TOL_E
private static final double TOL_E
- See Also:
- Constant Field Values
-
ZERO_TRESH
private static final double ZERO_TRESH
- See Also:
- Constant Field Values
-
HYST_LOW_CUT
private static final double HYST_LOW_CUT
- See Also:
- Constant Field Values
-
CONF_NMX
private static final double CONF_NMX
- See Also:
- Constant Field Values
-
RANK_NMX
private static final double RANK_NMX
- See Also:
- Constant Field Values
-
CONF_H
private static final double CONF_H
- See Also:
- Constant Field Values
-
RANK_H
private static final double RANK_H
- See Also:
- Constant Field Values
-
CONF_L
private static final double CONF_L
- See Also:
- Constant Field Values
-
RANK_L
private static final double RANK_L
- See Also:
- Constant Field Values
-
NMIN
private static final int NMIN
- See Also:
- Constant Field Values
-
KERNEL_SIZE
private static final int KERNEL_SIZE
- See Also:
- Constant Field Values
-
FC_ELLIPSE
private static final int FC_ELLIPSE
- See Also:
- Constant Field Values
-
FC_VERT_LINE
private static final int FC_VERT_LINE
- See Also:
- Constant Field Values
-
FC_HORIZ_LINE
private static final int FC_HORIZ_LINE
- See Also:
- Constant Field Values
-
FC_LINE
private static final int FC_LINE
- See Also:
- Constant Field Values
-
FC_SQUARE_BOX
private static final int FC_SQUARE_BOX
- See Also:
- Constant Field Values
-
FC_CUSTOM
private static final int FC_CUSTOM
- See Also:
- Constant Field Values
-
gNb
private static final int[][] gNb
-
cbgImage_
private AlgorithmEmbeddedConfidenceEdgeDetection.BgImage cbgImage_
-
cbgEdgeDetect_
private AlgorithmEmbeddedConfidenceEdgeDetection.BgEdgeDetect 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 Detail
-
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 Detail
-
runAlgorithm
public void runAlgorithm()
Description copied from class:AlgorithmBase
Actually runs the algorithm. Implemented by inheriting algorithms.- Specified by:
runAlgorithm
in classAlgorithmBase
-
factorial
private double factorial(double num)
-
my_sign
private int my_sign(double val)
-
-