Skip to content

calc_optical_flow_pyr_lk not populating next_pts #606

Closed
@sjbeskur

Description

@sjbeskur

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions