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

Method toArray

opencv/src/main/java/org/opencv/core/MatOfInt4.java:52–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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)

Callers 2

toListMethod · 0.95
fromListMethod · 0.45

Calls 3

checkVectorMethod · 0.80
getMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected