This is a rewritten version of the previous program. This is about 40 times faster (thanks to major code rewrite and multi-threading)!
You need to recompile everytime for a new sequence of images. main.cpp contains instructions on how to do that. Hope you like my work!