File tree 6 files changed +10
-7
lines changed
6 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ namespace defSLAM
58
58
* pcl library to determinate the normals of the point cloud and compares them
59
59
* with the estimated by the NRSfM and the SfN. NRSfM tends to be quite noisy.
60
60
*/
61
- float GroundTruthKeyFrame::estimateAngleErrorAndScale ()
61
+ float GroundTruthKeyFrame::estimateAngleErrorAndScale (std::string output_path )
62
62
{
63
63
size_t nval = this ->mvKeysUn .size ();
64
64
cv::Mat iLeft (this ->imGray .clone ());
@@ -197,9 +197,9 @@ namespace defSLAM
197
197
std::ostringstream out;
198
198
out << std::internal << std::setfill (' 0' ) << std::setw (5 )
199
199
<< (unsigned int )(this ->mTimeStamp );
200
- std::string name (" ErrorAngIso" + out.str () + " -" + std::to_string (is) +
200
+ std::string name (output_path+ " / ErrorAngIso" + out.str () + " -" + std::to_string (is) +
201
201
" .txt" );
202
- std::string name2 (" ErrorAngSfN" + out.str () + " -" + std::to_string (is) +
202
+ std::string name2 (output_path+ " / ErrorAngSfN" + out.str () + " -" + std::to_string (is) +
203
203
" .txt" );
204
204
is++;
205
205
GroundTruthTools::saveResults (ErrorAngleIso, name);
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ namespace defSLAM
55
55
* pcl library to determinate the normals of the point cloud and compares them
56
56
* with the estimated by the NRSfM and the SfN. NRSfM tends to be quite noisy.
57
57
*/
58
- float estimateAngleErrorAndScale ();
58
+ float estimateAngleErrorAndScale (std::string output_path );
59
59
60
60
// Drawer purposes. Not used now
61
61
std::vector<cv::Point3f> mvLocalMapPoints, mvStereoMapPoints;
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ namespace defSLAM
56
56
chiLimit_(0.07 )
57
57
{
58
58
cv::FileStorage fSettings (strSettingPath, cv::FileStorage::READ);
59
+ output_path = (std::string)fSettings [" File.outputdir" ];
59
60
pointsToTemplate_ = fSettings [" LocalMapping.pointsToTemplate" ];
60
61
chiLimit_ = fSettings [" LocalMapping.chiLimit" ];
61
62
double reg_ = fSettings [" LocalMapping.Schwarp.Regularizer" ];
@@ -215,7 +216,7 @@ namespace defSLAM
215
216
if (saveResults_)
216
217
{
217
218
float scale =
218
- static_cast <GroundTruthKeyFrame *>(kfForTemplate)->estimateAngleErrorAndScale ();
219
+ static_cast <GroundTruthKeyFrame *>(kfForTemplate)->estimateAngleErrorAndScale (output_path );
219
220
std::cout << " Scale Error Keyframe : " << scale << " " << std::endl;
220
221
}
221
222
if (kfForTemplate != mpMap->GetAllKeyFrames ()[0 ])
Original file line number Diff line number Diff line change @@ -135,6 +135,8 @@ namespace defSLAM
135
135
double bendingReg_;
136
136
// Save results
137
137
bool saveResults_;
138
+ private:
139
+ string output_path;
138
140
};
139
141
140
142
} // namespace defSLAM
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ namespace defSLAM
44
44
RegLap = fSettings [" Regularizer.laplacian" ];
45
45
RegInex = fSettings [" Regularizer.Inextensibility" ];
46
46
RegTemp = fSettings [" Regularizer.temporal" ];
47
- output_path = (std::string) fSettings [" File.outputdir" ];
47
+ output_path = (std::string)fSettings [" File.outputdir" ];
48
48
49
49
}
50
50
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ namespace ORB_SLAM2
61
61
62
62
cv::FileStorage fSettings (strSettingPath, cv::FileStorage::READ);
63
63
// Load output dir
64
- output_path = (std::string) fSettings [" File.outputdir" ];
64
+ output_path = (std::string) fSettings [" File.outputdir" ];
65
65
// Load camera parameters from settings file
66
66
float fx = fSettings [" Camera.fx" ];
67
67
float fy = fSettings [" Camera.fy" ];
You can’t perform that action at this time.
0 commit comments