#include <ncutCore.h>
Public Member Functions | |
Setting * | setting () |
Get a pointer to the settings (parameters) used by this Segmentation. | |
const Image< IMG_ELM_TYPE > * | frame (unsigned int num) const |
Get a pointer to one frame of the frame sequence. | |
const Image< MSK_ELM_TYPE > * | elmMask (unsigned int num) const |
Get a pointer to one frame of the mask sequence. | |
const MSK_ELM_TYPE & | elmMask (unsigned int num, unsigned int pxl) const |
Get the value of one pixel of a frame in the mask sequence. | |
const IMG_ELM_TYPE & | frameMask (unsigned int num, unsigned int pxl) const |
Get the value of one pixel of a frame in the frame sequence. | |
unsigned int | width () const |
Get the width of the video sequences. | |
unsigned int | height () const |
Get the height of the video sequences. | |
unsigned int | nChl () const |
Get the number of channels of the video sequence. | |
unsigned int | nElm () const |
Get the number of elements in the current frame window. | |
double | locationX (unsigned int seg) const |
Get the x-midpoint position of a segment in the current frame window. | |
double | locationY (unsigned int seg) const |
Get the y-midpoint position of a segment in the current frame window. | |
unsigned int | nSeg () const |
Get the number of segments in the current frame window. | |
unsigned int | nFrm () const |
Get the number of segmented frames since the creation of this Segmentation. | |
unsigned int | wSize () const |
Get the size of the frame window in frames. | |
const std::map< MSK_ELM_TYPE, unsigned int > * | indices () const |
Get the index map of the segments in the current frame window. | |
unsigned int | idx (const MSK_ELM_TYPE &segId) const |
Get the index of a segment in the current frame window. | |
const MSK_ELM_TYPE & | id (unsigned int segIdx) const |
Get the unique identifier of a segment in the current frame window. | |
const MSK_ELM_TYPE & | segMask (const MSK_ELM_TYPE &elmId) const |
Get the segment an element is part of. | |
const std::vector< unsigned int > * | pixels (unsigned int elmIdx) const |
Get a list of pixels in an element. | |
double | nPixels (int seg) const |
Get the number of pixels in a segment. | |
const std::vector< unsigned int > * | elements (unsigned int segIdx) const |
Get a list of elements in a segment. | |
unsigned int | frameOf (unsigned int elmIdx) const |
Get the frame number in the current frame window an element is in. | |
unsigned int | age (const MSK_ELM_TYPE &segId) const |
Get the age of a segment. | |
const std::map< MSK_ELM_TYPE, unsigned int > * | age () const |
Get a pointer to the age map. | |
const bool | inactive (const MSK_ELM_TYPE &segId) const |
Check if a segment is active (present) in the current frame window. | |
const std::map< MSK_ELM_TYPE, bool > * | inactive () const |
Get a pointer to the inactive map. | |
const MSK_ELM_TYPE & | simSeg (const MSK_ELM_TYPE &segId) const |
Get the most similar segment to a given segment. | |
const NcutNode< IMG_ELM_TYPE, MSK_ELM_TYPE > * | dendogram () const |
Get the root NcutNode of the dendogram of the current frame window. | |
const ElementProfile< IMG_ELM_TYPE, MSK_ELM_TYPE > * | elmProfile () const |
Get the ElementProfile of the current frame window. | |
const SegmentProfile< IMG_ELM_TYPE, MSK_ELM_TYPE > * | segProfile () const |
Get the SegmentProfile of the current frame window. | |
const Setting * | setting () const |
Get a pointer to the settings (parameters) used by this Segmentation. | |
int | push (const Image< IMG_ELM_TYPE > *frame, const Image< MSK_ELM_TYPE > *mask) |
Push frame and mask onto the sequence for segmentation. | |
Segmentation (unsigned int wSize=3, Setting setting=Setting()) | |
Segmentation constructor. | |
Segmentation (const Segmentation &clone) | |
Segmentation copy constructor. | |
virtual | ~Segmentation () |
Segmentation destructor. | |
virtual Segmentation & | operator= (const Segmentation &clone) |
Segmentation assignment operator. | |
Protected Attributes | |
Setting | setting_ |
NcutNode< IMG_ELM_TYPE, MSK_ELM_TYPE > * | dendogram_ |
ElementProfile< IMG_ELM_TYPE, MSK_ELM_TYPE > | elmProfile_ |
SegmentProfile< IMG_ELM_TYPE, MSK_ELM_TYPE > | segProfile_ |
The datastructure used for segmentation is a dendogram consisting of NcutNodes
. Segmentation
contains a pointer to the root NcutNode
. Each NcutNode
represents a bipartition of a part of the image into two halves. Each NcutNode
may have two child NcutNodes representing the further bipartition of each of the two halves. The dendogram has a maximum depth and a desired number of eigenvectors per ncut. Use push
to push furher images and correspondings masks for segmentation.
|
Segmentation constructor.
wSize frames over the whole sequence and calculates ncuts for the window in every step. |
|
Segmentation copy constructor.
|
|
Get a pointer to the age map.
|
|
Get the age of a segment.
|
|
Get the root NcutNode of the dendogram of the current frame window.
|
|
Get a list of elements in a segment.
|
|
Get the value of one pixel of a frame in the mask sequence.
|
|
Get a pointer to one frame of the mask sequence.
|
|
Get the ElementProfile of the current frame window.
|
|
Get a pointer to one frame of the frame sequence.
|
|
Get the value of one pixel of a frame in the frame sequence.
|
|
Get the frame number in the current frame window an element is in.
|
|
Get the height of the video sequences.
|
|
Get the unique identifier of a segment in the current frame window.
|
|
Get the index of a segment in the current frame window.
|
|
Get a pointer to the inactive map.
|
|
Check if a segment is active (present) in the current frame window.
|
|
Get the index map of the segments in the current frame window.
|
|
Get the x-midpoint position of a segment in the current frame window.
|
|
Get the y-midpoint position of a segment in the current frame window.
|
|
Get the number of channels of the video sequence.
|
|
Get the number of elements in the current frame window.
|
|
Get the number of segmented frames since the creation of this Segmentation.
|
|
Get the number of pixels in a segment.
|
|
Get the number of segments in the current frame window.
|
|
Segmentation assignment operator.
|
|
Get a list of pixels in an element.
|
|
Push frame and mask onto the sequence for segmentation.
|
|
Get the segment an element is part of.
|
|
Get the SegmentProfile of the current frame window.
|
|
Get a pointer to the settings (parameters) used by this Segmentation.
|
|
Get a pointer to the settings (parameters) used by this Segmentation.
|
|
Get the most similar segment to a given segment.
|
|
Get the width of the video sequences.
|
|
Get the size of the frame window in frames.
|
|
the root node of the ncut dendogram |
|
holds the element information and the similarity matrix |
|
holds the segment information |
|
Contains all needed parameters |