Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
ueye::Camera Class Reference

#include <Camera.h>

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

ueye::Camera::Camera ( )

Definition at line 101 of file Camera.cpp.

ueye::Camera::~Camera ( )

Definition at line 561 of file Camera.cpp.

Member Function Documentation

void ueye::Camera::captureThread ( CamCaptureCB  callback)

Definition at line 618 of file Camera.cpp.

void ueye::Camera::checkError ( INT  err) const

Definition at line 152 of file Camera.h.

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

Definition at line 108 of file Camera.cpp.

void ueye::Camera::closeCamera ( )

Definition at line 552 of file Camera.cpp.

const char * ueye::Camera::colorModeToString ( uEyeColor  mode)

Definition at line 200 of file Camera.cpp.

void ueye::Camera::destroyMemoryPool ( )

Definition at line 609 of file Camera.cpp.

void ueye::Camera::flashUpdateGlobalParams ( )

Definition at line 447 of file Camera.cpp.

bool ueye::Camera::forceTrigger ( )

Definition at line 460 of file Camera.cpp.

bool ueye::Camera::getAutoExposure ( ) const

Definition at line 116 of file Camera.h.

bool ueye::Camera::getAutoGain ( ) const

Definition at line 121 of file Camera.h.

int ueye::Camera::getBinningParam ( int *  scale)

Definition at line 509 of file Camera.cpp.

const char* ueye::Camera::getCameraName ( ) const

Definition at line 108 of file Camera.h.

unsigned int ueye::Camera::getCameraSerialNo ( ) const

Definition at line 109 of file Camera.h.

uEyeColor ueye::Camera::getColorMode ( ) const

Definition at line 115 of file Camera.h.

double ueye::Camera::getExposure ( )

Definition at line 229 of file Camera.cpp.

bool ueye::Camera::getGainBoost ( ) const

Definition at line 120 of file Camera.h.

unsigned int ueye::Camera::getHardwareGain ( )

Definition at line 235 of file Camera.cpp.

bool ueye::Camera::getHardwareGamma ( ) const

Definition at line 118 of file Camera.h.

int ueye::Camera::getHeight ( ) const

Definition at line 113 of file Camera.h.

int ueye::Camera::getHeightMax ( ) const

Definition at line 111 of file Camera.h.

int ueye::Camera::getNumberOfCameras ( ) const

Definition at line 123 of file Camera.cpp.

int ueye::Camera::getPixelClock ( ) const

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)

Definition at line 467 of file Camera.cpp.

TriggerMode ueye::Camera::getSupportedTriggers ( )

Definition at line 244 of file Camera.cpp.

TriggerMode ueye::Camera::getTriggerMode ( )

Definition at line 240 of file Camera.cpp.

int ueye::Camera::getWidth ( ) const

Definition at line 112 of file Camera.h.

int ueye::Camera::getWidthMax ( ) const

Definition at line 110 of file Camera.h.

int ueye::Camera::getZoom ( ) const

Definition at line 114 of file Camera.h.

void ueye::Camera::initMemoryPool ( int  size)

Definition at line 566 of file Camera.cpp.

void ueye::Camera::initPrivateVariables ( )

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.

void ueye::Camera::restartVideoCapture ( )

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.

void ueye::Camera::setColorMode ( uEyeColor  mode)

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.

void ueye::Camera::setFlash ( FlashMode  mode)

Definition at line 441 of file Camera.cpp.

void ueye::Camera::setFlashWithGlobalParams ( FlashMode  mode)

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.

bool ueye::Camera::setTriggerMode ( TriggerMode  mode)

Definition at line 389 of file Camera.cpp.

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

Definition at line 293 of file Camera.cpp.

void ueye::Camera::startVideoCapture ( CamCaptureCB  callback)

Definition at line 691 of file Camera.cpp.

void ueye::Camera::stopVideoCapture ( )

Definition at line 696 of file Camera.cpp.

Member Data Documentation

bool ueye::Camera::auto_exposure_

Definition at line 179 of file Camera.h.

bool ueye::Camera::auto_gain_

Definition at line 185 of file Camera.h.

HIDS ueye::Camera::cam_

Definition at line 189 of file Camera.h.

SENSORINFO ueye::Camera::cam_info_

Definition at line 190 of file Camera.h.

uEyeColor ueye::Camera::color_mode_

Definition at line 178 of file Camera.h.

double ueye::Camera::exposure_time_

Definition at line 180 of file Camera.h.

bool ueye::Camera::flash_global_params_

Definition at line 188 of file Camera.h.

double ueye::Camera::frame_rate_

Definition at line 187 of file Camera.h.

bool ueye::Camera::gain_boost_

Definition at line 182 of file Camera.h.

int ueye::Camera::hardware_gain_

Definition at line 186 of file Camera.h.

bool ueye::Camera::hardware_gamma_

Definition at line 181 of file Camera.h.

std::vector<char*> ueye::Camera::img_mem_

Definition at line 171 of file Camera.h.

std::vector<int> ueye::Camera::img_mem_id_

Definition at line 172 of file Camera.h.

int ueye::Camera::pixel_clock_

Definition at line 184 of file Camera.h.

unsigned int ueye::Camera::serial_number_

Definition at line 191 of file Camera.h.

volatile bool ueye::Camera::stop_capture_

Definition at line 194 of file Camera.h.

CamCaptureCB ueye::Camera::stream_callback_

Definition at line 195 of file Camera.h.

volatile bool ueye::Camera::streaming_

Definition at line 193 of file Camera.h.

boost::thread ueye::Camera::thread_

Definition at line 196 of file Camera.h.

int ueye::Camera::zoom_

Definition at line 183 of file Camera.h.

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

Author(s): Kevin Hallenbeck
autogenerated on Sun Oct 6 2019 03:35:25