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

beobot-collectFrames-master.C File Reference


Detailed Description

Run beobot-collectFrames-master at A to collect frames Run beobot-collectFrames at B to remote control motion

Definition in file beobot-collectFrames-master.C.

#include "Beowulf/Beowulf.H"
#include "Component/ModelManager.H"
#include "Util/Types.H"
#include "Util/log.H"
#include <cstdio>
#include <cstdlib>
#include <signal.h>
#include <unistd.h>
#include "Devices/FrameGrabberConfigurator.H"
#include "Image/DrawOps.H"
#include "Transport/FrameIstream.H"
#include "Image/ImageCache.H"
#include "Image/Pixels.H"
#include "Raster/Raster.H"
#include "Util/Timer.H"
#include "GUI/XWinManaged.H"
#include "GUI/XWindow.H"

Include dependency graph for beobot-collectFrames-master.C:

Go to the source code of this file.

Defines

#define NAVG   20
 number of frames over which frame rate is computed
#define MAXQLEN   1000
 Maximum number of frames in queue.

Functions

void * saveframes (void *)
void terminate (int s)
int main (const int argc, const char **argv)

Variables

pthread_mutex_t qmutex
pthread_mutex_t smutex
ImageCache< PixRGB< byte > > cache
std::string base
int sessionNum = 0
static bool goforever = true


Define Documentation

#define MAXQLEN   1000
 

Maximum number of frames in queue.

Definition at line 67 of file beobot-collectFrames-master.C.

#define NAVG   20
 

number of frames over which frame rate is computed

Definition at line 64 of file beobot-collectFrames-master.C.


Function Documentation

int main const int  argc,
const char **  argv
 

Displays and grabs video feeds to disk. Selection of grabber type is made via the --fg-type=XX command-line option. Frames are pushed into a queue and a second thread then tries to empty the queue as quickly as possible by writing the frames to disk. In testing, PPM format actually gave better frame rates than PNG, which is what is used.

The starting command is supplied from the beoChip keyboard

Definition at line 129 of file beobot-collectFrames-master.C.

References TCPmessage::addFloat(), beo, XWindow::drawImage(), fNum, gb, Timer::get(), TCPmessage::getElementInt32(), goforever, i, nub::soft_ref< T >::isInvalid(), LFATAL, LINFO, aux::msg(), NAVG, ImageCache< T >::push_back(), qmutex, Timer::reset(), TCPmessage::reset(), saveframes(), sessionNum, ImageCache< T >::size(), smutex, t, terminate, tim, win, and writeText().


Generated on Mon Nov 23 15:47:39 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4