ShiftedImage Class Reference

FrameIstream subclass that generates random images. More...

#include <Transport/ShiftedImage.H>

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

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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().


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