added ability to pass initial transformation to rgbd odometry

This commit is contained in:
Maria Dimashova
2012-03-13 13:07:30 +00:00
parent e4307d05f3
commit f67d9d9038
3 changed files with 15 additions and 12 deletions

View File

@@ -150,10 +150,11 @@ int main(int argc, char** argv)
const float maxDepthDiff = 0.07; //in meters
tm.start();
bool isFound = cv::RGBDOdometry( Rt, grayImage0, depthFlt0, Mat(),
bool isFound = cv::RGBDOdometry( Rt, Mat(),
grayImage0, depthFlt0, Mat(),
grayImage1, depthFlt1, Mat(),
cameraMatrix, iterCounts, minGradMagnitudes,
minDepth, maxDepth, maxDepthDiff, transformationType );
cameraMatrix, minDepth, maxDepth, maxDepthDiff,
iterCounts, minGradMagnitudes, transformationType );
tm.stop();
cout << "Rt = " << Rt << endl;