Modality that computes quantized surface normals from a dense depth map. More...
#include <objdetect.hpp>
Inherits cv::linemod::Modality.
Public Member Functions | |
| DepthNormal () | |
| Default constructor. Uses reasonable default parameter values. | |
| DepthNormal (int distance_threshold, int difference_threshold, size_t num_features, int extract_threshold) | |
| Constructor. | |
| virtual std::string | name () const |
| virtual void | read (const FileNode &fn) |
| virtual void | write (FileStorage &fs) const |
| Ptr< QuantizedPyramid > | process (const Mat &src, const Mat &mask=Mat()) const |
| Form a quantized image pyramid from a source image. | |
Static Public Member Functions | |
| static Ptr< Modality > | create (const std::string &modality_type) |
| Create modality by name. | |
| static Ptr< Modality > | create (const FileNode &fn) |
| Load a modality from file. | |
Public Attributes | |
| int | distance_threshold |
| int | difference_threshold |
| size_t | num_features |
| int | extract_threshold |
Protected Member Functions | |
| virtual Ptr< QuantizedPyramid > | processImpl (const Mat &src, const Mat &mask) const |
Modality that computes quantized surface normals from a dense depth map.
Default constructor. Uses reasonable default parameter values.
| cv::linemod::DepthNormal::DepthNormal | ( | int | distance_threshold, |
| int | difference_threshold, | ||
| size_t | num_features, | ||
| int | extract_threshold | ||
| ) |
Constructor.
| distance_threshold | Ignore pixels beyond this distance. |
| difference_threshold | When computing normals, ignore contributions of pixels whose depth difference with the central pixel is above this threshold. |
| num_features | How many features a template must contain. |
| extract_threshold | Consider as candidate feature only if there are no differing orientations within a distance of extract_threshold. |
| virtual std::string cv::linemod::DepthNormal::name | ( | ) | const [virtual] |
Implements cv::linemod::Modality.
| virtual void cv::linemod::DepthNormal::read | ( | const FileNode & | fn | ) | [virtual] |
Implements cv::linemod::Modality.
| virtual void cv::linemod::DepthNormal::write | ( | FileStorage & | fs | ) | const [virtual] |
Implements cv::linemod::Modality.
| virtual Ptr<QuantizedPyramid> cv::linemod::DepthNormal::processImpl | ( | const Mat & | src, |
| const Mat & | mask | ||
| ) | const [protected, virtual] |
Implements cv::linemod::Modality.
| Ptr<QuantizedPyramid> cv::linemod::Modality::process | ( | const Mat & | src, |
| const Mat & | mask = Mat() |
||
| ) | const [inherited] |
Form a quantized image pyramid from a source image.
| [in] | src | The source image. Type depends on the modality. |
| [in] | mask | Optional mask. If not empty, unmasked pixels are set to zero in quantized image and cannot be extracted as features. |
| static Ptr<Modality> cv::linemod::Modality::create | ( | const std::string & | modality_type | ) | [static, inherited] |
Create modality by name.
The following modality types are supported:
| static Ptr<Modality> cv::linemod::Modality::create | ( | const FileNode & | fn | ) | [static, inherited] |
Load a modality from file.