更新标注与修改opencv报错

master
小白逆袭 2021-12-08 22:09:39 +08:00
parent a1174f1df8
commit 6377e3694d
3 changed files with 7589 additions and 7308 deletions

View File

@ -179,7 +179,7 @@ protected:
int mnLoopNumCoincidences;
int mnLoopNumNotFound;
KeyFrame* mpLoopLastCurrentKF;
g2o::Sim3 ;
g2o::Sim3 mg2oLoopSlw;
g2o::Sim3 mg2oLoopScw;
KeyFrame* mpLoopMatchedKF;
std::vector<MapPoint*> mvpLoopMPs;

File diff suppressed because it is too large Load Diff

View File

@ -1131,7 +1131,12 @@ bool Tracking::ParseIMUParamFile(cv::FileStorage &fSettings)
cv::FileNode node = fSettings["Tbc"];
if(!node.empty())
{
Tbc = node.mat();
// Tbc = node.mat();
int Tbc_rows = static_cast<int>(node["rows"]);
int Tbc_cols = static_cast<int>(node["cols"]);
Tbc = cv::Mat(Tbc_rows, Tbc_cols, CV_32FC1);
node["data"].readRaw("f", Tbc.data, Tbc_rows*Tbc_cols);
if(Tbc.rows != 4 || Tbc.cols != 4)
{
std::cerr << "*Tbc matrix have to be a 4x4 transformation matrix*" << std::endl;