MCPcopy Create free account
hub / github.com/creatale/node-dv / write

Method write

deps/opencv/modules/core/src/out.cpp:183–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181public:
182 virtual ~NumpyFormatter() {}
183 void write(std::ostream& out, const Mat& m, const int*, int) const
184 {
185 static const char* numpyTypes[] =
186 {
187 "uint8", "int8", "uint16", "int16", "int32", "float32", "float64", "uint64"
188 };
189 out << "array([";
190 writeMat(out, m, m.cols > 1 ? '[' : ' ', '[', m.rows*m.channels() == 1);
191 out << "], type='" << numpyTypes[m.depth()] << "')";
192 }
193
194 void write(std::ostream& out, const void* data, int nelems, int type, const int*, int) const
195 {

Callers

nothing calls this directly

Calls 4

writeMatFunction · 0.85
writeElemsFunction · 0.85
channelsMethod · 0.45
depthMethod · 0.45

Tested by

no test coverage detected