1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*// robust local optical flow (RLOF) (for color images)
pub struct SparseRLOF {
}
impl RLOF {
calcOpticalFlowSparseRLOF()
}
pub struct Farneback{
}
//
pub struct GPC {
}
// Pyramidal Lucas-Kanade algorithm
pub struct SparsePyrLK {
}
// Shi-Tomasi feature extractor
goodFeaturesToTrack(old_gray, p0, 100, 0.3, 7, Mat(), 7, false, 0.04);
TermCriteria criteria = TermCriteria((TermCriteria::COUNT) + (TermCriteria::EPS), 10, 0.03);
calcOpticalFlowPyrLK(old_gray, frame_gray, p0, p1, status, err, Size(15,15), 2, criteria);
*/
/*fn optical_flow() {
// or video::tracking
video::SparsePyrLKOpticalFlow::create(
win_size: Size,
max_level: i32,
crit: TermCriteria,
flags: i32,
min_eig_threshold: f64
) -> Result<Ptr<dyn SparsePyrLKOpticalFlow>>
}*/