| #ifndef OPENPOSE_PRODUCER_FLIR_READER_HPP |
| #define OPENPOSE_PRODUCER_FLIR_READER_HPP |
|
|
| #include <openpose/core/common.hpp> |
| #include <openpose/producer/producer.hpp> |
| #include <openpose/producer/spinnakerWrapper.hpp> |
|
|
| namespace op |
| { |
| |
| |
| |
| |
| |
| class OP_API FlirReader : public Producer |
| { |
| public: |
| |
| |
| |
| explicit FlirReader(const std::string& cameraParametersPath, const Point<int>& cameraResolution, |
| const bool undistortImage = true, const int cameraIndex = -1); |
|
|
| virtual ~FlirReader(); |
|
|
| std::vector<Matrix> getCameraMatrices(); |
|
|
| std::vector<Matrix> getCameraExtrinsics(); |
|
|
| std::vector<Matrix> getCameraIntrinsics(); |
|
|
| std::string getNextFrameName(); |
|
|
| bool isOpened() const; |
|
|
| void release(); |
|
|
| double get(const int capProperty); |
|
|
| void set(const int capProperty, const double value); |
|
|
| private: |
| SpinnakerWrapper mSpinnakerWrapper; |
| Point<int> mResolution; |
| unsigned long long mFrameNameCounter; |
|
|
| Matrix getRawFrame(); |
|
|
| std::vector<Matrix> getRawFrames(); |
|
|
| DELETE_COPY(FlirReader); |
| }; |
| } |
|
|
| #endif |
|
|