Cleaning directory + Computing EMD with OpenCV