class cv::GeneralizedHough

Overview

finds arbitrary template in the grayscale image using Generalized Hough Transform Moreā€¦

#include <imgproc.hpp>

class GeneralizedHough: public cv::Algorithm
{
public:
    // methods

    virtual
    void
    detect(
        InputArray image,
        OutputArray positions,
        OutputArray votes = noArray()
        ) = 0;

    virtual
    void
    detect(
        InputArray edges,
        InputArray dx,
        InputArray dy,
        OutputArray positions,
        OutputArray votes = noArray()
        ) = 0;

    virtual
    int
    getCannyHighThresh() const = 0;

    virtual
    int
    getCannyLowThresh() const = 0;

    virtual
    double
    getDp() const = 0;

    virtual
    int
    getMaxBufferSize() const = 0;

    virtual
    double
    getMinDist() const = 0;

    virtual
    void
    setCannyHighThresh(int cannyHighThresh) = 0;

    virtual
    void
    setCannyLowThresh(int cannyLowThresh) = 0;

    virtual
    void
    setDp(double dp) = 0;

    virtual
    void
    setMaxBufferSize(int maxBufferSize) = 0;

    virtual
    void
    setMinDist(double minDist) = 0;

    virtual
    void
    setTemplate(
        InputArray templ,
        Point templCenter = Point(-1, -1)
        ) = 0;

    virtual
    void
    setTemplate(
        InputArray edges,
        InputArray dx,
        InputArray dy,
        Point templCenter = Point(-1, -1)
        ) = 0;
};

// direct descendants

class GeneralizedHoughBallard;
class GeneralizedHoughGuil;

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

finds arbitrary template in the grayscale image using Generalized Hough Transform

Methods

virtual
void
detect(
    InputArray image,
    OutputArray positions,
    OutputArray votes = noArray()
    ) = 0

find template on image

virtual
void
setCannyHighThresh(int cannyHighThresh) = 0

Canny high threshold.

virtual
void
setCannyLowThresh(int cannyLowThresh) = 0

Canny low threshold.

virtual
void
setDp(double dp) = 0

Inverse ratio of the accumulator resolution to the image resolution.

virtual
void
setMaxBufferSize(int maxBufferSize) = 0

Maximal size of inner buffers.

virtual
void
setMinDist(double minDist) = 0

Minimum distance between the centers of the detected objects.

virtual
void
setTemplate(
    InputArray templ,
    Point templCenter = Point(-1, -1)
    ) = 0

set template to search