Package org.opencv.video
Class Video
- java.lang.Object
-
- org.opencv.video.Video
-
public class Video extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intMOTION_AFFINEstatic intMOTION_EUCLIDEANstatic intMOTION_HOMOGRAPHYstatic intMOTION_TRANSLATIONstatic intOPTFLOW_FARNEBACK_GAUSSIANstatic intOPTFLOW_LK_GET_MIN_EIGENVALSstatic intOPTFLOW_USE_INITIAL_FLOW
-
Constructor Summary
Constructors Constructor Description Video()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intbuildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel)static intbuildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel, boolean withDerivatives)static intbuildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel, boolean withDerivatives, int pyrBorder)static intbuildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel, boolean withDerivatives, int pyrBorder, int derivBorder)static intbuildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel, boolean withDerivatives, int pyrBorder, int derivBorder, boolean tryReuseInputImage)static voidcalcOpticalFlowFarneback(Mat prev, Mat next, Mat flow, double pyr_scale, int levels, int winsize, int iterations, int poly_n, double poly_sigma, int flags)static voidcalcOpticalFlowPyrLK(Mat prevImg, Mat nextImg, MatOfPoint2f prevPts, MatOfPoint2f nextPts, MatOfByte status, MatOfFloat err)static voidcalcOpticalFlowPyrLK(Mat prevImg, Mat nextImg, MatOfPoint2f prevPts, MatOfPoint2f nextPts, MatOfByte status, MatOfFloat err, Size winSize)static voidcalcOpticalFlowPyrLK(Mat prevImg, Mat nextImg, MatOfPoint2f prevPts, MatOfPoint2f nextPts, MatOfByte status, MatOfFloat err, Size winSize, int maxLevel)static voidcalcOpticalFlowPyrLK(Mat prevImg, Mat nextImg, MatOfPoint2f prevPts, MatOfPoint2f nextPts, MatOfByte status, MatOfFloat err, Size winSize, int maxLevel, TermCriteria criteria)static voidcalcOpticalFlowPyrLK(Mat prevImg, Mat nextImg, MatOfPoint2f prevPts, MatOfPoint2f nextPts, MatOfByte status, MatOfFloat err, Size winSize, int maxLevel, TermCriteria criteria, int flags)static voidcalcOpticalFlowPyrLK(Mat prevImg, Mat nextImg, MatOfPoint2f prevPts, MatOfPoint2f nextPts, MatOfByte status, MatOfFloat err, Size winSize, int maxLevel, TermCriteria criteria, int flags, double minEigThreshold)static RotatedRectCamShift(Mat probImage, Rect window, TermCriteria criteria)static BackgroundSubtractorKNNcreateBackgroundSubtractorKNN()static BackgroundSubtractorKNNcreateBackgroundSubtractorKNN(int history)static BackgroundSubtractorKNNcreateBackgroundSubtractorKNN(int history, double dist2Threshold)static BackgroundSubtractorKNNcreateBackgroundSubtractorKNN(int history, double dist2Threshold, boolean detectShadows)static BackgroundSubtractorMOG2createBackgroundSubtractorMOG2()static BackgroundSubtractorMOG2createBackgroundSubtractorMOG2(int history)static BackgroundSubtractorMOG2createBackgroundSubtractorMOG2(int history, double varThreshold)static BackgroundSubtractorMOG2createBackgroundSubtractorMOG2(int history, double varThreshold, boolean detectShadows)static DualTVL1OpticalFlowcreateOptFlow_DualTVL1()static MatestimateRigidTransform(Mat src, Mat dst, boolean fullAffine)static MatestimateRigidTransform(Mat src, Mat dst, boolean fullAffine, int ransacMaxIters, double ransacGoodRatio, int ransacSize0)static doublefindTransformECC(Mat templateImage, Mat inputImage, Mat warpMatrix)static doublefindTransformECC(Mat templateImage, Mat inputImage, Mat warpMatrix, int motionType)static doublefindTransformECC(Mat templateImage, Mat inputImage, Mat warpMatrix, int motionType, TermCriteria criteria)static doublefindTransformECC(Mat templateImage, Mat inputImage, Mat warpMatrix, int motionType, TermCriteria criteria, Mat inputMask)static intmeanShift(Mat probImage, Rect window, TermCriteria criteria)
-
-
-
Field Detail
-
OPTFLOW_USE_INITIAL_FLOW
public static final int OPTFLOW_USE_INITIAL_FLOW
- 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_FARNEBACK_GAUSSIAN
public static final int OPTFLOW_FARNEBACK_GAUSSIAN
- See Also:
- Constant Field Values
-
MOTION_TRANSLATION
public static final int MOTION_TRANSLATION
- See Also:
- Constant Field Values
-
MOTION_EUCLIDEAN
public static final int MOTION_EUCLIDEAN
- See Also:
- Constant Field Values
-
MOTION_AFFINE
public static final int MOTION_AFFINE
- See Also:
- Constant Field Values
-
MOTION_HOMOGRAPHY
public static final int MOTION_HOMOGRAPHY
- See Also:
- Constant Field Values
-
-
Method Detail
-
estimateRigidTransform
public static Mat estimateRigidTransform(Mat src, Mat dst, boolean fullAffine, int ransacMaxIters, double ransacGoodRatio, int ransacSize0)
-
estimateRigidTransform
public static Mat estimateRigidTransform(Mat src, Mat dst, boolean fullAffine)
-
createBackgroundSubtractorKNN
public static BackgroundSubtractorKNN createBackgroundSubtractorKNN(int history, double dist2Threshold, boolean detectShadows)
-
createBackgroundSubtractorKNN
public static BackgroundSubtractorKNN createBackgroundSubtractorKNN(int history, double dist2Threshold)
-
createBackgroundSubtractorKNN
public static BackgroundSubtractorKNN createBackgroundSubtractorKNN(int history)
-
createBackgroundSubtractorKNN
public static BackgroundSubtractorKNN createBackgroundSubtractorKNN()
-
createBackgroundSubtractorMOG2
public static BackgroundSubtractorMOG2 createBackgroundSubtractorMOG2(int history, double varThreshold, boolean detectShadows)
-
createBackgroundSubtractorMOG2
public static BackgroundSubtractorMOG2 createBackgroundSubtractorMOG2(int history, double varThreshold)
-
createBackgroundSubtractorMOG2
public static BackgroundSubtractorMOG2 createBackgroundSubtractorMOG2(int history)
-
createBackgroundSubtractorMOG2
public static BackgroundSubtractorMOG2 createBackgroundSubtractorMOG2()
-
createOptFlow_DualTVL1
public static DualTVL1OpticalFlow createOptFlow_DualTVL1()
-
CamShift
public static RotatedRect CamShift(Mat probImage, Rect window, TermCriteria criteria)
-
findTransformECC
public static double findTransformECC(Mat templateImage, Mat inputImage, Mat warpMatrix, int motionType, TermCriteria criteria, Mat inputMask)
-
findTransformECC
public static double findTransformECC(Mat templateImage, Mat inputImage, Mat warpMatrix, int motionType, TermCriteria criteria)
-
findTransformECC
public static double findTransformECC(Mat templateImage, Mat inputImage, Mat warpMatrix, int motionType)
-
findTransformECC
public static double findTransformECC(Mat templateImage, Mat inputImage, Mat warpMatrix)
-
buildOpticalFlowPyramid
public static int buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel, boolean withDerivatives, int pyrBorder, int derivBorder, boolean tryReuseInputImage)
-
buildOpticalFlowPyramid
public static int buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel, boolean withDerivatives, int pyrBorder, int derivBorder)
-
buildOpticalFlowPyramid
public static int buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel, boolean withDerivatives, int pyrBorder)
-
buildOpticalFlowPyramid
public static int buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel, boolean withDerivatives)
-
buildOpticalFlowPyramid
public static int buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel)
-
meanShift
public static int meanShift(Mat probImage, Rect window, TermCriteria criteria)
-
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, Size winSize, int maxLevel, TermCriteria criteria, int flags, double minEigThreshold)
-
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)
-
calcOpticalFlowPyrLK
public static void calcOpticalFlowPyrLK(Mat prevImg, Mat nextImg, MatOfPoint2f prevPts, MatOfPoint2f nextPts, MatOfByte status, MatOfFloat err, Size winSize, int maxLevel, TermCriteria criteria)
-
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)
-
calcOpticalFlowPyrLK
public static void calcOpticalFlowPyrLK(Mat prevImg, Mat nextImg, MatOfPoint2f prevPts, MatOfPoint2f nextPts, MatOfByte status, MatOfFloat err)
-
-