Package gov.nih.mipav.model.algorithms
Class AlgorithmHarrisCornerDetector
- java.lang.Object
-
- java.lang.Thread
-
- gov.nih.mipav.model.algorithms.AlgorithmBase
-
- gov.nih.mipav.model.algorithms.AlgorithmHarrisCornerDetector
-
- All Implemented Interfaces:
AlgorithmInterface
,java.awt.event.ActionListener
,java.awt.event.WindowListener
,java.lang.Runnable
,java.util.EventListener
public class AlgorithmHarrisCornerDetector extends AlgorithmBase implements AlgorithmInterface
-
-
Field Summary
Fields Modifier and Type Field Description private double
epsilon
private float[]
Fx2
private float[]
Fxy
private float[]
Fy2
private float[]
Ix
private float[]
Iy
private int
operationType
private double
pointThreshold
private int
radius
private float
sigma
private static int
xOp
private static int
xxOp
private static int
xyOp
private static int
yOp
private static int
yyOp
-
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 AlgorithmHarrisCornerDetector()
AlgorithmHarrisCornerDetector - default constructor.AlgorithmHarrisCornerDetector(ModelImage destImg, ModelImage srcImg, float sigma, int radius, double pointThreshold)
AlgorithmHarrisCornerDetector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
algorithmPerformed(AlgorithmBase algorithm)
Called after an algorithm this listener is registered to exits (maybe successfully, maybe not).void
finalize()
finalize -void
runAlgorithm()
Starts 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, 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
-
xOp
private static final int xOp
- See Also:
- Constant Field Values
-
yOp
private static final int yOp
- See Also:
- Constant Field Values
-
xxOp
private static final int xxOp
- See Also:
- Constant Field Values
-
xyOp
private static final int xyOp
- See Also:
- Constant Field Values
-
yyOp
private static final int yyOp
- See Also:
- Constant Field Values
-
epsilon
private double epsilon
-
sigma
private float sigma
-
radius
private int radius
-
pointThreshold
private double pointThreshold
-
Ix
private float[] Ix
-
Iy
private float[] Iy
-
Fx2
private float[] Fx2
-
Fxy
private float[] Fxy
-
Fy2
private float[] Fy2
-
operationType
private int operationType
-
-
Constructor Detail
-
AlgorithmHarrisCornerDetector
public AlgorithmHarrisCornerDetector()
AlgorithmHarrisCornerDetector - default constructor.
-
AlgorithmHarrisCornerDetector
public AlgorithmHarrisCornerDetector(ModelImage destImg, ModelImage srcImg, float sigma, int radius, double pointThreshold)
AlgorithmHarrisCornerDetector.- Parameters:
destImg
- DOCUMENT ME!srcImg
- DOCUMENT ME!sigma
-radius
-pointThreshold
-
-
-
Method Detail
-
finalize
public void finalize()
finalize -- Overrides:
finalize
in classAlgorithmBase
-
runAlgorithm
public void runAlgorithm()
Starts the program.- Specified by:
runAlgorithm
in classAlgorithmBase
-
algorithmPerformed
public void algorithmPerformed(AlgorithmBase algorithm)
Description copied from interface:AlgorithmInterface
Called after an algorithm this listener is registered to exits (maybe successfully, maybe not). If the algorithm is run in a separate thread, this call will be made within that thread. If not, this call will be made from that same, shared thread.- Specified by:
algorithmPerformed
in interfaceAlgorithmInterface
- Parameters:
algorithm
- the algorithm which has just completed
-
-