FrameIstream subclass that generates random images. More...
#include <Transport/ShiftedImage.H>
Public Member Functions | |
ShiftedImage (OptionManager &mgr) | |
Constructor. | |
virtual | ~ShiftedImage () |
Virtual destructor. | |
virtual void | setConfigInfo (const std::string &dimsstring) |
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. |
FrameIstream subclass that generates random images.
This can be a handy way to quickly test an executable, with an image that will be doubled and shifted to emulate egomotion. For example: focus of expansion: --in=shiftedImage:path/image:foe on the command-line to configure your InputFrameSeries to use a ShiftedImage source.
Definition at line 57 of file ShiftedImage.H.
ShiftedImage::ShiftedImage | ( | OptionManager & | mgr | ) |
Constructor.
Definition at line 54 of file ShiftedImage.C.
ShiftedImage::~ShiftedImage | ( | ) | [virtual] |
Virtual destructor.
Definition at line 66 of file ShiftedImage.C.
GenericFrameSpec ShiftedImage::peekFrameSpec | ( | ) | [virtual] |
Peek at the specifications of the next frame to be read.
Implements FrameIstream.
Definition at line 146 of file ShiftedImage.C.
References Image< T >::getDims(), and GenericFrame::RGB_U8.
GenericFrame ShiftedImage::readFrame | ( | ) | [virtual] |
Generate a random color image.
Implements FrameIstream.
Definition at line 160 of file ShiftedImage.C.
void ShiftedImage::setConfigInfo | ( | const std::string & | dimsstring | ) | [virtual] |
Override from FrameIstream; just calls setDims().
Reimplemented from FrameIstream.
Definition at line 70 of file ShiftedImage.C.
References Image< T >::getHeight(), Image< T >::getWidth(), and Raster::ReadRGB().