public class GridMotionEstimator extends MotionEstimator
motionVectors| Constructor and Description |
|---|
GridMotionEstimator(MotionEstimatorAlgorithm alg,
int x,
int y,
boolean fixed)
Construct a grid-based motion estimator.
|
GridMotionEstimator(Video<FImage> v,
MotionEstimatorAlgorithm alg,
int x,
int y,
boolean fixed)
Construct a chained grid-based motion estimator.
|
| Modifier and Type | Method and Description |
|---|---|
protected Map<Point2d,Point2d> |
estimateMotionField(MotionEstimatorAlgorithm estimator,
VideoFrame<FImage> vf,
VideoFrame<FImage>[] array)
This method needs to be overridden for specific layouts of motion
field within the image.
|
analyseFrame, getMotionVectorsprocessFramecountFrames, getCurrentFrame, getFPS, getHeight, getNextFrame, getTimeStamp, getWidth, hasNextFrame, process, process, processingComplete, resetclose, getCurrentFrameIndex, iterator, seek, setCurrentFrameIndexclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic GridMotionEstimator(MotionEstimatorAlgorithm alg, int x, int y, boolean fixed)
fixed is
true, the x and y values represent the width and height of the pixel
blocks. If fixed is false, the x and y represent the number
of grid elements to spread evenly across the frame.alg - The estimator algorithm to usex - The x valuey - The y valuefixed - Whether x and y represent pixels or grid count.public GridMotionEstimator(Video<FImage> v, MotionEstimatorAlgorithm alg, int x, int y, boolean fixed)
fixed is
true, the x and y values represent the width and height of the pixel
blocks. If fixed is false, the x and y represent the number
of grid elements to spread evenly across the frame.v - The video to chain toalg - The estimator algorithm to usex - The x valuey - The y valuefixed - Whether x and y represent pixels or grid count.protected Map<Point2d,Point2d> estimateMotionField(MotionEstimatorAlgorithm estimator, VideoFrame<FImage> vf, VideoFrame<FImage>[] array)
estimateMotionField in class MotionEstimatorvf - The current framearray - The list of previous frames (based on the estimator)org.openimaj.video.analysis.motion.MotionEstimator#estimateMotionField(org.openimaj.video.analysis.motion.MotionEstimator.MotionEstimatorAlgorithm, org.openimaj.image.FImage, org.openimaj.image.FImage[])