File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 2
2
"cells" : [
3
3
{
4
4
"cell_type" : " code" ,
5
- "execution_count" : 12 ,
5
+ "execution_count" : 13 ,
6
6
"metadata" : {},
7
7
"outputs" : [
8
8
{
21
21
{
22
22
"data" : {
23
23
"text/plain" : [
24
- " <matplotlib.image.AxesImage at 0x7f405456d870 >"
24
+ " <matplotlib.image.AxesImage at 0x7f40543f45b0 >"
25
25
]
26
26
},
27
- "execution_count" : 12 ,
27
+ "execution_count" : 13 ,
28
28
"metadata" : {},
29
29
"output_type" : " execute_result"
30
30
},
Original file line number Diff line number Diff line change @@ -34,8 +34,12 @@ pub fn check_optical_flow_points() -> Result<()>{
34
34
let detects = next_kps. len ( ) ;
35
35
println ! ( "detects: {}" , detects) ;
36
36
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 ) ) ) ;
39
43
40
44
Ok ( ( ) )
41
45
}
You can’t perform that action at this time.
0 commit comments