1 2 // 3 // This file is auto-generated. Please don't modify it! 4 // 5 package org.opencv.video; 6 7 import org.opencv.core.Algorithm; 8 import org.opencv.core.Mat; 9 10 // C++: class DenseOpticalFlow 11 //javadoc: DenseOpticalFlow 12 public class DenseOpticalFlow extends Algorithm { 13 14 protected DenseOpticalFlow(long addr) { super(addr); } 15 16 17 // 18 // C++: void calc(Mat I0, Mat I1, Mat& flow) 19 // 20 21 //javadoc: DenseOpticalFlow::calc(I0, I1, flow) 22 public void calc(Mat I0, Mat I1, Mat flow) 23 { 24 25 calc_0(nativeObj, I0.nativeObj, I1.nativeObj, flow.nativeObj); 26 27 return; 28 } 29 30 31 // 32 // C++: void collectGarbage() 33 // 34 35 //javadoc: DenseOpticalFlow::collectGarbage() 36 public void collectGarbage() 37 { 38 39 collectGarbage_0(nativeObj); 40 41 return; 42 } 43 44 45 @Override 46 protected void finalize() throws Throwable { 47 delete(nativeObj); 48 } 49 50 51 52 // C++: void calc(Mat I0, Mat I1, Mat& flow) 53 private static native void calc_0(long nativeObj, long I0_nativeObj, long I1_nativeObj, long flow_nativeObj); 54 55 // C++: void collectGarbage() 56 private static native void collectGarbage_0(long nativeObj); 57 58 // native support for java finalize() 59 private static native void delete(long nativeObj); 60 61 } 62