Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
ueye::Camera Class Reference

#include <Camera.h>

List of all members.

Public Types

typedef boost::function< void(const
char *, size_t) 
CamCaptureCB )

Public Member Functions

 Camera ()
void closeCamera ()
bool forceTrigger ()
bool getAutoExposure () const
bool getAutoGain () const
const char * getCameraName () const
unsigned int getCameraSerialNo () const
uEyeColor getColorMode () const
double getExposure ()
bool getGainBoost () const
unsigned int getHardwareGain ()
bool getHardwareGamma () const
int getHeight () const
int getHeightMax () const
int getNumberOfCameras () const
int getPixelClock () const
unsigned int getSerialNumberList (std::vector< unsigned int > &serial, std::vector< unsigned int > &dev_id)
TriggerMode getSupportedTriggers ()
TriggerMode getTriggerMode ()
int getWidth () const
int getWidthMax () const
int getZoom () const
bool openCameraCamId (unsigned int id)
bool openCameraDevId (unsigned int id)
bool openCameraSerNo (unsigned int serial_number)
void setAutoExposure (bool *enable)
void setAutoGain (bool *enable)
void setColorMode (uEyeColor mode)
void setExposure (double *time_ms)
void setFlash (FlashMode mode, int delay_usec, unsigned int duration_usec)
void setFlash (FlashMode mode)
void setFlashWithGlobalParams (FlashMode mode)
void setFrameRate (double *rate)
void setGainBoost (bool *enable)
void setHardwareGain (int *gain)
void setHardwareGamma (bool *enable)
void setPixelClock (int *MHz)
void setTriggerDelay (int delay_usec)
bool setTriggerMode (TriggerMode mode)
void setZoom (int *zoom)
void startVideoCapture (CamCaptureCB)
void stopVideoCapture ()
 ~Camera ()

Static Public Member Functions

static bool checkVersion (int &major, int &minor, int &build, const char *&expected)
static const char * colorModeToString (uEyeColor mode)

Private Member Functions

void captureThread (CamCaptureCB callback)
void checkError (INT err) const
void destroyMemoryPool ()
void flashUpdateGlobalParams ()
int getBinningParam (int *scale)
int getSubsampleParam (int *scale)
void initMemoryPool (int size)
void initPrivateVariables ()
void restartVideoCapture ()

Private Attributes

bool auto_exposure_
bool auto_gain_
HIDS cam_
SENSORINFO cam_info_
uEyeColor color_mode_
double exposure_time_
bool flash_global_params_
double frame_rate_
bool gain_boost_
int hardware_gain_
bool hardware_gamma_
std::vector< char * > img_mem_
std::vector< int > img_mem_id_
int pixel_clock_
unsigned int serial_number_
volatile bool stop_capture_
CamCaptureCB stream_callback_
volatile bool streaming_
boost::thread thread_
int zoom_

Detailed Description

Definition at line 91 of file Camera.h.


Member Typedef Documentation

typedef boost::function<void(const char *, size_t) ueye::Camera::CamCaptureCB)

Definition at line 145 of file Camera.h.


Constructor & Destructor Documentation

Definition at line 101 of file Camera.cpp.

Definition at line 561 of file Camera.cpp.


Member Function Documentation

void ueye::Camera::captureThread ( CamCaptureCB  callback) [private]

Definition at line 618 of file Camera.cpp.

void ueye::Camera::checkError ( INT  err) const [inline, private]

Definition at line 152 of file Camera.h.

bool ueye::Camera::checkVersion ( int &  major,
int &  minor,
int &  build,
const char *&  expected 
) [static]

Definition at line 108 of file Camera.cpp.

Definition at line 552 of file Camera.cpp.

const char * ueye::Camera::colorModeToString ( uEyeColor  mode) [static]

Definition at line 200 of file Camera.cpp.

void ueye::Camera::destroyMemoryPool ( ) [private]

Definition at line 609 of file Camera.cpp.

Definition at line 447 of file Camera.cpp.

Definition at line 460 of file Camera.cpp.

bool ueye::Camera::getAutoExposure ( ) const [inline]

Definition at line 116 of file Camera.h.

bool ueye::Camera::getAutoGain ( ) const [inline]

Definition at line 121 of file Camera.h.

int ueye::Camera::getBinningParam ( int *  scale) [private]

Definition at line 509 of file Camera.cpp.

const char* ueye::Camera::getCameraName ( ) const [inline]

Definition at line 108 of file Camera.h.

unsigned int ueye::Camera::getCameraSerialNo ( ) const [inline]

Definition at line 109 of file Camera.h.

Definition at line 115 of file Camera.h.

Definition at line 229 of file Camera.cpp.

bool ueye::Camera::getGainBoost ( ) const [inline]

Definition at line 120 of file Camera.h.

Definition at line 235 of file Camera.cpp.

bool ueye::Camera::getHardwareGamma ( ) const [inline]

Definition at line 118 of file Camera.h.

