#include <motionProfile.h>
Inheritance diagram for ncut::Profile< IMG_ELM_TYPE, MSK_ELM_TYPE >:
Public Member Functions | |
const Matrix * | similarity () const |
Similarity matrix of this profile. | |
const std::map< MSK_ELM_TYPE, unsigned int > * | indices () const |
Get the indices of the regions in this profile. | |
const std::vector< MSK_ELM_TYPE > * | identifiers () const |
Get the identifiers of the regions in this profile. | |
unsigned int | idx (const MSK_ELM_TYPE &id) const |
Get the index of a region identified by an id. | |
const MSK_ELM_TYPE & | id (unsigned int idx) const |
Get the identifier of the region with the given index. | |
Profile (const Setting *setting) | |
Profile empty constructor. | |
Profile (const Profile &clone) | |
Profile copy constructor | |
Profile (const Matrix &similarity, const std::map< MSK_ELM_TYPE, unsigned int > &indices, const std::vector< MSK_ELM_TYPE > &identifiers, const Setting *setting) | |
Profile can be constructed by manually setting all members. | |
virtual | ~Profile () |
Profile destructor. | |
virtual Profile & | operator= (const Profile &clone) |
Profile assignment operator. | |
Protected Attributes | |
Matrix | similarity_ |
std::map< MSK_ELM_TYPE, unsigned int > | indices_ |
std::vector< MSK_ELM_TYPE > | identifiers_ |
const Setting * | setting_ |
The base class for ElementProfile
and SegmentProfile
. A Profile contains Information about its associated type. Segmentation is done on Elements (e.g. from a prioir segmentation step) using information stored in an ElementProfile
and the information of the resulting segments is stored in a SegmentProfile
. Elements and segments are identified by numbers unique in all of the sequence. To get the index used for an element or a segment in a Profile
(e.g. the index of this element in the similarity matrix) use the function idx(elementID)
.
|
Profile empty constructor.
The resulting |
|
Profile copy constructor
|
|
Profile can be constructed by manually setting all members.
similarity , indices and identifiers must have the same dimension and indices and identifiers must be valid. |
|
Get the identifier of the region with the given index.
|
|
Get the identifiers of the regions in this profile.
|
|
Get the index of a region identified by an id.
|
|
Get the indices of the regions in this profile.
|
|
Profile assignment operator.
|
|
Similarity matrix of this profile.
|
|
A map from local element indices to global element identifiers (inverse of |
|
A map from global element identifiers that are consistently used in every iteration to the local indices these elements have in this profile (e.g. the index in the similarity matrix) |
|
Contains all needed parameters |
|
The similarity matrix stores the weight (=similarity) from every element to every other element |