Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

RobotFlow::SkinColorGMMTrain Class Reference

Inheritance diagram for RobotFlow::SkinColorGMMTrain:

Inheritance graph
Collaboration diagram for RobotFlow::SkinColorGMMTrain:

Collaboration graph

Public Member Functions

 SkinColorGMMTrain (string nodeName, ParameterSet params)
virtual ~SkinColorGMMTrain ()
void initialize ()
void display_pixbuf ()
void calculate (int output_id, int count, Buffer &out)
void SegmentSkin (const unsigned char *i_srcImg, unsigned char *o_skinMask, float i_thresh)
void AddPixelsToGMM (const unsigned char *i_srcImg, Vector< Vector< float > > *io_trainData)
void InitGMM (GMM *io_gmm, Vector< Vector< float > > *i_trainData)
void AdaptGMM (GMM *io_gmm, Vector< Vector< float > > *i_trainData)
void SaveModels ()
void RGB2rb (unsigned char i_red, unsigned char i_green, unsigned char i_blue, float &o_r, float &o_b) const
virtual ObjectRef getOutput (int output_id, int count)
virtual void request (int outputID, const ParameterSet &req)
virtual void reset ()
virtual int addOutput (const std::string &outputName)
virtual int addInput (const std::string &inputName)
virtual void initializeBuffers ()
virtual void performRequests ()
virtual ObjectRef getOutputNamed (const std::string &outputName, int count)
virtual void connectToNode (std::string in, Node *inputNode, std::string out)
virtual bool hasOutput (int output_id) const
ObjectRef getInput (int inputID, int count)
virtual void stop ()
virtual void cleanupNotify ()
std::string getName ()
virtual void verifyConnect ()
void printOn (std::ostream &out=std::cout) const
void setUINode (UINode *_uinode)
void ref ()
void unref ()
int unique ()
virtual void destroy ()
virtual void serialize (std::ostream &out) const
virtual void unserialize (std::istream &in)
virtual void doesNotUnderstand (std::string method)
virtual bool isNil () const
virtual void prettyPrint (std::ostream &out=std::cout) const
virtual void readFrom (std::istream &in=std::cin)
virtual ObjectRef clone ()
virtual std::string className () const

Static Public Member Functions

static int addFactory (const std::string &factoryName, _NodeFactory *const factory)
static int addXPM (const std::string &nodeName, char **XPMData)
static char ** getXPM (const std::string &nodeName)
static _NodeFactory * getFactoryNamed (const std::string &name)
static std::map< std::string,
_NodeFactory * > & 
factoryDictionary ()
static std::vector< std::string > & nodeInfo ()
static std::map< std::string,
char ** > & 
XPMDictionary ()
static int addNodeInfo (const std::string &info)
static ObjectRef newObject (const std::string &objType)
static int addObjectType (const std::string &objType, _ObjectFactory *factory)
static std::map< std::string,
_ObjectFactory * > & 
ObjectFactoryDictionary ()
static TypeMap< _ObjectFactory * > & TypeidDictionary ()

Protected Member Functions

virtual void connectToNode (unsigned int in, Node *inputNode, unsigned int out)
virtual std::vector< NodeInput > & getInputs ()
virtual int translateInput (std::string inputName)
virtual int translateOutput (std::string inputName)
virtual void rt_assert (bool cond, std::string message="", char *_file="unknown", int _line=0)
virtual void construct_assert (bool cond, std::string message="", char *_file="unknown", int _line=0)
virtual void throw_error (bool send_ptr, std::string message, char *_file, int _line)

Protected Attributes

int processCount
std::vector< OutputCacheInfo > outputs
std::vector< InputCacheInfo > inputsCache
bool inOrder
std::string name
std::vector< NodeInput > inputs
std::vector< std::string > outputNames
ParameterSet parameters
UINode * uinode
AtomicCounter ref_count

Private Attributes

