![]() |
ZED Open Capture
v0.6.0
Low level camera driver for the ZED stereo camera family
|
Classes | |
class | CSimpleIniTempl |
struct | SI_GenericCase |
struct | SI_GenericNoCase |
class | SI_ConvertA |
class | SI_ConvertW |
struct | SI_NoCase |
class | ConfManager |
class | StereoSgbmPar |
The StereoSgbmPar class is used to store/retrieve the stereo matching parameters. More... | |
class | StopWatch |
Stop Timer used to measure time intervals. More... | |
Typedefs | |
typedef unsigned int | UTF32 |
typedef unsigned short | UTF16 |
typedef unsigned char | UTF8 |
typedef CSimpleIniTempl< char, SI_NoCase< char >, SI_ConvertA< char > > | CSimpleIniA |
typedef CSimpleIniTempl< char, SI_Case< char >, SI_ConvertA< char > > | CSimpleIniCaseA |
typedef CSimpleIniTempl< UChar, SI_NoCase< UChar >, SI_ConvertW< UChar > > | CSimpleIniW |
typedef CSimpleIniTempl< UChar, SI_Case< UChar >, SI_ConvertW< UChar > > | CSimpleIniCaseW |
Enumerations | |
enum | SI_Error { SI_OK = 0 , SI_UPDATED = 1 , SI_INSERTED = 2 , SI_FAIL = -1 , SI_NOMEM = -2 , SI_FILE = -3 } |
enum | ConversionResult { conversionOK , sourceExhausted , targetExhausted , sourceIllegal } |
enum | ConversionFlags { strictConversion = 0 , lenientConversion } |
Functions | |
ConversionResult | ConvertUTF8toUTF16 (const UTF8 **sourceStart, const UTF8 *sourceEnd, UTF16 **targetStart, UTF16 *targetEnd, ConversionFlags flags) |
ConversionResult | ConvertUTF16toUTF8 (const UTF16 **sourceStart, const UTF16 *sourceEnd, UTF8 **targetStart, UTF8 *targetEnd, ConversionFlags flags) |
ConversionResult | ConvertUTF8toUTF32 (const UTF8 **sourceStart, const UTF8 *sourceEnd, UTF32 **targetStart, UTF32 *targetEnd, ConversionFlags flags) |
ConversionResult | ConvertUTF32toUTF8 (const UTF32 **sourceStart, const UTF32 *sourceEnd, UTF8 **targetStart, UTF8 *targetEnd, ConversionFlags flags) |
ConversionResult | ConvertUTF16toUTF32 (const UTF16 **sourceStart, const UTF16 *sourceEnd, UTF32 **targetStart, UTF32 *targetEnd, ConversionFlags flags) |
ConversionResult | ConvertUTF32toUTF16 (const UTF32 **sourceStart, const UTF32 *sourceEnd, UTF16 **targetStart, UTF16 *targetEnd, ConversionFlags flags) |
Boolean | isLegalUTF8Sequence (const UTF8 *source, const UTF8 *sourceEnd) |
std::vector< std::string > & | split (const std::string &s, char delim, std::vector< std::string > &elems) |
std::vector< std::string > | split (const std::string &s, char delim) |
bool | checkFile (std::string path) |
bool | downloadCalibrationFile (unsigned int serial_number, std::string &calibration_file) |
bool | initCalibration (std::string calibration_file, cv::Size2i image_size, cv::Mat &map_left_x, cv::Mat &map_left_y, cv::Mat &map_right_x, cv::Mat &map_right_y, cv::Mat &cameraMatrix_left, cv::Mat &cameraMatrix_right, double *baseline=nullptr) |
void | showImage (std::string name, cv::UMat &img, sl_oc::video::RESOLUTION res, bool change_name=true, std::string info="") |
Rescale the OpenCV T-API images [cv::UMat] according to the selected resolution to better display them on screen and show. More... | |
void | showImage (std::string name, cv::Mat &img, sl_oc::video::RESOLUTION res, bool change_name=true, std::string info="") |
Rescale the OpenCV images [cv::Mat] according to the selected resolution to better display them on screen and show. More... | |
Variables | |
const std::string | STEREO_PAR_FILENAME = "zed_oc_stereo.yaml" |
STEREO_PAR_FILENAME default stereo parameter configuration file. More... | |
typedef CSimpleIniTempl<char,SI_NoCase<char>, SI_ConvertA<char> > sl_oc::tools::CSimpleIniA |
Definition at line 3935 of file calibration.hpp.
typedef CSimpleIniTempl<char,SI_Case<char>, SI_ConvertA<char> > sl_oc::tools::CSimpleIniCaseA |
Definition at line 3937 of file calibration.hpp.
typedef CSimpleIniTempl< wchar_t, SI_Case< wchar_t >, SI_ConvertW< wchar_t > > sl_oc::tools::CSimpleIniCaseW |
Definition at line 3943 of file calibration.hpp.
typedef CSimpleIniTempl< wchar_t, SI_NoCase< wchar_t >, SI_ConvertW< wchar_t > > sl_oc::tools::CSimpleIniW |
Definition at line 3941 of file calibration.hpp.
typedef unsigned short sl_oc::tools::UTF16 |
Definition at line 2769 of file calibration.hpp.
typedef unsigned int sl_oc::tools::UTF32 |
Definition at line 2768 of file calibration.hpp.
typedef unsigned char sl_oc::tools::UTF8 |
Definition at line 2770 of file calibration.hpp.
Enumerator | |
---|---|
conversionOK | |
sourceExhausted | |
targetExhausted | |
sourceIllegal |
Definition at line 2779 of file calibration.hpp.
Definition at line 93 of file calibration.hpp.
bool sl_oc::tools::checkFile | ( | std::string | path | ) |
Definition at line 4048 of file calibration.hpp.
Referenced by downloadCalibrationFile(), and initCalibration().
ConversionResult sl_oc::tools::ConvertUTF16toUTF32 | ( | const UTF16 ** | sourceStart, |
const UTF16 * | sourceEnd, | ||
UTF32 ** | targetStart, | ||
UTF32 * | targetEnd, | ||
ConversionFlags | flags | ||
) |
Definition at line 2893 of file calibration.hpp.
References conversionOK, sourceExhausted, sourceIllegal, strictConversion, and targetExhausted.
ConversionResult sl_oc::tools::ConvertUTF16toUTF8 | ( | const UTF16 ** | sourceStart, |
const UTF16 * | sourceEnd, | ||
UTF8 ** | targetStart, | ||
UTF8 * | targetEnd, | ||
ConversionFlags | flags | ||
) |
Definition at line 2998 of file calibration.hpp.
References conversionOK, sourceExhausted, sourceIllegal, strictConversion, and targetExhausted.
Referenced by sl_oc::tools::SI_ConvertW< SI_CHAR >::ConvertToStore().
ConversionResult sl_oc::tools::ConvertUTF32toUTF16 | ( | const UTF32 ** | sourceStart, |
const UTF32 * | sourceEnd, | ||
UTF16 ** | targetStart, | ||
UTF16 * | targetEnd, | ||
ConversionFlags | flags | ||
) |
Definition at line 2842 of file calibration.hpp.
References conversionOK, sourceIllegal, strictConversion, and targetExhausted.
ConversionResult sl_oc::tools::ConvertUTF32toUTF8 | ( | const UTF32 ** | sourceStart, |
const UTF32 * | sourceEnd, | ||
UTF8 ** | targetStart, | ||
UTF8 * | targetEnd, | ||
ConversionFlags | flags | ||
) |
Definition at line 3215 of file calibration.hpp.
References conversionOK, sourceIllegal, strictConversion, and targetExhausted.
Referenced by sl_oc::tools::SI_ConvertW< SI_CHAR >::ConvertToStore().
ConversionResult sl_oc::tools::ConvertUTF8toUTF16 | ( | const UTF8 ** | sourceStart, |
const UTF8 * | sourceEnd, | ||
UTF16 ** | targetStart, | ||
UTF16 * | targetEnd, | ||
ConversionFlags | flags | ||
) |
Definition at line 3134 of file calibration.hpp.
References conversionOK, sourceExhausted, sourceIllegal, strictConversion, and targetExhausted.
Referenced by sl_oc::tools::SI_ConvertW< SI_CHAR >::ConvertFromStore().
ConversionResult sl_oc::tools::ConvertUTF8toUTF32 | ( | const UTF8 ** | sourceStart, |
const UTF8 * | sourceEnd, | ||
UTF32 ** | targetStart, | ||
UTF32 * | targetEnd, | ||
ConversionFlags | flags | ||
) |
Definition at line 3278 of file calibration.hpp.
References conversionOK, sourceExhausted, sourceIllegal, strictConversion, and targetExhausted.
Referenced by sl_oc::tools::SI_ConvertW< SI_CHAR >::ConvertFromStore().
bool sl_oc::tools::downloadCalibrationFile | ( | unsigned int | serial_number, |
std::string & | calibration_file | ||
) |
bool sl_oc::tools::initCalibration | ( | std::string | calibration_file, |
cv::Size2i | image_size, | ||
cv::Mat & | map_left_x, | ||
cv::Mat & | map_left_y, | ||
cv::Mat & | map_right_x, | ||
cv::Mat & | map_right_y, | ||
cv::Mat & | cameraMatrix_left, | ||
cv::Mat & | cameraMatrix_right, | ||
double * | baseline = nullptr |
||
) |
Definition at line 4172 of file calibration.hpp.
References checkFile(), sl_oc::tools::ConfManager::getValue(), and sl_oc::tools::ConfManager::isOpened().
Referenced by main().
Definition at line 3124 of file calibration.hpp.
void sl_oc::tools::showImage | ( | std::string | name, |
cv::Mat & | img, | ||
sl_oc::video::RESOLUTION | res, | ||
bool | change_name = true , |
||
std::string | info = "" |
||
) |
Rescale the OpenCV images [cv::Mat] according to the selected resolution to better display them on screen and show.
name | Name of the display window |
img | Image to be displayed |
res | Image resolution |
change_name | Add rescaling information in window name if true |
info | optional info string |
Definition at line 64 of file ocv_display.hpp.
References sl_oc::video::HD1080, sl_oc::video::HD2K, sl_oc::video::HD720, and sl_oc::video::VGA.
void sl_oc::tools::showImage | ( | std::string | name, |
cv::UMat & | img, | ||
sl_oc::video::RESOLUTION | res, | ||
bool | change_name = true , |
||
std::string | info = "" |
||
) |
Rescale the OpenCV T-API images [cv::UMat] according to the selected resolution to better display them on screen and show.
name | Name of the display window |
img | Image to be displayed |
res | Image resolution |
change_name | Add rescaling information in window name if true |
info | optional info string |
Definition at line 27 of file ocv_display.hpp.
References sl_oc::video::HD1080, sl_oc::video::HD2K, sl_oc::video::HD720, and sl_oc::video::VGA.
Referenced by applyStereoMatching(), and main().
|
inline |
Definition at line 3997 of file calibration.hpp.
References split().
|
inline |
Definition at line 3988 of file calibration.hpp.
Referenced by sl_oc::tools::ConfManager::getValue(), sl_oc::tools::ConfManager::setValue(), and split().
const std::string sl_oc::tools::STEREO_PAR_FILENAME = "zed_oc_stereo.yaml" |
STEREO_PAR_FILENAME default stereo parameter configuration file.
Definition at line 14 of file stereo.hpp.
Referenced by sl_oc::tools::StereoSgbmPar::load(), and sl_oc::tools::StereoSgbmPar::save().