latest version v1.9 - last update 10 Apr 2010 |
Silicon Software channel link frame grabber (Linux version!). More...
#include <ltiMicroEnablePulnix.h>
Classes | |
class | bankType |
The Pulnix Camera TMC6700 can handle up to four parameters sets. More... | |
class | parameters |
frameGrabber parameters class More... | |
Public Member Functions | |
microEnablePulnix (const bool &initialize=true) | |
microEnablePulnix (const microEnablePulnix &other) | |
microEnablePulnix (const parameters &theParam) | |
virtual | ~microEnablePulnix (void) |
const parameters & | getParameters () const |
virtual const char * | getTypeName () const |
virtual bool | apply (image &theImage) |
virtual bool | apply (channel8 &theChannel) |
microEnablePulnix & | copy (const microEnablePulnix &other) |
functor * | clone () const |
bool | isActive () const |
bool | init () |
virtual bool | setParameters (const functor::parameters &theParam) |
Protected Member Functions | |
std::string | getErrorMessage () |
bool | allocMemory () |
bool | freeMemory () |
bool | freeGrabber () |
bool | activateParameters () |
bool | grab (image &theImage) |
bool | grab (channel8 &theChannel) |
Static Protected Member Functions | |
static void | bufferToImage (image &theImage, const bool turnaround) |
static void | bufferToChannel (channel8 &theChannel, const bool turnaround) |
Static Protected Attributes | |
static Fg_Info * | fg |
static ubyte * | frameBuffer |
static bool | active |
static int | instances |
static image * | lastImage |
Silicon Software channel link frame grabber (Linux version!).
class for grabbing frames from cameras and converting them to lti::image format.
Don't forget to uncomment the line "#define _USE_MICRO_ENABLE_FRAME_GRABBER" in the file ltiHardwareConfig.h before compiling!
For Linux it is important to use the correct extra-path variables in the Makefile. These variables point to the include files and libraries required by the MicroEnable hardware. The variables are:
EXTRAINCLUDEPATH = -I/usr/src/menable/include EXTRALIBPATH = -L/usr/src/menable/lib EXTRALIBS = -lpulnixchanneltmc6700 -lmenable
where you should replace /usr/src/menable
with the correct path to your MicroEnable directory.
Errors: The error 2080 usually means that the variable HAP_PATH has not been set yet!
lti::microEnablePulnix::microEnablePulnix | ( | const bool & | initialize = true |
) |
default constructor
lti::microEnablePulnix::microEnablePulnix | ( | const microEnablePulnix & | other | ) |
copy constructor
lti::microEnablePulnix::microEnablePulnix | ( | const parameters & | theParam | ) |
constructor, sets the parameters
virtual lti::microEnablePulnix::~microEnablePulnix | ( | void | ) | [virtual] |
destructor
bool lti::microEnablePulnix::activateParameters | ( | ) | [protected] |
activate hardware parameters
bool lti::microEnablePulnix::allocMemory | ( | ) | [protected] |
allocate the buffer memory
virtual bool lti::microEnablePulnix::apply | ( | channel8 & | theChannel | ) | [virtual] |
load a grey value channel from the
Implements lti::frameGrabber.
virtual bool lti::microEnablePulnix::apply | ( | image & | theImage | ) | [virtual] |
load an (color) image from the grabber
Implements lti::frameGrabber.
static void lti::microEnablePulnix::bufferToChannel | ( | channel8 & | theChannel, | |
const bool | turnaround | |||
) | [static, protected] |
convert the frame buffer into a channel8 theChannel MUST have the correct size when this function is called!
static void lti::microEnablePulnix::bufferToImage | ( | image & | theImage, | |
const bool | turnaround | |||
) | [static, protected] |
convert the frame buffer into an image.
theImage MUST have the correct size when this function is called!
functor* lti::microEnablePulnix::clone | ( | ) | const [virtual] |
clone member
Implements lti::functor.
microEnablePulnix& lti::microEnablePulnix::copy | ( | const microEnablePulnix & | other | ) |
copy member
Reimplemented from lti::frameGrabber.
bool lti::microEnablePulnix::freeGrabber | ( | ) | [protected] |
free the frame graber resource
bool lti::microEnablePulnix::freeMemory | ( | ) | [protected] |
deallocate the buffer memory
std::string lti::microEnablePulnix::getErrorMessage | ( | ) | [protected] |
Return the error message reported by the microEnable hardware.
const parameters& lti::microEnablePulnix::getParameters | ( | ) | const |
returns current parameters.
Reimplemented from lti::frameGrabber.
virtual const char* lti::microEnablePulnix::getTypeName | ( | ) | const [virtual] |
returns the name of this type
Reimplemented from lti::frameGrabber.
bool lti::microEnablePulnix::grab | ( | channel8 & | theChannel | ) | [protected] |
get a channel8 from the frame grabber
bool lti::microEnablePulnix::grab | ( | image & | theImage | ) | [protected] |
get an image from the frame grabber
bool lti::microEnablePulnix::init | ( | ) | [virtual] |
initialize frame grabber
Implements lti::frameGrabber.
bool lti::microEnablePulnix::isActive | ( | ) | const [virtual] |
check if the frame grabber is active
Reimplemented from lti::frameGrabber.
virtual bool lti::microEnablePulnix::setParameters | ( | const functor::parameters & | theParam | ) | [virtual] |
set functor's parameters.
This will set the frame grabber parameters and will send the wished configuration to the camera.
You can also load the actual parameter sets in the camera with the method of the parameters "download".
Reimplemented from lti::functor.
bool lti::microEnablePulnix::active [static, protected] |
contains the initialization status
Fg_Info* lti::microEnablePulnix::fg [static, protected] |
the initialized frame grabber object
ubyte* lti::microEnablePulnix::frameBuffer [static, protected] |
memory block reserved for frame-grabber communication
int lti::microEnablePulnix::instances [static, protected] |
number of existen instances of the grabber
image* lti::microEnablePulnix::lastImage [static, protected] |
the last grabbed image.