(int row, int col, byte[] data)
| 1002 | |
| 1003 | // javadoc:Mat::get(row,col,data) |
| 1004 | public int get(int row, int col, byte[] data) { |
| 1005 | int t = type(); |
| 1006 | if (data == null || data.length % CvType.channels(t) != 0) |
| 1007 | throw new java.lang.UnsupportedOperationException( |
| 1008 | "Provided data element number (" + |
| 1009 | (data == null ? 0 : data.length) + |
| 1010 | ") should be multiple of the Mat channels count (" + |
| 1011 | CvType.channels(t) + ")"); |
| 1012 | if (CvType.depth(t) == CvType.CV_8U || CvType.depth(t) == CvType.CV_8S) { |
| 1013 | return nGetB(nativeObj, row, col, data.length, data); |
| 1014 | } |
| 1015 | throw new java.lang.UnsupportedOperationException("Mat data type is not compatible: " + t); |
| 1016 | } |
| 1017 | |
| 1018 | // javadoc:Mat::get(row,col,data) |
| 1019 | public int get(int row, int col, short[] data) { |
no test coverage detected