Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

int phSimpleVision::trainAdd int  colorspace = -1  ) 
 

This will call train() with phSimpleVision_ADD in place for the 'add_or_set' variable. This can be useful if one doesn't desire to alter the threshold values and attempt to match several different colors. Be careful how often you call this method if you are training in a loop. You could potentially flood the blob_Filter with so many colors to match that it takes too long to run the algorithm for it to be useful for anything. It would be best to call 'train()' if you are using a loop for that simple reason and then call 'applyTraining' after the loop has ended.

Valid values for colorspace are: phSimpleVision_RGB phSimpleVision_HSV (*)

Return values:
phSUCCESS 
phFAIL 

Definition at line 1128 of file phSimpleVision.cpp.





Copyright (C) 2002 - 2007 Philip D.S. Thoren ( pthoren@users.sourceforge.net )
University Of Massachusetts at Lowell
Robotics Lab
SourceForge.net Logo

Generated on Sat Jun 16 02:45:13 2007 for phission by  doxygen 1.4.4