|
|
NVIDIA DeepStream SDK API Reference
|
9.2 Release
|
Go to the documentation of this file.
18 #ifndef ReIDFrameTransform_HPP_
19 #define ReIDFrameTransform_HPP_
21 #if defined VIZ_DEBUG_REID || defined VIZ_DEBUG_SEG || defined VIZ_DEBUG_POSE
22 #include <opencv2/core.hpp>
25 #include "modules/FrameTransform/FrameTransform.hpp"
51 const int debugVerboseLevel,
const int maxStreamNum,
const int maxBufSurfAddrSize,
const int maxTargetNum,
65 const std::map<
NvMOTStreamId, std::vector<std::pair<uint, NvMotDataTypes::Rect2f> > > &roisInBatch,
66 const uint lastBboxInd,
const float outputScaleFactor,
const std::vector<float> outputOffsets
78 const std::map<
NvMOTStreamId, std::vector<std::pair<uint, NvMotDataTypes::Rect2f> > > &roisInBatch,
79 const uint lastBboxInd,
const float outputScaleFactor,
const std::vector<float> outputOffsets
85 #if defined VIZ_DEBUG_REID || defined VIZ_DEBUG_SEG || defined VIZ_DEBUG_POSE
92 std::map<NvMOTStreamId, std::map<uint, cv::Mat > > getImagePatches2Host_OCV_batch(
93 const float outputScaleFactor,
const std::vector<float> outputOffsets
104 void initialize4Output(
109 void allocateOutputMemories();
112 void deAllocateOutputMemories();
117 int m_width_out, m_height_out, m_channels_out;
124 #if defined VIZ_DEBUG_REID || defined VIZ_DEBUG_SEG || defined VIZ_DEBUG_POSE
125 float *m_odata_host_nchw;
129 #endif // ReIDFrameTransform_HPP_
Crops and rescales target regions through CUDA texture transforms.
bool frameTransformInBatch(const std::map< NvMOTStreamId, std::vector< std::pair< uint, NvMotDataTypes::Rect2f > > > &roisInBatch, const uint lastBboxInd, const float outputScaleFactor, const std::vector< float > outputOffsets)
Transform (crop, scale and color conversion) a set of bboxes for the given single frame,...
Provides common CUDA texture state for frame transformations.
void initialize(const int debugVerboseLevel, const int maxStreamNum, const int maxBufSurfAddrSize, const int maxTargetNum, const NvMotDataTypes::Size srcImgSize, const uint srcImgPitch, const NvBufSurfaceColorFormat colorFormatType, const NvMotDataTypes::Size dstImgSize, const NvBufSurfaceColorFormat dstColorFormatType, const int dimOrder)
Initialize for image cropping and scaling.
ReIDFrameTransformTexture()
Construct a ReIDFrameTransformTexture instance.
~ReIDFrameTransformTexture()
Release resources owned by the ReIDFrameTransformTexture instance.
float * getOutputImagePatchPtrs()
Get the pointer to the output image patches on device memory with metadata.
bool frameTransformInBatch_NV12(const std::map< NvMOTStreamId, std::vector< std::pair< uint, NvMotDataTypes::Rect2f > > > &roisInBatch, const uint lastBboxInd, const float outputScaleFactor, const std::vector< float > outputOffsets)
Transform (crop, scale and color conversion) a set of bboxes for the given single frame,...
Represents a two-dimensional integer size.
NvBufSurfaceColorFormat
Defines color formats for NvBufSurface.