File size: 930 Bytes
7fc5a59 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | #ifndef OPENPOSE_CORE_OP_OUTPUT_TO_CV_MAT_HPP
#define OPENPOSE_CORE_OP_OUTPUT_TO_CV_MAT_HPP
#include <openpose/core/common.hpp>
namespace op
{
class OP_API OpOutputToCvMat
{
public:
OpOutputToCvMat(const bool gpuResize = false);
virtual ~OpOutputToCvMat();
void setSharedParameters(
const std::tuple<std::shared_ptr<float*>, std::shared_ptr<bool>, std::shared_ptr<unsigned long long>>& tuple);
Matrix formatToCvMat(const Array<float>& outputData);
private:
const bool mGpuResize;
// Shared variables
std::shared_ptr<float*> spOutputImageFloatCuda;
std::shared_ptr<unsigned long long> spOutputMaxSize;
std::shared_ptr<bool> spGpuMemoryAllocated;
// Local variables
unsigned char* pOutputImageUCharCuda;
unsigned long long mOutputMaxSizeUChar;
};
}
#endif // OPENPOSE_CORE_OP_OUTPUT_TO_CV_MAT_HPP
|