diff -ruN opencv_contrib-4.1.1/modules/bgsegm/src/bgfg_gsoc.cpp opencv_contrib-4.1.1-patch/modules/bgsegm/src/bgfg_gsoc.cpp --- opencv_contrib-4.1.1/modules/bgsegm/src/bgfg_gsoc.cpp 2019-07-22 02:59:59.000000000 +0900 +++ opencv_contrib-4.1.1-patch/modules/bgsegm/src/bgfg_gsoc.cpp 2019-07-31 11:51:59.384483904 +0900 @@ -265,7 +265,7 @@ class BackgroundModelGSOC : public BackgroundModel { public: - BackgroundModelGSOC(Size sz, int S) : BackgroundModel(sz, S) {}; + BackgroundModelGSOC(Size sz, int S) : BackgroundModel(sz, S) {}; float findClosest(int i, int j, const Point3f& color, int& indOut) const { const int end = i * stride + (j + 1) * nSamples; @@ -316,7 +316,7 @@ class BackgroundModelLSBP : public BackgroundModel { public: - BackgroundModelLSBP(Size sz, int S) : BackgroundModel(sz, S) {}; + BackgroundModelLSBP(Size sz, int S) : BackgroundModel(sz, S) {}; int countMatches(int i, int j, const Point3f& color, int desc, float threshold, int descThreshold, float& minDist) const { const int end = i * stride + (j + 1) * nSamples; diff -ruN opencv_contrib-4.1.1/modules/face/include/opencv2/face/facemarkLBF.hpp opencv_contrib-4.1.1-patch/modules/face/include/opencv2/face/facemarkLBF.hpp --- opencv_contrib-4.1.1/modules/face/include/opencv2/face/facemarkLBF.hpp 2019-07-22 02:59:59.000000000 +0900 +++ opencv_contrib-4.1.1-patch/modules/face/include/opencv2/face/facemarkLBF.hpp 2019-07-31 11:51:59.385483910 +0900 @@ -93,7 +93,7 @@ }; - class BBox { + class CV_EXPORTS BBox { public: BBox(); ~BBox(); diff -ruN opencv_contrib-4.1.1/modules/quality/include/opencv2/quality/qualitymse.hpp opencv_contrib-4.1.1-patch/modules/quality/include/opencv2/quality/qualitymse.hpp --- opencv_contrib-4.1.1/modules/quality/include/opencv2/quality/qualitymse.hpp 2019-07-22 02:59:59.000000000 +0900 +++ opencv_contrib-4.1.1-patch/modules/quality/include/opencv2/quality/qualitymse.hpp 2019-07-31 12:23:56.995734280 +0900 @@ -22,7 +22,7 @@ @param cmpImgs Comparison image(s) @returns cv::Scalar with per-channel quality values. Values range from 0 (best) to potentially max float (worst) */ - CV_WRAP cv::Scalar compute( InputArrayOfArrays cmpImgs ) CV_OVERRIDE; + CV_WRAP cv::Scalar compute( InputArray cmpImgs ) CV_OVERRIDE; /** @brief Implements Algorithm::empty() */ CV_WRAP bool empty() const CV_OVERRIDE { return _ref.empty() && QualityBase::empty(); } @@ -61,4 +61,4 @@ }; // QualityMSE } // quality } // cv -#endif \ No newline at end of file +#endif diff -ruN opencv_contrib-4.1.1/modules/tracking/include/opencv2/tracking/feature.hpp opencv_contrib-4.1.1-patch/modules/tracking/include/opencv2/tracking/feature.hpp --- opencv_contrib-4.1.1/modules/tracking/include/opencv2/tracking/feature.hpp 2019-07-22 02:59:59.000000000 +0900 +++ opencv_contrib-4.1.1-patch/modules/tracking/include/opencv2/tracking/feature.hpp 2019-07-31 11:51:59.385483910 +0900 @@ -100,8 +100,6 @@ (p3) = (rect).x + (rect).width - (rect).height \ + (step) * ((rect).y + (rect).width + (rect).height); -float calcNormFactor( const Mat& sum, const Mat& sqSum ); - template void _writeFeatures( const std::vector features, FileStorage &fs, const Mat& featureMap ) { @@ -117,7 +115,7 @@ fs << "]"; } -class CvParams +class CV_EXPORTS CvParams { public: CvParams(); @@ -134,7 +132,7 @@ std::string name; }; -class CvFeatureParams : public CvParams +class CV_EXPORTS CvFeatureParams : public CvParams { public: enum FeatureType @@ -154,7 +152,7 @@ int numFeatures; }; -class CvFeatureEvaluator +class CV_EXPORTS CvFeatureEvaluator { public: virtual ~CvFeatureEvaluator() @@ -196,7 +194,7 @@ Mat cls; }; -class CvHaarFeatureParams : public CvFeatureParams +class CV_EXPORTS CvHaarFeatureParams : public CvFeatureParams { public: @@ -213,11 +211,11 @@ bool isIntegral; }; -class CvHaarEvaluator : public CvFeatureEvaluator +class CV_EXPORTS CvHaarEvaluator : public CvFeatureEvaluator { public: - class FeatureHaar + class CV_EXPORTS FeatureHaar { public: @@ -290,12 +288,12 @@ Mat sum; /* sum images (each row represents image) */ }; -struct CvHOGFeatureParams : public CvFeatureParams +struct CV_EXPORTS CvHOGFeatureParams : public CvFeatureParams { CvHOGFeatureParams(); }; -class CvHOGEvaluator : public CvFeatureEvaluator +class CV_EXPORTS CvHOGEvaluator : public CvFeatureEvaluator { public: virtual ~CvHOGEvaluator() @@ -356,13 +354,13 @@ return res; } -struct CvLBPFeatureParams : CvFeatureParams +struct CV_EXPORTS CvLBPFeatureParams : CvFeatureParams { CvLBPFeatureParams(); }; -class CvLBPEvaluator : public CvFeatureEvaluator +class CV_EXPORTS CvLBPEvaluator : public CvFeatureEvaluator { public: virtual ~CvLBPEvaluator() CV_OVERRIDE diff -ruN opencv_contrib-4.1.1/modules/tracking/include/opencv2/tracking/onlineBoosting.hpp opencv_contrib-4.1.1-patch/modules/tracking/include/opencv2/tracking/onlineBoosting.hpp --- opencv_contrib-4.1.1/modules/tracking/include/opencv2/tracking/onlineBoosting.hpp 2019-07-22 02:59:59.000000000 +0900 +++ opencv_contrib-4.1.1-patch/modules/tracking/include/opencv2/tracking/onlineBoosting.hpp 2019-07-31 11:51:59.385483910 +0900 @@ -59,7 +59,7 @@ class ClassifierThreshold; class Detector; -class StrongClassifierDirectSelection +class CV_EXPORTS StrongClassifierDirectSelection { public: @@ -106,7 +106,7 @@ int swappedClassifier; }; -class BaseClassifier +class CV_EXPORTS BaseClassifier { public: @@ -148,7 +148,7 @@ }; -class EstimatedGaussDistribution +class CV_EXPORTS EstimatedGaussDistribution { public: @@ -170,7 +170,7 @@ float m_R_sigma; }; -class WeakClassifierHaarFeature +class CV_EXPORTS WeakClassifierHaarFeature { public: @@ -192,7 +192,7 @@ }; -class Detector +class CV_EXPORTS Detector { public: @@ -260,7 +260,7 @@ cv::Mat_ m_confImageDisplay; }; -class ClassifierThreshold +class CV_EXPORTS ClassifierThreshold { public: diff -ruN opencv_contrib-4.1.1/modules/tracking/include/opencv2/tracking/onlineMIL.hpp opencv_contrib-4.1.1-patch/modules/tracking/include/opencv2/tracking/onlineMIL.hpp --- opencv_contrib-4.1.1/modules/tracking/include/opencv2/tracking/onlineMIL.hpp 2019-07-22 02:59:59.000000000 +0900 +++ opencv_contrib-4.1.1-patch/modules/tracking/include/opencv2/tracking/onlineMIL.hpp 2019-07-31 11:51:59.385483910 +0900 @@ -87,7 +87,7 @@ }; -class ClfOnlineStump +class CV_EXPORTS ClfOnlineStump { public: float _mu0, _mu1, _sig0, _sig1; diff -ruN opencv_contrib-4.1.1/modules/tracking/include/opencv2/tracking/tracker.hpp opencv_contrib-4.1.1-patch/modules/tracking/include/opencv2/tracking/tracker.hpp --- opencv_contrib-4.1.1/modules/tracking/include/opencv2/tracking/tracker.hpp 2019-07-22 02:59:59.000000000 +0900 +++ opencv_contrib-4.1.1-patch/modules/tracking/include/opencv2/tracking/tracker.hpp 2019-07-31 11:51:59.386483917 +0900 @@ -176,7 +176,7 @@ /** @overload @param feature The TrackerFeature class */ - bool addTrackerFeature( Ptr& feature ); + bool addTrackerFeature( Ptr feature ); /** @brief Get the TrackerFeature collection (TrackerFeature name, TrackerFeature pointer) */ @@ -309,7 +309,7 @@ /** @overload @param sampler The TrackerSamplerAlgorithm */ - bool addTrackerSamplerAlgorithm( Ptr& sampler ); + bool addTrackerSamplerAlgorithm( Ptr sampler ); private: std::vector > > samplers; @@ -573,7 +573,7 @@ /** * Implementation of the target state for TrackerStateEstimatorMILBoosting */ - class TrackerMILTargetState : public TrackerTargetState + class CV_EXPORTS TrackerMILTargetState : public TrackerTargetState { public: @@ -648,7 +648,7 @@ public: /** @brief Implementation of the target state for TrackerAdaBoostingTargetState */ - class TrackerAdaBoostingTargetState : public TrackerTargetState + class CV_EXPORTS TrackerAdaBoostingTargetState : public TrackerTargetState { public: diff -ruN opencv_contrib-4.1.1/modules/tracking/src/onlineMIL.cpp opencv_contrib-4.1.1-patch/modules/tracking/src/onlineMIL.cpp --- opencv_contrib-4.1.1/modules/tracking/src/onlineMIL.cpp 2019-07-22 02:59:59.000000000 +0900 +++ opencv_contrib-4.1.1-patch/modules/tracking/src/onlineMIL.cpp 2019-07-31 11:51:59.386483917 +0900 @@ -364,7 +364,7 @@ return float( log_p1 - log_p0 ); } -inline std::vector ClfOnlineStump::classifySetF( const Mat& x ) +CV_EXPORTS std::vector ClfOnlineStump::classifySetF( const Mat& x ) { std::vector res( x.rows ); diff -ruN opencv_contrib-4.1.1/modules/tracking/src/trackerFeatureSet.cpp opencv_contrib-4.1.1-patch/modules/tracking/src/trackerFeatureSet.cpp --- opencv_contrib-4.1.1/modules/tracking/src/trackerFeatureSet.cpp 2019-07-22 02:59:59.000000000 +0900 +++ opencv_contrib-4.1.1-patch/modules/tracking/src/trackerFeatureSet.cpp 2019-07-31 11:51:59.386483917 +0900 @@ -111,7 +111,7 @@ return true; } -bool TrackerFeatureSet::addTrackerFeature( Ptr& feature ) +bool TrackerFeatureSet::addTrackerFeature( Ptr feature ) { if( blockAddTrackerFeature ) { diff -ruN opencv_contrib-4.1.1/modules/tracking/src/trackerSampler.cpp opencv_contrib-4.1.1-patch/modules/tracking/src/trackerSampler.cpp --- opencv_contrib-4.1.1/modules/tracking/src/trackerSampler.cpp 2019-07-22 02:59:59.000000000 +0900 +++ opencv_contrib-4.1.1-patch/modules/tracking/src/trackerSampler.cpp 2019-07-31 11:51:59.386483917 +0900 @@ -106,7 +106,7 @@ return true; } -bool TrackerSampler::addTrackerSamplerAlgorithm( Ptr& sampler ) +bool TrackerSampler::addTrackerSamplerAlgorithm( Ptr sampler ) { if( blockAddTrackerSampler ) {