Set a CVS file where the landmarks will be saved to.
| 353 | |
| 354 | // Set a CVS file where the landmarks will be saved to. |
| 355 | bool Publisher::setLandmarksCsvFile(std::fstream& csvFile) { |
| 356 | if (csvLandmarksFile_) { |
| 357 | csvLandmarksFile_->close(); |
| 358 | } |
| 359 | csvLandmarksFile_.reset(&csvFile); |
| 360 | writeLandmarksCsvDescription(); |
| 361 | return csvLandmarksFile_->good(); |
| 362 | } |
| 363 | // Set a CVS file where the landmarks will be saved to. |
| 364 | bool Publisher::setLandmarksCsvFile(std::string& csvFileName) { |
| 365 | csvLandmarksFile_.reset(new std::fstream(csvFileName.c_str(), std::ios_base::out)); |