InputFrame Class Reference

Collaboration diagram for InputFrame:
Collaboration graph
[legend]

List of all members.

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< uint16getDepthImage () const
const bool hasDepthImage () const
void setPyrCacheRgb (const rutz::shared_ptr< PyramidCache< PixRGB< float > > > &pyr)
void setPyrCache (const rutz::shared_ptr< PyramidCache< float > > &pyr)

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< uint16 > *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

Detailed Description

Definition at line 47 of file InputFrame.H.


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, JobServer::enqueueJob(), JobServer::getParallelismHint(), rutz::make_shared(), and NO_INIT.

Referenced by BeoSub::getSaliencyMap(), RawVisualCortex::getVCOutput(), GetSaliency::getVCXmap(), and main().


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