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

Coordinate feature extraction class. More...

#include <Coordinate.h>

Inheritance diagram for DirectGraphicalModels::fex::CCoordinate:
Collaboration diagram for DirectGraphicalModels::fex::CCoordinate:

Public Member Functions

 CCoordinate (const Mat &img)
 Constructor. More...
 
virtual ~CCoordinate (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, coordinateType type=COORDINATE_ORDINATE)
 Extracts a coordinate 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

Coordinate feature extraction class.

This class allows extracting features, which depend only on the coordinates of the coresponding image pixels.

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 24 of file Coordinate.h.

Constructor & Destructor Documentation

◆ CCoordinate()

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

Constructor.

Parameters
imgInput image.

Definition at line 31 of file Coordinate.h.

◆ ~CCoordinate()

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

Definition at line 32 of file Coordinate.h.

Member Function Documentation

◆ get() [1/2]

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

Extracts and returns the required feature.

Returns
The feature image.

Implements DirectGraphicalModels::fex::ILocalFeatureExtractor.

Definition at line 34 of file Coordinate.h.

Here is the caller graph for this function:

◆ get() [2/2]

Mat DirectGraphicalModels::fex::CCoordinate::get ( const Mat &  img,
coordinateType  type = COORDINATE_ORDINATE 
)
static

Extracts a coordinate feature.

This function calculates the coordinate feature of image pixels, based inly on theirs coordinates.

Parameters
imgInput image.
typeType of the coordinate feature (Ref. coordinateType).
Returns
The coordinate feature image of type CV_8UC1.

Definition at line 6 of file Coordinate.cpp.


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