Add filename parameter in PosesOptimization::saveCalib and VignetteEstimator::save_vign_png
In PosesOptimization::saveCalib, the filename is fixed as "calibration.json". User cannot pass one expected filename.
Path can be detected whether it is a directory or json file. Then decide how to do next, like:
std::ofstream os(std::filesystem::path(path).extension().generic_string() == ".json" ? path : path + "calibration.json");
also VignetteEstimator::save_vign_png
Edited by dzywater