OpenCV
4.0.0
Open Source Computer Vision
|
Modality that computes quantized gradient orientations from a color image. More...
#include "linemod.hpp"
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 String | name () const CV_OVERRIDE |
virtual void | read (const FileNode &fn) CV_OVERRIDE |
virtual void | write (FileStorage &fs) const CV_OVERRIDE |
Public Member Functions inherited from cv::linemod::Modality | |
virtual | ~Modality () |
Ptr< QuantizedPyramid > | process (const Mat &src, const Mat &mask=Mat()) const |
Form a quantized image pyramid from a source image. More... | |
Public Attributes | |
size_t | num_features |
float | strong_threshold |
float | weak_threshold |
Protected Member Functions | |
virtual Ptr< QuantizedPyramid > | processImpl (const Mat &src, const Mat &mask) const CV_OVERRIDE |
Additional Inherited Members | |
Static Public Member Functions inherited from cv::linemod::Modality | |
static Ptr< Modality > | create (const String &modality_type) |
Create modality by name. More... | |
static Ptr< Modality > | create (const FileNode &fn) |
Load a modality from file. More... | |
Modality that computes quantized gradient orientations from a color image.
cv::linemod::ColorGradient::ColorGradient | ( | ) |
Default constructor. Uses reasonable default parameter values.
cv::linemod::ColorGradient::ColorGradient | ( | float | weak_threshold, |
size_t | num_features, | ||
float | strong_threshold | ||
) |
Constructor.
weak_threshold | When quantizing, discard gradients with magnitude less than this. |
num_features | How many features a template must contain. |
strong_threshold | Consider as candidate features only gradients whose norms are larger than this. |
|
virtual |
Implements cv::linemod::Modality.
|
protectedvirtual |
Implements cv::linemod::Modality.
|
virtual |
Implements cv::linemod::Modality.
|
virtual |
Implements cv::linemod::Modality.
size_t cv::linemod::ColorGradient::num_features |
float cv::linemod::ColorGradient::strong_threshold |
float cv::linemod::ColorGradient::weak_threshold |