Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

InputFrame Class Reference

Collaboration diagram for InputFrame:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 47 of file InputFrame.H.

Public Member Functions

 InputFrame ()
 Uninitialized constructor.
SimTime time () const
const DimsgetDims () const
const int getWidth () const
const int getHeight () const
const Image< byte > & clipMask () const
const Image< PixRGB< byte > > & colorByte () const
const Image< PixRGB< float > > & colorFloat () const
const Image< float > & grayFloat () const
const rutz::shared_ptr< PyramidCache<
float > > & 
pyrCache () const
const Image< PixRGB< byte > > getDepthImage () const
const bool hasDepthImage () const

Static Public Member Functions

Pseudo-constructors
There are several ways to construct an input frame. These are provided to allow maximum efficiency, so that only the minimum required information must be passed in. The size of the input image(s) can later be queried with getDims(). The timestamp parameter (t, in seconds) is used to compute transient responses to flickering stimuli.

static InputFrame fromRgb (const Image< PixRGB< byte > > *in, SimTime t=SimTime::ZERO(), const Image< byte > *clip=0, const rutz::shared_ptr< PyramidCache< float > > &cache=emptyCache, bool disableCache=false)
 Initialize to a new input frame.
static InputFrame fromRgbFloat (const Image< PixRGB< float > > *col, SimTime t=SimTime::ZERO(), const Image< byte > *clip=0, const rutz::shared_ptr< PyramidCache< float > > &cache=emptyCache, bool disableCache=false)
static InputFrame fromGrayFloat (const Image< float > *bw, SimTime t=SimTime::ZERO(), const Image< byte > *clip=0, const rutz::shared_ptr< PyramidCache< float > > &cache=emptyCache, bool disableCache=false)
static InputFrame fromRgbAndGrayFloat (const Image< PixRGB< byte > > *rgbb, const Image< PixRGB< float > > *rgbf, const Image< float > *bw, SimTime t=SimTime::ZERO(), const Image< byte > *clip=0, const rutz::shared_ptr< PyramidCache< float > > &cache=emptyCache, bool disableCache=false)
static InputFrame fromRgbDepth (const Image< PixRGB< byte > > *in, const Image< PixRGB< byte > > *depth, SimTime t=SimTime::ZERO(), const Image< byte > *clip=0, const rutz::shared_ptr< PyramidCache< float > > &cache=emptyCache, bool disableCache=false)

Static Public Attributes

static const rutz::shared_ptr<
PyramidCache< float > > 
emptyCache


Constructor & Destructor Documentation

InputFrame::InputFrame  ) 
 

Uninitialized constructor.

Definition at line 123 of file InputFrame.C.


Member Function Documentation

InputFrame InputFrame::fromRgb const Image< PixRGB< byte > > *  in,
SimTime  t = SimTime::ZERO(),
const Image< byte > *  clip = 0,
const rutz::shared_ptr< PyramidCache< float > > &  cache = emptyCache,
bool  disableCache = false
[static]
 

Initialize to a new input frame.

Parameters:
in input image -- this is a pointer for the input argument so as to avoid unwanted implicit conversion -- we want to really initialize from a byte-rgb image, and not a float-rgb image, nor a byte-grayscale image

Definition at line 127 of file InputFrame.C.

References ASSERT, cache, JobServer::enqueueJob(), Image< T >::getArrayPtr(), getMainJobServer(), JobServer::getParallelismHint(), i, itsClipMask, itsColorByte, itsColorFloat, itsDims, itsGrayFloat, itsPyrCache, itsTime, LDEBUG, rutz::make_shared(), NO_INIT, and start.

Referenced by DepthChannel::doInput(), BeoSub::getSaliencyMap(), RawVisualCortex::getVCOutput(), main(), and submain().


The documentation for this class was generated from the following files:
Generated on Sun Nov 22 13:45:55 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4