#include <Camera.h>
Public Types | |
typedef boost::function< void(IplImage *) | 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 () const |
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 () const |
TriggerMode | getTriggerMode () const |
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_ |
bool | stop_capture_ |
CamCaptureCB | stream_callback_ |
bool | streaming_ |
boost::thread | thread_ |
int | zoom_ |
typedef boost::function<void(IplImage *) ueye::Camera::CamCaptureCB) |
Definition at line 117 of file Camera.cpp.
Definition at line 585 of file Camera.cpp.
void ueye::Camera::captureThread | ( | CamCaptureCB | callback | ) | [private] |
Definition at line 642 of file Camera.cpp.
void ueye::Camera::checkError | ( | INT | err | ) | const [inline, private] |
Definition at line 80 of file Camera.cpp.
bool ueye::Camera::checkVersion | ( | int & | major, |
int & | minor, | ||
int & | build, | ||
const char *& | expected | ||
) | [static] |
Definition at line 124 of file Camera.cpp.
void ueye::Camera::closeCamera | ( | ) |
Definition at line 576 of file Camera.cpp.
const char * ueye::Camera::colorModeToString | ( | uEyeColor | mode | ) | [static] |
Definition at line 216 of file Camera.cpp.
void ueye::Camera::destroyMemoryPool | ( | ) | [private] |
Definition at line 633 of file Camera.cpp.
void ueye::Camera::flashUpdateGlobalParams | ( | ) | [private] |
Definition at line 515 of file Camera.cpp.
bool ueye::Camera::forceTrigger | ( | ) |
Definition at line 528 of file Camera.cpp.
bool ueye::Camera::getAutoExposure | ( | ) | const |
Definition at line 277 of file Camera.cpp.
bool ueye::Camera::getAutoGain | ( | ) | const |
Definition at line 299 of file Camera.cpp.
int ueye::Camera::getBinningParam | ( | int * | scale | ) | [private] |
Definition at line 555 of file Camera.cpp.
const char * ueye::Camera::getCameraName | ( | ) | const |
Definition at line 245 of file Camera.cpp.
unsigned int ueye::Camera::getCameraSerialNo | ( | ) | const |
Definition at line 249 of file Camera.cpp.
uEyeColor ueye::Camera::getColorMode | ( | ) | const |
Definition at line 273 of file Camera.cpp.
double ueye::Camera::getExposure | ( | ) | const |
Definition at line 281 of file Camera.cpp.
bool ueye::Camera::getGainBoost | ( | ) | const |
Definition at line 295 of file Camera.cpp.
unsigned int ueye::Camera::getHardwareGain | ( | ) |
Definition at line 303 of file Camera.cpp.
bool ueye::Camera::getHardwareGamma | ( | ) | const |
Definition at line 287 of file Camera.cpp.
int ueye::Camera::getHeight | ( | ) | const |
Definition at line 269 of file Camera.cpp.
int ueye::Camera::getHeightMax | ( | ) | const |
Definition at line 261 of file Camera.cpp.
int ueye::Camera::getNumberOfCameras | ( | ) | const |
Definition at line 139 of file Camera.cpp.
int ueye::Camera::getPixelClock | ( | ) | const |
Definition at line 291 of file Camera.cpp.
unsigned int ueye::Camera::getSerialNumberList | ( | std::vector< unsigned int > & | serial, |
std::vector< unsigned int > & | dev_id | ||
) |
Definition at line 146 of file Camera.cpp.
int ueye::Camera::getSubsampleParam | ( | int * | scale | ) | [private] |
Definition at line 535 of file Camera.cpp.
Definition at line 312 of file Camera.cpp.
TriggerMode ueye::Camera::getTriggerMode | ( | ) | const |
Definition at line 308 of file Camera.cpp.
int ueye::Camera::getWidth | ( | ) | const |
Definition at line 265 of file Camera.cpp.
int ueye::Camera::getWidthMax | ( | ) | const |
Definition at line 257 of file Camera.cpp.
int ueye::Camera::getZoom | ( | ) | const |
Definition at line 253 of file Camera.cpp.
void ueye::Camera::initMemoryPool | ( | int | size | ) | [private] |
Definition at line 590 of file Camera.cpp.
void ueye::Camera::initPrivateVariables | ( | ) | [private] |
Definition at line 96 of file Camera.cpp.
bool ueye::Camera::openCameraCamId | ( | unsigned int | id | ) |
Definition at line 169 of file Camera.cpp.
bool ueye::Camera::openCameraDevId | ( | unsigned int | id | ) |
Definition at line 199 of file Camera.cpp.
bool ueye::Camera::openCameraSerNo | ( | unsigned int | serial_number | ) |
Definition at line 203 of file Camera.cpp.
void ueye::Camera::restartVideoCapture | ( | ) | [private] |
Definition at line 728 of file Camera.cpp.
void ueye::Camera::setAutoExposure | ( | bool * | enable | ) |
Definition at line 330 of file Camera.cpp.
void ueye::Camera::setAutoGain | ( | bool * | enable | ) |
Definition at line 435 of file Camera.cpp.
void ueye::Camera::setColorMode | ( | uEyeColor | mode | ) |
Definition at line 317 of file Camera.cpp.
void ueye::Camera::setExposure | ( | double * | time_ms | ) |
Definition at line 341 of file Camera.cpp.
void ueye::Camera::setFlash | ( | FlashMode | mode, |
int | delay_usec, | ||
unsigned int | duration_usec | ||
) |
Definition at line 491 of file Camera.cpp.
void ueye::Camera::setFlash | ( | FlashMode | mode | ) |
Definition at line 509 of file Camera.cpp.
void ueye::Camera::setFlashWithGlobalParams | ( | FlashMode | mode | ) |
Definition at line 466 of file Camera.cpp.
void ueye::Camera::setFrameRate | ( | double * | rate | ) |
Definition at line 416 of file Camera.cpp.
void ueye::Camera::setGainBoost | ( | bool * | enable | ) |
Definition at line 422 of file Camera.cpp.
void ueye::Camera::setHardwareGain | ( | int * | gain | ) |
Definition at line 446 of file Camera.cpp.
void ueye::Camera::setHardwareGamma | ( | bool * | enable | ) |
Definition at line 349 of file Camera.cpp.
void ueye::Camera::setPixelClock | ( | int * | MHz | ) |
Definition at line 384 of file Camera.cpp.
void ueye::Camera::setTriggerDelay | ( | int | delay_usec | ) |
Definition at line 523 of file Camera.cpp.
bool ueye::Camera::setTriggerMode | ( | TriggerMode | mode | ) |
Definition at line 457 of file Camera.cpp.
void ueye::Camera::setZoom | ( | int * | zoom | ) |
Definition at line 361 of file Camera.cpp.
void ueye::Camera::startVideoCapture | ( | CamCaptureCB | callback | ) |
Definition at line 715 of file Camera.cpp.
void ueye::Camera::stopVideoCapture | ( | ) |
Definition at line 720 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] |
bool ueye::Camera::stop_capture_ [private] |
CamCaptureCB ueye::Camera::stream_callback_ [private] |
bool ueye::Camera::streaming_ [private] |
boost::thread ueye::Camera::thread_ [private] |
int ueye::Camera::zoom_ [private] |