int m_inImageID
int m_outMaskID
bool m_hasInit
bool m_adding
bool m_initializing
bool m_adapting
bool m_saving
bool m_show
int m_skip
int m_width
int m_height
int m_numChannels
int m_numPixels
int m_numBytesInFrame
int m_BBx1
int m_BBx2
int m_BBy1
int m_BBy2
GtkWidget * window1
GtkWidget * vbox1
GtkWidget * vbox2
GtkWidget * scrolledwindow2
GtkWidget * canvas1
GtkWidget * hbox1
GtkWidget * load_button
GtkWidget * save_button
GtkWidget * show_button
GtkWidget * add_button
GtkWidget * init_button
GtkWidget * adapt_button
GtkWidget * m_file_selection
GnomeCanvasItem * m_pixbuf_item
GdkPixbuf * m_pixbuf
int m_last_count
ObjectRef m_imageRef
IplImage * m_curFrame
IplImage * m_tmpFrame
IplImage * m_maskFrame
IplImage * m_outFrame
string m_outModelName
int m_numSkinGaussians
int m_numDims
float m_meanSkinProbThresh
float m_skinProbThreshInc
RCPtr< GMMm_skinGMM
Vector< float > * m_tmpData
Vector< Vector< float > > m_skinData


void on_load_button_clicked (GtkButton *button, SkinColorGMMTrain *cSelection)
void on_load_button_clicked_ok (GtkButton *button, SkinColorGMMTrain *cSelection)
void on_load_button_clicked_cancel (GtkButton *button, SkinColorGMMTrain *cSelection)
void on_save_button_clicked (GtkButton *button, SkinColorGMMTrain *cSelection)
void on_show_button_clicked (GtkButton *button, SkinColorGMMTrain *cSelection)
void on_add_button_clicked (GtkButton *button, SkinColorGMMTrain *cSelection)
void on_init_button_clicked (GtkButton *button, SkinColorGMMTrain *cSelection)
void on_adapt_button_clicked (GtkButton *button, SkinColorGMMTrain *cSelection)
gboolean pixbuf_event_function (GnomeCanvasItem *canvasitem, GdkEvent *event, SkinColorGMMTrain *cSelection)
friend std::ostream & operator<< (std::ostream &out, const Object &obj)

Constructor & Destructor Documentation

RobotFlow::SkinColorGMMTrain::SkinColorGMMTrain string  nodeName,
ParameterSet  params

virtual RobotFlow::SkinColorGMMTrain::~SkinColorGMMTrain  )  [inline, virtual]

Member Function Documentation

void RobotFlow::SkinColorGMMTrain::AdaptGMM GMM io_gmm,
Vector< Vector< float > > *  i_trainData

void RobotFlow::SkinColorGMMTrain::AddPixelsToGMM const unsigned char *  i_srcImg,
Vector< Vector< float > > *  io_trainData

void RobotFlow::SkinColorGMMTrain::calculate int  output_id,
int  count,
Buffer out
[inline, virtual]

Implements FD::BufferedNode.

void RobotFlow::SkinColorGMMTrain::display_pixbuf  )  [inline]

void RobotFlow::SkinColorGMMTrain::InitGMM GMM io_gmm,
Vector< Vector< float > > *  i_trainData

void RobotFlow::SkinColorGMMTrain::initialize  )  [inline, virtual]

Reimplemented from FD::BufferedNode.

void RobotFlow::SkinColorGMMTrain::RGB2rb unsigned char  i_red,
unsigned char  i_green,
unsigned char  i_blue,
float &  o_r,
float &  o_b
const [inline]

void RobotFlow::SkinColorGMMTrain::SaveModels  )  [inline]

void RobotFlow::SkinColorGMMTrain::SegmentSkin const unsigned char *  i_srcImg,
unsigned char *  o_skinMask,
float  i_thresh

Friends And Related Function Documentation

void on_adapt_button_clicked GtkButton *  button,
SkinColorGMMTrain cSelection

void on_add_button_clicked GtkButton *  button,
SkinColorGMMTrain cSelection

void on_init_button_clicked GtkButton *  button,
SkinColorGMMTrain cSelection

void on_load_button_clicked GtkButton *  button,
SkinColorGMMTrain cSelection

void on_load_button_clicked_cancel GtkButton *  button,
SkinColorGMMTrain cSelection

void on_load_button_clicked_ok GtkButton *  button,
SkinColorGMMTrain cSelection

void on_save_button_clicked GtkButton *  button,
SkinColorGMMTrain cSelection

void on_show_button_clicked GtkButton *  button,
SkinColorGMMTrain cSelection

