Package gov.nih.mipav.model.algorithms
Class OpticalFlowToolbox
- java.lang.Object
-
- java.lang.Thread
-
- gov.nih.mipav.model.algorithms.AlgorithmBase
-
- gov.nih.mipav.model.algorithms.OpticalFlowToolbox
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.awt.event.WindowListener
,java.lang.Runnable
,java.util.EventListener
public class OpticalFlowToolbox extends AlgorithmBase
-
-
Field Summary
Fields Modifier and Type Field Description private double[][]
dt
private double[][]
dx
private double[][]
dy
private double
epsilon
private double[][]
m011
private double[][]
m020
private double[][]
m101
private double[][]
m110
private double[][]
m200
private double[][]
U
private double[][]
V
-
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 OpticalFlowToolbox()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[][]
conv2ColVecSame(double[] colVec, double[][] A)
double[][]
conv2RowVecSame(double[] rowVec, double[][] A)
double[][]
conv2Same(double[] colVec, double[] rowVec, double[][] A)
void
DoEdgeStrength(double tIntegration, double[][] imNew, double[][] imPrev, double gam, double[][] edgeIm)
void
FLow1(int flowResY, int flowResX, double tIntegration, double[][] imNew, double[][] imPrev)
void
FLowLK(int flowResY, int flowResX, double[][] imNew, double[][] imPrev)
double[]
gaussgen(double std, int siz)
void
grad2D(double[][] f)
void
grad2D(double[][] f, double tInt)
void
grad3D(double[][] imNew, double[][] imPrev)
void
grad3Drec(double[][] imNew, double[][] imPrev, double tInt)
double[][]
imresizeNN(double[][] inputImage, int newSizeY, int newSizeX)
void
runAlgorithm()
Actually runs 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
-
-
-
-
Field Detail
-
epsilon
private double epsilon
-
dx
private double[][] dx
-
dy
private double[][] dy
-
dt
private double[][] dt
-
U
private double[][] U
-
V
private double[][] V
-
m200
private double[][] m200
-
m020
private double[][] m020
-
m110
private double[][] m110
-
m101
private double[][] m101
-
m011
private double[][] m011
-
-
Method Detail
-
runAlgorithm
public void runAlgorithm()
Description copied from class:AlgorithmBase
Actually runs the algorithm. Implemented by inheriting algorithms.- Specified by:
runAlgorithm
in classAlgorithmBase
-
conv2RowVecSame
public double[][] conv2RowVecSame(double[] rowVec, double[][] A)
-
conv2ColVecSame
public double[][] conv2ColVecSame(double[] colVec, double[][] A)
-
conv2Same
public double[][] conv2Same(double[] colVec, double[] rowVec, double[][] A)
-
grad3D
public void grad3D(double[][] imNew, double[][] imPrev)
-
grad2D
public void grad2D(double[][] f)
-
grad2D
public void grad2D(double[][] f, double tInt)
-
grad3Drec
public void grad3Drec(double[][] imNew, double[][] imPrev, double tInt)
-
DoEdgeStrength
public void DoEdgeStrength(double tIntegration, double[][] imNew, double[][] imPrev, double gam, double[][] edgeIm)
-
gaussgen
public double[] gaussgen(double std, int siz)
-
imresizeNN
public double[][] imresizeNN(double[][] inputImage, int newSizeY, int newSizeX)
-
FLowLK
public void FLowLK(int flowResY, int flowResX, double[][] imNew, double[][] imPrev)
-
FLow1
public void FLow1(int flowResY, int flowResX, double tIntegration, double[][] imNew, double[][] imPrev)
-
-