40 static bool available();
44 const std::string & pathSideBySide,
45 bool rectifyImages =
false,
47 const Transform & localTransform = Transform::getIdentity());
49 const std::string & pathLeft,
50 const std::string & pathRight,
51 bool rectifyImages =
false,
53 const Transform & localTransform = Transform::getIdentity());
56 bool rectifyImages =
false,
57 float imageRate = 0.0f,
58 const Transform & localTransform = Transform::getIdentity());
62 bool rectifyImages =
false,
63 float imageRate = 0.0f,
64 const Transform & localTransform = Transform::getIdentity());
67 virtual bool init(
const std::string & calibrationFolder =
".",
const std::string & cameraName =
"");
68 virtual bool isCalibrated()
const;
71 void setResolution(
int width,
int height) {_width=width, _height=height;}
72 void setFOURCC(
const std::string & fourcc) { _fourcc = fourcc; }
73 void setRightGrayScale(
bool enabled =
true) {rightGrayScale_ = enabled;}
76 virtual SensorData captureImage(SensorCaptureInfo * info = 0);
79 cv::VideoCapture capture_;
80 cv::VideoCapture capture2_;
84 StereoCameraModel stereoModel_;
85 std::string cameraName_;
86 CameraVideo::Source src_;