OpenCV  2.4.13.6
Open Source Computer Vision
cv::linemod::ColorGradient Class Reference

Modality that computes quantized gradient orientations from a color image. More...

#include <objdetect.hpp>

Inheritance diagram for cv::linemod::ColorGradient:
cv::linemod::Modality

Public Member Functions

 ColorGradient ()
 Default constructor. Uses reasonable default parameter values. More...
 
 ColorGradient (float weak_threshold, size_t num_features, float strong_threshold)
 Constructor. More...
 
virtual std::string name () const
 
virtual void read (const FileNode &fn)
 
virtual void write (FileStorage &fs) const
 
- Public Member Functions inherited from cv::linemod::Modality
virtual ~Modality ()
 
Ptr< QuantizedPyramidprocess (const Mat &src, const Mat &mask=Mat()) const
 Form a quantized image pyramid from a source image. More...
 

Public Attributes

float weak_threshold
 
size_t num_features
 
float strong_threshold
 

Protected Member Functions

virtual Ptr< QuantizedPyramidprocessImpl (const Mat &src, const Mat &mask) const
 

Additional Inherited Members

- Static Public Member Functions inherited from cv::linemod::Modality
static Ptr< Modalitycreate (const std::string &modality_type)
 Create modality by name. More...
 
static Ptr< Modalitycreate (const FileNode &fn)
 Load a modality from file. More...
 

Detailed Description

Modality that computes quantized gradient orientations from a color image.

Constructor & Destructor Documentation

§ ColorGradient() [1/2]

cv::linemod::ColorGradient::ColorGradient ( )

Default constructor. Uses reasonable default parameter values.

§ ColorGradient() [2/2]

cv::linemod::ColorGradient::ColorGradient ( float  weak_threshold,
size_t  num_features,
float  strong_threshold 
)

Constructor.

Parameters
weak_thresholdWhen quantizing, discard gradients with magnitude less than this.
num_featuresHow many features a template must contain.
strong_thresholdConsider as candidate features only gradients whose norms are larger than this.

Member Function Documentation

§ name()

virtual std::string cv::linemod::ColorGradient::name ( ) const
virtual

Implements cv::linemod::Modality.

§ processImpl()

virtual Ptr<QuantizedPyramid> cv::linemod::ColorGradient::processImpl ( const Mat src,
const Mat mask 
) const
protectedvirtual

Implements cv::linemod::Modality.

§ read()

virtual void cv::linemod::ColorGradient::read ( const FileNode fn)
virtual

Implements cv::linemod::Modality.

§ write()

virtual void cv::linemod::ColorGradient::write ( FileStorage fs) const
virtual

Implements cv::linemod::Modality.

Member Data Documentation

§ num_features

size_t cv::linemod::ColorGradient::num_features

§ strong_threshold

float cv::linemod::ColorGradient::strong_threshold

§ weak_threshold

float cv::linemod::ColorGradient::weak_threshold

The documentation for this class was generated from the following file: