OpenCV  2.4.13
Open Source Computer Vision
cv::linemod::Modality Class Referenceabstract

Interface for modalities that plug into the LINE template matching representation. More...

#include <objdetect.hpp>

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

Public Member Functions

virtual ~Modality ()
 
Ptr< QuantizedPyramidprocess (const Mat &src, const Mat &mask=Mat()) const
 Form a quantized image pyramid from a source image. More...
 
virtual std::string name () const =0
 
virtual void read (const FileNode &fn)=0
 
virtual void write (FileStorage &fs) const =0
 

Static Public Member Functions

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...
 

Protected Member Functions

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

Detailed Description

Interface for modalities that plug into the LINE template matching representation.

Todo:
Max response, to allow optimization of summing (255/MAX) features as uint8

Constructor & Destructor Documentation

virtual cv::linemod::Modality::~Modality ( )
inlinevirtual

Member Function Documentation

static Ptr<Modality> cv::linemod::Modality::create ( const std::string &  modality_type)
static

Create modality by name.

The following modality types are supported:

  • "ColorGradient"
  • "DepthNormal"
static Ptr<Modality> cv::linemod::Modality::create ( const FileNode fn)
static

Load a modality from file.

virtual std::string cv::linemod::Modality::name ( ) const
pure virtual
Ptr<QuantizedPyramid> cv::linemod::Modality::process ( const Mat src,
const Mat mask = Mat() 
) const
inline

Form a quantized image pyramid from a source image.

Parameters
[in]srcThe source image. Type depends on the modality.
[in]maskOptional mask. If not empty, unmasked pixels are set to zero in quantized image and cannot be extracted as features.
virtual Ptr<QuantizedPyramid> cv::linemod::Modality::processImpl ( const Mat src,
const Mat mask 
) const
protectedpure virtual
virtual void cv::linemod::Modality::read ( const FileNode fn)
pure virtual
virtual void cv::linemod::Modality::write ( FileStorage fs) const
pure virtual

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