Class AlgorithmIsophoteCurvature
- java.lang.Object
-
- java.lang.Thread
-
- gov.nih.mipav.model.algorithms.AlgorithmBase
-
- gov.nih.mipav.model.algorithms.filters.AlgorithmIsophoteCurvature
-
- All Implemented Interfaces:
AlgorithmInterface
,java.awt.event.ActionListener
,java.awt.event.WindowListener
,java.lang.Runnable
,java.util.EventListener
public class AlgorithmIsophoteCurvature extends AlgorithmBase implements AlgorithmInterface
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
entireImage
private float[]
GxData
Storage location of the first derivative of the Gaussian in the X direction.private float[]
GxxData
private float[]
GxyData
private float[]
GyData
Storage location of the first derivative of the Gaussian in the Y direction.private float[]
GyyData
private float[]
GzData
Storage location of the first derivative of the Gaussian in the Z direction.private int[]
kExtents
Dimensionality of the kernel.private int
operationType
private float[]
oX
Stores output of AlgorithmConvolverprivate float[]
oXX
private float[]
oXY
private float[]
oY
private float[]
oYY
private float[]
oZ
private float[]
sigmas
Standard deviations of the gaussian used to calculate the kernels.private static int
xOp
private static int
xxOp
private static int
xyOp
private static int
yOp
private static int
yyOp
private static int
zOp
-
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 AlgorithmIsophoteCurvature(ModelImage srcImg, float[] sigmas, boolean entireImage, boolean image25D)
AlgorithmIsophoteCurvature(ModelImage destImg, ModelImage srcImg, float[] sigmas, boolean entireImage, boolean image25D)
-
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).private void
calc25D()
private void
calc3D()
void
cleanUp()
void
finalize()
finalize - sets class storages arrays to null so that System.gc() can free the memory.private void
makeKernels2D()
makeKernals2D - creates the derivative kernels used to calculate the gradient magnitude.private void
makeKernels3D()
makeKernals3D - creates the derivative kernels used to calculate the gradient magnitude.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
-
xOp
private static final int xOp
- See Also:
- Constant Field Values
-
yOp
private static final int yOp
- See Also:
- Constant Field Values
-
zOp
private static final int zOp
- 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
-
GxData
private float[] GxData
Storage location of the first derivative of the Gaussian in the X direction.
-
GyData
private float[] GyData
Storage location of the first derivative of the Gaussian in the Y direction.
-
GzData
private float[] GzData
Storage location of the first derivative of the Gaussian in the Z direction.
-
GxxData
private float[] GxxData
-
GxyData
private float[] GxyData
-
GyyData
private float[] GyyData
-
kExtents
private int[] kExtents
Dimensionality of the kernel.
-
sigmas
private float[] sigmas
Standard deviations of the gaussian used to calculate the kernels.
-
entireImage
private boolean entireImage
-
oX
private float[] oX
Stores output of AlgorithmConvolver
-
oY
private float[] oY
-
oZ
private float[] oZ
-
oXX
private float[] oXX
-
oXY
private float[] oXY
-
oYY
private float[] oYY
-
operationType
private int operationType
-
-
Constructor Detail
-
AlgorithmIsophoteCurvature
public AlgorithmIsophoteCurvature(ModelImage srcImg, float[] sigmas, boolean entireImage, boolean image25D)
-
AlgorithmIsophoteCurvature
public AlgorithmIsophoteCurvature(ModelImage destImg, ModelImage srcImg, float[] sigmas, boolean entireImage, boolean image25D)
-
-
Method Detail
-
cleanUp
public void cleanUp()
-
finalize
public void finalize()
finalize - sets class storages arrays to null so that System.gc() can free the memory.- Overrides:
finalize
in classAlgorithmBase
-
runAlgorithm
public void runAlgorithm()
starts the algorithm.- Specified by:
runAlgorithm
in classAlgorithmBase
-
calc25D
private void calc25D()
-
calc3D
private void calc3D()
-
makeKernels2D
private void makeKernels2D()
makeKernals2D - creates the derivative kernels used to calculate the gradient magnitude.
-
makeKernels3D
private void makeKernels3D()
makeKernals3D - creates the derivative kernels used to calculate the gradient magnitude.
-
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
-
-