#include <motionProfile.h>
Inheritance diagram for ncut::ElementProfile< IMG_ELM_TYPE, MSK_ELM_TYPE >:
Public Member Functions | |
const Image< IMG_ELM_TYPE > * | frame (unsigned int num) const |
Get the n-th frame in this frame window. | |
const Image< MSK_ELM_TYPE > * | mask (unsigned int num) const |
Get the n-th mask in this frame window. | |
const MSK_ELM_TYPE & | mask (unsigned int num, unsigned int pxl) const |
Get a pixel in the n-th mask of this frame window. | |
const IMG_ELM_TYPE & | frame (unsigned int num, unsigned int pxlelm) const |
Get a pixel in the n-th frame of this frame window. | |
unsigned int | width () const |
Get the width of the frames. | |
unsigned int | height () const |
Get the height of the frames. | |
unsigned int | nChl () const |
Get the number of channels of the frames. | |
unsigned int | nFrm () const |
Get the number of frames in the current frame window. | |
unsigned int | wSize () const |
Get the preset size of the frame window in frames. | |
unsigned int | nElm () const |
Get the number of elements in this profile. | |
const std::vector< std::vector< unsigned int > > * | pixels () const |
Get a list if pixels for each element. | |
const std::vector< unsigned int > * | pixels (unsigned int idx) const |
Get the pixels of an element. | |
unsigned int | frameOf (unsigned int idx) const |
Get the frame containing the element with index idx . | |
const Matrix * | neighbors () const |
Get the neighbourhood matrix of this profile. | |
double | hueVecX (unsigned int elm) const |
Get the mean hue vector x coordinate of an element. | |
double | hueVecY (unsigned int elm) const |
Get the mean hue vector y coordinate of an element. | |
double | lightness (unsigned int elm) const |
Get the mean lightness of an element. | |
double | saturation (unsigned int elm) const |
Get the mean saturation of an element. | |
double | intensity (unsigned int elm, unsigned int chl) const |
Get the mean intensity for one channel of an element. | |
double | locationX (unsigned int elm) const |
Get the mean location x-coordinate of an element. | |
double | locationY (unsigned int elm) const |
Get the mean location y-coordinate of an element. | |
double | locationZ (unsigned int elm) const |
Get the mean location z-coordinate of an element (frame number). | |
unsigned int | nPixels (unsigned int elm) const |
Get the number of pixels of an element. | |
unsigned int | minIdx (unsigned int frm) const |
Get the minimum element index in the given frame. | |
unsigned int | maxIdx (unsigned int frm) const |
Get the maximum element index in the given frame. | |
int | push (const Image< IMG_ELM_TYPE > *frame, const Image< MSK_ELM_TYPE > *mask) |
Calculate element info of a new frame. | |
ElementProfile (unsigned int wSize, const Setting *setting) | |
ElementProfile is constucted passing a frame window size. | |
ElementProfile (const ElementProfile &clone) | |
ElementProfile copy constructor. | |
virtual | ~ElementProfile () |
ElementProfile destructor. | |
virtual ElementProfile & | operator= (const ElementProfile &clone) |
ElementProfile assignment operator. | |
Public Attributes | |
const double | normFac |
Protected Attributes | |
Sequence< IMG_ELM_TYPE > | frameSeq_ |
Sequence< MSK_ELM_TYPE > | maskSeq_ |
unsigned int | wSize_ |
unsigned int | width_ |
unsigned int | height_ |
unsigned int | nChl_ |
unsigned int | nElm_ |
std::vector< std::vector< unsigned int > > | pxls_ |
std::vector< unsigned int > | maxElmIdx_ |
Matrix | neighbors_ |
double * | hue_ |
double * | hueVariation_ |
double * | hueVecX_ |
double * | hueVecY_ |
double * | lightness_ |
double * | litVariation_ |
double * | saturation_ |
double * | satVariation_ |
double ** | intensity_ |
double * | locationX_ |
double * | locationY_ |
double * | locationZ_ |
unsigned int * | nPixels_ |
Segmentation is only done on a few frames (= frame window) of the sequence. The frame window is moved over the whole sequence to get a complete segmentation. An ElementProfile
is used to store information about the elements in one frame window (= the frames that are used for one segmentation step). It is also used to calculate the similarity between those elements, which is then stored in the similarity
matrix. ElementProfile
administers the frame and mask sequences.
|
ElementProfile is constucted passing a frame window size.
push until the frame window is filled to start info and similarity calculation. |
|
ElementProfile copy constructor.
|
|
Get a pixel in the n-th frame of this frame window.
|
|
Get the n-th frame in this frame window.
|
|
Get the frame containing the element with index
|
|
Get the height of the frames.
|
|
Get the mean hue vector x coordinate of an element.
|
|
Get the mean hue vector y coordinate of an element.
|
|
Get the mean intensity for one channel of an element.
|
|
Get the mean lightness of an element.
|
|
Get the mean location x-coordinate of an element.
|
|
Get the mean location y-coordinate of an element.
|
|
Get the mean location z-coordinate of an element (frame number).
|
|
Get a pixel in the n-th mask of this frame window.
|
|
Get the n-th mask in this frame window.
|
|
Get the maximum element index in the given frame.
|
|
Get the minimum element index in the given frame.
|
|
Get the number of channels of the frames.
|
|
Get the neighbourhood matrix of this profile.
|
|
Get the number of elements in this profile.
|
|
Get the number of frames in the current frame window.
|
|
Get the number of pixels of an element.
|
|
ElementProfile assignment operator.
|
|
Get the pixels of an element.
|
|
Get a list if pixels for each element.
|
|
Calculate element info of a new frame.
|
|
Get the mean saturation of an element.
|
|
Get the width of the frames.
|
|
Get the preset size of the frame window in frames.
|
|
contains all frames in the current frame window |
|
the height of each image in the sequence in pixels |
|
the mean hue of each element |
|
the hue variation of each element |
|
the hue vector X component of each element |
|
the hue vector Y component of each element |
|
the mean intensity of each image channel |
|
the mean lightness of each element |
|
the lightness variation of each element |
|
the center-of-gravity X coordinate |
|
the center-of-gravity Y coordinate |
|
the center-of-gravity Z coordinate |
|
contains the segment masks of all frames in the current frame window |
|
the highest used element index in each frame |
|
the number of channels of each image in the sequence |
|
stores the number of neighboring pixels of every element to every other element |
|
the number of elements in the current frame window |
|
a constant factor to normalize a datatype of the image sequence to the interval [0,1] |
|
the number of pixels in each element |
|
a list of pixels in each element |
|
the mean saturation of each element |
|
the saturation variation of each element |
|
the width of each image in the sequence in pixels |
|
the size of the frame window (in frames) |