All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
cameraParameterReader.hpp
Go to the documentation of this file.
#ifndef OPENPOSE_3D_CAMERA_PARAMETER_READER_HPP
#define OPENPOSE_3D_CAMERA_PARAMETER_READER_HPP
#include <opencv2/core/core.hpp>
#include <openpose/core/common.hpp>
namespace op
{
class OP_API CameraParameterReader
{
public:
explicit CameraParameterReader();
virtual ~CameraParameterReader();
// cameraExtrinsics is optional
explicit CameraParameterReader(const std::string& serialNumber,
const cv::Mat& cameraIntrinsics,
const cv::Mat& cameraDistortion,
const cv::Mat& cameraExtrinsics = cv::Mat());
// serialNumbers is optional. If empty, it will load all the XML files available in the
// cameraParameterPath folder
void readParameters(const std::string& cameraParameterPath,
const std::vector<std::string>& serialNumbers = {});
void writeParameters(const std::string& cameraParameterPath) const;
unsigned long long getNumberCameras() const;
const std::vector<std::string>& getCameraSerialNumbers() const;
const std::vector<cv::Mat>& getCameraMatrices() const;
const std::vector<cv::Mat>& getCameraExtrinsics() const;
const std::vector<cv::Mat>& getCameraIntrinsics() const;
const std::vector<cv::Mat>& getCameraDistortions() const;
private:
std::vector<std::string> mSerialNumbers;
unsigned long long mNumberCameras;
std::vector<cv::Mat> mCameraMatrices;
std::vector<cv::Mat> mCameraExtrinsics;
std::vector<cv::Mat> mCameraIntrinsics;
std::vector<cv::Mat> mCameraDistortions;
DELETE_COPY(CameraParameterReader);
};
}
#endif // OPENPOSE_3D_CAMERA_PARAMETER_READER_HPP
DELETE_COPY
#define DELETE_COPY(className)
Definition: macros.hpp:34
common.hpp
op::CameraParameterReader
Definition: cameraParameterReader.hpp:9
OP_API
#define OP_API
Definition: macros.hpp:19
cl::string
std::string string
Definition: cl2.hpp:574