OpenPose  1.0.0rc2
OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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>
15  void resizeAndMergeGpu(
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>
21  void resizeAndMergeOcl(
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 
27 #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 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})
std::vector< T, Alloc > vector
Definition: cl2.hpp:567