int ueye::Camera::getHeight ( ) const [inline]

Definition at line 113 of file Camera.h.

int ueye::Camera::getHeightMax ( ) const [inline]

Definition at line 111 of file Camera.h.

Definition at line 123 of file Camera.cpp.

int ueye::Camera::getPixelClock ( ) const [inline]

Definition at line 119 of file Camera.h.

unsigned int ueye::Camera::getSerialNumberList ( std::vector< unsigned int > &  serial,
std::vector< unsigned int > &  dev_id 
)

Definition at line 130 of file Camera.cpp.

int ueye::Camera::getSubsampleParam ( int *  scale) [private]

Definition at line 467 of file Camera.cpp.

Definition at line 244 of file Camera.cpp.

Definition at line 240 of file Camera.cpp.

int ueye::Camera::getWidth ( ) const [inline]

Definition at line 112 of file Camera.h.

int ueye::Camera::getWidthMax ( ) const [inline]

Definition at line 110 of file Camera.h.

int ueye::Camera::getZoom ( ) const [inline]

Definition at line 114 of file Camera.h.

void ueye::Camera::initMemoryPool ( int  size) [private]

Definition at line 566 of file Camera.cpp.

Definition at line 80 of file Camera.cpp.

bool ueye::Camera::openCameraCamId ( unsigned int  id)

Definition at line 153 of file Camera.cpp.

bool ueye::Camera::openCameraDevId ( unsigned int  id)

Definition at line 183 of file Camera.cpp.

bool ueye::Camera::openCameraSerNo ( unsigned int  serial_number)

Definition at line 187 of file Camera.cpp.

Definition at line 704 of file Camera.cpp.

void ueye::Camera::setAutoExposure ( bool *  enable)

Definition at line 262 of file Camera.cpp.

void ueye::Camera::setAutoGain ( bool *  enable)

Definition at line 367 of file Camera.cpp.

Definition at line 249 of file Camera.cpp.

void ueye::Camera::setExposure ( double *  time_ms)

Definition at line 273 of file Camera.cpp.

void ueye::Camera::setFlash ( FlashMode  mode,
int  delay_usec,
unsigned int  duration_usec 
)

Definition at line 423 of file Camera.cpp.

Definition at line 441 of file Camera.cpp.

Definition at line 398 of file Camera.cpp.

void ueye::Camera::setFrameRate ( double *  rate)

Definition at line 348 of file Camera.cpp.

void ueye::Camera::setGainBoost ( bool *  enable)

Definition at line 354 of file Camera.cpp.

void ueye::Camera::setHardwareGain ( int *  gain)

Definition at line 378 of file Camera.cpp.

void ueye::Camera::setHardwareGamma ( bool *  enable)

Definition at line 281 of file Camera.cpp.

void ueye::Camera::setPixelClock ( int *  MHz)

Definition at line 316 of file Camera.cpp.

void ueye::Camera::setTriggerDelay ( int  delay_usec)

Definition at line 455 of file Camera.cpp.

Definition at line 389 of file Camera.cpp.

void ueye::Camera::setZoom ( int *  zoom)

Definition at line 293 of file Camera.cpp.

Definition at line 691 of file Camera.cpp.

Definition at line 696 of file Camera.cpp.


Member Data Documentation

Definition at line 179 of file Camera.h.

bool ueye::Camera::auto_gain_ [private]

Definition at line 185 of file Camera.h.

HIDS ueye::Camera::cam_ [private]

Definition at line 189 of file Camera.h.

SENSORINFO ueye::Camera::cam_info_ [private]

Definition at line 190 of file Camera.h.

Definition at line 178 of file Camera.h.

double ueye::Camera::exposure_time_ [private]

Definition at line 180 of file Camera.h.

Definition at line 188 of file Camera.h.

double ueye::Camera::frame_rate_ [private]

Definition at line 187 of file Camera.h.

bool ueye::Camera::gain_boost_ [private]

Definition at line 182 of file Camera.h.

Definition at line 186 of file Camera.h.

Definition at line 181 of file Camera.h.

std::vector<char*> ueye::Camera::img_mem_ [private]

Definition at line 171 of file Camera.h.

std::vector<int> ueye::Camera::img_mem_id_ [private]

Definition at line 172 of file Camera.h.

Definition at line 184 of file Camera.h.

unsigned int ueye::Camera::serial_number_ [private]

Definition at line 191 of file Camera.h.

volatile bool ueye::Camera::stop_capture_ [private]

Definition at line 194 of file Camera.h.

Definition at line 195 of file Camera.h.

volatile bool ueye::Camera::streaming_ [private]

Definition at line 193 of file Camera.h.

boost::thread ueye::Camera::thread_ [private]

Definition at line 196 of file Camera.h.

int ueye::Camera::zoom_ [private]

Definition at line 183 of file Camera.h.


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


ueye
Author(s): Kevin Hallenbeck
autogenerated on Thu Sep 7 2017 09:31:27