Class AlgorithmLawsTexture
- java.lang.Object
-
- java.lang.Thread
-
- gov.nih.mipav.model.algorithms.AlgorithmBase
-
- gov.nih.mipav.model.algorithms.filters.AlgorithmLawsTexture
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.awt.event.WindowListener
,java.lang.Runnable
,java.util.EventListener
public class AlgorithmLawsTexture extends AlgorithmBase
- Author:
- ilb Steps: 1.) 1D masks are multiplied to construct 2D masks. 2.) Remove the effects of illumination by subtracting the neighborhood mean from each pixel in the neighborhood. 3.) Each of the 3 X 3, 5 X 5, or 7 X 7 masks are used to filter a neighborhood of the same size. 4.) Compute the energy of each pixel by summing the absolute values of the filter outputs in the pixel neighborhoods. Symmetric energy pairs, such as E5L5 and L5E5, are averaged together to form one result. References: 1.) Image Processing Dealing with Texture by Maria Petrou and Pedro Garcia-Sevilla, John Wiley & Sons, Ltd., copyright 2006, pp. 539-545 and 564-567. 2.) Computer Vision: March 2000, Chapter 7 Texture, Shapiro and Stockman.
-
-
Field Summary
Fields Modifier and Type Field Description private ModelImage[]
destImage
private static int[]
E3
Edge 3private static int[]
E5
Edge 5private static int[]
E7
Edge 7private static int[]
L3
Level 3private static int[]
L5
Level 5private static int[]
L7
Level 7private static int[]
O7
Oscillation 7private static int[]
R5
Ripple 5private static int[]
R7
Ripple 7private static int
RED_OFFSET
Red channel.private int
RGBOffset
private static int[]
S3
Spot 3private static int[]
S5
Spot 5private static int[]
S7
Spot 7private static int[]
W5
Wave 5private static int[]
W7
Wave 7private int
windowSize
Size of square window must be 3, 5, or 7-
Fields inherited from class gov.nih.mipav.model.algorithms.AlgorithmBase
destFlag, image25D, mask, maxProgressValue, minProgressValue, multiThreadingEnabled, nthreads, progress, progressModulus, progressStep, runningInSeparateThread, separable, srcImage, threadStopped
-
-
Constructor Summary
Constructors Constructor Description AlgorithmLawsTexture(ModelImage[] destImg, ModelImage srcImg, int windowSize, int RGBOffset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
calculateLaws()
DOCUMENT ME!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, 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_OFFSET
private static final int RED_OFFSET
Red channel.- See Also:
- Constant Field Values
-
L3
private static final int[] L3
Level 3
-
E3
private static final int[] E3
Edge 3
-
S3
private static final int[] S3
Spot 3
-
L5
private static final int[] L5
Level 5
-
E5
private static final int[] E5
Edge 5
-
S5
private static final int[] S5
Spot 5
-
W5
private static final int[] W5
Wave 5
-
R5
private static final int[] R5
Ripple 5
-
L7
private static final int[] L7
Level 7
-
E7
private static final int[] E7
Edge 7
-
S7
private static final int[] S7
Spot 7
-
W7
private static final int[] W7
Wave 7
-
R7
private static final int[] R7
Ripple 7
-
O7
private static final int[] O7
Oscillation 7
-
destImage
private ModelImage[] destImage
-
windowSize
private int windowSize
Size of square window must be 3, 5, or 7
-
RGBOffset
private int RGBOffset
-
-
Constructor Detail
-
AlgorithmLawsTexture
public AlgorithmLawsTexture(ModelImage[] destImg, ModelImage srcImg, int windowSize, int RGBOffset)
- Parameters:
destImg
-srcImg
-windowSize
-RGBOffset
-
-
-
Method Detail
-
runAlgorithm
public void runAlgorithm()
Starts the program.- Specified by:
runAlgorithm
in classAlgorithmBase
-
calculateLaws
private void calculateLaws()
DOCUMENT ME!
-
-