Face3d
FaceGeometry.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <opencv2/opencv.hpp>
4 
5 namespace Face3D
6 {
9  {
10  public:
13 
15  cv::Point2d getDetectedPoint(DetectedPoints detectedPoint) const;
16 
18  cv::Point getDetectedPointInt(DetectedPoints detectedPoint) const;
19 
21  cv::Point3d getDetectedPointHomogeneous(DetectedPoints detectedPoint) const;
22 
24  void setDetectedPoint(DetectedPoints detectedPoint, const cv::Point2d& p);
25 
27  void setDetectedPoint(DetectedPoints detectedPoint, const cv::Point3d& p);
28 
30  void transform(DetectedPoints point, const cv::Mat& transform);
31 
33  void merge3d();
34 
36  void toFile(const std::string& fn);
37 
38 
39 
40  private:
43  cv::Rect sideSkinRegion;
44  cv::Rect frontSkinRegion;
45 
46 
48  void pointToFile(std::ofstream& f, const cv::Point3d& p);
49  };
50 
51 
52 }
Definition: FaceGeometry.hpp:12
void transform(DetectedPoints point, const cv::Mat &transform)
Definition: FaceGeometry.cpp:98
Definition: FaceGeometry.hpp:12
Definition: FaceGeometry.hpp:12
Definition: FaceGeometry.hpp:12
Definition: FaceGeometry.hpp:12
Definition: FaceGeometry.hpp:12
Definition: FaceGeometry.hpp:8
cv::Point3d mouth
Definition: FaceGeometry.hpp:42
cv::Point2d getDetectedPoint(DetectedPoints detectedPoint) const
Definition: FaceGeometry.cpp:60
cv::Point3d chin
Definition: FaceGeometry.hpp:42
cv::Point3d rightEye
Definition: FaceGeometry.hpp:42
void pointToFile(std::ofstream &f, const cv::Point3d &p)
Definition: FaceGeometry.cpp:51
cv::Point3d m_DetectedPoints[InvalidPoint]
the 2d points in homogeneous coordinates such that an affine transformation can be applied ...
Definition: FaceGeometry.hpp:41
Definition: FaceGeometry.hpp:12
cv::Point3d faceDimensions
3d position
Definition: FaceGeometry.hpp:42
void setDetectedPoint(DetectedPoints detectedPoint, const cv::Point2d &p)
Definition: FaceGeometry.cpp:81
cv::Point3d leftEye
Definition: FaceGeometry.hpp:42
Definition: FaceGeometry.hpp:12
void toFile(const std::string &fn)
Definition: FaceGeometry.cpp:33
Definition: FaceGeometry.hpp:12
cv::Rect sideSkinRegion
region of the skin in the side image
Definition: FaceGeometry.hpp:43
Definition: FaceGeometry.hpp:12
cv::Point3d nose
Definition: FaceGeometry.hpp:42
cv::Rect frontSkinRegion
region of the skin in the front image
Definition: FaceGeometry.hpp:44
void merge3d()
Definition: FaceGeometry.cpp:8
Definition: FaceGeometry.hpp:12
Definition: FaceGeometry.hpp:12
DetectedPoints
Definition: FaceGeometry.hpp:12
cv::Point getDetectedPointInt(DetectedPoints detectedPoint) const
Definition: FaceGeometry.cpp:67
Definition: Common.hpp:7
cv::Point3d getDetectedPointHomogeneous(DetectedPoints detectedPoint) const
Definition: FaceGeometry.cpp:74
Definition: FaceGeometry.hpp:12