-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
about get range of Mat #1607
Comments
Which part are you having problems with? |
I don't know how to implement outputmat (batchrange),C + + overloads the () operator here, and then takes out the submatrix through the () operator. I don't know how to do that in javacv |
I found that there is a submat method on class org.opencv.core.Mat to implement this transformation, but it seems that there is no submat method on class org.bytedeco.opencv.opencv_core.Mat? |
ohh~,Let me have a try! |
How to construct a range of three dimensions is similar to the following code: |
We don't need a std::vector, just use an array.
|
Like this? |
How can I generate a range array |
… for convenience (issue bytedeco/javacv#1607)
Almost, something like this: bytedeco/javacpp-presets#824 (comment) For convenience though, I've also added a |
Is that right? |
No, you forgot the last call to position(0). |
Thank you. It's working! |
I want to use javacv to implement the following C + + code, but I don't know how to write about range. Can you give me some guidance?
The text was updated successfully, but these errors were encountered: