
#include "CMapDemo/SaliencyCMapMT.H"#include "Component/ModelManager.H"#include "Devices/DeviceOpts.H"#include "Devices/FrameGrabberConfigurator.H"#include "GUI/XWinManaged.H"#include "Image/Convolver.H"#include "Image/CutPaste.H"#include "Image/Image.H"#include "Image/Pixels.H"#include "Neuro/NeuroOpts.H"#include "Neuro/SaccadeControllers.H"#include "Neuro/WTAwinner.H"#include "Raster/Raster.H"#include "Transport/FrameIstream.H"#include "Util/Timer.H"#include <arpa/inet.h>#include <fcntl.h>#include <netdb.h>#include <signal.h>#include <stdlib.h>#include <unistd.h>
Go to the source code of this file.
Defines | |
| #define | MAXFLOAT 3.40282347e+38F |
| #define | sml 0 |
| #define | NAVG 20 |
| Number of frames over which average framerate is computed. | |
| #define | SMFAC 1.00F |
| Factor to display the sm values as greyscale: | |
| #define | WINSIZE 51 |
Functions | |
| void | terminate (int s) |
| Signal handler (e.g., for control-C). | |
| int | main (int argc, char **argv) |
Variables | |
| static bool | goforever = true |
| Will turn false on interrupt signal. | |
| ImageSet< float > | bias (14) |
| ImageSet< float > | newBias (14) |
tests the multi-threaded salincy code with a cmap corba object
Definition in file test-SaliencyCMapMT.C.
| #define NAVG 20 |
Number of frames over which average framerate is computed.
Definition at line 70 of file test-SaliencyCMapMT.C.
| #define SMFAC 1.00F |
Factor to display the sm values as greyscale:
Definition at line 73 of file test-SaliencyCMapMT.C.
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
int ovlyoff = (w * 2) * ((dh - disp.getHeight()) / 2); int ovluvoff = ovlyoff / 4;
Definition at line 88 of file test-SaliencyCMapMT.C.
References ModelComponent::addSubComponent(), distance(), drawDisk(), XWindow::drawImage(), ModelComponent::exportOptions(), filename, findMin(), Image< T >::getDims(), Image< T >::getHeight(), Timer::getReset(), Image< T >::getVal(), Image< T >::getWidth(), goforever, Point2D< T >::i, Image< T >::initialized(), inplaceNormalize(), inplacePaste(), Point2D< T >::isValid(), MC_IGNORE_MISSING, MC_RECURSE, min(), MYLOGVERB, ModelManager::parseCommandLine(), Raster::ReadRGB(), rescale(), Timer::reset(), ModelComponent::setModelParamVal(), ModelManager::setOptionValString(), Image< T >::setVal(), SMFAC, ModelComponent::start(), ModelComponent::stop(), toRGB(), writeText(), and ZEROS.
| void terminate | ( | int | s | ) |
Signal handler (e.g., for control-C).
Definition at line 79 of file test-SaliencyCMapMT.C.
References goforever.
bool goforever = true [static] |
Will turn false on interrupt signal.
Definition at line 76 of file test-SaliencyCMapMT.C.
Referenced by main(), and terminate().
1.6.3