• Giles Payne's avatar
    Merge pull request #13956 from komakai:java-mat-class-improvements · 11dbd86a
    Giles Payne authored
    * 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
    11dbd86a
Mat.cpp 81.9 KB