These are example codes for my blogs Writing Visual SLAM from Scratch. You can also find the references code from 14 Lectures on Visual SLAM: From Theory to Practice.