MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Public Types | Public Member Functions | Protected Attributes
mds::lbp::CLBPExtractor< I, Type, Mapping > Class Template Reference

LBP extractor class that extracts LBP codes from an image region and makes histogram of them. More...

#include <mdsExtractor.h>

Inheritance diagram for mds::lbp::CLBPExtractor< I, Type, Mapping >:
Inheritance graph
[legend]

List of all members.

Public Types

enum  
 Check that V is a feature vector type. More...
typedef
mds::img::CFeatureExtractor
< CNormLBPHistogram< Mapping
< Type >::Size > > 
tBase
 Base types.
typedef CCodeExtractor< I, Type > tCodeExtractor
 LBP code extractor.
typedef tBase::tFeature tFeature
 Type representing single feature.
typedef CLBPHistogram< Mapping
< Type >::Size > 
tHistogram
 Histogram of extracted LBP codes.
typedef tCodeExtractor::tImage tImage
 Image type.
typedef Mapping< Type > tMapping
 Mapping type.
typedef tBase::tVector tVector
 Feature vector.

Public Member Functions

void accumulate (tSize x, tSize y)
 Extracts and acumulates LBP code at a given pixel position.
void accumulate (const CLBPExtractor &Extractor)
 Acumulates LBP codes from a given feature extractor.
void accumulate (tImage *pImage)
 Extracts and acumulates LBP codes from a given image.
 CLBPExtractor ()
 Default constructor.
 CLBPExtractor (const CLBPExtractor &Extractor)
 Copy constructor.
void clear ()
 Clears all internal statistics.
void evaluate (tVector &Vector)
 Evaluates feature vector (normalized LBP histogram) according to the acumulated LBP codes.
tHistogramgetHistogram ()
 Returns reference to the current histogram of LBP codes.
const tHistogramgetHistogram () const
CLBPExtractoroperator= (const CLBPExtractor &Extractor)
 Assignement operator.
CLBPExtractorsetImage (tImage *pImage)
 Sets the input image.
 ~CLBPExtractor ()
 Destructor.

Protected Attributes

tCodeExtractor m_CodeExt
 LBP extractor.
tHistogram m_Hist
 Histogram of previously extracted LBP codes.

Detailed Description

template<class I, ECodeType Type, template< ECodeType > class Mapping = CUniformRotMin>
class mds::lbp::CLBPExtractor< I, Type, Mapping >

LBP extractor class that extracts LBP codes from an image region and makes histogram of them.


Member Typedef Documentation

template<class I , ECodeType Type, template< ECodeType > class Mapping = CUniformRotMin>
typedef mds::img::CFeatureExtractor<CNormLBPHistogram<Mapping<Type>::Size> > mds::lbp::CLBPExtractor< I, Type, Mapping >::tBase

Base types.

template<class I , ECodeType Type, template< ECodeType > class Mapping = CUniformRotMin>
typedef CCodeExtractor<I,Type> mds::lbp::CLBPExtractor< I, Type, Mapping >::tCodeExtractor

LBP code extractor.

template<class I , ECodeType Type, template< ECodeType > class Mapping = CUniformRotMin>
typedef tBase::tFeature mds::lbp::CLBPExtractor< I, Type, Mapping >::tFeature

Type representing single feature.

Reimplemented from mds::img::CFeatureExtractor< CNormLBPHistogram< Mapping< Type >::Size > >.

template<class I , ECodeType Type, template< ECodeType > class Mapping = CUniformRotMin>
typedef CLBPHistogram<Mapping<Type>::Size> mds::lbp::CLBPExtractor< I, Type, Mapping >::tHistogram

Histogram of extracted LBP codes.

template<class I , ECodeType Type, template< ECodeType > class Mapping = CUniformRotMin>
typedef tCodeExtractor::tImage mds::lbp::CLBPExtractor< I, Type, Mapping >::tImage

Image type.

template<class I , ECodeType Type, template< ECodeType > class Mapping = CUniformRotMin>
typedef Mapping<Type> mds::lbp::CLBPExtractor< I, Type, Mapping >::tMapping

Mapping type.

template<class I , ECodeType Type, template< ECodeType > class Mapping = CUniformRotMin>
typedef tBase::tVector mds::lbp::CLBPExtractor< I, Type, Mapping >::tVector

Member Enumeration Documentation

anonymous enum [inherited]

Check that V is a feature vector type.

You will see name of this enum somewhere in compiler error message if the type V can't be used.


Constructor & Destructor Documentation

template<class I , ECodeType Type, template< ECodeType > class Mapping = CUniformRotMin>
mds::lbp::CLBPExtractor< I, Type, Mapping >::CLBPExtractor ( )

Default constructor.

template<class I , ECodeType Type, template< ECodeType > class Mapping>
CLBPExtractor::CLBPExtractor ( const CLBPExtractor< I, Type, Mapping > &  Extractor)

Copy constructor.

template<class I , ECodeType Type, template< ECodeType > class Mapping = CUniformRotMin>
mds::lbp::CLBPExtractor< I, Type, Mapping >::~CLBPExtractor ( )

Destructor.


Member Function Documentation

template<class I , ECodeType Type, template< ECodeType > class Mapping>
void CLBPExtractor::accumulate ( tSize  x,
tSize  y 
)

Extracts and acumulates LBP code at a given pixel position.

template<class I , ECodeType Type, template< ECodeType > class Mapping>
void CLBPExtractor::accumulate ( const CLBPExtractor< I, Type, Mapping > &  Extractor)

Acumulates LBP codes from a given feature extractor.

template<class I , ECodeType Type, template< ECodeType > class Mapping>
void CLBPExtractor::accumulate ( tImage pImage)

Extracts and acumulates LBP codes from a given image.

template<class I , ECodeType Type, template< ECodeType > class Mapping>
void CLBPExtractor::clear ( )

Clears all internal statistics.

template<class I , ECodeType Type, template< ECodeType > class Mapping>
void CLBPExtractor::evaluate ( tVector Vector)

Evaluates feature vector (normalized LBP histogram) according to the acumulated LBP codes.

template<class I , ECodeType Type, template< ECodeType > class Mapping = CUniformRotMin>
tHistogram& mds::lbp::CLBPExtractor< I, Type, Mapping >::getHistogram ( )

Returns reference to the current histogram of LBP codes.

template<class I , ECodeType Type, template< ECodeType > class Mapping = CUniformRotMin>
const tHistogram& mds::lbp::CLBPExtractor< I, Type, Mapping >::getHistogram ( ) const
template<class I , ECodeType Type, template< ECodeType > class Mapping>
CLBPExtractor< I, Type, Mapping > & CLBPExtractor::operator= ( const CLBPExtractor< I, Type, Mapping > &  Extractor)

Assignement operator.

template<class I , ECodeType Type, template< ECodeType > class Mapping = CUniformRotMin>
CLBPExtractor& mds::lbp::CLBPExtractor< I, Type, Mapping >::setImage ( tImage pImage)

Sets the input image.


Member Data Documentation

template<class I , ECodeType Type, template< ECodeType > class Mapping = CUniformRotMin>
tCodeExtractor mds::lbp::CLBPExtractor< I, Type, Mapping >::m_CodeExt [protected]

LBP extractor.

template<class I , ECodeType Type, template< ECodeType > class Mapping = CUniformRotMin>
tHistogram mds::lbp::CLBPExtractor< I, Type, Mapping >::m_Hist [protected]

Histogram of previously extracted LBP codes.


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