mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 01:50:24 +08:00
RegVis: if calibration is not found, local features matching using guess is not done, global matching is done instead. CameraModel/StereoCameraModel: added imageSize argument to constructors
This commit is contained in:
@@ -130,9 +130,10 @@ StereoCameraModel::StereoCameraModel(
|
||||
double cx,
|
||||
double cy,
|
||||
double baseline,
|
||||
const Transform & localTransform) :
|
||||
left_(fx, fy, cx, cy, localTransform),
|
||||
right_(fx, fy, cx, cy, localTransform, baseline*-fx)
|
||||
const Transform & localTransform,
|
||||
const cv::Size & imageSize) :
|
||||
left_(fx, fy, cx, cy, localTransform, 0, imageSize),
|
||||
right_(fx, fy, cx, cy, localTransform, baseline*-fx, imageSize)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -144,9 +145,10 @@ StereoCameraModel::StereoCameraModel(
|
||||
double cx,
|
||||
double cy,
|
||||
double baseline,
|
||||
const Transform & localTransform) :
|
||||
left_(name+"_left", fx, fy, cx, cy, localTransform),
|
||||
right_(name+"_right", fx, fy, cx, cy, localTransform, baseline*-fx),
|
||||
const Transform & localTransform,
|
||||
const cv::Size & imageSize) :
|
||||
left_(name+"_left", fx, fy, cx, cy, localTransform, 0, imageSize),
|
||||
right_(name+"_right", fx, fy, cx, cy, localTransform, baseline*-fx, imageSize),
|
||||
name_(name)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user