4 void contour3dToCMat (cv::Mat& xy,
const Vec3dVector &cont,
const double offset [2]);
5 void contourMToContour3d (Vec3dVector &cont,
const cv::Mat &xy,
const double offset [3]);
7 void contourToMat (cv::Mat &xy,
const Contour &contour,
const double offset [2]) ;
13 int cutStraightParts (DoubleContourSPtrVector &cutContours
14 ,
const DoubleContour &contour,
const double cosine,
const int minLength);
16 int cutStraightParts (ContourVector &cutContours,
const Contour &contour,
const double cosine,
const int minLength);
17 int cutBackForth (ContourVector &cutContours,
const Contour &contour);
24 int findLineSegmentIntersection( cv::Point2d& intersection,
25 const cv::Vec2d& paramIntervalLine,
26 const cv::Vec2d& paramIntervalSegment,
27 const cv::Vec2d& dir,
const cv::Vec2d& approxPt,
28 const cv::Vec2d& firstPt,
const cv::Vec2d& secondPt);
30 int findContourLineIntersections( std::vector<cv::Point2d>& intersections,
31 const bool closed,
const double m,
const double b,
const DoubleContour& contour);
35 int findContourYXLineIntersections( std::vector<cv::Point2d>& intersections,
36 const bool closed,
const double m,
const double b,
const DoubleContour& contour);
41 int findLineContoursCut(std::vector<cv::Vec2d>& cuts, std::vector<int>& contIdx,
42 const cv::Vec2d& paramIntervalLine,
43 const cv::Vec2d& dir,
const cv::Vec2d& approxPt,
44 const ContourDataVector& contDatas);
46 void smoothContour (DoubleContour &smoothed,
const DoubleContour &dblContour,
const int halfGauss );
47 void smoothContourVector (DoubleContourVector &smoothedContours,
const DoubleContourVector &dblContours);
53 void smoothClosedContour (DoubleContour &smoothed,
double* smoothingDefect,
const DoubleContour &dblContour,
const int halfGauss );
55 void convertContour2DoubleContour (DoubleContour &dblContour,
const Contour &contour);
56 void convertContourVector2DoubleContourVector (DoubleContourVector &dblContours,
const ContourVector &contours);
57 void convertContourVector2DoubleContourSPtrVector (DoubleContourSPtrVector &dblContours,
const ContourVector &contours);
58 void convertContourVecVec2DoubleContourVecVec (DoubleContourVecVec &dblContoursVec,
const ContourVecVec &contoursVec);
60 void convertDoubleContour2Contour (Contour &contour,
const DoubleContour &dblContour);
61 void convertDoubleContourVector2ContourVector (ContourVector &contours,
const DoubleContourVector &dblContours);
62 void convertDoubleContourVecVec2ContourVecVec (ContourVecVec &contoursVec,
const DoubleContourVecVec &dblContoursVec);
64 void appendContours (ContourVector &contours,
const ContourVector &toAppend);
65 void appendContours (ContourVector &contours,
const ContourVecVec &toAppendVec);
67 void appendContours (DoubleContourVector &dblCcontours,
const DoubleContourVector &toAppend);
68 void appendContours (DoubleContourVector &dblContours,
const DoubleContourVecVec &toAppendVec);
70 void shiftOffs (Contour &contour,
const cv::Point &offs);
71 void shiftOffs (ContourVector &contours,
const cv::Point &offs);
73 void shiftOffs (DoubleContour &dblContour,
const DoublePoint &offs);
74 void shiftOffs (DoubleContourVector &dblContours,
const DoublePoint &offs);
75 void shiftOffs (DoubleContourSPtrVector &dblContours,
const DoublePoint &offs);