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

nerd-camTCP2.C File Reference


Detailed Description

A parallel vision slave to use w/ pvisionTCP2master

Definition in file nerd-camTCP2.C.

#include "Beowulf/Beowulf.H"
#include "Component/ModelManager.H"
#include "Image/ColorOps.H"
#include "Image/Image.H"
#include "Image/ImageSet.H"
#include "Image/MathOps.H"
#include "Image/Pixels.H"
#include "Image/PyramidOps.H"
#include "Image/ShapeOps.H"
#include "Image/Transforms.H"
#include "Image/fancynorm.H"
#include "Parallel/pvisionTCP-defs.H"
#include "Util/Assert.H"
#include "Util/Timer.H"
#include "Util/Types.H"
#include <cstdlib>
#include <signal.h>
#include <time.h>
#include <unistd.h>

Include dependency graph for nerd-camTCP2.C:

Go to the source code of this file.

Defines

#define sml   2
#define delta_min   3
#define delta_max   4
#define level_min   0
#define level_max   2
#define maxdepth   (level_max + delta_max + 1)
#define normtyp   (VCXNORM_MAXNORM)
#define NBOUT   10
#define IWEIGHT   1.0
#define CWEIGHT   1.0
#define OWEIGHT   1.0
#define FWEIGHT   1.5

Functions

void terminate (int s)
 Signal handler (e.g., for control-C).
void computeCMAP (TCPmessage &msg, const PyramidType ptyp, const float ori, const float coeff, const int slave, nub::soft_ref< Beowulf > &b)
 Compute a conspicuity map from an image received in a message.
void computeCMAP2 (TCPmessage &msg, const PyramidType ptyp, const float ori, const float coeff, const int slave, nub::soft_ref< Beowulf > &b)
 Compute a conspicuity map from two images received in a message.
void computeCMAP (const Image< float > &fima, const PyramidType ptyp, const float ori, const float coeff, const int slave, nub::soft_ref< Beowulf > &b, const int32 id)
 Compute a conspicuity map from an image.
int main (const int argc, const char **argv)

Variables

static bool goforever = true
 Will turn false on interrupt signal.


Function Documentation

void computeCMAP const Image< float > &  fima,
const PyramidType  ptyp,
const float  ori,
const float  coeff,
const int  slave,
nub::soft_ref< Beowulf > &  b,
const int32  id
 

Compute a conspicuity map from an image.

Definition at line 334 of file nerd-camTCP2.C.

References TCPmessage::addImage(), BEO_CMAP, buildPyrGeneric(), centerSurround(), cmap, delta_max, delta_min, downSize(), Image< T >::getHeight(), Image< T >::getWidth(), inplaceAddBGnoise(), level_max, level_min, maxdepth, maxNormalize(), MAXNORMMAX, MAXNORMMIN, normtyp, sml, VCXNORM_MAXNORM, and ZEROS.

void computeCMAP TCPmessage msg,
const PyramidType  ptyp,
const float  ori,
const float  coeff,
const int  slave,
nub::soft_ref< Beowulf > &  b
 

Compute a conspicuity map from an image received in a message.

Definition at line 311 of file nerd-camTCP2.C.

References TCPmessage::getElementByteIma(), and TCPmessage::getID().

Referenced by computeCMAP2(), and main().

void computeCMAP2 TCPmessage msg,
const PyramidType  ptyp,
const float  ori,
const float  coeff,
const int  slave,
nub::soft_ref< Beowulf > &  b
 

Compute a conspicuity map from two images received in a message.

Definition at line 322 of file nerd-camTCP2.C.

References computeCMAP(), TCPmessage::getElementByteIma(), TCPmessage::getID(), ima1, and ima2.

Referenced by main().

void terminate int  s  ) 
 

Signal handler (e.g., for control-C).

Definition at line 66 of file nerd-camTCP2.C.

References goforever, and LERROR.


Variable Documentation

bool goforever = true [static]
 

Will turn false on interrupt signal.

See the pvisionTCP2go script in bin/ for how to launch the slaves, and see pvisionTCP2-master.C for the master program.

Definition at line 63 of file nerd-camTCP2.C.


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