I am trying to use calcOpticalFlowFarneback in java. I found this http://docs.opencv.org/java/org/opencv/video/Video.html#calcOpticalFlowFarneback(org.opencv.core.Mat, org.opencv.core.Mat, org.opencv.core.Mat, double, int, int, int, int, double, int) which is so helpful but i am trying to define all the variables but i do not know the structure. I used to use openCv for c++ however i did not find any documentation which help me!