Class AlgorithmFIREEdgeExtraction
- java.lang.Object
-
- java.lang.Thread
-
- gov.nih.mipav.model.algorithms.AlgorithmBase
-
- gov.nih.mipav.model.algorithms.filters.AlgorithmFIREEdgeExtraction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.awt.event.WindowListener
,java.lang.Runnable
,java.util.EventListener
public class AlgorithmFIREEdgeExtraction extends AlgorithmBase
References: 1.) Digital Image Processing Third Edition by Rafael C. Gonzalez and Richard E. Woods, Section 3.8.5 Using Fuzzy Sets for Spatial Filtering, Pearson Prentice Hall, 2008, pp. 189-191. 2.) Russo F. and Ramponi G., "Edge Extraction by FIRE Operators", FUZZ-IEEE '94, 1994, vol 1, pp. 249-253, IEEE Press, New York.
-
-
Field Summary
Fields Modifier and Type Field Description private double
blackEnd
gray scale value at which the black membership function ends the linear transition from 1 at the lowest gray scale value to 0private double
gaussianStdDev
Standard deviation of the gaussian used in determining the zero membership function from intensity differencesprivate double
whiteStart
Gray scale value at which the white membership function begins the linear transition from 0 to 1 at the highest intensity value-
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 AlgorithmFIREEdgeExtraction(ModelImage srcImg, double gaussianStdDev, double whiteStart, double blackEnd)
Constructor for images in which changes are returned to the source image.AlgorithmFIREEdgeExtraction(ModelImage destImg, ModelImage srcImg, double gaussianStdDev, double whiteStart, double blackEnd)
Constructor for images in which changes are placed in a predetermined destination image.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
calcStoreInDest()
This function produces a new image that has had edge extraction by FIRE operatorsprivate void
calcStoreInPlace()
Edge extraction by FIRE operators of the source image.void
finalize()
Prepares this class for destruction.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, 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
-
gaussianStdDev
private double gaussianStdDev
Standard deviation of the gaussian used in determining the zero membership function from intensity differences
-
whiteStart
private double whiteStart
Gray scale value at which the white membership function begins the linear transition from 0 to 1 at the highest intensity value
-
blackEnd
private double blackEnd
gray scale value at which the black membership function ends the linear transition from 1 at the lowest gray scale value to 0
-
-
Constructor Detail
-
AlgorithmFIREEdgeExtraction
public AlgorithmFIREEdgeExtraction(ModelImage srcImg, double gaussianStdDev, double whiteStart, double blackEnd)
Constructor for images in which changes are returned to the source image.- Parameters:
srcImg
- Source image model.gaussianStdDev
-whiteStart
-blackEnd
-
-
AlgorithmFIREEdgeExtraction
public AlgorithmFIREEdgeExtraction(ModelImage destImg, ModelImage srcImg, double gaussianStdDev, double whiteStart, double blackEnd)
Constructor for images in which changes are placed in a predetermined destination image.- Parameters:
destImg
- Image model where result image is stored.srcImg
- Source image model.gaussianStdDev
-whiteStart
-blackEnd
-
-
-
Method Detail
-
finalize
public void finalize()
Prepares this class for destruction.- Overrides:
finalize
in classAlgorithmBase
-
runAlgorithm
public void runAlgorithm()
Starts the algorithm.- Specified by:
runAlgorithm
in classAlgorithmBase
-
calcStoreInPlace
private void calcStoreInPlace()
Edge extraction by FIRE operators of the source image. Replaces the original image with the processed image.
-
calcStoreInDest
private void calcStoreInDest()
This function produces a new image that has had edge extraction by FIRE operators
-
-