asmlib-opencv
an ASM(Active Shape Model) implementation by C++ & OpenCV
|
00001 #ifndef UTIL_H 00002 #define UTIL_H 00003 00004 #include "cv.h" 00005 #include "shapevec.h" 00006 #include "shapemodel.h" 00007 #include <vector> 00008 using cv::Rect; 00009 using cv::Mat; 00010 using cv::Point; 00011 using cv::Size; 00012 00013 using std::vector; 00014 00015 namespace StatModel { 00016 00018 Rect findOneFace(const Mat &img); 00019 vector< Rect > findAllFaces(const Mat &img); 00020 00021 // fill a convex poly by a point vector. 00022 void fillConvexFromPoints(Mat &img, vector< Point > &vP, cv::Scalar s); 00023 00024 } // Namespace 00025 00026 #endif