MCPcopy Create free account
hub / github.com/danopdev/Perspective / fromArray

Method fromArray

opencv/src/main/java/org/opencv/core/MatOfInt.java:44–50  ·  view source on GitHub ↗
(int...a)

Source from the content-addressed store, hash-verified

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);

Callers 2

MatOfIntMethod · 0.95
fromListMethod · 0.95

Calls 2

allocMethod · 0.95
putMethod · 0.80

Tested by

no test coverage detected