mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
core: apply CV_OVERRIDE/CV_FINAL
This commit is contained in:
@@ -140,7 +140,7 @@ multiple lines in three dimensions as not all lines intersect in three dimension
|
||||
namespace cv
|
||||
{
|
||||
|
||||
class DownhillSolverImpl : public DownhillSolver
|
||||
class DownhillSolverImpl CV_FINAL : public DownhillSolver
|
||||
{
|
||||
public:
|
||||
DownhillSolverImpl()
|
||||
@@ -149,8 +149,8 @@ public:
|
||||
_step=Mat_<double>();
|
||||
}
|
||||
|
||||
void getInitStep(OutputArray step) const { _step.copyTo(step); }
|
||||
void setInitStep(InputArray step)
|
||||
void getInitStep(OutputArray step) const CV_OVERRIDE { _step.copyTo(step); }
|
||||
void setInitStep(InputArray step) CV_OVERRIDE
|
||||
{
|
||||
// set dimensionality and make a deep copy of step
|
||||
Mat m = step.getMat();
|
||||
@@ -161,13 +161,13 @@ public:
|
||||
transpose(m, _step);
|
||||
}
|
||||
|
||||
Ptr<MinProblemSolver::Function> getFunction() const { return _Function; }
|
||||
Ptr<MinProblemSolver::Function> getFunction() const CV_OVERRIDE { return _Function; }
|
||||
|
||||
void setFunction(const Ptr<Function>& f) { _Function=f; }
|
||||
void setFunction(const Ptr<Function>& f) CV_OVERRIDE { _Function=f; }
|
||||
|
||||
TermCriteria getTermCriteria() const { return _termcrit; }
|
||||
TermCriteria getTermCriteria() const CV_OVERRIDE { return _termcrit; }
|
||||
|
||||
void setTermCriteria( const TermCriteria& termcrit )
|
||||
void setTermCriteria( const TermCriteria& termcrit ) CV_OVERRIDE
|
||||
{
|
||||
CV_Assert( termcrit.type == (TermCriteria::MAX_ITER + TermCriteria::EPS) &&
|
||||
termcrit.epsilon > 0 &&
|
||||
@@ -175,7 +175,7 @@ public:
|
||||
_termcrit=termcrit;
|
||||
}
|
||||
|
||||
double minimize( InputOutputArray x_ )
|
||||
double minimize( InputOutputArray x_ ) CV_OVERRIDE
|
||||
{
|
||||
dprintf(("hi from minimize\n"));
|
||||
CV_Assert( !_Function.empty() );
|
||||
|
||||
Reference in New Issue
Block a user