Made some changes for IR imagery and some changes in new version of OpenCV.