class cv::BaseCascadeClassifier

Overview

#include <objdetect.hpp>

class BaseCascadeClassifier: public cv::Algorithm
{
public:
    // classes

    class MaskGenerator;

    // methods

    virtual
    void
    detectMultiScale(
        InputArray image,
        std::vector<Rect>& objects,
        double scaleFactor,
        int minNeighbors,
        int flags,
        Size minSize,
        Size maxSize
        ) = 0;

    virtual
    void
    detectMultiScale(
        InputArray image,
        std::vector<Rect>& objects,
        std::vector<int>& numDetections,
        double scaleFactor,
        int minNeighbors,
        int flags,
        Size minSize,
        Size maxSize
        ) = 0;

    virtual
    void
    detectMultiScale(
        InputArray image,
        std::vector<Rect>& objects,
        std::vector<int>& rejectLevels,
        std::vector<double>& levelWeights,
        double scaleFactor,
        int minNeighbors,
        int flags,
        Size minSize,
        Size maxSize,
        bool outputRejectLevels
        ) = 0;

    virtual
    bool
    empty() const = 0;

    virtual
    int
    getFeatureType() const = 0;

    virtual
    Ptr<MaskGenerator>
    getMaskGenerator() = 0;

    virtual
    void*
    getOldCascade() = 0;

    virtual
    Size
    getOriginalWindowSize() const = 0;

    virtual
    bool
    isOldFormatCascade() const = 0;

    virtual
    bool
    load(const String& filename) = 0;

    virtual
    void
    setMaskGenerator(const Ptr<MaskGenerator>& maskGenerator) = 0;
};

Inherited Members

public:
    // methods

    virtual
    void
    clear();

    virtual
    bool
    empty() const;

    virtual
    String
    getDefaultName() const;

    virtual
    void
    read(const FileNode& fn);

    virtual
    void
    save(const String& filename) const;

    virtual
    void
    write(FileStorage& fs) const;

    template <typename _Tp>
    static
    Ptr<_Tp>
    load(
        const String& filename,
        const String& objname = String()
        );

    template <typename _Tp>
    static
    Ptr<_Tp>
    loadFromString(
        const String& strModel,
        const String& objname = String()
        );

    template <typename _Tp>
    static
    Ptr<_Tp>
    read(const FileNode& fn);

protected:
    // methods

    void
    writeFormat(FileStorage& fs) const;

Detailed Documentation

Methods

virtual
bool
empty() const = 0

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.