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

Method toArray

opencv/src/main/java/org/opencv/core/MatOfByte.java:70–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68 }
69
70 public byte[] toArray() {
71 int num = checkVector(_channels, _depth);
72 if(num < 0)
73 throw new RuntimeException("Native Mat has unexpected type or size: " + toString());
74 byte[] a = new byte[num * _channels];
75 if(num == 0)
76 return a;
77 get(0, 0, a); //TODO: check ret val!
78 return a;
79 }
80
81 public void fromList(List<Byte> lb) {
82 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