Skip to content

Commit

Permalink
Increased number of buckets per frame
Browse files Browse the repository at this point in the history
  • Loading branch information
temburuyk committed Mar 7, 2020
1 parent 7740ad9 commit ae8dfb3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions calibration/rgbd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
#--------------------------------------------------------------------------------------------

# Camera calibration and distortion parameters (OpenCV)
Camera.fx: 342.367919921875
Camera.fy: 342.367919921875
Camera.fx: 581.367919921875
Camera.fy: 581.367919921875
Camera.cx: 343.889404296875
Camera.cy: 203.87420654296875

Camera.width: 480
Camera.height: 640
Camera.width: 640
Camera.height: 480

# Camera frames per second
Camera.fps: 10.0
Expand Down
8 changes: 4 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ int main(int argc, char **argv)
cv::triangulatePoints( projMatrl, projMatrr, pointsLeft_t0, pointsRight_t0, points4D_t0);
cv::convertPointsFromHomogeneous(points4D_t0.t(), points3D_t0);

cv::Mat points3D_t1, points4D_t1;
/* cv::Mat points3D_t1, points4D_t1;
cv::triangulatePoints( projMatrl, projMatrr, pointsLeft_t1, pointsRight_t1, points4D_t1);
cv::convertPointsFromHomogeneous(points4D_t1.t(), points3D_t1);
cv::convertPointsFromHomogeneous(points4D_t1.t(), points3D_t1);*/

// ---------------------
// Tracking transfomation
Expand All @@ -182,10 +182,10 @@ int main(int argc, char **argv)
displayTracking(imageLeft_t1, pointsLeft_t0, pointsLeft_t1);


points4D = points4D_t0;
/* points4D = points4D_t0;
frame_pose.convertTo(frame_pose32, CV_32F);
points4D = frame_pose32 * points4D;
cv::convertPointsFromHomogeneous(points4D.t(), points3D);
cv::convertPointsFromHomogeneous(points4D.t(), points3D);*/

// ------------------------------------------------
// Intergrating and display
Expand Down
2 changes: 1 addition & 1 deletion src/visualOdometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ void matchingFeatures(cv::Mat& imageLeft_t0, cv::Mat& imageRight_t0,
// --------------------------------------------------------
// Feature tracking using KLT tracker, bucketing and circular matching
// --------------------------------------------------------
int bucket_size = 50;
int bucket_size = imageLeft_t0.rows/10;
int features_per_bucket = 1;
bucketingFeatures(imageLeft_t0, currentVOFeatures, bucket_size, features_per_bucket);

Expand Down

0 comments on commit ae8dfb3

Please sign in to comment.