OpenPose  1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
resizeAndMergeBase.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_NET_RESIZE_AND_MERGE_BASE_HPP
2 #define OPENPOSE_NET_RESIZE_AND_MERGE_BASE_HPP
3 
5 
6 namespace op
7 {
8  template <typename T>
10  T* targetPtr, const std::vector<const T*>& sourcePtrs, const std::array<int, 4>& targetSize,
11  const std::vector<std::array<int, 4>>& sourceSizes, const std::vector<T>& scaleInputToNetInputs = {1.f});
12 
13  // Windows: Cuda functions do not include OP_API
14  template <typename T>
16  T* targetPtr, const std::vector<const T*>& sourcePtrs, const std::array<int, 4>& targetSize,
17  const std::vector<std::array<int, 4>>& sourceSizes, const std::vector<T>& scaleInputToNetInputs = {1.f});
18 
19  // Windows: OpenCL functions do not include OP_API
20  template <typename T>
22  T* targetPtr, const std::vector<const T*>& sourcePtrs, std::vector<T*>& sourceTempPtrs,
23  const std::array<int, 4>& targetSize, const std::vector<std::array<int, 4>>& sourceSizes,
24  const std::vector<T>& scaleInputToNetInputs = {1.f}, const int gpuID = 0);
25 
26  // Functions for cvMatToOpInput/cvMatToOpOutput
27  template <typename T>
29  T* targetPtr, const T* const srcPtr, const int sourceWidth, const int sourceHeight,
30  const int targetWidth, const int targetHeight, const T scaleFactor);
31 
32  template <typename T>
34  T* targetPtr, const unsigned char* const srcPtr, const int sourceWidth, const int sourceHeight,
35  const int targetWidth, const int targetHeight, const T scaleFactor);
36 }
37 #endif // OPENPOSE_NET_RESIZE_AND_MERGE_BASE_HPP
void resizeAndMergeGpu(T *targetPtr, const std::vector< const T * > &sourcePtrs, const std::array< int, 4 > &targetSize, const std::vector< std::array< int, 4 >> &sourceSizes, const std::vector< T > &scaleInputToNetInputs={1.f})
void resizeAndMergeOcl(T *targetPtr, const std::vector< const T * > &sourcePtrs, std::vector< T * > &sourceTempPtrs, const std::array< int, 4 > &targetSize, const std::vector< std::array< int, 4 >> &sourceSizes, const std::vector< T > &scaleInputToNetInputs={1.f}, const int gpuID=0)
void resizeAndPadRbgGpu(T *targetPtr, const T *const srcPtr, const int sourceWidth, const int sourceHeight, const int targetWidth, const int targetHeight, const T scaleFactor)
void resizeAndMergeCpu(T *targetPtr, const std::vector< const T * > &sourcePtrs, const std::array< int, 4 > &targetSize, const std::vector< std::array< int, 4 >> &sourceSizes, const std::vector< T > &scaleInputToNetInputs={1.f})