latest version v1.9 - last update 10 Apr 2010 |
class to access the quick cam camera system (for LINUX only!) More...
#include <ltiQuickCam.h>
Classes | |
class | parameters |
parameters for the quick-cam functor More... | |
Public Member Functions | |
quickCam () | |
quickCam (const quickCam::parameters &theParams) | |
virtual | ~quickCam (void) |
const quickCam::parameters & | quickCam::getParameters () const |
virtual const char * | getTypeName (void) const |
virtual functor * | clone () const |
bool | setParameters (const functor::parameters &theParams) |
bool | init () |
bool | isActive () const |
bool | apply (image &theImage) |
bool | apply (channel8 &theChannel) |
bool | apply (channel &theChannel) |
class to access the quick cam camera system (for LINUX only!)
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
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] |
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().
Reimplemented from lti::functor.