org.opencv.video.Video.buildOpticalFlowPyramid_1()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(8.7k)|赞(0)|评价(0)|浏览(192)

本文整理了Java中org.opencv.video.Video.buildOpticalFlowPyramid_1()方法的一些代码示例,展示了Video.buildOpticalFlowPyramid_1()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Video.buildOpticalFlowPyramid_1()方法的具体详情如下:
包路径:org.opencv.video.Video
类名称:Video
方法名:buildOpticalFlowPyramid_1

Video.buildOpticalFlowPyramid_1介绍

暂无

代码示例

代码示例来源:origin: ytai/IOIOPlotter

  1. /**
  2. * <p>Constructs the image pyramid which can be passed to "calcOpticalFlowPyrLK".</p>
  3. *
  4. * @param img 8-bit input image.
  5. * @param pyramid output pyramid.
  6. * @param winSize window size of optical flow algorithm. Must be not less than
  7. * <code>winSize</code> argument of "calcOpticalFlowPyrLK". It is needed to
  8. * calculate required padding for pyramid levels.
  9. * @param maxLevel 0-based maximal pyramid level number.
  10. *
  11. * @see <a href="http://docs.opencv.org/modules/video/doc/motion_analysis_and_object_tracking.html#buildopticalflowpyramid">org.opencv.video.Video.buildOpticalFlowPyramid</a>
  12. */
  13. public static int buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel)
  14. {
  15. Mat pyramid_mat = new Mat();
  16. int retVal = buildOpticalFlowPyramid_1(img.nativeObj, pyramid_mat.nativeObj, winSize.width, winSize.height, maxLevel);
  17. Converters.Mat_to_vector_Mat(pyramid_mat, pyramid);
  18. return retVal;
  19. }

代码示例来源:origin: abhn/marvel

  1. /**
  2. * <p>Constructs the image pyramid which can be passed to "calcOpticalFlowPyrLK".</p>
  3. *
  4. * @param img 8-bit input image.
  5. * @param pyramid output pyramid.
  6. * @param winSize window size of optical flow algorithm. Must be not less than
  7. * <code>winSize</code> argument of "calcOpticalFlowPyrLK". It is needed to
  8. * calculate required padding for pyramid levels.
  9. * @param maxLevel 0-based maximal pyramid level number.
  10. *
  11. * @see <a href="http://docs.opencv.org/modules/video/doc/motion_analysis_and_object_tracking.html#buildopticalflowpyramid">org.opencv.video.Video.buildOpticalFlowPyramid</a>
  12. */
  13. public static int buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel)
  14. {
  15. Mat pyramid_mat = new Mat();
  16. int retVal = buildOpticalFlowPyramid_1(img.nativeObj, pyramid_mat.nativeObj, winSize.width, winSize.height, maxLevel);
  17. Converters.Mat_to_vector_Mat(pyramid_mat, pyramid);
  18. return retVal;
  19. }

代码示例来源:origin: farkam135/GoIV

  1. public static int buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel)
  2. {
  3. Mat pyramid_mat = new Mat();
  4. int retVal = buildOpticalFlowPyramid_1(img.nativeObj, pyramid_mat.nativeObj, winSize.width, winSize.height, maxLevel);
  5. Converters.Mat_to_vector_Mat(pyramid_mat, pyramid);
  6. pyramid_mat.release();
  7. return retVal;
  8. }

代码示例来源:origin: nu.pattern/opencv

  1. /**
  2. * <p>Constructs the image pyramid which can be passed to "calcOpticalFlowPyrLK".</p>
  3. *
  4. * @param img 8-bit input image.
  5. * @param pyramid output pyramid.
  6. * @param winSize window size of optical flow algorithm. Must be not less than
  7. * <code>winSize</code> argument of "calcOpticalFlowPyrLK". It is needed to
  8. * calculate required padding for pyramid levels.
  9. * @param maxLevel 0-based maximal pyramid level number.
  10. *
  11. * @see <a href="http://docs.opencv.org/modules/video/doc/motion_analysis_and_object_tracking.html#buildopticalflowpyramid">org.opencv.video.Video.buildOpticalFlowPyramid</a>
  12. */
  13. public static int buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel)
  14. {
  15. Mat pyramid_mat = new Mat();
  16. int retVal = buildOpticalFlowPyramid_1(img.nativeObj, pyramid_mat.nativeObj, winSize.width, winSize.height, maxLevel);
  17. Converters.Mat_to_vector_Mat(pyramid_mat, pyramid);
  18. return retVal;
  19. }

代码示例来源:origin: InnoFang/Android-Code-Demos

  1. public static int buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel)
  2. {
  3. Mat pyramid_mat = new Mat();
  4. int retVal = buildOpticalFlowPyramid_1(img.nativeObj, pyramid_mat.nativeObj, winSize.width, winSize.height, maxLevel);
  5. Converters.Mat_to_vector_Mat(pyramid_mat, pyramid);
  6. pyramid_mat.release();
  7. return retVal;
  8. }

代码示例来源:origin: jtsky/EasyPR_Android

  1. /**
  2. * <p>Constructs the image pyramid which can be passed to "calcOpticalFlowPyrLK".</p>
  3. *
  4. * @param img 8-bit input image.
  5. * @param pyramid output pyramid.
  6. * @param winSize window size of optical flow algorithm. Must be not less than
  7. * <code>winSize</code> argument of "calcOpticalFlowPyrLK". It is needed to
  8. * calculate required padding for pyramid levels.
  9. * @param maxLevel 0-based maximal pyramid level number.
  10. *
  11. * @see <a href="http://docs.opencv.org/modules/video/doc/motion_analysis_and_object_tracking.html#buildopticalflowpyramid">org.opencv.video.Video.buildOpticalFlowPyramid</a>
  12. */
  13. public static int buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel)
  14. {
  15. Mat pyramid_mat = new Mat();
  16. int retVal = buildOpticalFlowPyramid_1(img.nativeObj, pyramid_mat.nativeObj, winSize.width, winSize.height, maxLevel);
  17. Converters.Mat_to_vector_Mat(pyramid_mat, pyramid);
  18. return retVal;
  19. }

