change output from std::cout to file at test_linear and test_colorCalib