Commit 0d5a66a9 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Improve construction of debug bas for number of tracks

parent ff5102c9
......@@ -132,11 +132,7 @@ void ProcessorVisualOdometry::preProcess()
capture_image_incoming_->setTracksPrev(tracks_init);
// print a bar with the number of active tracks in incoming
std::string s;
for (int i = 0; i<capture_image_incoming_->getKeyPoints().size(); i++)
{
s += "#";
}
std::string s(capture_image_incoming_->getKeyPoints().size(), '#');
WOLF_INFO("TRACKS: ", capture_image_incoming_->getKeyPoints().size(), " ", s);
auto __attribute__((unused)) dt_preprocess = std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now() - t1).count();
......@@ -314,11 +310,7 @@ void ProcessorVisualOdometry::preProcess()
auto __attribute__((unused)) dt_preprocess = std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now() - t1).count();
// print a bar with the number of active tracks in incoming
std::string s;
for (int i = 0; i<capture_image_incoming_->getKeyPoints().size(); i++)
{
s += "#";
}
std::string s(capture_image_incoming_->getKeyPoints().size(), '#');
WOLF_INFO("TRACKS: ", capture_image_incoming_->getKeyPoints().size(), " ", s);
WOLF_DEBUG( "dt_preprocess (ms): " , dt_preprocess );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment