This repository contains multiple MATLAB program that is related to StructureFromMotion and VisualSLAM. You can find a brief introduction to visual odometry and a step-by-step tutorial below on how to use GitHub and MATLAB together. You can also find tutorial videos at the end of this page for more guidance.
You can download the sample images here: Download Link
Tutorial slide for Visual Odometry: Link
Visual odometry in robotics and computer vision is a process of analyzing camera images in order to determine the position of a robot. This technology is widely adapted in various fields of applications, including exploration rovers used in planatory explorations.
In unmanned aerial robotics, visual odometry can be utilized to achieve multiple purposes, such as surveying & mapping. Visual odometry can also be used to estimate the location of a UAV, recovering relative translation and rotation (Motion) by tracking image features over time using a calibrated camera model.
Link to MATLAB Visual Odometry: MATLAB Visual Odometry
Introductory slide for GitHub and MATLAB collaborative coding: Link
MATLAB and GitHub can be used together to better achieve a collaborative coding and developing environment between developers or programmers. The setup of using MATLAB and Git would only take a few steps:
You can find the installation link for Git here: Link
MATLAB Official Website: Link
You will also need to have a GitHub account for this. You can create one in the GitHub webpage: Link
You can create a repository by clicking on the "New" button on the left panel.
Alternatively, repository owners can invite collaborators to a repository in "Settings" --> "Collaborators".
You can copy the repository link at the front page of a repository by clicking the green "Code" button.
Open MATLAB and right click on the left empty space. You will see the option "Source Control". Click on it and paste the GitHub repository link that you just copied and click "Retrieve". Wait until the repository has been pulled to the local machine when you see the files appear on the left hand side.
After the local repository is created by retrieving from the cloud repository (Step 4 above), you can start editing the codes!
There are multiple source control functions as shown above. You can know more about them through this tutorial: Link
Remember to use the "Push" function to sync everything back to the remtoe repository, otherwise everything will just stay in the local machine!
Here are some tutorial videos for your to follow:
Offical MATLAB & Git Tutorial: Link
A Step-by-step version: Link
We wish to show our appreciation for the code from the MATLAB official community (https://ww2.mathworks.cn/help/vision/ug/structure-from-motion-from-multiple-views.html) for SFM and https://ww2.mathworks.cn/help/vision/ug/monocular-visual-simultaneous-localization-and-mapping.html for visual SLAM. We use the dataset provided by the TUM (https://vision.in.tum.de/rgbd/dataset/freiburg3/rgbd_dataset_freiburg3_long_office_household.tgz). Thank you very much for the help from Runzhi Hu and Xi Zheng.