MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / ArrayAsMat

Function ArrayAsMat

jni/stasm/misc.cpp:304–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304const MAT ArrayAsMat( // create a MAT from a C array of doubles
305 int nrows, // in
306 int ncols, // in
307 const double* data) // in: array of doubles
308{
309 // <double *> cast is necessary because OpenCV mat constructors
310 // don't know how to use <const double *> (they should?)
311
312 return cv::Mat(nrows, ncols, CV_64FC1, const_cast<double*>(data));
313}
314
315MAT RoundMat( // return mat with entries rounded to integers
316 const MAT& mat) // in

Callers 1

ClassicDescModMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected