From 31de2833b49fe578ed703ceea24d4c0fba79dfd3 Mon Sep 17 00:00:00 2001 From: Roman Donchenko Date: Fri, 26 Jul 2013 14:52:56 +0400 Subject: [PATCH] Replace "const InputArray" with "InputArray". InputArray is a reference, and references are always constant anyway. Making it const even causes a GCC warning. --- modules/imgproc/include/opencv2/imgproc.hpp | 6 +++--- modules/imgproc/src/lsd.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/imgproc/include/opencv2/imgproc.hpp b/modules/imgproc/include/opencv2/imgproc.hpp index dd849ef..bf8f795 100644 --- a/modules/imgproc/include/opencv2/imgproc.hpp +++ b/modules/imgproc/include/opencv2/imgproc.hpp @@ -859,7 +859,7 @@ public: * * 1 corresponds to 0.1 mean false alarms * This vector will be calculated _only_ when the objects type is REFINE_ADV */ - virtual void detect(const InputArray _image, OutputArray _lines, + virtual void detect(InputArray _image, OutputArray _lines, OutputArray width = noArray(), OutputArray prec = noArray(), OutputArray nfa = noArray()) = 0; @@ -870,7 +870,7 @@ public: * Should have the size of the image, where the lines were found * @param lines The lines that need to be drawn */ - virtual void drawSegments(InputOutputArray image, const InputArray lines) = 0; + virtual void drawSegments(InputOutputArray image, InputArray lines) = 0; /** * Draw both vectors on the image canvas. Uses blue for lines 1 and red for lines 2. @@ -881,7 +881,7 @@ public: * @param lines2 The second lines that need to be drawn. Color - Red. * @return The number of mismatching pixels between lines1 and lines2. */ - virtual int compareSegments(const Size& size, const InputArray lines1, const InputArray lines2, Mat* image = 0) = 0; + virtual int compareSegments(const Size& size, InputArray lines1, InputArray lines2, Mat* image = 0) = 0; virtual ~LineSegmentDetector() {}; }; diff --git a/modules/imgproc/src/lsd.cpp b/modules/imgproc/src/lsd.cpp index b4f228a..58d226f 100644 --- a/modules/imgproc/src/lsd.cpp +++ b/modules/imgproc/src/lsd.cpp @@ -205,7 +205,7 @@ public: * * 1 corresponds to 0.1 mean false alarms * This vector will be calculated _only_ when the objects type is REFINE_ADV */ - void detect(const InputArray _image, OutputArray _lines, + void detect(InputArray _image, OutputArray _lines, OutputArray width = noArray(), OutputArray prec = noArray(), OutputArray nfa = noArray()); @@ -216,7 +216,7 @@ public: * Should have the size of the image, where the lines were found * @param lines The lines that need to be drawn */ - void drawSegments(InputOutputArray image, const InputArray lines); + void drawSegments(InputOutputArray image, InputArray lines); /** * Draw both vectors on the image canvas. Uses blue for lines 1 and red for lines 2. @@ -227,7 +227,7 @@ public: * @param lines2 The second lines that need to be drawn. Color - Red. * @return The number of mismatching pixels between lines1 and lines2. */ - int compareSegments(const Size& size, const InputArray lines1, const InputArray lines2, Mat* image = 0); + int compareSegments(const Size& size, InputArray lines1, InputArray lines2, Mat* image = 0); private: Mat image; -- 2.7.4