This is SLAM part code and provide source code;
OpenCV 3.4.1 OpenGL
This is my part of slam source code