|
|
NVIDIA DeepStream SDK API Reference
|
9.2 Release
|
Go to the documentation of this file.
21 #include <Eigen/Dense>
24 #include "../infer/tensor_rt_engine.h"
36 const std::vector<int>& shape,
61 const std::vector<Eigen::Matrix<float, 4, 4>>& calib_matrices);
136 const std::map<std::string, Eigen::Matrix<float, 4, 4>>& cameraMatrices,
137 const std::vector<std::string>& currentBatchCameras,
151 const std::map<std::string, Eigen::Matrix<float, 4, 4>>& cameraMatrices,
152 const std::vector<std::string>& currentBatchCameras,
153 int batch_size,
int num_sensors);
JDIMENSION JDIMENSION * width
Class to manage multiple tensors with string-based lookup.
Tensor * createTensor(const std::string &tensor_name, const std::vector< int > &shape, NvDsDataType data_type=NvDsDataType_FP32, int gpu_id=-1)
Creates a tensor with the specified shape, data type, and GPU ID.
void initProjectionMatTensor(TensorCache *tensorCache, int batch_size, int num_sensors, const std::vector< Eigen::Matrix< float, 4, 4 >> &calib_matrices)
Initializes projection matrix tensor using pre-allocated memory and updates the TensorCache.
void initInputCachedAnchorTensor(TensorCache *tensorCache)
Initializes cached anchor tensor using pre-allocated memory and updates the TensorCache.
void updateInputCachedAnchorTensor(TensorCache *tensorCache, torch::Tensor anchor)
Updates input cached anchor tensor using pre-allocated memory.
void intiPrevExistsTensor(TensorCache *tensorCache, float value)
Initializes prev_exists tensor using pre-allocated memory and updates the TensorCache.
void updateInputCachedFeatureTensor(TensorCache *tensorCache, torch::Tensor feature)
Updates input cached feature tensor using pre-allocated memory.
void updateOrgProjectionMatrixForBatch(TensorCache *tensorCache, const std::map< std::string, Eigen::Matrix< float, 4, 4 >> &cameraMatrices, const std::vector< std::string > ¤tBatchCameras, int batch_size, int num_sensors)
Updates the original projection matrix tensor based on the current camera names in the batch.
void initImageWHTensor(TensorCache *tensorCache, int width, int height)
Initializes image width/height tensor using pre-allocated memory and updates the TensorCache.
void initIntervalMaskTensor(TensorCache *tensorCache, float value)
Initializes interval mask tensor using pre-allocated memory and updates the TensorCache.
void initOrgProjectionMatTensor(TensorCache *tensorCache, int batch_size, int num_sensors, const std::vector< Eigen::Matrix< float, 4, 4 >> &calib_matrices, int gpu_id)
Initialize projection matrix tensor and update the TensorCache.
Structure to store tensor information.
void initGroupOriginTensor(TensorCache *tensorCache, const std::vector< float > &group_origin)
Initializes group origin tensor using pre-allocated memory and updates the TensorCache.
@ NvDsDataType_FP32
FP32 data type.
void updateProjectionMatrixForBatch(TensorCache *tensorCache, const std::map< std::string, Eigen::Matrix< float, 4, 4 >> &cameraMatrices, const std::vector< std::string > ¤tBatchCameras, int batch_size, int num_sensors)
Updates projection matrix tensor based on the current camera names in the batch.
void initInputCachedFeatureTensor(TensorCache *tensorCache)
Initializes cached feature tensor using pre-allocated memory and updates the TensorCache.
NvDsDataType
Data type used for model in infer.