vrcore  0.45
visuReal Messkern
 All Classes Files Functions Variables
contours.h
1 #ifndef CONTOURS_H
2 #define CONTOURS_H
3 
4 namespace vr
5 {
6 
14 class Contours : public Analyser<FrontHeadModel>
15 {
16 public:
17  Contours(FrontHeadModel& headModel);
18  ~Contours();
19  int processing (LogableLogging *lpLogger);
20  bool isQualified ();
21 private:
22  DoubleContourPair& contours_;
23  std::string& detectorVersion_;
24  DoubleContourPair alignedContours_;
25  cv::Rect_<double> lensBox_[LATERAL_SIDE];
26  Frame<2> frame_[LATERAL_SIDE];
27  int status_[LATERAL_SIDE];
28  StatusInfo metsStatus_;
29  MetsResult& mets_;
30  std::string& errorMessage_;
31  std::vector<cv::Point2d> excludeArea_;
32  std::vector<Circle> circles_;
33 
34  cv::Point2d tr_, tl_, br_, bl_, cr_, cl_;
35 #ifdef ALLOW_BOOST_FILESYSTEM
36  cv::Point2d axis[LATERAL_SIDE][2];
37 #endif
38  double pixelsPerMm_;
39 
40  int getResult () const { return (status_[_R] == 0) | (status_[_L] == 0) ? RES_SUCCESS : RES_ERROR; }
41  void polarToCartesian(const LateralSide side, const std::vector <cv::Vec2d>& polarPoints,
42  const cv::Point2d& center, const double rotAngle);
48  void extendExcludeArea(const LateralSide side, const cv::Vec2f& ffaMark, CciTransformer* transformer);
49  void writeDebugImage(const cv::Mat& img);
50 };
51 
52 }
53 
54 #endif // CONTOURS_H
Definition: HeadModel.h:84
CCI = Camera Clamp Image.
Definition: ccitransformer.h:5
integriert die neue Fassungserkennung von Jürgen Ollendorf.
Definition: contours.h:14
Definition: Analyser.h:5
Definition: Processable.h:29