OpenCV
3.0.0-rc1
Open Source Computer Vision
|
Interface for modalities that plug into the LINE template matching representation. More...
#include "linemod.hpp"
Public Member Functions | |
virtual | ~Modality () |
virtual String | name () const =0 |
Ptr< QuantizedPyramid > | process (const Mat &src, const Mat &mask=Mat()) const |
Form a quantized image pyramid from a source image. More... | |
virtual void | read (const FileNode &fn)=0 |
virtual void | write (FileStorage &fs) const =0 |
Static Public Member Functions | |
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... | |
Protected Member Functions | |
virtual Ptr< QuantizedPyramid > | processImpl (const Mat &src, const Mat &mask) const =0 |
Interface for modalities that plug into the LINE template matching representation.
|
inlinevirtual |
Create modality by name.
The following modality types are supported:
Load a modality from file.
|
pure virtual |
Implemented in cv::linemod::DepthNormal, and cv::linemod::ColorGradient.
|
inline |
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. |
|
protectedpure virtual |
Implemented in cv::linemod::DepthNormal, and cv::linemod::ColorGradient.
|
pure virtual |
Implemented in cv::linemod::DepthNormal, and cv::linemod::ColorGradient.
|
pure virtual |
Implemented in cv::linemod::DepthNormal, and cv::linemod::ColorGradient.