Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidPetkovsek committed Jul 25, 2022
1 parent d6bcba3 commit bf03fcc
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
6 changes: 4 additions & 2 deletions include/Atlas.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
#include <boost/serialization/vector.hpp>
#include <mutex>
#include <set>
#include <map>
#include <vector>

#include "GeometricCamera.h"
#include "KannalaBrandt8.h"
Expand Down Expand Up @@ -101,7 +103,7 @@ class Atlas {
std::vector<MapPoint*> GetAllMapPoints();
std::vector<MapPoint*> GetReferenceMapPoints();

vector<Map*> GetAllMaps();
std::vector<Map*> GetAllMaps();

int CountMaps();

Expand All @@ -123,7 +125,7 @@ class Atlas {
void PreSave();
void PostLoad();

map<long unsigned int, KeyFrame*> GetAtlasKeyframes();
std::map<long unsigned int, KeyFrame*> GetAtlasKeyframes();

void SetKeyFrameDababase(KeyFrameDatabase* pKFDB);
KeyFrameDatabase* GetKeyFrameDatabase();
Expand Down
5 changes: 1 addition & 4 deletions include/Frame.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
*/


#ifndef FRAME_H
#define FRAME_H
#pragma once

#include<vector>

Expand Down Expand Up @@ -370,5 +369,3 @@ class Frame
};

}// namespace ORB_SLAM

#endif // FRAME_H
6 changes: 3 additions & 3 deletions include/Tracking.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ class Tracking {
// matching.
Sophus::SE3f GrabImageStereo(const cv::Mat& imRectLeft,
const cv::Mat& imRectRight,
const double& timestamp, string filename);
const double& timestamp, const string &filename);
Sophus::SE3f GrabImageRGBD(const cv::Mat& imRGB, const cv::Mat& imD,
const double& timestamp, string filename);
const double& timestamp, const string &filename);
Sophus::SE3f GrabImageMonocular(const cv::Mat& im, const double& timestamp,
string filename);
const string &filename);

void GrabImuData(const IMU::Point& imuMeasurement);

Expand Down
13 changes: 7 additions & 6 deletions src/System.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "System.h"

#include <openssl/md5.h>
#include <opencv2/opencv.hpp>
#include <pangolin/pangolin.h>

#include "ImprovedTypes.hpp"
Expand Down Expand Up @@ -252,19 +253,19 @@ Sophus::SE3f System::TrackStereo(const cv::Mat& imLeft, const cv::Mat& imRight,

cv::Mat imLeftToFeed, imRightToFeed;
if (settings_ && settings_->needToRectify()) {
cv::Mat M1l = settings_->M1l();
cv::Mat M2l = settings_->M2l();
cv::Mat M1r = settings_->M1r();
cv::Mat M2r = settings_->M2r();
const cv::Mat &M1l = settings_->M1l();
const cv::Mat &M2l = settings_->M2l();
const cv::Mat &M1r = settings_->M1r();
const cv::Mat &M2r = settings_->M2r();

cv::remap(imLeft, imLeftToFeed, M1l, M2l, cv::INTER_LINEAR);
cv::remap(imRight, imRightToFeed, M1r, M2r, cv::INTER_LINEAR);
} else if (settings_ && settings_->needToResize()) {
cv::resize(imLeft, imLeftToFeed, settings_->newImSize());
cv::resize(imRight, imRightToFeed, settings_->newImSize());
} else {
imLeftToFeed = imLeft.clone();
imRightToFeed = imRight.clone();
imLeftToFeed = imLeft;
imRightToFeed = imRight;
}

// Check mode change
Expand Down
6 changes: 3 additions & 3 deletions src/Tracking.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1363,7 +1363,7 @@ void Tracking::SetLoopClosing(LoopClosing* pLoopClosing) {
Sophus::SE3f Tracking::GrabImageStereo(const cv::Mat& imRectLeft,
const cv::Mat& imRectRight,
const double& timestamp,
string filename) {
const string &filename) {
// cout << "GrabImageStereo" << endl;

mImGray = imRectLeft;
Expand Down Expand Up @@ -1428,7 +1428,7 @@ Sophus::SE3f Tracking::GrabImageStereo(const cv::Mat& imRectLeft,
}

Sophus::SE3f Tracking::GrabImageRGBD(const cv::Mat& imRGB, const cv::Mat& imD,
const double& timestamp, string filename) {
const double& timestamp, const string &filename) {
mImGray = imRGB;
cv::Mat imDepth = imD;

Expand Down Expand Up @@ -1470,7 +1470,7 @@ Sophus::SE3f Tracking::GrabImageRGBD(const cv::Mat& imRGB, const cv::Mat& imD,

Sophus::SE3f Tracking::GrabImageMonocular(const cv::Mat& im,
const double& timestamp,
string filename) {
const string &filename) {
mImGray = im;
if (mImGray.channels() == 3) {
if (mbRGB)
Expand Down

0 comments on commit bf03fcc

Please sign in to comment.