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:
ActionListener,WindowListener,Runnable,EventListener
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate double[][]private double[][]private double[][]private doubleprivate double[][]private double[][]private double[][]private double[][]private double[][]private double[][]private double[][]Fields inherited from class gov.nih.mipav.model.algorithms.AlgorithmBase
destFlag, destImage, image25D, mask, maxProgressValue, minProgressValue, multiThreadingEnabled, nthreads, progress, progressModulus, progressStep, runningInSeparateThread, separable, srcImage, threadStoppedFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble[][]conv2ColVecSame(double[] colVec, double[][] A) double[][]conv2RowVecSame(double[] rowVec, double[][] A) double[][]conv2Same(double[] colVec, double[] rowVec, double[][] A) voidDoEdgeStrength(double tIntegration, double[][] imNew, double[][] imPrev, double gam, double[][] edgeIm) voidFLow1(int flowResY, int flowResX, double tIntegration, double[][] imNew, double[][] imPrev) voidFLowLK(int flowResY, int flowResX, double[][] imNew, double[][] imPrev) double[]gaussgen(double std, int siz) voidgrad2D(double[][] f) voidgrad2D(double[][] f, double tInt) voidgrad3D(double[][] imNew, double[][] imPrev) voidgrad3Drec(double[][] imNew, double[][] imPrev, double tInt) double[][]imresizeNN(double[][] inputImage, int newSizeY, int newSizeX) voidActually 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, windowOpenedMethods 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, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Field Details
-
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
-
-
Constructor Details
-
OpticalFlowToolbox
public OpticalFlowToolbox()
-
-
Method Details
-
runAlgorithm
public void runAlgorithm()Description copied from class:AlgorithmBaseActually runs the algorithm. Implemented by inheriting algorithms.- Specified by:
runAlgorithmin 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)
-