get rid of Matrix.h, use new OpenCV API and Armadillo for linear algebra operations