Warning fixes continued
This commit is contained in:
@@ -73,7 +73,7 @@ private:
|
||||
int x, y;
|
||||
|
||||
DXY() : dist(0), x(0), y(0) {}
|
||||
DXY(float dist, int x, int y) : dist(dist), x(x), y(y) {}
|
||||
DXY(float _dist, int _x, int _y) : dist(_dist), x(_x), y(_y) {}
|
||||
bool operator <(const DXY &dxy) const { return dist < dxy.dist; }
|
||||
};
|
||||
|
||||
|
@@ -180,8 +180,7 @@ private:
|
||||
class CV_EXPORTS ColorInpainter : public InpainterBase
|
||||
{
|
||||
public:
|
||||
ColorInpainter(int method = INPAINT_TELEA, double radius = 2.)
|
||||
: method_(method), radius_(radius) {}
|
||||
ColorInpainter(int method = INPAINT_TELEA, double radius = 2.);
|
||||
|
||||
virtual void inpaint(int idx, Mat &frame, Mat &mask);
|
||||
|
||||
@@ -191,6 +190,9 @@ private:
|
||||
Mat invMask_;
|
||||
};
|
||||
|
||||
inline ColorInpainter::ColorInpainter(int _method, double _radius)
|
||||
: method_(_method), radius_(_radius) {}
|
||||
|
||||
CV_EXPORTS void calcFlowMask(
|
||||
const Mat &flowX, const Mat &flowY, const Mat &errors, float maxError,
|
||||
const Mat &mask0, const Mat &mask1, Mat &flowMask);
|
||||
|
@@ -70,8 +70,7 @@ struct CV_EXPORTS RansacParams
|
||||
float prob; // probability of success
|
||||
|
||||
RansacParams() : size(0), thresh(0), eps(0), prob(0) {}
|
||||
RansacParams(int size, float thresh, float eps, float prob)
|
||||
: size(size), thresh(thresh), eps(eps), prob(prob) {}
|
||||
RansacParams(int size, float thresh, float eps, float prob);
|
||||
|
||||
int niters() const
|
||||
{
|
||||
@@ -96,6 +95,9 @@ struct CV_EXPORTS RansacParams
|
||||
}
|
||||
};
|
||||
|
||||
inline RansacParams::RansacParams(int _size, float _thresh, float _eps, float _prob)
|
||||
: size(_size), thresh(_thresh), eps(_eps), prob(_prob) {}
|
||||
|
||||
|
||||
} // namespace videostab
|
||||
} // namespace cv
|
||||
|
@@ -94,7 +94,7 @@ public:
|
||||
class CV_EXPORTS GaussianMotionFilter : public MotionFilterBase
|
||||
{
|
||||
public:
|
||||
GaussianMotionFilter(int radius = 15, float stdev = -1.f) { setParams(radius, stdev); }
|
||||
GaussianMotionFilter(int radius = 15, float stdev = -1.f);
|
||||
|
||||
void setParams(int radius, float stdev = -1.f);
|
||||
int radius() const { return radius_; }
|
||||
@@ -109,6 +109,8 @@ private:
|
||||
std::vector<float> weight_;
|
||||
};
|
||||
|
||||
inline GaussianMotionFilter::GaussianMotionFilter(int _radius, float _stdev) { setParams(_radius, _stdev); }
|
||||
|
||||
class CV_EXPORTS LpMotionStabilizer : public IMotionStabilizer
|
||||
{
|
||||
public:
|
||||
|
@@ -65,7 +65,7 @@ class CV_EXPORTS StabilizerBase
|
||||
public:
|
||||
virtual ~StabilizerBase() {}
|
||||
|
||||
void setLog(Ptr<ILog> log) { log_ = log; }
|
||||
void setLog(Ptr<ILog> ilog) { log_ = ilog; }
|
||||
Ptr<ILog> log() const { return log_; }
|
||||
|
||||
void setRadius(int val) { radius_ = val; }
|
||||
|
Reference in New Issue
Block a user