libalvision  1.12
Public Member Functions | Protected Member Functions | Protected Attributes
AL::ALVisionExtractor Class Reference

List of all members.

Public Member Functions

 ALVisionExtractor (boost::shared_ptr< ALBroker > pBroker, const std::string &pName)
virtual ~ALVisionExtractor ()
void init (void)
void run ()
virtual void initVision ()
virtual void process (IplImage *)=0
virtual std::vector< std::string > getOutputNames ()
void setParam (const std::string &paramName, const ALValue &paramValue)
 Allows setting BallDetection parameters.
void xInitGenericStuff ()
 Initialisation of several non-generic things.
void xReleaseGenericStuff ()
 Release of several non-generic things.
void xInitSpecificStuff ()
 Initialisation of several non-generic things.
void xReleaseSpecificStuff ()
 Release of several non-generic things.

Protected Member Functions

virtual void xStartDetection (const int pPeriod, const float pPrecision)
virtual void xUpdateParameters (const int pPeriod, const float pPrecision)
void xStopDetection ()

Protected Attributes

boost::shared_ptr
< AL::ALVideoDeviceProxy > 
xCamProxy
boost::shared_ptr< AL::ALProxyxCamGenericProxy
std::string xGvmName
int xMode
int xResolution
int xColorSpace
int xImageWidth
int xImageHeight
int xImageNLayers
int xCurrentPeriod
int xPause
bool xRunOrder
bool xIsRunning
ALImagexptr_ALImageRaw
IplImage * xptr_IplImageRaw
std::string xIplImageRawName

Detailed Description

Definition at line 40 of file alvisionextractor.h.


Constructor & Destructor Documentation

AL::ALVisionExtractor::ALVisionExtractor ( boost::shared_ptr< ALBroker pBroker,
const std::string &  pName 
)

Constructor

Parameters:
pBrokerModule broker pointer
pNameModule name
virtual AL::ALVisionExtractor::~ALVisionExtractor ( ) [virtual]

Destructor.


Member Function Documentation

virtual std::vector<std::string> AL::ALVisionExtractor::getOutputNames ( ) [virtual]

getOutputNames get extractor raised event name list

Returns:
list of name

Reimplemented from AL::ALExtractor.

void AL::ALVisionExtractor::init ( void  )

init Module initialization method

virtual void AL::ALVisionExtractor::initVision ( ) [inline, virtual]

initVision Vision specific initialization

Definition at line 71 of file alvisionextractor.h.

virtual void AL::ALVisionExtractor::process ( IplImage *  ) [pure virtual]

process user process method called from main loop acquisition

void AL::ALVisionExtractor::run ( )

run Main loop

void AL::ALVisionExtractor::setParam ( const std::string &  paramName,
const ALValue paramValue 
)

Allows setting BallDetection parameters.

Parameters:
paramName,Stringname of the parameter to be set
paramValue,ALValuecontaining the parameter value
virtual void AL::ALVisionExtractor::xStartDetection ( const int  pPeriod,
const float  pPrecision 
) [protected, virtual]

xStartDetection. What the extractor shall do to start detection this method is called only once : when the first module subscribes.

Implements AL::ALExtractor.

void AL::ALVisionExtractor::xStopDetection ( ) [protected, virtual]

xStopDetection. Stop detection

Implements AL::ALExtractor.

virtual void AL::ALVisionExtractor::xUpdateParameters ( const int  pPeriod,
const float  pPrecision 
) [protected, virtual]

xUpdateParam. updates fCurrentParameters from fSubscribedList. this method is called each time the parameters has changed because of a new subscribtion or unsubscribtion or when a module calls updatePeriod or updatePrecision.

Reimplemented from AL::ALExtractor.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends