class cv::MinProblemSolver::Function

Represents function being optimized.

#include <optim.hpp>

class Function
{
public:
    // methods

    virtual
    double
    calc(const double* x) const = 0;

    virtual
    int
    getDims() const = 0;

    virtual
    void
    getGradient(
        const double* x,
        double* grad
        );

    virtual
    double
    getGradientEps() const;
};