DotStimuli Class Reference

FrameIstream subclass that generates random images. More...

#include <Transport/DotStimuli.H>

Inheritance diagram for DotStimuli:
Inheritance graph
[legend]
Collaboration diagram for DotStimuli:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DotStimuli (OptionManager &mgr)
 Constructor.
virtual ~DotStimuli ()
 Virtual destructor.
virtual void setConfigInfo (const std::string &options)
 Override from FrameIstream; parse the options.
virtual GenericFrameSpec peekFrameSpec ()
 Peek at the specifications of the next frame to be read.
virtual GenericFrame readFrame ()
 Generate a random color image.
void setDims (const Dims &s)
 Specify the dimensions of the random images.
void setSeed (int s)
 Set the seed for our random-number generator.

Detailed Description

FrameIstream subclass that generates random images.

This can be a handy way to quickly test an executable, if you don't have any images lying around, etc. -- you can just specify --in=random:256x256 on the command-line to configure your InputFrameSeries to use a RandomInput source.

Definition at line 52 of file DotStimuli.H.


Constructor & Destructor Documentation

DotStimuli::DotStimuli ( OptionManager mgr  ) 

Constructor.

Definition at line 79 of file DotStimuli.C.

DotStimuli::~DotStimuli (  )  [virtual]

Virtual destructor.

Definition at line 95 of file DotStimuli.C.


Member Function Documentation

GenericFrameSpec DotStimuli::peekFrameSpec (  )  [virtual]

Peek at the specifications of the next frame to be read.

Implements FrameIstream.

Definition at line 335 of file DotStimuli.C.

References GenericFrame::RGB_U8.

GenericFrame DotStimuli::readFrame (  )  [virtual]

Generate a random color image.

Implements FrameIstream.

Definition at line 349 of file DotStimuli.C.

References inplaceNormalize(), makeRGB(), and ZEROS.

void DotStimuli::setConfigInfo ( const std::string options  )  [virtual]

Override from FrameIstream; parse the options.

Reimplemented from FrameIstream.

Definition at line 99 of file DotStimuli.C.

References convertFromString(), Dims::h(), setDims(), and Dims::w().

void DotStimuli::setDims ( const Dims s  ) 

Specify the dimensions of the random images.

Definition at line 185 of file DotStimuli.C.

Referenced by setConfigInfo().

void DotStimuli::setSeed ( int  s  ) 

Set the seed for our random-number generator.


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:43:20 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3