ncut::PNGVis< IMG_ELM_TYPE, MSK_ELM_TYPE > Class Template Reference

A visualization of a segmentation using png images Creates a visualization of a given segmentation using png images. More...

#include <ncutVis.h>

Inheritance diagram for ncut::PNGVis< IMG_ELM_TYPE, MSK_ELM_TYPE >:

ncut::Vis< IMG_ELM_TYPE, MSK_ELM_TYPE, PNG_IMAGE_DATATYPE > List of all members.

Public Member Functions

const std::map< MSK_ELM_TYPE,
std::vector< int > > & 
rememberedPosX () const
const std::map< MSK_ELM_TYPE,
std::vector< int > > & 
rememberedPosY () const
const std::map< MSK_ELM_TYPE,
double > & 
segmentSumArea () const
int firstFrame (const MSK_ELM_TYPE &segId) const
virtual void create (PNGSequence &resultSequence, int topFrame=-1)
virtual int drawLine (int x1, int y1, int x2, int y2, PNGImage *image)
 PNGVis (const Segmentation< IMG_ELM_TYPE, MSK_ELM_TYPE > *segmentation)
virtual ~PNGVis ()

Protected Attributes

int baseFrame_
std::vector< PNG_color_t > colors_
std::map< MSK_ELM_TYPE, unsigned
int > 
colorMap_
std::map< MSK_ELM_TYPE, std::vector<
int > > 
rememberedPosX_
std::map< MSK_ELM_TYPE, std::vector<
int > > 
rememberedPosY_
std::map< MSK_ELM_TYPE, double > segmentSumArea_
std::map< MSK_ELM_TYPE, int > firstFrame_

Detailed Description

template<class IMG_ELM_TYPE, class MSK_ELM_TYPE>
class ncut::PNGVis< IMG_ELM_TYPE, MSK_ELM_TYPE >

A visualization of a segmentation using png images Creates a visualization of a given segmentation using png images.


Constructor & Destructor Documentation

template<class IMG_ELM_TYPE, class MSK_ELM_TYPE>
ncut::PNGVis< IMG_ELM_TYPE, MSK_ELM_TYPE >::PNGVis const Segmentation< IMG_ELM_TYPE, MSK_ELM_TYPE > *  segmentation  ) 
 

PNGVis is constructed by passing a reference to a Segmentation

Parameters:
segmentation reference to a segmenation which should be visualized

template<class IMG_ELM_TYPE, class MSK_ELM_TYPE>
ncut::PNGVis< IMG_ELM_TYPE, MSK_ELM_TYPE >::~PNGVis  )  [virtual]
 

PNGVis Destructor


Member Function Documentation

template<class IMG_ELM_TYPE, class MSK_ELM_TYPE>
void ncut::PNGVis< IMG_ELM_TYPE, MSK_ELM_TYPE >::create PNGSequence resultSequence,
int  topFrame = -1
[virtual]
 

Creates a visualization for the current frame window of the sequence

Parameters:
resultSequence the sequence where the visualization should be saved
topFrame current Framenumber

template<class IMG_ELM_TYPE, class MSK_ELM_TYPE>
int ncut::PNGVis< IMG_ELM_TYPE, MSK_ELM_TYPE >::drawLine int  x1,
int  y1,
int  x2,
int  y2,
PNGImage image
[virtual]
 

Draws a line from (x1,y1) to (x2,y2) in the given image

Parameters:
x1 x-coordinate of the first point
y1 y-coordinate of the first point
x2 x-coordinate of the second point
y2 y-coordinate of the second point
image image where line should be drawn
Returns:
0 if successful


Member Data Documentation

template<class IMG_ELM_TYPE, class MSK_ELM_TYPE>
int ncut::PNGVis< IMG_ELM_TYPE, MSK_ELM_TYPE >::baseFrame_ [protected]
 

framenumber of first segmented frame

template<class IMG_ELM_TYPE, class MSK_ELM_TYPE>
std::map<MSK_ELM_TYPE, unsigned int> ncut::PNGVis< IMG_ELM_TYPE, MSK_ELM_TYPE >::colorMap_ [protected]
 

list of possible colors

template<class IMG_ELM_TYPE, class MSK_ELM_TYPE>
std::vector<PNG_color_t> ncut::PNGVis< IMG_ELM_TYPE, MSK_ELM_TYPE >::colors_ [protected]
 

color of final segment

template<class IMG_ELM_TYPE, class MSK_ELM_TYPE>
std::map<MSK_ELM_TYPE, int> ncut::PNGVis< IMG_ELM_TYPE, MSK_ELM_TYPE >::firstFrame_ [protected]
 

framenumber of first occurence of a segment

template<class IMG_ELM_TYPE, class MSK_ELM_TYPE>
std::map<MSK_ELM_TYPE,std::vector<int> > ncut::PNGVis< IMG_ELM_TYPE, MSK_ELM_TYPE >::rememberedPosX_ [protected]
 

history of midpoint positions of a final segment (x-coordinate)

template<class IMG_ELM_TYPE, class MSK_ELM_TYPE>
std::map<MSK_ELM_TYPE,std::vector<int> > ncut::PNGVis< IMG_ELM_TYPE, MSK_ELM_TYPE >::rememberedPosY_ [protected]
 

history of midpoint positions of a final segment (y-coordinate)

template<class IMG_ELM_TYPE, class MSK_ELM_TYPE>
std::map<MSK_ELM_TYPE,double > ncut::PNGVis< IMG_ELM_TYPE, MSK_ELM_TYPE >::segmentSumArea_ [protected]
 

total sum of an final segment in all frames


The documentation for this class was generated from the following file:
Generated on Thu Jun 22 14:47:23 2006 for ncut.kdevelop by  doxygen 1.4.6