Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

FilterBankEvent Class Reference

#include <FilterBankEvent.h>

Inheritance diagram for FilterBankEvent:

Inheritance graph
[legend]
List of all members.

Detailed Description

This event gives access to a set of image channels at different resolutions, see FilterBankGenerator.

Definition at line 9 of file FilterBankEvent.h.

Public Member Functions

 FilterBankEvent (FilterBankGenerator *creator, EventBase::EventGeneratorID_t gid, unsigned int sid, EventBase::EventTypeID_t tid)
 constructor
 FilterBankEvent (const FilterBankEvent &fbk)
 copy constructor (shallow copy -- the generator shouldn't be going anywhere)
const FilterBankEventoperator= (const FilterBankEvent &fbk)
 assignment operator (shallow copy -- the generator shouldn't be going anywhere)
virtual EventBaseclone () const
 allows a copy to be made of an event, supporting polymorphism
FilterBankGeneratorgetSource () const
 Gives access to underlying generator.
unsigned int getNumLayers () const
 returns the number of image layers (e.g. different resolutions available)
unsigned int getNumChannels () const
 returns the number of channels per image (e.g. Y, U, or V components)
unsigned char * getImage (unsigned int layer, unsigned int channel) const
 returns pointer to the beginning of the image data for the specified layer and channel
unsigned int getWidth (unsigned int layer) const
 returns width of the image in a given layer
unsigned int getHeight (unsigned int layer) const
 returns height of the image in a given layer
unsigned int getSkip (unsigned int layer) const
 returns the bytes to skip from the one-past-end of a row to get the beginning of the next
unsigned int getStride (unsigned int layer) const
 returns the bytes to skip from the beginning of one row to get the beginning of the next
unsigned int getIncrement (unsigned int layer) const
 returns the increment to use to go from one sample to the next
unsigned int getFrameNumber () const
 returns the frame number, see FilterBankGenerator::frameNumber
unsigned int getFramesProcessed () const
 returns the number of frames processed by the generator, see FilterBankGenerator::framesProcessed

Protected Attributes

FilterBankGeneratorsrc
 pointer to generator which created this event


Member Function Documentation

virtual EventBase* FilterBankEvent::clone (  )  const [inline, virtual]

allows a copy to be made of an event, supporting polymorphism

Must be overridden by all subclasses to allow this to happen

I would like to switch this over to the cloneable interface once the compiler gets updated out of the 3.3 branch... see Cloneable::clone() for a discussion of the issue and implementation notes.

Reimplemented from EventBase.

Reimplemented in SegmentedColorFilterBankEvent.

Definition at line 22 of file FilterBankEvent.h.

unsigned char* FilterBankEvent::getImage ( unsigned int  layer,
unsigned int  channel 
) const [inline]

returns pointer to the beginning of the image data for the specified layer and channel

this will cause the data to be calculated and cached if it's not already available

Definition at line 38 of file FilterBankEvent.h.

Referenced by BallDetectionGenerator::processEvent().

unsigned int FilterBankEvent::getStride ( unsigned int  layer  )  const [inline]

returns the bytes to skip from the beginning of one row to get the beginning of the next

This is just for convenience; the stride is just the skip plus the width, but it's precomputed for you for speed and clarity

Definition at line 48 of file FilterBankEvent.h.


Member Data Documentation

pointer to generator which created this event

the generator holds all the actual image data to be more memory efficient

Definition at line 60 of file FilterBankEvent.h.

Referenced by getFrameNumber(), getFramesProcessed(), getHeight(), getImage(), getIncrement(), getNumChannels(), getNumLayers(), getSkip(), getSource(), getStride(), getWidth(), and operator=().


The documentation for this class was generated from the following file:

Tekkotsu v3.0
Generated Fri May 11 20:08:10 2007 by Doxygen 1.4.7