
#include "Component/ModelManager.H"#include "Demo/SaliencyMT.H"#include "Devices/DeviceOpts.H"#include "Devices/FrameGrabberConfigurator.H"#include "GUI/XWindow.H"#include "Image/CutPaste.H"#include "Image/Image.H"#include "Image/Pixels.H"#include "Neuro/NeuroOpts.H"#include "Neuro/SaccadeController.H"#include "Neuro/SaccadeControllerConfigurator.H"#include "Raster/Raster.H"#include "Simulation/SimEventQueue.H"#include "Simulation/SimEventQueueConfigurator.H"#include "Transport/FrameIstream.H"#include "Util/Timer.H"#include <arpa/inet.h>#include <fcntl.h>#include <netdb.h>#include <signal.h>#include <cstdio>#include <unistd.h>
Go to the source code of this file.
Defines | |
| #define | NAVG 20 |
| Number of frames over which average framerate is computed. | |
| #define | SMFAC 0.05F |
| Factor to display the sm values as greyscale: | |
| #define | UDPHOST "192.168.0.8" |
| #define | UDPPORT 5003 |
Functions | |
| void | terminate (int s) |
| Signal handler (e.g., for control-C). | |
| int | main (const int argc, const char **argv) |
Variables | |
| static bool | goforever = true |
| Will turn false on interrupt signal. | |
tests the multi-threaded salincy code
Definition in file test-SaliencyMT.C.
| #define NAVG 20 |
Number of frames over which average framerate is computed.
Definition at line 66 of file test-SaliencyMT.C.
| #define SMFAC 0.05F |
Factor to display the sm values as greyscale:
Definition at line 69 of file test-SaliencyMT.C.
| int main | ( | const int | argc, | |
| const char ** | argv | |||
| ) |
int ovlyoff = (w * 2) * ((dh - disp.getHeight()) / 2); int ovluvoff = ovlyoff / 4;
Definition at line 82 of file test-SaliencyMT.C.
References ModelComponent::addSubComponent(), WTAwinner::buildFromSMcoords(), decXY(), drawDisk(), ModelComponent::exportOptions(), eye(), findMax(), Image< T >::getDims(), Timer::getReset(), Timer::getSimTime(), goforever, Point2D< T >::i, Image< T >::initialized(), inplacePaste(), WTAwinner::isValid(), MC_IGNORE_MISSING, MC_RECURSE, min(), MYLOGVERB, WTAwinner::p, ModelManager::parseCommandLine(), quickInterpolate(), Timer::reset(), ModelComponent::setModelParamVal(), ModelManager::setOptionValString(), SMFAC, ModelComponent::start(), ModelComponent::stop(), toRGB(), UDPHOST, writeText(), and ZEROS.
| void terminate | ( | int | s | ) |
Signal handler (e.g., for control-C).
Definition at line 78 of file test-SaliencyMT.C.
References goforever.
bool goforever = true [static] |
Will turn false on interrupt signal.
Definition at line 75 of file test-SaliencyMT.C.
Referenced by main(), and terminate().
1.6.3