Structural deformable models
|
#include <MStruct.h>
Public Types | |
enum | DistrType { EMD_PCA =0, EMD_GAUSS, EMD_RECT, EMD_RECTTF } |
enum | Modes { MODE_NONE =0, MODE_NOSPAWN =2, MODE_SHOWSTATS =4 } |
Public Member Functions | |
SubStructure (const std::string &subStructName="", const std::string &supStructName="", const PropTF &transform=PropTF(0.f), int pivot=-1) | |
void | clear () |
void | analyseTF (const DMatrixf &tfmat) |
EMDistribution * | generateEMDist (const PropVec &wprop, float ppmm, bool inverse=false, dword dtype=EMD_RECT) const |
void | getLBUB (PropVec &lb, PropVec &ub, const PropVec &wprop, float ppmm, float radius=3) const |
bool | read (ParseFile &is) |
Public Attributes | |
std::string | m_SubStructName |
std::string | m_SupStructName |
PropTF | m_Transform |
int | m_Pivot |
bool | m_Polar |
PropVec | m_Mean |
PropVec | m_Stdev |
DMatrixf | m_PC |
DMatrixf | m_Sigma |
DMatrixf | m_IPC |
float | m_RateWeight |
float | m_RateTH |
dword | m_Mode |
Friends | |
std::ostream & | operator<< (std::ostream &os, const SubStructure &ss) |
Enumerator | |
---|---|
EMD_PCA | |
EMD_GAUSS | |
EMD_RECT | |
EMD_RECTTF |
enum SubStructure::Modes |
Enumerator | |
---|---|
MODE_NONE | |
MODE_NOSPAWN | |
MODE_SHOWSTATS |
SubStructure::SubStructure | ( | const std::string & | subStructName = "" , |
const std::string & | supStructName = "" , |
||
const PropTF & | transform = PropTF(0.f) , |
||
int | pivot = -1 |
||
) |
Definition at line 636 of file MStruct.cpp.
void SubStructure::analyseTF | ( | const DMatrixf & | tfmat | ) |
Definition at line 646 of file MStruct.cpp.
References StructTable::adjustByAvgDir(), DMatrix< T >::at(), dmutil::avg(), DUMP, DMatrix< T >::empty(), dmutil::expand(), DMatrix< T >::getDiag(), DMatrix< T >::getRange(), getSearchPara(), dmutil::inverse(), m_IPC, m_Mean, m_Mode, m_PC, SearcherParams::m_PCTH, m_Sigma, m_Stdev, MODE_SHOWSTATS, DMatrix< T >::mulRight(), PVEC_DIR, DMatrix< T >::resize(), DMatrix< T >::setRange(), VVector< T, D >::size(), DMatrix< T >::sizeX(), DMatrix< T >::sizeY(), dmutil::sqrt(), dmutil::stdev(), dmutil::SVD(), and DMatrix< T >::transpose().
Referenced by MStructure::buildAllStats().
void SubStructure::clear | ( | ) |
Definition at line 822 of file MStruct.cpp.
References m_Mode, m_Pivot, m_Polar, m_RateTH, m_RateWeight, m_SubStructName, m_SupStructName, m_Transform, MODE_NONE, SUBSTRUCT_RATETH, and SUBSTRUCT_RATEWEIGHT.
Referenced by read().
EMDistribution * SubStructure::generateEMDist | ( | const PropVec & | wprop, |
float | ppmm, | ||
bool | inverse = false , |
||
dword | dtype = EMD_RECT |
||
) | const |
Definition at line 711 of file MStruct.cpp.
References DMatrix< T >::at(), ExpectationMap::correctLBUB(), EMD_GAUSS, EMD_PCA, EMD_RECT, EMD_RECTTF, DMatrix< T >::empty(), fwdPropTF(), getIdentityPropTF(), getPropPos(), getSearchPara(), invPropTF(), m_IPC, m_Mean, m_PC, SearcherParams::m_ScaleStd, m_Sigma, m_Stdev, DMatrix< T >::mulLeft(), NULL, PVEC_POSX, PVEC_POSY, EMDXformer::setMean(), setPropPos(), DMatrix< T >::sizeX(), and dmutil::sqrt().
Referenced by MStructure::addExpectation(), and MStructure::showStats().
void SubStructure::getLBUB | ( | PropVec & | lb, |
PropVec & | ub, | ||
const PropVec & | wprop, | ||
float | ppmm, | ||
float | radius = 3 |
||
) | const |
Definition at line 803 of file MStruct.cpp.
References fwdPropTF(), getPropPos(), getPropScale(), m_Mean, M_PI, m_Stdev, setPropDir(), setPropPos(), and setPropScale().
Referenced by MStructure::addExpectation().
bool SubStructure::read | ( | ParseFile & | is | ) |
Definition at line 834 of file MStruct.cpp.
References clear(), ParseFile::error(), fromString(), ParseFile::getKey(), ParseFile::getNextLine(), ParseFile::getValue(), m_Mode, m_Pivot, m_RateTH, m_RateWeight, m_SubStructName, m_Transform, MODE_NOSPAWN, MODE_SHOWSTATS, and ParseFile::setParseError().
Referenced by MStructure::hasSupStruct(), and MStructure::read().
|
friend |
Definition at line 864 of file MStruct.cpp.
DMatrixf SubStructure::m_IPC |
Definition at line 46 of file MStruct.h.
Referenced by analyseTF(), and generateEMDist().
PropVec SubStructure::m_Mean |
Definition at line 45 of file MStruct.h.
Referenced by analyseTF(), generateEMDist(), getLBUB(), and MStructure::showStats().
dword SubStructure::m_Mode |
Definition at line 48 of file MStruct.h.
Referenced by MStructure::addExpectation(), analyseTF(), MStructure::buildAllStats(), clear(), operator<<(), and read().
DMatrixf SubStructure::m_PC |
Definition at line 46 of file MStruct.h.
Referenced by analyseTF(), and generateEMDist().
int SubStructure::m_Pivot |
Definition at line 43 of file MStruct.h.
Referenced by MStructure::addExpectation(), MStructure::buildAllStats(), clear(), operator<<(), read(), and MStructure::showStats().
bool SubStructure::m_Polar |
Definition at line 44 of file MStruct.h.
Referenced by clear(), and operator<<().
float SubStructure::m_RateTH |
Definition at line 47 of file MStruct.h.
Referenced by clear(), StructTable::findBestConnection(), and read().
float SubStructure::m_RateWeight |
Definition at line 47 of file MStruct.h.
Referenced by MStructure::addExpectation(), clear(), StructTable::findBestConnection(), operator<<(), StructPath::print(), and read().
DMatrixf SubStructure::m_Sigma |
Definition at line 46 of file MStruct.h.
Referenced by analyseTF(), generateEMDist(), and MStructure::showStats().
PropVec SubStructure::m_Stdev |
Definition at line 45 of file MStruct.h.
Referenced by analyseTF(), generateEMDist(), getLBUB(), and MStructure::showStats().
std::string SubStructure::m_SubStructName |
Definition at line 41 of file MStruct.h.
Referenced by MStructure::addSubStruct(), MStructure::buildAllStats(), clear(), operator<<(), read(), and MStructure::showStats().
std::string SubStructure::m_SupStructName |
Definition at line 41 of file MStruct.h.
Referenced by clear(), and MStructure::showStats().
PropTF SubStructure::m_Transform |
Definition at line 42 of file MStruct.h.
Referenced by clear(), operator<<(), and read().