(int...a)
| 42 | } |
| 43 | |
| 44 | public void fromArray(int...a) { |
| 45 | if(a==null || a.length==0) |
| 46 | return; |
| 47 | int num = a.length / _channels; |
| 48 | alloc(num); |
| 49 | put(0, 0, a); //TODO: check ret val! |
| 50 | } |
| 51 | |
| 52 | public int[] toArray() { |
| 53 | int num = checkVector(_channels, _depth); |