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

Function getSumFunc

deps/opencv/modules/core/src/stat.cpp:202–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200typedef int (*SumFunc)(const uchar*, const uchar* mask, uchar*, int, int);
201
202static SumFunc getSumFunc(int depth)
203{
204 static SumFunc sumTab[] =
205 {
206 (SumFunc)GET_OPTIMIZED(sum8u), (SumFunc)sum8s,
207 (SumFunc)sum16u, (SumFunc)sum16s,
208 (SumFunc)sum32s,
209 (SumFunc)GET_OPTIMIZED(sum32f), (SumFunc)sum64f,
210 0
211 };
212
213 return sumTab[depth];
214}
215
216template<typename T>
217static int countNonZero_(const T* src, int len )

Callers 2

sumMethod · 0.85
meanMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected