All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
imageDirectoryReader.hpp
Go to the documentation of this file.
#ifndef OPENPOSE_PRODUCER_IMAGE_DIRECTORY_READER_HPP
#define OPENPOSE_PRODUCER_IMAGE_DIRECTORY_READER_HPP
#include <openpose/3d/cameraParameterReader.hpp>
#include <openpose/core/common.hpp>
#include <openpose/producer/producer.hpp>
namespace op
{
class OP_API ImageDirectoryReader : public Producer
{
public:
explicit ImageDirectoryReader(const std::string& imageDirectoryPath, const unsigned int imageDirectoryStereo = 1,
const std::string& cameraParameterPath = "");
virtual ~ImageDirectoryReader();
std::vector<cv::Mat> getCameraMatrices();
std::vector<cv::Mat> getCameraExtrinsics();
std::vector<cv::Mat> getCameraIntrinsics();
std::string getNextFrameName();
inline bool isOpened() const
{
return (mFrameNameCounter >= 0);
}
inline void release()
{
mFrameNameCounter = {-1ll};
}
double get(const int capProperty);
void set(const int capProperty, const double value);
private:
const std::string mImageDirectoryPath;
const unsigned int mImageDirectoryStereo;
const std::vector<std::string> mFilePaths;
CameraParameterReader mCameraParameterReader;
Point<int> mResolution;
long long mFrameNameCounter;
cv::Mat getRawFrame();
std::vector<cv::Mat> getRawFrames();
DELETE_COPY(ImageDirectoryReader);
};
}
#endif // OPENPOSE_PRODUCER_IMAGE_DIRECTORY_READER_HPP
DELETE_COPY
#define DELETE_COPY(className)
Definition: macros.hpp:34
cameraParameterReader.hpp
op::Producer
Definition: producer.hpp:15
op::Point< int >
common.hpp
op::ImageDirectoryReader::release
void release()
Definition: imageDirectoryReader.hpp:45
op::ImageDirectoryReader::isOpened
bool isOpened() const
Definition: imageDirectoryReader.hpp:40
op::ImageDirectoryReader
Definition: imageDirectoryReader.hpp:15
op::CameraParameterReader
Definition: cameraParameterReader.hpp:9
producer.hpp
OP_API
#define OP_API
Definition: macros.hpp:19
cl::string
std::string string
Definition: cl2.hpp:574