-
-
Notifications
You must be signed in to change notification settings - Fork 161
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
impl ToInputArray for Vector<BoxedRef<'_,Mat>> #555
Comments
I think it makes perfect sense, thank you! If you feel like you can do the change I'm more than happy to review the PR, otherwise I will take a look at this in the coming days. |
So after my first time going through the repo (awesome btw) initially my thought would be I would have to impl |
That's the way I would take. Currently to be able to create a
And necessary impls for cases where The generation for 1 is happening from this template: https://github.com/twistedfall/opencv-rust/blob/master/binding-generator/src/writer/rust_native/vector.rs#L62 (tpl/vector/rust_extern.tpl.rs). For 2 it's https://github.com/twistedfall/opencv-rust/blob/master/binding-generator/src/writer/rust_native/vector.rs#L65-L69 (tpl/vector/rust_copy_non_bool.tpl.rs and tpl/vector/rust_non_copy_or_bool.tpl.rs). After that the generation of proper |
This functionality is now available in 0.91.2 release |
Would it be possible to implement something like....
impl ToInputArray for Vector<BoxedRef<'_,Mat>>
or more general i.e.
impl ToInputArray for Vector<T> where T:...
Happy to do a PR, just wondering if that is idiomatic, seems like with the new boxedref returns it would be handy.
Usecase: crating a
Vector
from a set ofMat::roi
and using inhconcat
PS sorry for the initial issue create, I hit the wrong button.
The text was updated successfully, but these errors were encountered: