diff --git a/modules/stitching/include/opencv2/stitching/blenders.hpp b/modules/stitching/include/opencv2/stitching/blenders.hpp index d173acc552..15b7769984 100644 --- a/modules/stitching/include/opencv2/stitching/blenders.hpp +++ b/modules/stitching/include/opencv2/stitching/blenders.hpp @@ -51,6 +51,8 @@ namespace cv class CV_EXPORTS Blender { public: + virtual ~Blender() {} + enum { NO, FEATHER, MULTI_BAND }; static Ptr createDefault(int type, bool try_gpu = false); diff --git a/modules/stitching/include/opencv2/stitching/exposure_compensate.hpp b/modules/stitching/include/opencv2/stitching/exposure_compensate.hpp index 7bcc0f0167..4a4324bd2c 100644 --- a/modules/stitching/include/opencv2/stitching/exposure_compensate.hpp +++ b/modules/stitching/include/opencv2/stitching/exposure_compensate.hpp @@ -50,6 +50,8 @@ namespace cv class CV_EXPORTS ExposureCompensator { public: + virtual ~ExposureCompensator() {} + enum { NO, GAIN, GAIN_BLOCKS }; static Ptr createDefault(int type); diff --git a/modules/stitching/include/opencv2/stitching/motion_estimators.hpp b/modules/stitching/include/opencv2/stitching/motion_estimators.hpp index c65fd23afe..78c822b534 100644 --- a/modules/stitching/include/opencv2/stitching/motion_estimators.hpp +++ b/modules/stitching/include/opencv2/stitching/motion_estimators.hpp @@ -53,6 +53,8 @@ namespace cv class CV_EXPORTS Estimator { public: + virtual ~Estimator() {} + void operator ()(const std::vector &features, const std::vector &pairwise_matches, std::vector &cameras) {