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

Function SumAbsElems

jni/stasm/classicdesc.cpp:152–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152static double SumAbsElems( // return the sum of the abs values of the elems of mat
153 const MAT& mat) // in
154{
155 CV_Assert(mat.isContinuous());
156 const double* const data = Buf(mat);
157 double sum = 0;
158 int i = NSIZE(mat); // number of elements
159 while (i--)
160 sum += ABS(data[i]);
161 return sum;
162}
163
164static VEC SubProf( // return the profile at given offset within fullprof
165 int offset, // in: offset along whisker in pixels

Callers 1

SubProfFunction · 0.85

Calls 3

BufFunction · 0.85
NSIZEFunction · 0.85
ABSFunction · 0.85

Tested by

no test coverage detected