From 971d02cde63b5d8baf0c39a1b99dd18cc74d3e03 Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Tue, 16 Oct 2012 01:06:37 +0400 Subject: [PATCH] Fix binary compatibility of opencv_stitching --- .../stitching/include/opencv2/stitching/detail/warpers.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/stitching/include/opencv2/stitching/detail/warpers.hpp b/modules/stitching/include/opencv2/stitching/detail/warpers.hpp index 524c3847e8..9f3479beee 100644 --- a/modules/stitching/include/opencv2/stitching/detail/warpers.hpp +++ b/modules/stitching/include/opencv2/stitching/detail/warpers.hpp @@ -70,8 +70,8 @@ public: virtual Rect warpRoi(Size src_size, const Mat &K, const Mat &R) = 0; - virtual float getScale() const { return 1.f; } - virtual void setScale(float) {} + float getScale() const { return 1.f; } + void setScale(float) {} }; @@ -134,6 +134,8 @@ class CV_EXPORTS PlaneWarper : public RotationWarperBase public: PlaneWarper(float scale = 1.f) { projector_.scale = scale; } + void setScale(float scale) { projector_.scale = scale; } + Point2f warpPoint(const Point2f &pt, const Mat &K, const Mat &R, const Mat &T); Rect buildMaps(Size src_size, const Mat &K, const Mat &R, const Mat &T, Mat &xmap, Mat &ymap);