Class AlgorithmEdgePreservingSmoothing
- java.lang.Object
-
- java.lang.Thread
-
- gov.nih.mipav.model.algorithms.AlgorithmBase
-
- gov.nih.mipav.model.algorithms.filters.AlgorithmEdgePreservingSmoothing
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.awt.event.WindowListener
,java.lang.Runnable
,java.util.EventListener
public class AlgorithmEdgePreservingSmoothing extends AlgorithmBase
These are Maximum Homogeneity Neighbor Filters. The standard from Nagao: At each point the variance of 9 masks are compared with each other, and the average gray level of the least variance mask is given to the point. There is one traditional 3 by 3 mask, an up 7 point pentagonal mask, a down 7 point pentagonal mask, a left 7 point pentagonal mask, a right 7 point pentagonal mask, and 4 diagonal 7 point hexagonal masks. Extended From Wang: The 9 masks used all have 9 points. 5 are traditional 3 by 3 masks. 4 are 5,3,1 stacks.- Author:
- ilb References: 1.) Edge Preserving Smoothing by Makoto Nagao and Takashi Matsuyama, Proceedings of the Fourth International Joint Conference on Pattern Recognition, November, 1978, pp. 518-520. 2.) A New Approach to Edge-Preserving Smoothing for Edge Extraction and Image Segmentation by Carsten Garnica, Frank Boochs, and Marek Twardochlib, International Archives of Photogrammetry and Remote Sensing, Vol. XXXIII, Part B3., Amsterdam, 2000.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
entireImage
private int
iterations
private java.util.BitSet
mask
contains VOI.private boolean
standard
-
Fields inherited from class gov.nih.mipav.model.algorithms.AlgorithmBase
destFlag, destImage, image25D, maxProgressValue, minProgressValue, multiThreadingEnabled, nthreads, progress, progressModulus, progressStep, runningInSeparateThread, separable, srcImage, threadStopped
-
-
Constructor Summary
Constructors Constructor Description AlgorithmEdgePreservingSmoothing(ModelImage destImg, ModelImage srcImg, boolean standard, int iters, boolean entireImage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
runAlgorithm()
Starts 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
-
-
-
-
Constructor Detail
-
AlgorithmEdgePreservingSmoothing
public AlgorithmEdgePreservingSmoothing(ModelImage destImg, ModelImage srcImg, boolean standard, int iters, boolean entireImage)
-
-
Method Detail
-
runAlgorithm
public void runAlgorithm()
Starts the algorithm.- Specified by:
runAlgorithm
in classAlgorithmBase
-
-