|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectFlowJ.FlowJLucas
public class FlowJLucas
This is a class that implements the Lucas and Kanade optical flow algorithm.
Implementation based on convolutions, with local field properties,
gradient computation with different kernels including scalable Gaussian derivatives.
References:
Lucas and Kanade, Proc IJNA 1981
Barron, Fleet, Beauchemin, 1994, IJCV 12, 1, 43-77
Abramoff et al, 2002, IEEE TMI.
Copyright (c) 1999-2002, Michael Abramoff. All rights reserved.
| Field Summary | |
|---|---|
boolean |
debug
|
boolean |
displayon
|
static java.lang.String[] |
sderiv
|
static java.lang.String[] |
sregul
|
| Constructor Summary | |
|---|---|
FlowJLucas()
|
|
| Method Summary | |
|---|---|
void |
computeFull(FlowJFlow flow,
boolean includeNormals,
float sigmaw,
float tau,
int regularizationMethod)
Compute full flow field from the first order gradients in dx, dy, dt for a weighted local neighborhood omega (weighted by G defined by sigmaw) around every image location. |
void |
filterAll(ij.ImageStack is,
int center,
float sigmat,
float sigmas,
int gradientType)
Do filtering. |
static int |
firstFrame(ij.ImageStack is,
float sigmat,
int gradientType)
Return the first frame for which you can compute the flow. |
static int |
getSupport(float sigmat,
int gradientType)
Return the number of frames needed for specific sigmat and gradient type. |
static int |
lastFrame(ij.ImageStack is,
float sigmat,
int gradientType)
Return the last frame for which you can compute the flow. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final boolean debug
public final boolean displayon
public static java.lang.String[] sderiv
public static java.lang.String[] sregul
| Constructor Detail |
|---|
public FlowJLucas()
| Method Detail |
|---|
public static int getSupport(float sigmat,
int gradientType)
sigmat - temporal sigma of the kernel.gradientType - the type of gradient, one of
GAUSSIANDERIV, CENTRALDIFF, SOBEL2D, SOBEL3D, SUBTRACT
public static int firstFrame(ij.ImageStack is,
float sigmat,
int gradientType)
is - an ImageStack containing the images.sigmat - temporal sigma of the kernel.gradientType - the type of gradient, one of
GAUSSIANDERIV, CENTRALDIFF, SOBEL2D, SOBEL3D, SUBTRACT
public static int lastFrame(ij.ImageStack is,
float sigmat,
int gradientType)
is - an ImageStack containing the images.sigmat - temporal sigma of the kernel.gradientType - the type of gradient, one of
GAUSSIANDERIV, CENTRALDIFF, SOBEL2D, SOBEL3D, SUBTRACT
public void filterAll(ij.ImageStack is,
int center,
float sigmat,
float sigmas,
int gradientType)
throws FlowJException
FlowJException
public void computeFull(FlowJFlow flow,
boolean includeNormals,
float sigmaw,
float tau,
int regularizationMethod)
flow - will contain the x,y flows.includeNormals - a flag whether to include normals or not.sigmaw - SD of the probability function associated with the Gaussian defining the size of the neighborhoodtau - the eigenvalue thresholdregularizationMethod - is one of REG_GAUSSIAN, REG_GAUSSIAN_1D, 0 defines how the local neighborhood is filtered.public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||