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

Function DiscountSearchRegion

jni/stasm/misc.cpp:791–798  ·  view source on GitHub ↗

* @brief convert the x and y coords in feats from the search ROI to the image frame * @param feats inout * @param searchrect in */

Source from the content-addressed store, hash-verified

789 * @param searchrect in
790 */
791static void DiscountSearchRegion(vec_Rect& feats, const Rect& searchrect)
792{
793 for (int ifeat = 0; ifeat < NSIZE(feats); ifeat++)
794 {
795 feats[ifeat].x += searchrect.x;
796 feats[ifeat].y += searchrect.y;
797 }
798}
799
800vec_Rect Detect( // detect faces or facial features
801 const Image& img, // in

Callers 1

DetectFunction · 0.85

Calls 1

NSIZEFunction · 0.85

Tested by

no test coverage detected