]> rtime.felk.cvut.cz Git - opencv.git/commitdiff
make HoughLines and HoughCircles take constant Mat references, since they aren't...
authorxavier98 <xavier98@73c94f0f-984f-4a5f-82bc-2d8db8d8ee08>
Mon, 7 Sep 2009 04:29:55 +0000 (04:29 +0000)
committerxavier98 <xavier98@73c94f0f-984f-4a5f-82bc-2d8db8d8ee08>
Mon, 7 Sep 2009 04:29:55 +0000 (04:29 +0000)
git-svn-id: https://code.ros.org/svn/opencv/trunk@2085 73c94f0f-984f-4a5f-82bc-2d8db8d8ee08

opencv/include/opencv/cv.hpp
opencv/src/cv/cvhough.cpp

index 3c6f26c9ac6e5a2daaf004d5424fe44c86a7e4ae..abaceb3aa31c7740e2632a6145bc611463714290 100644 (file)
@@ -288,7 +288,7 @@ CV_EXPORTS void goodFeaturesToTrack( const Mat& image, vector<Point2f>& corners,
                                      const Mat& mask=Mat(), int blockSize=3,
                                      bool useHarrisDetector=false, double k=0.04 );
 
-CV_EXPORTS void HoughLines( Mat& image, vector<Vec2f>& lines,
+CV_EXPORTS void HoughLines( const Mat& image, vector<Vec2f>& lines,
                             double rho, double theta, int threshold,
                             double srn=0, double stn=0 );
 
@@ -296,7 +296,7 @@ CV_EXPORTS void HoughLinesP( Mat& image, vector<Vec4i>& lines,
                              double rho, double theta, int threshold,
                              double minLineLength=0, double maxLineGap=0 );
 
-CV_EXPORTS void HoughCircles( Mat& image, vector<Vec3f>& circles,
+CV_EXPORTS void HoughCircles( const Mat& image, vector<Vec3f>& circles,
                               int method, double dp, double minDist,
                               double param1=100, double param2=100,
                               int minRadius=0, int maxRadius=0 );
index 1803014ede837b5af9f7bf65b502512d79de45e5..c5b00a08be4b8a7e5835abf725fb246c808512b1 100644 (file)
@@ -1131,7 +1131,7 @@ namespace cv
 \r
 const int STORAGE_SIZE = 1 << 12;\r
 \r
-void HoughLines( Mat& image, vector<Vec2f>& lines,\r
+void HoughLines( const Mat& image, vector<Vec2f>& lines,\r
                  double rho, double theta, int threshold,\r
                  double srn, double stn )\r
 {\r
@@ -1154,7 +1154,7 @@ void HoughLinesP( Mat& image, vector<Vec4i>& lines,
     Seq<Vec4i>(seq).copyTo(lines);\r
 }\r
 \r
-void HoughCircles( Mat& image, vector<Vec3f>& circles,\r
+void HoughCircles( const Mat& image, vector<Vec3f>& circles,\r
                    int method, double dp, double min_dist,\r
                    double param1, double param2,\r
                    int minRadius, int maxRadius )\r