Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/optiflow #93

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open

Feature/optiflow #93

wants to merge 15 commits into from

Conversation

norru
Copy link

@norru norru commented Oct 4, 2018

Hi, I have added a bunch of bindings for Optical Flow and a bug fix, as I needed them in for a project. Feel free to integrate, I can't dedicate much time to polish, you're very welcome to take it from there :)

@norru
Copy link
Author

norru commented Oct 5, 2018

Bloody fmt!

.cproject Outdated Show resolved Hide resolved
native/optflow.cc Outdated Show resolved Hide resolved
auto array_out = cv::InputOutputArray(*out);

auto optical_flow = cv::optflow::createOptFlow_SparseToDense();
optical_flow->calc(array_from, array_to, array_out);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can these calls be wrapped? these functions could throw exceptions

see my pr here - using EmptyResult::FromFunction or Result::FromFunction would be useful so that errors don't panic

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They probably can and I'm pretty sure there'll be plenty of other preconditions that can be verified, but I can't dedicate more time to refine the wrapper at this stage.

native/optflow.h Show resolved Hide resolved
@joelgallant
Copy link
Contributor

Happy to help clean this up if OP doesn't have time to polish

@norru
Copy link
Author

norru commented Oct 6, 2018

Hi @joelgallant - help is very welcome. I'll fix the easy stuff and leave you with the wrapping.

Do you want to fork from mine, or should we merge in and then you clone from the original (my recommended option). This way we could have the wrappers available earlier (and I could import the official crate rather than my own hacks :) )

@norru
Copy link
Author

norru commented Oct 6, 2018

I have removed the project files - I think for all other suggested changes "someone" should make separate PRs when appropriate :)

@norru
Copy link
Author

norru commented Dec 1, 2018

Ping?

Copy link
Collaborator

@Pzixel Pzixel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Minor changes requested

src/mat.rs Outdated Show resolved Hide resolved
src/optflow.rs Outdated Show resolved Hide resolved
@norru
Copy link
Author

norru commented Dec 31, 2018

Ping?

@Pzixel
Copy link
Collaborator

Pzixel commented Feb 8, 2019

@norru sorry, my new year finally ended :)

Please, add comments to functions like calc_optical_flow_dis and so on. Suppressing warnings with /// is not a good thing.

Then I'm going to merge this.

Thank you for patience, sorry for a long waiting.

}

///
pub fn cfrom_optical_flow_dtvl1(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be calc_optical_flow_dtvl1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants