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

Function CopyHistsToDesc

jni/stasm/hat.cpp:360–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358}
359
360static void CopyHistsToDesc( // copy histograms to descriptor, skipping pad bins
361 VEC& desc, // out
362 const vec_double& histbins) // in
363{
364 for (int row = 0; row < GRIDHEIGHT; row++)
365 for (int col = 0; col < GRIDWIDTH; col++)
366 memcpy(Buf(desc) +
367 (row * GRIDWIDTH + col) * BINS_PER_HIST,
368 &histbins[HistIndex(row, col, 0)],
369 BINS_PER_HIST * sizeof(histbins[0]));
370}
371
372static void NormalizeDesc( // take sqrt of elems and divide by L2 norm
373 VEC& desc) // io

Callers 1

Desc_Method · 0.85

Calls 2

BufFunction · 0.85
HistIndexFunction · 0.85

Tested by

no test coverage detected