()
| 50 | } |
| 51 | |
| 52 | public int[] toArray() { |
| 53 | int num = checkVector(_channels, _depth); |
| 54 | if(num < 0) |
| 55 | throw new RuntimeException("Native Mat has unexpected type or size: " + toString()); |
| 56 | int[] a = new int[num * _channels]; |
| 57 | if(num == 0) |
| 58 | return a; |
| 59 | get(0, 0, a); //TODO: check ret val! |
| 60 | return a; |
| 61 | } |
| 62 | |
| 63 | public void fromList(List<Integer> lb) { |
| 64 | if(lb==null || lb.size()==0) |
no test coverage detected