(int row, int col, byte[] data)
| 964 | |
| 965 | // javadoc:Mat::get(row,col,data) |
| 966 | public int get(int row, int col, byte[] data) { |
| 967 | int t = type(); |
| 968 | if (data == null || data.length % CvType.channels(t) != 0) |
| 969 | throw new UnsupportedOperationException( |
| 970 | "Provided data element number (" + |
| 971 | (data == null ? 0 : data.length) + |
| 972 | ") should be multiple of the Mat channels count (" + |
| 973 | CvType.channels(t) + ")"); |
| 974 | if (CvType.depth(t) == CvType.CV_8U || CvType.depth(t) == CvType.CV_8S) { |
| 975 | return nGetB(nativeObj, row, col, data.length, data); |
| 976 | } |
| 977 | throw new UnsupportedOperationException("Mat data type is not compatible: " + t); |
| 978 | } |
| 979 | |
| 980 | // javadoc:Mat::get(idx,data) |
| 981 | public int get(int[] idx, byte[] data) { |
no test coverage detected