FrameIstream subclass that generates random images. More...
#include <Transport/DotStimuli.H>
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. |
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.
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.
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.