Direct Graphical Models  v.1.7.0
DirectGraphicalModels::fex::CScale Class Reference

Scale feature extraction class. More...

#include <Scale.h>

Inheritance diagram for DirectGraphicalModels::fex::CScale:
Collaboration diagram for DirectGraphicalModels::fex::CScale:

Public Member Functions

 CScale (const Mat &img)
 Constructor. More...
 
virtual ~CScale (void)
 
virtual Mat get (void) const
 Extracts and returns the required feature. More...
 
- Public Member Functions inherited from DirectGraphicalModels::fex::ILocalFeatureExtractor
 ILocalFeatureExtractor (const Mat &img)
 Constructor. More...
 
virtual ~ILocalFeatureExtractor (void)
 
- Public Member Functions inherited from DirectGraphicalModels::fex::IFeatureExtractor
 IFeatureExtractor (const Mat &img)
 Constructor. More...
 
virtual ~IFeatureExtractor (void)
 

Static Public Member Functions

static Mat get (const Mat &img, SqNeighbourhood nbhd=sqNeighbourhood(5))
 Extracts the scale feature. More...
 

Additional Inherited Members

- Protected Attributes inherited from DirectGraphicalModels::fex::IFeatureExtractor
const Mat m_img
 Container for the image, from which the features are to be extracted. More...
 

Detailed Description

Scale feature extraction class.

This class allow for multi-scale feature extraction.

Author
Sergey G. Kosov, serge.nosp@m.y.ko.nosp@m.sov@p.nosp@m.roje.nosp@m.ct-10.nosp@m..de

Definition at line 16 of file Scale.h.

Constructor & Destructor Documentation

◆ CScale()

DirectGraphicalModels::fex::CScale::CScale ( const Mat &  img)
inline

Constructor.

Parameters
imgInput image of type CV_8UC1 or CV_8UC3.

Definition at line 23 of file Scale.h.

◆ ~CScale()

virtual DirectGraphicalModels::fex::CScale::~CScale ( void  )
inlinevirtual

Definition at line 24 of file Scale.h.

Member Function Documentation

◆ get() [1/2]

virtual Mat DirectGraphicalModels::fex::CScale::get ( void  ) const
inlinevirtual

Extracts and returns the required feature.

Returns
The feature image.

Implements DirectGraphicalModels::fex::ILocalFeatureExtractor.

Definition at line 26 of file Scale.h.

Here is the caller graph for this function:

◆ get() [2/2]

Mat DirectGraphicalModels::fex::CScale::get ( const Mat &  img,
SqNeighbourhood  nbhd = sqNeighbourhood(5) 
)
static

Extracts the scale feature.

For each pixel of the source image this function calculates the mean value within the pixel's neighbourhood nbhd. Using different neighbourhood radii, it alows for different scale representations of the features.

Parameters
imgInput image of type CV_8Uxx with arbitrary number of channels.
nbhdNeighborhood around the pixel, where the mean is estimated. (Ref. SqNeighbourhood).
Returns
The scale feature image of the same type as input image.

Definition at line 5 of file Scale.cpp.


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