org.opencv.video
Class Video
java.lang.Object
org.opencv.video.Video
public class Video
- extends java.lang.Object
Constructor Summary |
Video()
|
Method Summary |
static int |
buildOpticalFlowPyramid(Mat img,
java.util.List<Mat> pyramid,
Size winSize,
int maxLevel)
|
static int |
buildOpticalFlowPyramid(Mat img,
java.util.List<Mat> pyramid,
Size winSize,
int maxLevel,
boolean withDerivatives,
int pyrBorder,
int derivBorder,
boolean tryReuseInputImage)
|
static void |
calcOpticalFlowFarneback(Mat prev,
Mat next,
Mat flow,
double pyr_scale,
int levels,
int winsize,
int iterations,
int poly_n,
double poly_sigma,
int flags)
|
static void |
calcOpticalFlowPyrLK(Mat prevImg,
Mat nextImg,
MatOfPoint2f prevPts,
MatOfPoint2f nextPts,
MatOfByte status,
MatOfFloat err)
|
static void |
calcOpticalFlowPyrLK(Mat prevImg,
Mat nextImg,
MatOfPoint2f prevPts,
MatOfPoint2f nextPts,
MatOfByte status,
MatOfFloat err,
Size winSize,
int maxLevel)
|
static void |
calcOpticalFlowPyrLK(Mat prevImg,
Mat nextImg,
MatOfPoint2f prevPts,
MatOfPoint2f nextPts,
MatOfByte status,
MatOfFloat err,
Size winSize,
int maxLevel,
TermCriteria criteria,
int flags,
double minEigThreshold)
|
static RotatedRect |
CamShift(Mat probImage,
Rect window,
TermCriteria criteria)
|
static BackgroundSubtractorKNN |
createBackgroundSubtractorKNN()
|
static BackgroundSubtractorKNN |
createBackgroundSubtractorKNN(int history,
double dist2Threshold,
boolean detectShadows)
|
static BackgroundSubtractorMOG2 |
createBackgroundSubtractorMOG2()
|
static BackgroundSubtractorMOG2 |
createBackgroundSubtractorMOG2(int history,
double varThreshold,
boolean detectShadows)
|
static DualTVL1OpticalFlow |
createOptFlow_DualTVL1()
|
static Mat |
estimateRigidTransform(Mat src,
Mat dst,
boolean fullAffine)
|
static double |
findTransformECC(Mat templateImage,
Mat inputImage,
Mat warpMatrix)
|
static double |
findTransformECC(Mat templateImage,
Mat inputImage,
Mat warpMatrix,
int motionType)
|
static double |
findTransformECC(Mat templateImage,
Mat inputImage,
Mat warpMatrix,
int motionType,
TermCriteria criteria,
Mat inputMask)
|
static int |
meanShift(Mat probImage,
Rect window,
TermCriteria criteria)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MOTION_AFFINE
public static final int MOTION_AFFINE
- See Also:
- Constant Field Values
MOTION_EUCLIDEAN
public static final int MOTION_EUCLIDEAN
- See Also:
- Constant Field Values
MOTION_HOMOGRAPHY
public static final int MOTION_HOMOGRAPHY
- See Also:
- Constant Field Values
MOTION_TRANSLATION
public static final int MOTION_TRANSLATION
- See Also:
- Constant Field Values
OPTFLOW_FARNEBACK_GAUSSIAN
public static final int OPTFLOW_FARNEBACK_GAUSSIAN
- See Also:
- Constant Field Values
OPTFLOW_LK_GET_MIN_EIGENVALS
public static final int OPTFLOW_LK_GET_MIN_EIGENVALS
- See Also:
- Constant Field Values
OPTFLOW_USE_INITIAL_FLOW
public static final int OPTFLOW_USE_INITIAL_FLOW
- See Also:
- Constant Field Values
Video
public Video()
buildOpticalFlowPyramid
public static int buildOpticalFlowPyramid(Mat img,
java.util.List<Mat> pyramid,
Size winSize,
int maxLevel)
buildOpticalFlowPyramid
public static int buildOpticalFlowPyramid(Mat img,
java.util.List<Mat> pyramid,
Size winSize,
int maxLevel,
boolean withDerivatives,
int pyrBorder,
int derivBorder,
boolean tryReuseInputImage)
calcOpticalFlowFarneback
public static void calcOpticalFlowFarneback(Mat prev,
Mat next,
Mat flow,
double pyr_scale,
int levels,
int winsize,
int iterations,
int poly_n,
double poly_sigma,
int flags)
calcOpticalFlowPyrLK
public static void calcOpticalFlowPyrLK(Mat prevImg,
Mat nextImg,
MatOfPoint2f prevPts,
MatOfPoint2f nextPts,
MatOfByte status,
MatOfFloat err)
calcOpticalFlowPyrLK
public static void calcOpticalFlowPyrLK(Mat prevImg,
Mat nextImg,
MatOfPoint2f prevPts,
MatOfPoint2f nextPts,
MatOfByte status,
MatOfFloat err,
Size winSize,
int maxLevel)
calcOpticalFlowPyrLK
public static void calcOpticalFlowPyrLK(Mat prevImg,
Mat nextImg,
MatOfPoint2f prevPts,
MatOfPoint2f nextPts,
MatOfByte status,
MatOfFloat err,
Size winSize,
int maxLevel,
TermCriteria criteria,
int flags,
double minEigThreshold)
CamShift
public static RotatedRect CamShift(Mat probImage,
Rect window,
TermCriteria criteria)
createBackgroundSubtractorKNN
public static BackgroundSubtractorKNN createBackgroundSubtractorKNN()
createBackgroundSubtractorKNN
public static BackgroundSubtractorKNN createBackgroundSubtractorKNN(int history,
double dist2Threshold,
boolean detectShadows)
createBackgroundSubtractorMOG2
public static BackgroundSubtractorMOG2 createBackgroundSubtractorMOG2()
createBackgroundSubtractorMOG2
public static BackgroundSubtractorMOG2 createBackgroundSubtractorMOG2(int history,
double varThreshold,
boolean detectShadows)
createOptFlow_DualTVL1
public static DualTVL1OpticalFlow createOptFlow_DualTVL1()
estimateRigidTransform
public static Mat estimateRigidTransform(Mat src,
Mat dst,
boolean fullAffine)
findTransformECC
public static double findTransformECC(Mat templateImage,
Mat inputImage,
Mat warpMatrix)
findTransformECC
public static double findTransformECC(Mat templateImage,
Mat inputImage,
Mat warpMatrix,
int motionType)
findTransformECC
public static double findTransformECC(Mat templateImage,
Mat inputImage,
Mat warpMatrix,
int motionType,
TermCriteria criteria,
Mat inputMask)
meanShift
public static int meanShift(Mat probImage,
Rect window,
TermCriteria criteria)