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

Function InitHatLevData

jni/stasm/hatdesc.cpp:111–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111void InitHatLevData( // init the global HAT data needed for this pyr level
112 const Image& img, // in
113 int ilev) // in
114{
115 if (ilev <= HAT_START_LEV) // we use HATs only at upper pyr levs
116 {
117 hat_g.Init_(img, PatchWidth(ilev));
118#if CACHE
119 if (TRACE_CACHE) // show results from previous run
120 lprintf("[calls %d hitrate %.2f cachesize %d]\n",
121 ncalls_g, double(nhits_g) / ncalls_g, cache_g.size());
122 cache_g.clear();
123#endif
124 }
125}
126
127VEC HatDesc( // used only during training new models
128 double x, // in

Callers 1

LevSearch_Method · 0.85

Calls 4

PatchWidthFunction · 0.85
lprintfFunction · 0.85
Init_Method · 0.80
clearMethod · 0.80

Tested by

no test coverage detected