| 377 | } |
| 378 | |
| 379 | std::vector<Point2f> getFaceFeaturePoints(const std::string& face, const std::string& datadir, Point& size) |
| 380 | { |
| 381 | cv::Mat1b image = cv::imread(face, CV_LOAD_IMAGE_GRAYSCALE); |
| 382 | if(!image.data) |
| 383 | { |
| 384 | printf("Cannot load %s\n", face.c_str()); |
| 385 | return std::vector<Point2f>(); |
| 386 | } |
| 387 | |
| 388 | size = Point(image.cols, image.rows); |
| 389 | cv::Mat _image = image; |
| 390 | return getFaceFeaturePoints(_image, face, datadir); |
| 391 | } |
| 392 | |
| 393 | std::vector<Point2f> getFaceFeaturePoints(const std::string& face, const std::string& datadir) |
| 394 | { |
no test coverage detected