I am trying to use the lucas kanade rust bindings, but I think that I am misunderstanding the api or there is perhaps a bug:
given two very similar images the following method fails to populate next_pts
calc_optical_flow_pyr_lk_def
let mut next_pts = Vector::<Point2f>::new();
let mut err = Vector::<f64>::new();
let mut status = Vector::<u8>::new();
let _ = calc_optical_flow_pyr_lk_def(
&img_prev ,
&img_curr ,
&kf_key_points ,
&mut next_pts ,
&mut status ,
&mut err ,
);
status vec returns all 1's
next_pts is indeed resized to the expected new size however the values are populated only with 0.0's
the corrollary python bindings work as expected.
Any guidance would be greatly appreciated.
I am trying to use the lucas kanade rust bindings, but I think that I am misunderstanding the api or there is perhaps a bug:
given two very similar images the following method fails to populate next_pts
calc_optical_flow_pyr_lk_def
status vec returns all 1's
next_pts is indeed resized to the expected new size however the values are populated only with 0.0's
the corrollary python bindings work as expected.
Any guidance would be greatly appreciated.