1 #ifndef OPENPOSE_NET_RESIZE_AND_MERGE_BASE_HPP
2 #define OPENPOSE_NET_RESIZE_AND_MERGE_BASE_HPP
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});
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});
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);
29 T* targetPtr,
const T*
const srcPtr,
const int sourceWidth,
const int sourceHeight,
30 const int targetWidth,
const int targetHeight,
const T scaleFactor);
34 T* targetPtr,
const unsigned char*
const srcPtr,
const int sourceWidth,
const int sourceHeight,
35 const int targetWidth,
const int targetHeight,
const T scaleFactor);
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})