Direct Graphical Models
v.1.7.0
Variance.h
1
// Variance feature extraction class interface
2
// Written by Sergey G. Kosov in 2015 for Project X
3
#pragma once
4
5
#include "ILocalFeatureExtractor.h"
6
#include "SquareNeighborhood.h"
7
8
namespace
DirectGraphicalModels
{
namespace
fex
9
{
10
// ================================ HOG Class ==============================
15
class
CVariance
:
public
ILocalFeatureExtractor
16
{
17
public
:
22
DllExport
CVariance
(
const
Mat &img) :
ILocalFeatureExtractor
(img) {}
23
DllExport
virtual
~CVariance
(
void
) {}
24
25
DllExport
virtual
Mat
get
(void)
const
{
return
get
(
m_img
); }
26
34
DllExport
static
Mat
get
(
const
Mat &img,
SqNeighbourhood
nbhd =
sqNeighbourhood
(5));
35
};
36
} }
DirectGraphicalModels::fex::CVariance
Variance feature extraction class.
Definition:
Variance.h:15
DirectGraphicalModels
Definition:
AveragePrecision.cpp:4
DirectGraphicalModels::fex::CVariance::~CVariance
virtual ~CVariance(void)
Definition:
Variance.h:23
DirectGraphicalModels::fex::sqNeighbourhood
SqNeighbourhood sqNeighbourhood(int leftGap, int rightGap, int upperGap, int lowerGap)
Initializes the square neighborhood structure.
Definition:
SquareNeighborhood.h:42
DirectGraphicalModels::fex::SqNeighbourhood
Square neighborhood structure.
Definition:
SquareNeighborhood.h:15
DirectGraphicalModels::fex::CVariance::CVariance
CVariance(const Mat &img)
Constructor.
Definition:
Variance.h:22
DirectGraphicalModels::fex::ILocalFeatureExtractor
Interface class for local feature extraction algorithms.
Definition:
ILocalFeatureExtractor.h:16
DirectGraphicalModels::fex::IFeatureExtractor::m_img
const Mat m_img
Container for the image, from which the features are to be extracted.
Definition:
IFeatureExtractor.h:27
modules
FEX
Variance.h
Generated on Thu Feb 21 2019 13:31:15 for Direct Graphical Models by
1.8.14