#include <motionProfile.h>
Inheritance diagram for ncut::SegmentProfile< IMG_ELM_TYPE, MSK_ELM_TYPE >:
Public Member Functions | |
const std::vector< std::vector< MSK_ELM_TYPE > > * | elements () const |
Get a list of elements for each segment in this profile. | |
const std::vector< MSK_ELM_TYPE > * | elements (unsigned int idx) const |
Get a list of elements for a segment. | |
const ElementProfile< IMG_ELM_TYPE, MSK_ELM_TYPE > * | elmProfile () const |
Get the element profile for the elements contained in the segments. | |
const MSK_ELM_TYPE & | mask (const MSK_ELM_TYPE &elmId) const |
Get the segment id for the element identified by elmId . | |
unsigned int | idxMask (unsigned int elmIdx) const |
Get the segment index for the element with the given index. | |
unsigned int | age (const MSK_ELM_TYPE &segId) const |
Get the age of a segment. | |
bool | inactive (const MSK_ELM_TYPE &segId) const |
Get the active/inactive status of a segment. | |
const std::map< MSK_ELM_TYPE, bool > * | inactive () const |
Get the active/inactive list. | |
const std::map< MSK_ELM_TYPE, unsigned int > * | age () const |
Get the age list. | |
const MSK_ELM_TYPE & | simSeg (const MSK_ELM_TYPE &segId) const |
Get the most similar segment to the given segment. | |
unsigned int | nElm () const |
Get the number of elements in this segment profile. | |
unsigned int | nSeg () const |
Get the number of segments in this segment profile. | |
unsigned int | nChl () const |
Get the number of channels of the frames in this frame window. | |
double | locationX (unsigned int seg) const |
Get the mean location x-coordinate of a segment. | |
double | locationY (unsigned int seg) const |
Get the mean location y-coordinate of a segment. | |
unsigned int | nPixels (unsigned int seg) const |
Get the number of pixels in a segment. | |
double | dif (unsigned int idx1, unsigned int idx2, const std::vector< std::vector< MSK_ELM_TYPE > > *elements=NULL) const |
Calculate the difference between two segments. | |
int | push (const ElementProfile< IMG_ELM_TYPE, MSK_ELM_TYPE > *elmProfile, const std::vector< std::vector< MSK_ELM_TYPE > > &segments) |
Calculate segment info of a new frame window and segmentation. | |
int | calcSim () |
Calculate segment similarity. | |
SegmentProfile (const Setting *setting) | |
SegmentProfile empty constructor. | |
SegmentProfile (const SegmentProfile &clone) | |
SegmentProfile copy constructor. | |
virtual | ~SegmentProfile () |
SegmentProfile destructor. | |
virtual SegmentProfile & | operator= (const SegmentProfile &clone) |
SegmentProfile assignment operator. | |
Protected Attributes | |
std::vector< std::vector< MSK_ELM_TYPE > > | elements_ |
const ElementProfile< IMG_ELM_TYPE, MSK_ELM_TYPE > * | elmProfile_ |
std::map< MSK_ELM_TYPE, MSK_ELM_TYPE > | mask_ |
std::vector< unsigned int > | idxMask_ |
std::map< MSK_ELM_TYPE, unsigned int > | age_ |
std::map< MSK_ELM_TYPE, bool > | inactive_ |
std::map< MSK_ELM_TYPE, MSK_ELM_TYPE > | simSeg_ |
unsigned int | nSeg_ |
unsigned int | nChl_ |
MSK_ELM_TYPE | nextSegId_ |
Matrix | neighbors_ |
double ** | intensity_ |
double * | locationX_ |
double * | locationY_ |
unsigned int * | nElements_ |
unsigned int * | nPixels_ |
A SegmentProfile
is used to store information about the segments resulting of the segmentation of one frame window. SegmentProfile
is also used to determine the connections of segments from this frame window to segments from the last frame window. Throghout the sequence, segments are connected through their identifiers. segments that appear in consecutive frames and have the same identifiers are to be considered the same segment.
|
SegmentProfile empty constructor.
SegmentProfile . |
|
SegmentProfile copy constructor.
|
|
Get the age list.
|
|
Get the age of a segment.
|
|
Calculate segment similarity.
|
|
Calculate the difference between two segments.
|
|
Get a list of elements for a segment.
|
|
Get a list of elements for each segment in this profile.
|
|
Get the element profile for the elements contained in the segments.
|
|
Get the segment index for the element with the given index.
|
|
Get the active/inactive list.
|
|
Get the active/inactive status of a segment.
|
|
Get the mean location x-coordinate of a segment.
|
|
Get the mean location y-coordinate of a segment.
|
|
Get the segment id for the element identified by
|
|
Get the number of channels of the frames in this frame window.
|
|
Get the number of elements in this segment profile.
|
|
Get the number of pixels in a segment.
|
|
Get the number of segments in this segment profile.
|
|
SegmentProfile assignment operator.
|
|
Calculate segment info of a new frame window and segmentation.
elmProfile and connect the new segments to the segments from the last frame window. |
|
Get the most similar segment to the given segment.
|
|
the number of frames each segment has been active (= in the sequence) so far |
|
a list of elements for each segment |
|
the |
|
a map from element indices to the segment indices of the segments they are part of |
|
true if a segment from the last frame window wasn't assigned to any segment in this frame window |
|
the mean intensity of each image channel |
|
the center-of-gravity X coordinate |
|
the center-of-gravity Y coordinate |
|
a map from element identifiers to the segment identifers of the segments they are part of |
|
the number of channels of the images |
|
the number of neigboring pixels of every segment to every other segment |
|
the number of elements in each segment |
|
the number of pixels in each segment |
|
the number of segments in this frame window |
|
the most similar segment of each segment |