Repository navigation
Expose more C++ functionality in the Java wrapper of the Mat class - #13956
Conversation
|
Thank you for contribution! Please add tests for new features. |
I think I have found where the tests are located: modules/core/misc/java/test |
|
You can run tests from the command line terminal - take a look on build/test logs for commands samples. |
Fixed the failing tests and added new tests for the new methods |
|
Well done! Please rebase this patch onto 3.4 branch first, so it will be available in next 3.4 release. So, please:
Note: no needs to re-open PR, apply changes "inplace". Please squash commits into one if possible. |
60423c1 to
ec36115
Compare
In particular expose methods for handling Mat with more than 2 dimensions * add constructors taking an array of dimension sizes * add constructor taking an existing Mat and an array of Ranges * add override of the create method taking an array of dimension sizes * add overrides of the ones and zeros methods taking an array of dimension sizes * add override of the submat method taking an array of ranges * add overrides of put and get taking arrays of indices * add wrapper for copySize method * fix crash in the JNI wrapper of the reshape(int cn, int[] newshape) method * add test for each method added to Mat.java
ec36115 to
62b2a58
Compare
alalek
left a comment
There was a problem hiding this comment.
Well done! Thank you for contribution 👍
* Expose more C++ functionality in the Java wrapper of the Mat class In particular expose methods for handling Mat with more than 2 dimensions * add constructors taking an array of dimension sizes * add constructor taking an existing Mat and an array of Ranges * add override of the create method taking an array of dimension sizes * add overrides of the ones and zeros methods taking an array of dimension sizes * add override of the submat method taking an array of ranges * add overrides of put and get taking arrays of indices * add wrapper for copySize method * fix crash in the JNI wrapper of the reshape(int cn, int[] newshape) method * add test for each method added to Mat.java * Fix broken test
resolves #13955
This pullrequest exposes additional C++ functionality in the Java wrapper of the Mat class
In particular it exposes methods for handling Mat with more than 2 dimensions.