class cv::Formatter

Todo document

#include <core.hpp>

class Formatter
{
public:
    // enums

    enum
    {
        FMT_DEFAULT = 0,
        FMT_MATLAB  = 1,
        FMT_CSV     = 2,
        FMT_PYTHON  = 3,
        FMT_NUMPY   = 4,
        FMT_C       = 5,
    };

    // methods

    virtual
    Ptr<Formatted>
    format(const Mat& mtx) const = 0;

    virtual
    void
    set32fPrecision(int p = 8) = 0;

    virtual
    void
    set64fPrecision(int p = 16) = 0;

    virtual
    void
    setMultiline(bool ml = true) = 0;

    static
    Ptr<Formatter>
    get(int fmt = FMT_DEFAULT);
};