FrameIstream subclass that generates bar stimuli images. More...
#include <Transport/BarStimuli.H>
Public Member Functions | |
BarStimuli (OptionManager &mgr) | |
Constructor. | |
virtual | ~BarStimuli () |
Virtual destructor. | |
virtual void | setConfigInfo (const std::string &options) |
Override from FrameIstream; just calls setDims(). | |
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 bar stimuli images.
This can be a handy way to quickly test an executable, if you don't have any images lying around, etc. Also has Aperture Problem stimuli -- you can just specify --in=bars:256x256 on the command-line to configure your InputFrameSeries to use a BarStimuli source.
Definition at line 53 of file BarStimuli.H.
BarStimuli::BarStimuli | ( | OptionManager & | mgr | ) |
Constructor.
Definition at line 52 of file BarStimuli.C.
BarStimuli::~BarStimuli | ( | ) | [virtual] |
Virtual destructor.
Definition at line 68 of file BarStimuli.C.
GenericFrameSpec BarStimuli::peekFrameSpec | ( | ) | [virtual] |
Peek at the specifications of the next frame to be read.
Implements FrameIstream.
Definition at line 160 of file BarStimuli.C.
References GenericFrame::RGB_U8.
GenericFrame BarStimuli::readFrame | ( | ) | [virtual] |
Generate a random color image.
Implements FrameIstream.
Definition at line 174 of file BarStimuli.C.
References inplaceNormalize(), and makeRGB().
void BarStimuli::setConfigInfo | ( | const std::string & | options | ) | [virtual] |
Override from FrameIstream; just calls setDims().
Reimplemented from FrameIstream.
Definition at line 72 of file BarStimuli.C.
References convertFromString(), and setDims().
void BarStimuli::setDims | ( | const Dims & | s | ) |
Specify the dimensions of the random images.
Definition at line 138 of file BarStimuli.C.
Referenced by setConfigInfo().
void BarStimuli::setSeed | ( | int | s | ) |
Set the seed for our random-number generator.