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

Method Init_

jni/stasm/hat.cpp:144–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142// once per pyramid lev).
143
144void Hat::Init_(
145 const Image& img, // in: image scaled to current pyramid level
146 const int patchwidth) // in: patch will be patchwidth x patchwidth pixels
147{
148 patchwidth_ = patchwidth;
149
150 InitGradMagAndOrientMats(magmat_, orientmat_, img);
151
152 InitIndices(row_indices_, row_fracs_, col_indices_, col_fracs_, pixelweights_,
153 patchwidth_);
154}
155
156// Calculate the image patch gradient mags and orients.
157// Note that the mag for a pixel out of the image boundaries is set

Callers 1

InitHatLevDataFunction · 0.80

Calls 2

InitGradMagAndOrientMatsFunction · 0.85
InitIndicesFunction · 0.85

Tested by

no test coverage detected