MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Uniform LBP mapping - a LBP code is mapped to an index, if it contains at most two 1->0 or 0->1 transitions. More...
#include <mdsMapping.h>
Public Types | |
enum | |
Number of distinct values produced by the mapping. More... | |
typedef CMappingBase< Type, Uniform > | tBase |
typedef tBase::tCode | tCode |
Type representing the LBP code. | |
typedef tBase::tIndex | tIndex |
Type representing the output index. | |
Public Member Functions | |
CUniform () | |
Default constructor. | |
tIndex | map (tCode Value) |
Returns the index the particular LBP code should be mapped to. | |
Static Public Member Functions | |
static tIndex | getDummyValue () |
Returns the dummy value which doesn't occur normally. | |
static tIndex | getSize () |
Returns the number of distinct values the mapping can produce. | |
Protected Member Functions | |
void | initMapping () |
Initalizes the mapping table. | |
Protected Attributes | |
mds::math::CVector< tIndex > | m_Map |
Lookup table. |
Uniform LBP mapping - a LBP code is mapped to an index, if it contains at most two 1->0 or 0->1 transitions.
Otherwise, it is mapped to a dummy value which doesn't occur normally.
typedef CMappingBase<Type, Uniform> mds::lbp::CUniform< Type >::tBase |
typedef tBase::tCode mds::lbp::CUniform< Type >::tCode |
Type representing the LBP code.
Reimplemented from mds::lbp::CMappingBase< Type, Uniform >.
typedef tBase::tIndex mds::lbp::CUniform< Type >::tIndex |
Type representing the output index.
Reimplemented from mds::lbp::CMappingBase< Type, Uniform >.
anonymous enum [inherited] |
Number of distinct values produced by the mapping.
mds::lbp::CUniform< Type >::CUniform | ( | ) |
Default constructor.
static tIndex mds::lbp::CUniform< Type >::getDummyValue | ( | ) | [static] |
Returns the dummy value which doesn't occur normally.
static tIndex mds::lbp::CUniform< Type >::getSize | ( | ) | [static] |
Returns the number of distinct values the mapping can produce.
This is useful in determining the length of the resulting feature vector when the mapping is in use.
void CUniform::initMapping | ( | ) | [protected] |
Initalizes the mapping table.
tIndex mds::lbp::CUniform< Type >::map | ( | tCode | Value | ) |
Returns the index the particular LBP code should be mapped to.
mds::math::CVector<tIndex> mds::lbp::CUniform< Type >::m_Map [protected] |
Lookup table.