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

Function CreatePyr

jni/stasm/asm.cpp:207–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207static void CreatePyr( // create image pyramid
208 vector<Image>& pyr, // out: the pyramid, pyr[0] is full size image
209 const Image& img, // in: full size image
210 int nlevs) // in
211{
212 CV_Assert(nlevs >= 1 && nlevs < 10); // 10 is arb
213 pyr.resize(nlevs);
214 pyr[0] = img; // pyramid level 0 is full size image
215 for (int ilev = 1; ilev < nlevs; ilev++)
216 {
217 const double scale = GetPyrScale(ilev);
218 cv::resize(img, pyr[ilev], cv::Size(), scale, scale, cv::INTER_LINEAR);
219 }
220}
221
222static double GetPrescale( // factor to scale face to standard size prior to search
223 const Shape& startshape) // in: startshape roughly positioned on face

Callers 1

ModSearch_Method · 0.85

Calls 2

GetPyrScaleFunction · 0.85
resizeFunction · 0.50

Tested by

no test coverage detected