Options used when creating a camera capture object of type CImageGrabber_FlyCapture2.
Definition at line 21 of file CImageGrabber_FlyCapture2.h.
#include <mrpt/hwdrivers/CImageGrabber_FlyCapture2.h>
Public Member Functions | |
TCaptureOptions_FlyCapture2 () | |
void | loadOptionsFrom (const mrpt::utils::CConfigFileBase &configSource, const std::string §ionName, const std::string &prefix=std::string()) |
Loads all the options from a config file. More... | |
Public Attributes | |
Camera to open | |
unsigned int | camera_index |
(Default=0) If open_by_guid==false, will open the i'th camera based on this 0-based index. More... | |
bool | open_by_guid |
(Default=false) Set to true to force opening a camera by its GUID, in camera_guid More... | |
unsigned int | camera_guid [4] |
GUID of the camera to open, only when open_by_guid==true. More... | |
Camera settings | |
std::string | videomode |
(Default="", which means default) A string with a video mode, from the list available in FlyCapture2::VideoMode, eg. More... | |
std::string | framerate |
(Default="", which means default) A string with a framerate, from the list available in FlyCapture2::FrameRate, eg. More... | |
std::string | grabmode |
(Default="BUFFER_FRAMES") A string with a grab mode, from the list available in FlyCapture2::GrabMode More... | |
unsigned int | numBuffers |
(Default=30) Number of images that can be stored in the buffer, if enabled with grabMode. More... | |
int | grabTimeout |
(Default=5000) Time in milliseconds that RetrieveBuffer() and WaitForBufferEvent() will wait for an image before timing out and returning. More... | |
bool | trigger_enabled |
(default=false) Enable non-free-running mode, only capturing when a given input trigger signal is detected. More... | |
unsigned int | trigger_polarity |
(default=0) Refer to PGR docs. More... | |
unsigned int | trigger_source |
(default=0) Refer to PGR docs. More... | |
unsigned int | trigger_mode |
(default=0) Refer to PGR docs. More... | |
bool | strobe_enabled |
(default=false) Enable the generation of a strobe signal in GPIO. More... | |
unsigned int | strobe_source |
(default=0) Refer to PGR docs. More... | |
unsigned int | strobe_polarity |
(default=0) Refer to PGR docs. More... | |
float | strobe_delay |
(default=0.0) Delay in ms. More... | |
float | strobe_duration |
(default=1.0) Pulse durationin ms. More... | |
bool | autoexposure_auto |
(default=true) More... | |
bool | autoexposure_onOff |
(default=true) Activate this feature More... | |
bool | autoexposure_abs |
(default=true) Numeric mode (absolute or integer values) More... | |
float | autoexposure_EV |
(default=0.0) Exposure Value, if autoexposure_auto=false More... | |
bool | shutter_auto |
(default=true) More... | |
bool | shutter_abs |
(default=true) Numeric mode (absolute or integer values) More... | |
float | shutter_time_ms |
(default=4.0) Shutter time, if shutter_auto=false More... | |
bool | gain_auto |
(default=true) More... | |
bool | gain_abs |
(default=true) Numeric mode (absolute or integer values) More... | |
float | gain_dB |
(default=0.0) Sensor gain, if gain_auto=false More... | |
bool | stereo_mode |
(default=false) Obtain images as stereo pairs with Flycapture2 More... | |
bool | get_rectified |
(default=false) Rectify stereo images (needs Triclops installed) More... | |
unsigned int | rect_width |
(default=640) Width for output rectified images More... | |
unsigned int | rect_height |
(default=480) Height for output rectified images More... | |
TCaptureOptions_FlyCapture2::TCaptureOptions_FlyCapture2 | ( | ) |
Definition at line 144 of file CImageGrabber_FlyCapture2.cpp.
References camera_guid.
void TCaptureOptions_FlyCapture2::loadOptionsFrom | ( | const mrpt::utils::CConfigFileBase & | configSource, |
const std::string & | sectionName, | ||
const std::string & | prefix = std::string() |
||
) |
Loads all the options from a config file.
Expected format:
Definition at line 179 of file CImageGrabber_FlyCapture2.cpp.
References ASSERTMSG_, autoexposure_abs, autoexposure_auto, autoexposure_EV, autoexposure_onOff, camera_guid, camera_index, framerate, gain_abs, gain_auto, gain_dB, get_rectified, grabmode, grabTimeout, numBuffers, open_by_guid, mrpt::utils::CConfigFileBase::read_bool(), mrpt::utils::CConfigFileBase::read_float(), mrpt::utils::CConfigFileBase::read_int(), mrpt::utils::CConfigFileBase::read_string(), mrpt::utils::CConfigFileBase::read_uint64_t(), rect_height, rect_width, shutter_abs, shutter_auto, shutter_time_ms, stereo_mode, strobe_delay, strobe_duration, strobe_enabled, strobe_polarity, strobe_source, mrpt::system::tokenize(), trigger_enabled, trigger_mode, trigger_polarity, trigger_source, and videomode.
bool mrpt::hwdrivers::TCaptureOptions_FlyCapture2::autoexposure_abs |
(default=true) Numeric mode (absolute or integer values)
Definition at line 89 of file CImageGrabber_FlyCapture2.h.
Referenced by loadOptionsFrom(), and mrpt::hwdrivers::CImageGrabber_FlyCapture2::open().
bool mrpt::hwdrivers::TCaptureOptions_FlyCapture2::autoexposure_auto |
(default=true)
Definition at line 85 of file CImageGrabber_FlyCapture2.h.
Referenced by loadOptionsFrom(), and mrpt::hwdrivers::CImageGrabber_FlyCapture2::open().
float mrpt::hwdrivers::TCaptureOptions_FlyCapture2::autoexposure_EV |
(default=0.0) Exposure Value, if autoexposure_auto=false
Definition at line 91 of file CImageGrabber_FlyCapture2.h.
Referenced by loadOptionsFrom(), and mrpt::hwdrivers::CImageGrabber_FlyCapture2::open().
bool mrpt::hwdrivers::TCaptureOptions_FlyCapture2::autoexposure_onOff |
(default=true) Activate this feature
Definition at line 87 of file CImageGrabber_FlyCapture2.h.
Referenced by loadOptionsFrom(), and mrpt::hwdrivers::CImageGrabber_FlyCapture2::open().
unsigned int mrpt::hwdrivers::TCaptureOptions_FlyCapture2::camera_guid[4] |
GUID of the camera to open, only when open_by_guid==true.
Definition at line 34 of file CImageGrabber_FlyCapture2.h.
Referenced by loadOptionsFrom(), mrpt::hwdrivers::CImageGrabber_FlyCapture2::open(), and TCaptureOptions_FlyCapture2().
unsigned int mrpt::hwdrivers::TCaptureOptions_FlyCapture2::camera_index |
(Default=0) If open_by_guid==false, will open the i'th camera based on this 0-based index.
Definition at line 29 of file CImageGrabber_FlyCapture2.h.
Referenced by loadOptionsFrom(), and mrpt::hwdrivers::CImageGrabber_FlyCapture2::open().
std::string mrpt::hwdrivers::TCaptureOptions_FlyCapture2::framerate |
(Default="", which means default) A string with a framerate, from the list available in FlyCapture2::FrameRate, eg.
"FRAMERATE_30", etc.
Definition at line 48 of file CImageGrabber_FlyCapture2.h.
Referenced by loadOptionsFrom(), and mrpt::hwdrivers::CImageGrabber_FlyCapture2::open().
bool mrpt::hwdrivers::TCaptureOptions_FlyCapture2::gain_abs |
(default=true) Numeric mode (absolute or integer values)
Definition at line 101 of file CImageGrabber_FlyCapture2.h.
Referenced by loadOptionsFrom(), and mrpt::hwdrivers::CImageGrabber_FlyCapture2::open().
bool mrpt::hwdrivers::TCaptureOptions_FlyCapture2::gain_auto |
(default=true)
Definition at line 99 of file CImageGrabber_FlyCapture2.h.
Referenced by loadOptionsFrom(), and mrpt::hwdrivers::CImageGrabber_FlyCapture2::open().
float mrpt::hwdrivers::TCaptureOptions_FlyCapture2::gain_dB |
(default=0.0) Sensor gain, if gain_auto=false
Definition at line 103 of file CImageGrabber_FlyCapture2.h.
Referenced by loadOptionsFrom(), and mrpt::hwdrivers::CImageGrabber_FlyCapture2::open().
bool mrpt::hwdrivers::TCaptureOptions_FlyCapture2::get_rectified |
(default=false) Rectify stereo images (needs Triclops installed)
Definition at line 108 of file CImageGrabber_FlyCapture2.h.
Referenced by mrpt::hwdrivers::CImageGrabber_FlyCapture2::getObservation(), and loadOptionsFrom().
std::string mrpt::hwdrivers::TCaptureOptions_FlyCapture2::grabmode |
(Default="BUFFER_FRAMES") A string with a grab mode, from the list available in FlyCapture2::GrabMode
Definition at line 53 of file CImageGrabber_FlyCapture2.h.
Referenced by loadOptionsFrom(), and mrpt::hwdrivers::CImageGrabber_FlyCapture2::open().
int mrpt::hwdrivers::TCaptureOptions_FlyCapture2::grabTimeout |
(Default=5000) Time in milliseconds that RetrieveBuffer() and WaitForBufferEvent() will wait for an image before timing out and returning.
Definition at line 60 of file CImageGrabber_FlyCapture2.h.
Referenced by loadOptionsFrom(), and mrpt::hwdrivers::CImageGrabber_FlyCapture2::open().
unsigned int mrpt::hwdrivers::TCaptureOptions_FlyCapture2::numBuffers |
(Default=30) Number of images that can be stored in the buffer, if enabled with grabMode.
Definition at line 56 of file CImageGrabber_FlyCapture2.h.
Referenced by loadOptionsFrom(), and mrpt::hwdrivers::CImageGrabber_FlyCapture2::open().
bool mrpt::hwdrivers::TCaptureOptions_FlyCapture2::open_by_guid |
(Default=false) Set to true to force opening a camera by its GUID, in camera_guid
Definition at line 32 of file CImageGrabber_FlyCapture2.h.
Referenced by loadOptionsFrom(), and mrpt::hwdrivers::CImageGrabber_FlyCapture2::open().
unsigned int mrpt::hwdrivers::TCaptureOptions_FlyCapture2::rect_height |
(default=480) Height for output rectified images
Definition at line 112 of file CImageGrabber_FlyCapture2.h.
Referenced by loadOptionsFrom(), and mrpt::hwdrivers::CImageGrabber_FlyCapture2::open().
unsigned int mrpt::hwdrivers::TCaptureOptions_FlyCapture2::rect_width |
(default=640) Width for output rectified images
Definition at line 110 of file CImageGrabber_FlyCapture2.h.
Referenced by loadOptionsFrom(), and mrpt::hwdrivers::CImageGrabber_FlyCapture2::open().
bool mrpt::hwdrivers::TCaptureOptions_FlyCapture2::shutter_abs |
(default=true) Numeric mode (absolute or integer values)
Definition at line 95 of file CImageGrabber_FlyCapture2.h.
Referenced by loadOptionsFrom(), and mrpt::hwdrivers::CImageGrabber_FlyCapture2::open().
bool mrpt::hwdrivers::TCaptureOptions_FlyCapture2::shutter_auto |
(default=true)
Definition at line 93 of file CImageGrabber_FlyCapture2.h.
Referenced by loadOptionsFrom(), and mrpt::hwdrivers::CImageGrabber_FlyCapture2::open().
float mrpt::hwdrivers::TCaptureOptions_FlyCapture2::shutter_time_ms |
(default=4.0) Shutter time, if shutter_auto=false
Definition at line 97 of file CImageGrabber_FlyCapture2.h.
Referenced by loadOptionsFrom(), and mrpt::hwdrivers::CImageGrabber_FlyCapture2::open().
bool mrpt::hwdrivers::TCaptureOptions_FlyCapture2::stereo_mode |
(default=false) Obtain images as stereo pairs with Flycapture2
Definition at line 106 of file CImageGrabber_FlyCapture2.h.
Referenced by mrpt::hwdrivers::CImageGrabber_FlyCapture2::isStereo(), loadOptionsFrom(), and mrpt::hwdrivers::CImageGrabber_FlyCapture2::open().
float mrpt::hwdrivers::TCaptureOptions_FlyCapture2::strobe_delay |
(default=0.0) Delay in ms.
Refer to PGR docs.
Definition at line 80 of file CImageGrabber_FlyCapture2.h.
Referenced by loadOptionsFrom(), and mrpt::hwdrivers::CImageGrabber_FlyCapture2::open().
float mrpt::hwdrivers::TCaptureOptions_FlyCapture2::strobe_duration |
(default=1.0) Pulse durationin ms.
Refer to PGR docs.
Definition at line 82 of file CImageGrabber_FlyCapture2.h.
Referenced by loadOptionsFrom(), and mrpt::hwdrivers::CImageGrabber_FlyCapture2::open().
bool mrpt::hwdrivers::TCaptureOptions_FlyCapture2::strobe_enabled |
(default=false) Enable the generation of a strobe signal in GPIO.
Refer to PGR docs.
Definition at line 74 of file CImageGrabber_FlyCapture2.h.
Referenced by loadOptionsFrom(), and mrpt::hwdrivers::CImageGrabber_FlyCapture2::open().
unsigned int mrpt::hwdrivers::TCaptureOptions_FlyCapture2::strobe_polarity |
(default=0) Refer to PGR docs.
Definition at line 78 of file CImageGrabber_FlyCapture2.h.
Referenced by loadOptionsFrom(), and mrpt::hwdrivers::CImageGrabber_FlyCapture2::open().
unsigned int mrpt::hwdrivers::TCaptureOptions_FlyCapture2::strobe_source |
(default=0) Refer to PGR docs.
Definition at line 76 of file CImageGrabber_FlyCapture2.h.
Referenced by loadOptionsFrom(), and mrpt::hwdrivers::CImageGrabber_FlyCapture2::open().
bool mrpt::hwdrivers::TCaptureOptions_FlyCapture2::trigger_enabled |
(default=false) Enable non-free-running mode, only capturing when a given input trigger signal is detected.
Refer to PGR docs.
Definition at line 64 of file CImageGrabber_FlyCapture2.h.
Referenced by loadOptionsFrom(), and mrpt::hwdrivers::CImageGrabber_FlyCapture2::open().
unsigned int mrpt::hwdrivers::TCaptureOptions_FlyCapture2::trigger_mode |
(default=0) Refer to PGR docs.
Definition at line 70 of file CImageGrabber_FlyCapture2.h.
Referenced by loadOptionsFrom(), and mrpt::hwdrivers::CImageGrabber_FlyCapture2::open().
unsigned int mrpt::hwdrivers::TCaptureOptions_FlyCapture2::trigger_polarity |
(default=0) Refer to PGR docs.
Definition at line 66 of file CImageGrabber_FlyCapture2.h.
Referenced by loadOptionsFrom(), and mrpt::hwdrivers::CImageGrabber_FlyCapture2::open().
unsigned int mrpt::hwdrivers::TCaptureOptions_FlyCapture2::trigger_source |
(default=0) Refer to PGR docs.
Definition at line 68 of file CImageGrabber_FlyCapture2.h.
Referenced by loadOptionsFrom(), and mrpt::hwdrivers::CImageGrabber_FlyCapture2::open().
std::string mrpt::hwdrivers::TCaptureOptions_FlyCapture2::videomode |
(Default="", which means default) A string with a video mode, from the list available in FlyCapture2::VideoMode, eg.
"VIDEOMODE_640x480Y8", etc.
Definition at line 43 of file CImageGrabber_FlyCapture2.h.
Referenced by loadOptionsFrom(), and mrpt::hwdrivers::CImageGrabber_FlyCapture2::open().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019 |