MCPcopy Create free account
hub / github.com/davisking/dlib / cv__getitem__

Function cv__getitem__

tools/python/src/vector.cpp:93–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93double cv__getitem__(cv& m, long r)
94{
95 if (r < 0) {
96 r = m.size() + r; // negative index
97 }
98 if (r > m.size()-1 || r < 0) {
99 PyErr_SetString( PyExc_IndexError, "index out of range"
100 );
101 throw py::error_already_set();
102 }
103 return m(r);
104}
105
106
107cv cv__getitem2__(cv& m, py::slice r)

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected