LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::quickCam Class Reference

class to access the quick cam camera system (for LINUX only!) More...

#include <ltiQuickCam.h>

Inheritance diagram for lti::quickCam:
Inheritance graph
[legend]
Collaboration diagram for lti::quickCam:
Collaboration graph
[legend]

List of all members.

Classes

class  parameters
 parameters for the quick-cam functor More...

Public Member Functions

 quickCam ()
 quickCam (const quickCam::parameters &theParams)
virtual ~quickCam (void)
const quickCam::parametersquickCam::getParameters () const
virtual const char * getTypeName (void) const
virtual functorclone () const
bool setParameters (const functor::parameters &theParams)
bool init ()
bool isActive () const
bool apply (image &theImage)
bool apply (channel8 &theChannel)
bool apply (channel &theChannel)

Detailed Description

class to access the quick cam camera system (for LINUX only!)


Constructor & Destructor Documentation

lti::quickCam::quickCam (  ) 

default constuctor

lti::quickCam::quickCam ( const quickCam::parameters theParams  ) 

construct, set parameters and initialize frame grabber

virtual lti::quickCam::~quickCam ( void   )  [virtual]

destructor


Member Function Documentation

bool lti::quickCam::apply ( channel theChannel  )  [virtual]

load a grey value channel from the

Reimplemented from lti::frameGrabber.

bool lti::quickCam::apply ( channel8 theChannel  )  [virtual]

load a grey value channel from the

Implements lti::frameGrabber.

bool lti::quickCam::apply ( image theImage  )  [virtual]

get frame

Implements lti::frameGrabber.

virtual functor* lti::quickCam::clone (  )  const [virtual]

returns a pointer to a clone of the functor.

Implements lti::functor.

virtual const char* lti::quickCam::getTypeName ( void   )  const [virtual]

returns the name of this type

Reimplemented from lti::frameGrabber.

bool lti::quickCam::init (  )  [virtual]

inits the cam

Returns:
true if successful, false otherwise

Implements lti::frameGrabber.

bool lti::quickCam::isActive (  )  const [virtual]

check if the quick cam is active

Reimplemented from lti::frameGrabber.

const quickCam::parameters& lti::quickCam::quickCam::getParameters (  )  const

returns the current parameters

bool lti::quickCam::setParameters ( const functor::parameters theParam  )  [virtual]

Set functor's parameters.

This member makes a copy of theParam: the functor will keep its own copy of the parameters!

Additionally, the updateParameters will be called, which in some functors initializes some Look-Up Tables, or filters, etc. in order to improve the execution times later in the apply methods.

Since the LTI-Lib follows a deep-copy philosophy, if you copy the functor, the copy will create an exact copy of the parameters, no matter if they have been specified with useParameters() or with setParameters().

You should always prefer this method over useParameters(). The latter one is used only in very special cases, when the user needs to control an instance of parameters outside the functor and he/she wants to take care of the memory management.

This method should never be overloaded. If you want to make some precomputations when setting the parameters, please overload updateParameters().

See also:
useParameters(),updateParameters()
Returns:
true if successful, false otherwise

Reimplemented from lti::functor.


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

Generated on Sat Apr 10 15:28:07 2010 for LTI-Lib by Doxygen 1.6.1