root/samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/CsvWriter.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


#ifndef CSVWRITER_H
#define CSVWRITER_H

#include <iostream>
#include <fstream>
#include <opencv2/core/core.hpp>
#include "Utils.h"

using namespace std;
using namespace cv;

class CsvWriter {
public:
  CsvWriter(const string &path, const string &separator = " ");
  ~CsvWriter();
  void writeXYZ(const vector<Point3f> &list_points3d);
  void writeUVXYZ(const vector<Point3f> &list_points3d, const vector<Point2f> &list_points2d, const Mat &descriptors);

private:
  ofstream _file;
  string _separator;
  bool _isFirstTerm;
};

#endif

/* [<][>][^][v][top][bottom][index][help] */