Skip to content

Commit 5de7553

Browse files
author
sjbeskur
committed
comments
1 parent 904bbc8 commit 5de7553

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

tests/notebooks/calc_opt_flow_pyr_lk.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 12,
5+
"execution_count": 13,
66
"metadata": {},
77
"outputs": [
88
{
@@ -21,10 +21,10 @@
2121
{
2222
"data": {
2323
"text/plain": [
24-
"<matplotlib.image.AxesImage at 0x7f405456d870>"
24+
"<matplotlib.image.AxesImage at 0x7f40543f45b0>"
2525
]
2626
},
27-
"execution_count": 12,
27+
"execution_count": 13,
2828
"metadata": {},
2929
"output_type": "execute_result"
3030
},

tests/optflowpyrlk.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,12 @@ pub fn check_optical_flow_points() -> Result<()>{
3434
let detects = next_kps.len();
3535
println!("detects: {}", detects);
3636

37-
// This should fail
38-
next_kps.to_vec().iter().for_each(|k| assert!( k.x.partial_cmp(&0.0) == Some(Ordering::Equal) && k.y.partial_cmp(&0.0) == Some(Ordering::Equal) ));
37+
// NOTE: See python results in tests/notebook/calc_opt_flow_pyr_lk.ipynb
38+
//
39+
// I assume This should FAIL as the python bindings return nonzero results
40+
// I mean like some items might be zero but not all ??
41+
next_kps.to_vec().iter().for_each(|k| assert_ne!( k.x.partial_cmp(&0.0), Some(Ordering::Equal)));
42+
next_kps.to_vec().iter().for_each(|k| assert_ne!( k.y.partial_cmp(&0.0), Some(Ordering::Equal)));
3943

4044
Ok(())
4145
}

0 commit comments

Comments
 (0)