
#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 <cstdio>
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. | |
A parallel vision slave to use w/ pvisionTCP2master
Definition in file nerd-camTCP2.C.
| 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 335 of file nerd-camTCP2.C.
References TCPmessage::addImage(), buildPyrGeneric(), centerSurround(), downSize(), Image< T >::getHeight(), Image< T >::getWidth(), inplaceAddBGnoise(), maxNormalize(), MAXNORMMAX, MAXNORMMIN, 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 312 of file nerd-camTCP2.C.
References TCPmessage::getElementByteIma(), and TCPmessage::getID().
| 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 323 of file nerd-camTCP2.C.
References TCPmessage::getElementByteIma(), and TCPmessage::getID().
| void terminate | ( | int | s | ) |
Signal handler (e.g., for control-C).
Definition at line 67 of file nerd-camTCP2.C.
References goforever.
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 64 of file nerd-camTCP2.C.
Referenced by terminate().
1.6.3