#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_ |
typedef boost::function<void(const char *, size_t) ueye::Camera::CamCaptureCB) |
Definition at line 101 of file Camera.cpp.
Definition at line 561 of file Camera.cpp.
void ueye::Camera::captureThread | ( | CamCaptureCB | callback | ) | [private] |
Definition at line 618 of file Camera.cpp.
void ueye::Camera::checkError | ( | INT | err | ) | const [inline, private] |
bool ueye::Camera::checkVersion | ( | int & | major, |
int & | minor, | ||
int & | build, | ||
const char *& | expected | ||
) | [static] |
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 | ) | [static] |
Definition at line 200 of file Camera.cpp.
void ueye::Camera::destroyMemoryPool | ( | ) | [private] |
Definition at line 609 of file Camera.cpp.
void ueye::Camera::flashUpdateGlobalParams | ( | ) | [private] |
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 [inline] |
bool ueye::Camera::getAutoGain | ( | ) | const [inline] |
int ueye::Camera::getBinningParam | ( | int * | scale | ) | [private] |
Definition at line 509 of file Camera.cpp.
const char* ueye::Camera::getCameraName | ( | ) | const [inline] |
unsigned int ueye::Camera::getCameraSerialNo | ( | ) | const [inline] |
uEyeColor ueye::Camera::getColorMode | ( | ) | const [inline] |
double ueye::Camera::getExposure | ( | ) |
Definition at line 229 of file Camera.cpp.
bool ueye::Camera::getGainBoost | ( | ) | const [inline] |
unsigned int ueye::Camera::getHardwareGain | ( | ) |
Definition at line 235 of file Camera.cpp.
bool ueye::Camera::getHardwareGamma | ( | ) | const [inline] |
int ueye::Camera::getHeight | ( | ) | const [inline] |
int ueye::Camera::getHeightMax | ( | ) | const [inline] |
int ueye::Camera::getNumberOfCameras | ( | ) | const |
Definition at line 123 of file Camera.cpp.
int ueye::Camera::getPixelClock | ( | ) | const [inline] |
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] |
int ueye::Camera::getWidthMax | ( | ) | const [inline] |
int ueye::Camera::getZoom | ( | ) | const [inline] |
void ueye::Camera::initMemoryPool | ( | int | size | ) | [private] |
Definition at line 566 of file Camera.cpp.
void ueye::Camera::initPrivateVariables | ( | ) | [private] |
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 | ( | ) | [private] |
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.
bool ueye::Camera::auto_exposure_ [private] |
bool ueye::Camera::auto_gain_ [private] |
HIDS ueye::Camera::cam_ [private] |
SENSORINFO ueye::Camera::cam_info_ [private] |
uEyeColor ueye::Camera::color_mode_ [private] |
double ueye::Camera::exposure_time_ [private] |
bool ueye::Camera::flash_global_params_ [private] |
double ueye::Camera::frame_rate_ [private] |
bool ueye::Camera::gain_boost_ [private] |
int ueye::Camera::hardware_gain_ [private] |
bool ueye::Camera::hardware_gamma_ [private] |
std::vector<char*> ueye::Camera::img_mem_ [private] |
std::vector<int> ueye::Camera::img_mem_id_ [private] |
int ueye::Camera::pixel_clock_ [private] |
unsigned int ueye::Camera::serial_number_ [private] |
volatile bool ueye::Camera::stop_capture_ [private] |
CamCaptureCB ueye::Camera::stream_callback_ [private] |
volatile bool ueye::Camera::streaming_ [private] |
boost::thread ueye::Camera::thread_ [private] |
int ueye::Camera::zoom_ [private] |