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

Function DecreasingWidth

jni/stasm/MOD_1/facedet.cpp:108–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106// order by decreasing width, and dist from the left margin within that
107
108static bool DecreasingWidth( // compare predicate for std::sort
109 const DetectorParameter& detpar1, // in
110 const DetectorParameter& detpar2) // in
111{
112 return 1e5 * detpar2.width - detpar2.x <
113 1e5 * detpar1.width - detpar1.x;
114
115}
116
117// Discard too big or small faces (this helps reduce the number of false positives)
118

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected