Server to work with SingleChannelBeo. More...
#include <Parallel/SingleChannelBeoServer.H>
Public Member Functions | |
SingleChannelBeoServer (OptionManager &mgr, const std::string &descrName="SingleChannelBeo Server", const std::string &tagName="SingleChannelBeoServer") | |
Constructor. | |
virtual | ~SingleChannelBeoServer () |
Destructor. | |
void | check () |
Call this often for us to do our work. | |
Protected Attributes | |
OModelParam< bool > | itsQuickMode |
only send off output map, not other maps |
Server to work with SingleChannelBeo.
This class receives images from SingleChannelBeo, process them, and return the pyramids and submaps back. One server may serve several SingleChannelBeo clients; messages will be processed according to the Beowulf node number of the client. The first thing the client should do is to sent a configuration message, according to which we will build the channel here. Then, the client may send input images, which we will process, and we will return the resulting pyramid and maps.
The system can work in two modes: in full emulation mode, the output map, channel pyramid, submaps and clip pyramid are all returned by the processor node. This requires a lot of network bandwidth but should ensure results that are exactly identical to when using the normal channels. In quick mode, only the output submap is returned. This will work with standard processing that only deals with the output, but things like saving the submaps or biasing the visual cortex will break; so use the fast mode at your own risk ;-) Selection of which mode is used is done via opur itsQuickMode ModelParam.
Definition at line 70 of file SingleChannelBeoServer.H.
SingleChannelBeoServer::SingleChannelBeoServer | ( | OptionManager & | mgr, | |
const std::string & | descrName = "SingleChannelBeo Server" , |
|||
const std::string & | tagName = "SingleChannelBeoServer" | |||
) |
Constructor.
Definition at line 61 of file SingleChannelBeoServer.C.
References ModelComponent::addSubComponent(), and VisualCortexSurprise::registerSurpriseTypes().
SingleChannelBeoServer::~SingleChannelBeoServer | ( | ) | [virtual] |
Destructor.
Definition at line 75 of file SingleChannelBeoServer.C.
void SingleChannelBeoServer::check | ( | ) |
Call this often for us to do our work.
Definition at line 79 of file SingleChannelBeoServer.C.
References TCPmessage::addDouble(), TCPmessage::addImage(), TCPmessage::addImageSet(), ModelComponent::addSubComponent(), BY, COLBAND, FLICKER, Gaussian9, Timer::get(), Image< T >::getDims(), TCPmessage::getElementByteIma(), TCPmessage::getElementDouble(), TCPmessage::getElementFloatIma(), TCPmessage::getElementString(), ModelComponent::getManager(), OModelParam< T >::getVal(), Dims::h(), INTENS, itsQuickMode, ParamMap::load(), MOTION, ORI, ModelComponent::removeAllSubComponents(), ModelComponent::removeSubComponent(), TCPmessage::reset(), nub::soft_ref< T >::reset(), RG, SimTime::SECS(), sformat(), and Dims::w().
OModelParam<bool> SingleChannelBeoServer::itsQuickMode [protected] |
only send off output map, not other maps
Definition at line 87 of file SingleChannelBeoServer.H.
Referenced by check().