mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 19:20:28 +08:00
Fixed some warnings
This commit is contained in:
parent
dcb5464b3c
commit
23398bcb95
@ -84,7 +84,7 @@ protected:
|
||||
class CV_EXPORTS NullDeblurer : public IDeblurer
|
||||
{
|
||||
public:
|
||||
virtual void deblur(int idx, Mat &frame) {}
|
||||
virtual void deblur(int /*idx*/, Mat &/*frame*/) {}
|
||||
};
|
||||
|
||||
class CV_EXPORTS WeightingDeblurer : public IDeblurer
|
||||
|
@ -76,7 +76,7 @@ public:
|
||||
virtual void reset();
|
||||
virtual Mat nextFrame();
|
||||
|
||||
int frameCount() { return reader_.get(CV_CAP_PROP_FRAME_COUNT); }
|
||||
int frameCount() { return static_cast<int>(reader_.get(CV_CAP_PROP_FRAME_COUNT)); }
|
||||
double fps() { return reader_.get(CV_CAP_PROP_FPS); }
|
||||
|
||||
private:
|
||||
|
@ -91,7 +91,7 @@ protected:
|
||||
class CV_EXPORTS NullInpainter : public IInpainter
|
||||
{
|
||||
public:
|
||||
virtual void inpaint(int idx, Mat &frame, Mat &mask) {}
|
||||
virtual void inpaint(int /*idx*/, Mat &/*frame*/, Mat &/*mask*/) {}
|
||||
};
|
||||
|
||||
class CV_EXPORTS InpaintingPipeline : public IInpainter
|
||||
|
@ -60,7 +60,7 @@ public:
|
||||
class CV_EXPORTS NullLog : public ILog
|
||||
{
|
||||
public:
|
||||
virtual void print(const char *format, ...) {}
|
||||
virtual void print(const char */*format*/, ...) {}
|
||||
};
|
||||
|
||||
class CV_EXPORTS LogToStdout : public ILog
|
||||
|
@ -82,7 +82,7 @@ public:
|
||||
bool mustEstimateTrimRatio() const { return mustEstimateTrimRatio_; }
|
||||
|
||||
void setTrimRatio(float val) { trimRatio_ = val; reset(); }
|
||||
int trimRatio() const { return trimRatio_; }
|
||||
float trimRatio() const { return trimRatio_; }
|
||||
|
||||
void setInclusionConstraint(bool val) { inclusionConstraint_ = val; }
|
||||
bool inclusionConstraint() const { return inclusionConstraint_; }
|
||||
|
Loading…
Reference in New Issue
Block a user