gboolean pixbuf_event_function GnomeCanvasItem *  canvasitem,
GdkEvent *  event,
SkinColorGMMTrain cSelection

Field Documentation

GtkWidget* RobotFlow::SkinColorGMMTrain::adapt_button [private]

GtkWidget* RobotFlow::SkinColorGMMTrain::add_button [private]

GtkWidget* RobotFlow::SkinColorGMMTrain::canvas1 [private]

GtkWidget* RobotFlow::SkinColorGMMTrain::hbox1 [private]

GtkWidget* RobotFlow::SkinColorGMMTrain::init_button [private]

GtkWidget* RobotFlow::SkinColorGMMTrain::load_button [private]

bool RobotFlow::SkinColorGMMTrain::m_adapting [private]

bool RobotFlow::SkinColorGMMTrain::m_adding [private]

int RobotFlow::SkinColorGMMTrain::m_BBx1 [private]

int RobotFlow::SkinColorGMMTrain::m_BBx2 [private]

int RobotFlow::SkinColorGMMTrain::m_BBy1 [private]

int RobotFlow::SkinColorGMMTrain::m_BBy2 [private]

IplImage* RobotFlow::SkinColorGMMTrain::m_curFrame [private]

GtkWidget* RobotFlow::SkinColorGMMTrain::m_file_selection [private]

bool RobotFlow::SkinColorGMMTrain::m_hasInit [private]

int RobotFlow::SkinColorGMMTrain::m_height [private]

ObjectRef RobotFlow::SkinColorGMMTrain::m_imageRef [private]

int RobotFlow::SkinColorGMMTrain::m_inImageID [private]

bool RobotFlow::SkinColorGMMTrain::m_initializing [private]

int RobotFlow::SkinColorGMMTrain::m_last_count [private]

IplImage* RobotFlow::SkinColorGMMTrain::m_maskFrame [private]

float RobotFlow::SkinColorGMMTrain::m_meanSkinProbThresh [private]

int RobotFlow::SkinColorGMMTrain::m_numBytesInFrame [private]

int RobotFlow::SkinColorGMMTrain::m_numChannels [private]

int RobotFlow::SkinColorGMMTrain::m_numDims [private]

int RobotFlow::SkinColorGMMTrain::m_numPixels [private]

int RobotFlow::SkinColorGMMTrain::m_numSkinGaussians [private]

IplImage* RobotFlow::SkinColorGMMTrain::m_outFrame [private]

int RobotFlow::SkinColorGMMTrain::m_outMaskID [private]

string RobotFlow::SkinColorGMMTrain::m_outModelName [private]

GdkPixbuf* RobotFlow::SkinColorGMMTrain::m_pixbuf [private]

GnomeCanvasItem* RobotFlow::SkinColorGMMTrain::m_pixbuf_item [private]

bool RobotFlow::SkinColorGMMTrain::m_saving [private]

bool RobotFlow::SkinColorGMMTrain::m_show [private]

Vector<Vector<float> > RobotFlow::SkinColorGMMTrain::m_skinData [private]

RCPtr<GMM> RobotFlow::SkinColorGMMTrain::m_skinGMM [private]

float RobotFlow::SkinColorGMMTrain::m_skinProbThreshInc [private]

int RobotFlow::SkinColorGMMTrain::m_skip [private]

Vector<float>* RobotFlow::SkinColorGMMTrain::m_tmpData [private]

IplImage* RobotFlow::SkinColorGMMTrain::m_tmpFrame [private]

int RobotFlow::SkinColorGMMTrain::m_width [private]

GtkWidget* RobotFlow::SkinColorGMMTrain::save_button [private]

GtkWidget* RobotFlow::SkinColorGMMTrain::scrolledwindow2 [private]

GtkWidget* RobotFlow::SkinColorGMMTrain::show_button [private]

GtkWidget* RobotFlow::SkinColorGMMTrain::vbox1 [private]

GtkWidget* RobotFlow::SkinColorGMMTrain::vbox2 [private]

GtkWidget* RobotFlow::SkinColorGMMTrain::window1 [private]

The documentation for this class was generated from the following file:
Generated on Wed Oct 5 14:36:32 2005 for RobotFlow by  doxygen 1.4.4