test-Head.C File Reference

#include "Component/ModelManager.H"
#include "Devices/DeviceOpts.H"
#include "Devices/FrameGrabberConfigurator.H"
#include "Devices/FrameGrabberFactory.H"
#include "GUI/XWindow.H"
#include "Image/DrawOps.H"
#include "Image/CutPaste.H"
#include "Image/Image.H"
#include "Image/Pixels.H"
#include "Image/MathOps.H"
#include "Neuro/EnvVisualCortex.H"
#include "Util/Timer.H"
#include "Util/log.H"
#include "Learn/Bayes.H"
#include "Devices/BeoHead.H"
#include "Envision/env_image_ops.h"
#include "GUI/DebugWin.H"
#include <ctype.h>
#include <deque>
#include <iterator>
#include <stdlib.h>
#include <string>
#include <vector>
#include <map>
Include dependency graph for test-Head.C:

Go to the source code of this file.

Classes

struct  BiasParam

Defines

#define NumFeatureNames   7
#define NBINS   16
#define NFEATURES   NBINS
#define FSIZE   75

Enumerations

enum  State { TRAIN, BIAS, MOVE, NO_BIAS }

Functions

void display (Image< PixRGB< byte > > &leftImg, const Image< byte > &leftSmap, const Point2D< int > &leftWinner, const byte maxVal)
void display (const Image< PixRGB< byte > > &img, const Image< PixRGB< byte > > &smap, Point2D< int > &winner, Rectangle &rect)
Rectangle getBoundBox ()
void showHist (std::vector< double > &hist, int pos)
void showProb (int pos)
void showFeatures (std::vector< double > &fv, int pos)
void findMinMax (std::vector< double > &vec, double &min, double &max)
void normalize (std::vector< double > &hist)
double compBhattHist (const std::vector< double > &a_hist, const std::vector< double > &b_hist)
double compEquHist (const std::vector< double > &a_hist, const std::vector< double > &b_hist)
double compProbHist (const std::vector< double > &a_hist, const std::vector< double > &b_hist)
int cMapLearnProc (const char *tagName, struct env_image *cmap)
int cMapLeftBiasProc (const char *tagName, struct env_image *cmap)
int cMapRightBiasProc (const char *tagName, struct env_image *cmap)
int main (int argc, const char **argv)

Variables

const char * featureNames [7]
ModelManagermgr
XWinManagedxwin
XWinManageddebugXWin
Timer timer
Image< PixRGB< byte > > disp
Point2D< int > curWinner
Point2D< int > learnPos
Dims imageDims
BayesbayesNet
byte SmaxVal = 0
std::map< const std::string,
std::vector< double > > 
featuresHist
std::vector< double > featuresVal (NumFeatureNames, 0)
State state = NO_BIAS
Point2D< int > lastWinner
int smap_level = -1
bool debug = 0
bool training = false
bool keepTraining = false
bool tracking = false
int trackingTime = 0

Detailed Description

Test Head

Definition in file test-Head.C.


Function Documentation

int cMapLearnProc ( const char *  tagName,
struct env_image cmap 
)

i;

Definition at line 184 of file test-Head.C.

References Point2D< T >::i, and env_dims::w.

int cMapLeftBiasProc ( const char *  tagName,
struct env_image cmap 
)

Variable Documentation

const char* featureNames[7]
Initial value:
 {
        "red/green",
        "blue/yellow",
        "intensity",
        "steerable(01/04)",
        "steerable(02/04)",
        "steerable(03/04)",
        "steerable(04/04)"
        }

Definition at line 66 of file test-Head.C.

Generated on Sun May 8 08:42:40 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3