#ifndef OPENPOSE_CORE_CV_MAT_TO_OP_OUTPUT_HPP #define OPENPOSE_CORE_CV_MAT_TO_OP_OUTPUT_HPP #include namespace op { class OP_API CvMatToOpOutput { public: CvMatToOpOutput(const bool gpuResize = false); virtual ~CvMatToOpOutput(); std::tuple, std::shared_ptr, std::shared_ptr> getSharedParameters(); Array createArray( const Matrix& inputData, const double scaleInputToOutput, const Point& outputResolution); private: const bool mGpuResize; unsigned char* pInputImageCuda; std::shared_ptr spOutputImageCuda; unsigned long long pInputMaxSize; std::shared_ptr spOutputMaxSize; std::shared_ptr spGpuMemoryAllocated; }; } #endif // OPENPOSE_CORE_CV_MAT_TO_OP_OUTPUT_HPP