test-VCC4.C File Reference

#include "Component/ModelManager.H"
#include "Devices/VCC4.H"
#include <cmath>
#include <iostream>
Include dependency graph for test-VCC4.C:

Go to the source code of this file.

Defines

#define CAM_WIDTH   320
#define CAM_HEIGHT   240
#define CAM_DISPLAY   NULL
#define CAM_WINDOW_NAME   "Saliency Calculated"
#define CAM_PREV_NAME   "Captured Image"
#define CAM_VIDEO_DEVICE   "/dev/video0"
#define CAM_VIDEO_CHANNEL   2
#define CAM_SERIAL_DEVICE   "/dev/ttyS0"
#define VCC4_HDEG   50
#define VCC4_WDEG   67
#define MAXPAN   ((float)100.0)
#define MINPAN   ((float)-100.0)
#define MAXTILT   ((float)30.0)
#define MINTILT   ((float)-30.0)
#define TOO_MUCH_TIME   0.7

Functions

float sqr (float x)
float randang ()
int main (const int argc, const char **argv)

Detailed Description

Use a pan-tilt camera for executing saccades

Definition in file test-VCC4.C.


Function Documentation

int main ( const int  argc,
const char **  argv 
)

This program takes input from a camera, calculates the most salient spot(s) and moves the camera there according to the following rules:

1) take image from camera 2) calculate next most salient spot 3) If (spot is already in list) goto 2 4) store spot in list 5) move to the spot 6) goto 1

The list is finite (small) sized and "forgets" the oldest entries. When the search for the next most salient spot in a given image takes too much time, the camera is moved by a random amount.

Definition at line 94 of file test-VCC4.C.

References ModelComponent::addSubComponent(), MYLOGVERB, ModelManager::parseCommandLine(), ModelComponent::start(), and ModelComponent::stop().

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