代码示例来源:origin: SOFTPOWER1991/OpenCVCheck

  1. public static int buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel)
  2. {
  3. Mat pyramid_mat = new Mat();
  4. int retVal = buildOpticalFlowPyramid_1(img.nativeObj, pyramid_mat.nativeObj, winSize.width, winSize.height, maxLevel);
  5. Converters.Mat_to_vector_Mat(pyramid_mat, pyramid);
  6. pyramid_mat.release();
  7. return retVal;
  8. }

代码示例来源:origin: akshika47/OpencvAndroid

  1. public static int buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel)
  2. {
  3. Mat pyramid_mat = new Mat();
  4. int retVal = buildOpticalFlowPyramid_1(img.nativeObj, pyramid_mat.nativeObj, winSize.width, winSize.height, maxLevel);
  5. Converters.Mat_to_vector_Mat(pyramid_mat, pyramid);
  6. pyramid_mat.release();
  7. return retVal;
  8. }

代码示例来源:origin: kongqw/OpenCVForAndroid

  1. public static int buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel)
  2. {
  3. Mat pyramid_mat = new Mat();
  4. int retVal = buildOpticalFlowPyramid_1(img.nativeObj, pyramid_mat.nativeObj, winSize.width, winSize.height, maxLevel);
  5. Converters.Mat_to_vector_Mat(pyramid_mat, pyramid);
  6. pyramid_mat.release();
  7. return retVal;
  8. }

代码示例来源:origin: imistyrain/EasyPR4Android

  1. public static int buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel)
  2. {
  3. Mat pyramid_mat = new Mat();
  4. int retVal = buildOpticalFlowPyramid_1(img.nativeObj, pyramid_mat.nativeObj, winSize.width, winSize.height, maxLevel);
  5. Converters.Mat_to_vector_Mat(pyramid_mat, pyramid);
  6. pyramid_mat.release();
  7. return retVal;
  8. }

代码示例来源:origin: raulh82vlc/Image-Detection-Samples

  1. public static int buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel)
  2. {
  3. Mat pyramid_mat = new Mat();
  4. int retVal = buildOpticalFlowPyramid_1(img.nativeObj, pyramid_mat.nativeObj, winSize.width, winSize.height, maxLevel);
  5. Converters.Mat_to_vector_Mat(pyramid_mat, pyramid);
  6. pyramid_mat.release();
  7. return retVal;
  8. }

代码示例来源:origin: tz28/Chinese-number-gestures-recognition

  1. public static int buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel)
  2. {
  3. Mat pyramid_mat = new Mat();
  4. int retVal = buildOpticalFlowPyramid_1(img.nativeObj, pyramid_mat.nativeObj, winSize.width, winSize.height, maxLevel);
  5. Converters.Mat_to_vector_Mat(pyramid_mat, pyramid);
  6. pyramid_mat.release();
  7. return retVal;
  8. }

代码示例来源:origin: leadrien/opencv_native_androidstudio

  1. public static int buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel)
  2. {
  3. Mat pyramid_mat = new Mat();
  4. int retVal = buildOpticalFlowPyramid_1(img.nativeObj, pyramid_mat.nativeObj, winSize.width, winSize.height, maxLevel);
  5. Converters.Mat_to_vector_Mat(pyramid_mat, pyramid);
  6. pyramid_mat.release();
  7. return retVal;
  8. }

代码示例来源:origin: DuckDeck/AndroidDemo

  1. public static int buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel, boolean withDerivatives, int pyrBorder, int derivBorder)
  2. {
  3. Mat pyramid_mat = new Mat();
  4. int retVal = buildOpticalFlowPyramid_1(img.nativeObj, pyramid_mat.nativeObj, winSize.width, winSize.height, maxLevel, withDerivatives, pyrBorder, derivBorder);
  5. Converters.Mat_to_vector_Mat(pyramid_mat, pyramid);
  6. pyramid_mat.release();
  7. return retVal;
  8. }

代码示例来源:origin: ctodobom/OpenCV-3.1.0-Android

  1. public static int buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel)
  2. {
  3. Mat pyramid_mat = new Mat();
  4. int retVal = buildOpticalFlowPyramid_1(img.nativeObj, pyramid_mat.nativeObj, winSize.width, winSize.height, maxLevel);
  5. Converters.Mat_to_vector_Mat(pyramid_mat, pyramid);
  6. pyramid_mat.release();
  7. return retVal;
  8. }

代码示例来源:origin: SouvDc/face-detection

  1. public static int buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel)
  2. {
  3. Mat pyramid_mat = new Mat();
  4. int retVal = buildOpticalFlowPyramid_1(img.nativeObj, pyramid_mat.nativeObj, winSize.width, winSize.height, maxLevel);
  5. Converters.Mat_to_vector_Mat(pyramid_mat, pyramid);
  6. pyramid_mat.release();
  7. return retVal;
  8. }

代码示例来源:origin: hschott/Camdroid

  1. public static int buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel)
  2. {
  3. Mat pyramid_mat = new Mat();
  4. int retVal = buildOpticalFlowPyramid_1(img.nativeObj, pyramid_mat.nativeObj, winSize.width, winSize.height, maxLevel);
  5. Converters.Mat_to_vector_Mat(pyramid_mat, pyramid);
  6. pyramid_mat.release();
  7. return retVal;
  8. }

相关文章