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

Method getPolygon

jni/venus/Extractor.cpp:358–375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356 m_leftBlusherPolygon.push_back(Point(cvRound((points[58].x + points[51].x)/2), cvRound((points[58].y + points[51].y)/2)));
357}
358
359std::vector<Point> Extractor::getPolygon(int region)
360{
361 switch(region)
362 {
363 case FACE: return m_facePolygon;
364 case EYE_BROW_L: return m_leftEyeBrowPolygon;
365 case EYE_BROW_R: return m_rightEyeBrowPolygon;
366 case EYE_LASH_L: return m_leftEyePolygon; // TODO
367 case EYE_LASH_R: return m_rightEyePolygon; // TODO
368 case EYE_SHADOW_L: return m_leftEyePolygon; // TODO
369 case EYE_SHADOW_R: return m_rightEyePolygon; // TODO
370 case BLUSHER_L: return m_leftBlusherPolygon;
371 case BLUSHER_R: return m_rightBlusherPolygon;
372 case NOSE: return m_nosePolygon;
373 case LIPS: return m_mouthPolygon;
374 default: assert(false); return std::vector<Point>();
375 }
376}
377
378} /* namespace venus */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected