MCPcopy Create free account
hub / github.com/OpenNI/OpenNI / statisticsInit

Function statisticsInit

Samples/NiViewer/Statistics.cpp:45–55  ·  view source on GitHub ↗

-------------------------------- Code --------------------------------

Source from the content-addressed store, hash-verified

43// Code
44// --------------------------------
45void statisticsInit()
46{
47 g_PixelStatistics = NULL;
48 g_StatisticsState = NOT_COLLECTING;
49
50 const DepthMetaData* pDepthMD = getDepthMetaData();
51 if (pDepthMD != NULL)
52 {
53 g_PixelStatistics = new XnPixelStatistics[pDepthMD->FullXRes() * pDepthMD->FullYRes()];
54 }
55}
56
57void statisticsStart(int)
58{

Callers 1

mainFunction · 0.85

Calls 3

getDepthMetaDataFunction · 0.85
FullXResMethod · 0.80
FullYResMethod · 0.80

Tested by

no test coverage detected