mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-24 20:01:12 +08:00
Fixing some compiler warnings
This commit is contained in:
@@ -116,6 +116,8 @@ private:
|
|||||||
void getSystem( OutputArray A1Out, OutputArray A2Out, OutputArray b1Out, OutputArray b2Out,
|
void getSystem( OutputArray A1Out, OutputArray A2Out, OutputArray b1Out, OutputArray b2Out,
|
||||||
const std::vector<Point2f> &features, const std::vector<Point2f> &predictedFeatures,
|
const std::vector<Point2f> &features, const std::vector<Point2f> &predictedFeatures,
|
||||||
const Size size );
|
const Size size );
|
||||||
|
|
||||||
|
OpticalFlowPCAFlow& operator=( const OpticalFlowPCAFlow& ); // make it non-assignable
|
||||||
};
|
};
|
||||||
|
|
||||||
CV_EXPORTS_W Ptr<DenseOpticalFlow> createOptFlow_PCAFlow();
|
CV_EXPORTS_W Ptr<DenseOpticalFlow> createOptFlow_PCAFlow();
|
||||||
|
|||||||
@@ -43,6 +43,17 @@
|
|||||||
#include "opencv2/ximgproc/edge_filter.hpp"
|
#include "opencv2/ximgproc/edge_filter.hpp"
|
||||||
#include "precomp.hpp"
|
#include "precomp.hpp"
|
||||||
|
|
||||||
|
/* Disable "from double to float" and "from size_t to int" warnings.
|
||||||
|
* Fixing these would make the code look ugly by introducing explicit cast all around.
|
||||||
|
* Here these warning are pointless anyway.
|
||||||
|
*/
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#pragma warning( disable : 4305 4244 4267 4838 )
|
||||||
|
#endif
|
||||||
|
#ifdef __clang__
|
||||||
|
#pragma clang diagnostic ignored "-Wshorten-64-to-32"
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace cv
|
namespace cv
|
||||||
{
|
{
|
||||||
namespace optflow
|
namespace optflow
|
||||||
|
|||||||
Reference in New Issue
Block a user