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

lti::microEnablePulnix Class Reference

Silicon Software channel link frame grabber (Linux version!). More...

#include <ltiMicroEnablePulnix.h>

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

List of all members.

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 parametersgetParameters () const
virtual const char * getTypeName () const
virtual bool apply (image &theImage)
virtual bool apply (channel8 &theChannel)
microEnablePulnixcopy (const microEnablePulnix &other)
functorclone () 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 ubyteframeBuffer
static bool active
static int instances
static imagelastImage

Detailed Description

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!


Constructor & Destructor Documentation

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


Member Function Documentation

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".

Returns:
true if successful, false otherwise.

Reimplemented from lti::functor.


Member Data Documentation

bool lti::microEnablePulnix::active [static, protected]

contains the initialization status

Fg_Info* lti::microEnablePulnix::fg [static, protected]

the initialized frame grabber object

memory block reserved for frame-grabber communication

int lti::microEnablePulnix::instances [static, protected]

number of existen instances of the grabber

the last grabbed image.


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

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