

Definition at line 47 of file InputFrame.H.
Public Member Functions | |
| InputFrame () | |
| Uninitialized constructor. | |
| SimTime | time () const |
| const Dims & | getDims () 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 |
|
|
Uninitialized constructor.
Definition at line 123 of file InputFrame.C. |
|
||||||||||||||||||||||||
|
Initialize to a new input frame.
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(). |
1.4.4