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

Function RoundMat

jni/stasm/misc.cpp:315–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313}
314
315MAT RoundMat( // return mat with entries rounded to integers
316 const MAT& mat) // in
317{
318 MAT newmat(mat.rows, mat.cols);
319 for (int i = 0; i < mat.rows; i++)
320 for (int j = 0; j < mat.cols; j++)
321 {
322 newmat(i, IX) = cvRound(mat(i, IX));
323 newmat(i, IY) = cvRound(mat(i, IY));
324 }
325
326 return newmat;
327}
328
329// Force pinned landmarks in shape to their pinned position.
330// This also returns the mean distance from the output shape to pinnedshape.

Callers 3

stasm_search_auto_extFunction · 0.85
stasm_search_pinnedFunction · 0.85
TraceShapeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected