![]() |
MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
LBP feature vector - histogram of LBP codes extracted from an image region. More...
#include <mdsHistogram.h>

Public Types | |
| enum | { MIN_NUM_OF_POINTS = 64 } |
| Minimal number of points required to correctly evaluate the LBP histogram. More... | |
| enum | |
| Templates that require members of the CStaticVector class can use this enum to check the existence. More... | |
| enum | |
| The vector size. More... | |
| enum | |
| Templates that require members of the CFeatureVector class may use this enum to check the existence. More... | |
| typedef mds::img::CFeatureVector < unsigned, N > | tBase |
| Base class. | |
| typedef unsigned | tElement |
| Vector element type. | |
| typedef tBase::tFeature | tFeature |
| Type representing a single feature value. | |
| typedef mds::img::CFeatureVector < float, N > | tNormalized |
| Normalized histogram (sum of all values = 1). | |
| typedef Eigen::Matrix < tElement, SIZE, 1, Eigen::ColMajor > | tStorage |
| Underlying data (see the Eigen math library). | |
| typedef mds::math::CStaticVector < unsigned, Size > | tVector |
| Feature vector. | |
Public Member Functions | |
| CStaticVector & | abs () |
| Absolute value of all elements. | |
| void | addPoints (int Value=1) |
| Increases the number of points. | |
| tStorage & | asEigen () |
| Returns reference to the underlying data (see the Eigen math library). | |
| const tStorage & | asEigen () const |
| unsigned & | at (tSize i) |
| Returns reference to the element [i]. | |
| const unsigned & | at (tSize i) const |
| bool | checkState (int State) const |
| Checks the concrete state. | |
| CLBPHistogram () | |
| Default constructor. | |
| CLBPHistogram (const CLBPHistogram &Histogram) | |
| Copy constructor. | |
| CStaticVector & | fill (const unsigned &Value) |
| Sets all elements of the vector to a given value. | |
| Function | forEach (Function Func) |
| Calls a function object for every vector element. | |
| Function | forEach (Function Func) const |
| Calls a function object for every vector element. | |
| tFeature & | getFeature (tSize i) |
| Returns value of a subscripted feature. | |
| const tFeature & | getFeature (tSize i) const |
| tVector & | getImpl () |
| Returns reference to the vector implementation. | |
| const tVector & | getImpl () const |
| tSize | getNumOfFeatures () const |
| Returns size of the feature vector. | |
| int | getNumOfPoints () const |
| Returns the number of points taken into account. | |
| int | getNumOfSamples () const |
| Returns the number of samples taken into account. | |
| unsigned * | getPtr () |
| Returns pointer to the vector data. | |
| const unsigned * | getPtr () const |
| unsigned * | getPtr (tSize i) |
| Returns pointer to a given element. | |
| const unsigned * | getPtr (tSize i) const |
| tSize | getSize () const |
| Returns the vector size. | |
| int | getState () const |
| Returns the current internal state. | |
| tSize | getStride () const |
| Returns stride between two neigbouring vector elements. | |
| CFeatureVector & | incNumOfSamples (int Value) |
| Inceases the number of sampels. | |
| bool | isValid () const |
| Returns true if the feature vector is evaluated correctly. | |
| CStaticVector & | mult (const CStaticMatrix< unsigned, M, K > &Matrix, const CStaticVector< unsigned, K > &Vector) |
| Matrix vs. | |
| CStaticVector & | mult (const CStaticVector< unsigned, K > &Vector, const CStaticMatrix< unsigned, K, M > &Matrix) |
| Row vector vs. | |
| CStaticVector & | multAdd (const CStaticVector &Vector, const unsigned &Scalar) |
| Provides operation this += Vector * Scalar. | |
| void | normalize (tNormalized &Normalized) |
| Normalizes the LBP histogram so that the sum of all colums will be equal to one. | |
| CStaticVector & | ones () |
| The vector initialization method. | |
| unsigned & | operator() (tSize i) |
| Returns reference to the subscripted element [i]. | |
| const unsigned & | operator() (tSize i) const |
| CStaticVector & | operator*= (const CStaticVector &v) |
| Element wise product. | |
| CStaticVector & | operator*= (const CScalar< U > &c) |
| Multiplies all elements by scalar. | |
| CStaticVector & | operator+= (const CStaticVector &v) |
| Element wise addition. | |
| CStaticVector & | operator+= (const CScalar< U > &c) |
| Adds scalar to all elements. | |
| CStaticVector & | operator-= (const CStaticVector &v) |
| Element wise subtraction. | |
| CStaticVector & | operator-= (const CScalar< U > &c) |
| Subtracts scalar from all elements. | |
| CStaticVector & | operator/= (const CStaticVector &v) |
| Element wise addition. | |
| CStaticVector & | operator/= (const CScalar< U > &c) |
| Divides all elements by scalar. | |
| CLBPHistogram & | operator= (const CLBPHistogram &Histogram) |
| Assignment operator. | |
| tVector & | set (tSize i, const tElement &Value) |
| Sets the vector element at the position [i]. | |
| CStaticVector & | set (tSize i, const unsigned &Value) |
| Sets the vector element at the position [i]. | |
| CFeatureVector & | setFeature (tSize i, const tFeature &Value) |
| Sets value of the i-th feature. | |
| CLBPHistogram & | setNumOfPoints (int iValue) |
| Sets the number of pixels. | |
| CFeatureVector & | setNumOfSamples (int Value) |
| Sets the number of samples. | |
| CFeatureVector & | setState (int State) |
| Sets the internal state. | |
| tSize | size () const |
| Returns the vector size. | |
| CStaticVector & | zeros () |
| The vector initialization method. | |
| ~CLBPHistogram () | |
| Destructor. | |
Protected Attributes | |
| int | m_iNumOfPoints |
| Total number of image pixels. | |
| int | m_NumOfSamples |
| Total number of samples counted. | |
| int | m_State |
| Current internal state. | |
| tStorage | m_Vector |
| Underlying vector data (see the Eigen library). | |
LBP feature vector - histogram of LBP codes extracted from an image region.
| typedef mds::img::CFeatureVector<unsigned, N> mds::lbp::CLBPHistogram< N >::tBase |
Base class.
Reimplemented from mds::img::CFeatureVector< unsigned, N >.
typedef unsigned mds::math::CStaticVector< unsigned , M >::tElement [inherited] |
Vector element type.
Reimplemented from mds::math::CVectorBase< V >.
| typedef tBase::tFeature mds::lbp::CLBPHistogram< N >::tFeature |
Type representing a single feature value.
Reimplemented from mds::img::CFeatureVector< unsigned, N >.
| typedef mds::img::CFeatureVector<float, N> mds::lbp::CLBPHistogram< N >::tNormalized |
Normalized histogram (sum of all values = 1).
typedef Eigen::Matrix<tElement, SIZE, 1, Eigen::ColMajor> mds::math::CStaticVector< unsigned , M >::tStorage [inherited] |
Underlying data (see the Eigen math library).
typedef mds::math::CStaticVector<unsigned , Size> mds::img::CFeatureVector< unsigned , Size >::tVector [inherited] |
Feature vector.
Reimplemented from mds::math::CVectorBase< V >.
| anonymous enum |
anonymous enum [inherited] |
Templates that require members of the CStaticVector class can use this enum to check the existence.
anonymous enum [inherited] |
The vector size.
anonymous enum [inherited] |
Templates that require members of the CFeatureVector class may use this enum to check the existence.
| mds::lbp::CLBPHistogram< N >::CLBPHistogram | ( | ) |
Default constructor.
| mds::lbp::CLBPHistogram< N >::CLBPHistogram | ( | const CLBPHistogram< N > & | Histogram | ) |
Copy constructor.
| mds::lbp::CLBPHistogram< N >::~CLBPHistogram | ( | ) |
Destructor.
| CStaticVector& mds::math::CStaticVector< unsigned , M >::abs | ( | ) | [inherited] |
Absolute value of all elements.
| void mds::lbp::CLBPHistogram< N >::addPoints | ( | int | Value = 1 | ) |
Increases the number of points.
| tStorage& mds::math::CStaticVector< unsigned , M >::asEigen | ( | ) | [inherited] |
Returns reference to the underlying data (see the Eigen math library).
| const tStorage& mds::math::CStaticVector< unsigned , M >::asEigen | ( | ) | const [inherited] |
| unsigned & mds::math::CStaticVector< unsigned , M >::at | ( | tSize | i | ) | [inherited] |
Returns reference to the element [i].
Reimplemented from mds::math::CVectorBase< V >.
| const unsigned & mds::math::CStaticVector< unsigned , M >::at | ( | tSize | i | ) | const [inherited] |
Reimplemented from mds::math::CVectorBase< V >.
| bool mds::img::CFeatureVector< unsigned , Size >::checkState | ( | int | State | ) | const [inherited] |
Checks the concrete state.
| CStaticVector& mds::math::CStaticVector< unsigned , M >::fill | ( | const unsigned & | Value | ) | [inherited] |
Sets all elements of the vector to a given value.
| Function mds::math::CStaticVector< unsigned , M >::forEach | ( | Function | Func | ) | [inherited] |
Calls a function object for every vector element.
Reimplemented from mds::math::CVectorBase< V >.
| Function mds::math::CStaticVector< unsigned , M >::forEach | ( | Function | Func | ) | const [inherited] |
Calls a function object for every vector element.
Reimplemented from mds::math::CVectorBase< V >.
| tFeature& mds::img::CFeatureVector< unsigned , Size >::getFeature | ( | tSize | i | ) | [inherited] |
Returns value of a subscripted feature.
| const tFeature& mds::img::CFeatureVector< unsigned , Size >::getFeature | ( | tSize | i | ) | const [inherited] |
| tVector& mds::math::CVectorBase< V >::getImpl | ( | ) | [inherited] |
Returns reference to the vector implementation.
| const tVector& mds::math::CVectorBase< V >::getImpl | ( | ) | const [inherited] |
| tSize mds::img::CFeatureVector< unsigned , Size >::getNumOfFeatures | ( | ) | const [inherited] |
Returns size of the feature vector.
| int mds::lbp::CLBPHistogram< N >::getNumOfPoints | ( | ) | const |
Returns the number of points taken into account.
| int mds::img::CFeatureVector< unsigned , Size >::getNumOfSamples | ( | ) | const [inherited] |
Returns the number of samples taken into account.
| unsigned * mds::math::CStaticVector< unsigned , M >::getPtr | ( | ) | [inherited] |
Returns pointer to the vector data.
| const unsigned * mds::math::CStaticVector< unsigned , M >::getPtr | ( | ) | const [inherited] |
| unsigned * mds::math::CStaticVector< unsigned , M >::getPtr | ( | tSize | i | ) | [inherited] |
Returns pointer to a given element.
| const unsigned * mds::math::CStaticVector< unsigned , M >::getPtr | ( | tSize | i | ) | const [inherited] |
| tSize mds::math::CStaticVector< unsigned , M >::getSize | ( | ) | const [inherited] |
Returns the vector size.
Reimplemented from mds::math::CVectorBase< V >.
| int mds::img::CFeatureVector< unsigned , Size >::getState | ( | ) | const [inherited] |
Returns the current internal state.
| tSize mds::math::CStaticVector< unsigned , M >::getStride | ( | ) | const [inherited] |
Returns stride between two neigbouring vector elements.
Reimplemented from mds::math::CVectorBase< V >.
| CFeatureVector& mds::img::CFeatureVector< unsigned , Size >::incNumOfSamples | ( | int | Value | ) | [inherited] |
Inceases the number of sampels.
| bool mds::img::CFeatureVector< unsigned , Size >::isValid | ( | ) | const [inherited] |
Returns true if the feature vector is evaluated correctly.
| CStaticVector& mds::math::CStaticVector< unsigned , M >::mult | ( | const CStaticMatrix< unsigned , M, K > & | Matrix, |
| const CStaticVector< unsigned , K > & | Vector | ||
| ) | [inherited] |
Matrix vs.
column vector multiplication.
| CStaticVector& mds::math::CStaticVector< unsigned , M >::mult | ( | const CStaticVector< unsigned , K > & | Vector, |
| const CStaticMatrix< unsigned , K, M > & | Matrix | ||
| ) | [inherited] |
Row vector vs.
matrix multiplication.
| CStaticVector& mds::math::CStaticVector< unsigned , M >::multAdd | ( | const CStaticVector< unsigned, Size > & | Vector, |
| const unsigned & | Scalar | ||
| ) | [inherited] |
Provides operation this += Vector * Scalar.
| void CLBPHistogram::normalize | ( | tNormalized & | Normalized | ) |
Normalizes the LBP histogram so that the sum of all colums will be equal to one.
| CStaticVector& mds::math::CStaticVector< unsigned , M >::ones | ( | ) | [inherited] |
The vector initialization method.
| unsigned & mds::math::CStaticVector< unsigned , M >::operator() | ( | tSize | i | ) | [inherited] |
Returns reference to the subscripted element [i].
Reimplemented from mds::math::CVectorBase< V >.
| const unsigned & mds::math::CStaticVector< unsigned , M >::operator() | ( | tSize | i | ) | const [inherited] |
Reimplemented from mds::math::CVectorBase< V >.
| CStaticVector& mds::math::CStaticVector< unsigned , M >::operator*= | ( | const CStaticVector< unsigned, Size > & | v | ) | [inherited] |
Element wise product.
| CStaticVector& mds::math::CStaticVector< unsigned , M >::operator*= | ( | const CScalar< U > & | c | ) | [inherited] |
Multiplies all elements by scalar.
| CStaticVector& mds::math::CStaticVector< unsigned , M >::operator+= | ( | const CStaticVector< unsigned, Size > & | v | ) | [inherited] |
Element wise addition.
| CStaticVector& mds::math::CStaticVector< unsigned , M >::operator+= | ( | const CScalar< U > & | c | ) | [inherited] |
Adds scalar to all elements.
| CStaticVector& mds::math::CStaticVector< unsigned , M >::operator-= | ( | const CStaticVector< unsigned, Size > & | v | ) | [inherited] |
Element wise subtraction.
| CStaticVector& mds::math::CStaticVector< unsigned , M >::operator-= | ( | const CScalar< U > & | c | ) | [inherited] |
Subtracts scalar from all elements.
| CStaticVector& mds::math::CStaticVector< unsigned , M >::operator/= | ( | const CStaticVector< unsigned, Size > & | v | ) | [inherited] |
Element wise addition.
| CStaticVector& mds::math::CStaticVector< unsigned , M >::operator/= | ( | const CScalar< U > & | c | ) | [inherited] |
Divides all elements by scalar.
| CLBPHistogram< N > & CLBPHistogram::operator= | ( | const CLBPHistogram< N > & | Histogram | ) |
Assignment operator.
| tVector& mds::math::CVectorBase< V >::set | ( | tSize | i, |
| const tElement & | Value | ||
| ) | [inherited] |
Sets the vector element at the position [i].
| CStaticVector& mds::math::CStaticVector< unsigned , M >::set | ( | tSize | i, |
| const unsigned & | Value | ||
| ) | [inherited] |
Sets the vector element at the position [i].
| CFeatureVector& mds::img::CFeatureVector< unsigned , Size >::setFeature | ( | tSize | i, |
| const tFeature & | Value | ||
| ) | [inherited] |
Sets value of the i-th feature.
| CLBPHistogram& mds::lbp::CLBPHistogram< N >::setNumOfPoints | ( | int | iValue | ) |
Sets the number of pixels.
| CFeatureVector& mds::img::CFeatureVector< unsigned , Size >::setNumOfSamples | ( | int | Value | ) | [inherited] |
Sets the number of samples.
| CFeatureVector& mds::img::CFeatureVector< unsigned , Size >::setState | ( | int | State | ) | [inherited] |
Sets the internal state.
| tSize mds::math::CStaticVector< unsigned , M >::size | ( | ) | const [inherited] |
Returns the vector size.
Reimplemented from mds::math::CVectorBase< V >.
| CStaticVector& mds::math::CStaticVector< unsigned , M >::zeros | ( | ) | [inherited] |
The vector initialization method.
int mds::lbp::CLBPHistogram< N >::m_iNumOfPoints [protected] |
Total number of image pixels.
int mds::img::CFeatureVector< unsigned , Size >::m_NumOfSamples [protected, inherited] |
Total number of samples counted.
int mds::img::CFeatureVector< unsigned , Size >::m_State [protected, inherited] |
Current internal state.
tStorage mds::math::CStaticVector< unsigned , M >::m_Vector [protected, inherited] |
Underlying vector data (see the Eigen library).
1.7.6.1