NVIDIA DeepStream SDK API Reference

9.2 Release
9.2/sources/libs/nvmultiobjecttracker/include/modules/ReID/cuReID.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: Apache-2.0
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 #ifndef CUREIDLIB_CUREID_H_
19 #define CUREIDLIB_CUREID_H_
20 
21 namespace cuReID
22 {
39  const cudaStream_t &stream, const int numOfTargets, const int maxDetsPerStream,
40  const int historySize, const int maxReidProductSize, const int* targetReidFeatureInds,
41  const float* reidProduct, const int2* reidProductSizePerStream, const int* streamInds,
42  const int* featureIndSize, float* confidenceReidDetTargets, int* nearestIndReidDetTargets
43 );
44 
57  const cudaStream_t &stream, const int numOfTargets, const int reidFeatureSize,
58  const int* detInds, const float* reidFeatureDet, const int* reidFeatureGalleryInds,
59  const int* trackerDoProcessing, float* reidFeatureGallery
60 );
61 
71  const cudaStream_t &stream, const int numOfFeatures,
72  const int reidFeatureSize, const int blockSize, float* reidFeatureDet
73 );
74 
89  const cudaStream_t &stream, const float *srcMaskFrameBatch, const int srcFrameWidth,
90  const int srcFrameElementSize, const int imgWidth, const int imgElementSize,
91  const int numOfBboxes, const int *targetInds, const float4 *srcRois, float *imgPatchBatch
92 );
93 } // end of namespace cuReID
94 
95 #endif // CUREIDLIB_CUREID_H_
cudaStream_t
struct CUstream_st * cudaStream_t
Forward declaration of cudaStream_t.
Definition: includes/nvbufsurftransform.h:40
cuReID::applySegmentaitonToImagePatches
void applySegmentaitonToImagePatches(const cudaStream_t &stream, const float *srcMaskFrameBatch, const int srcFrameWidth, const int srcFrameElementSize, const int imgWidth, const int imgElementSize, const int numOfBboxes, const int *targetInds, const float4 *srcRois, float *imgPatchBatch)
Crop and resize segmentation mask into each ReID input patch's size.
cuReID::copyDetReIDFeatureToGallery
void copyDetReIDFeatureToGallery(const cudaStream_t &stream, const int numOfTargets, const int reidFeatureSize, const int *detInds, const float *reidFeatureDet, const int *reidFeatureGalleryInds, const int *trackerDoProcessing, float *reidFeatureGallery)
Copy detection's reid features to target's feature gallery based on data association matched pairs.
cuReID
Definition: sources/libs/nvmultiobjecttracker/include/modules/ReID/cuReID.h:21
cuReID::l2NormalizeReIDFeatures
void l2NormalizeReIDFeatures(const cudaStream_t &stream, const int numOfFeatures, const int reidFeatureSize, const int blockSize, float *reidFeatureDet)
Perform l2 normalization for ReID features.
cuReID::getNearestReIDSimilarity
void getNearestReIDSimilarity(const cudaStream_t &stream, const int numOfTargets, const int maxDetsPerStream, const int historySize, const int maxReidProductSize, const int *targetReidFeatureInds, const float *reidProduct, const int2 *reidProductSizePerStream, const int *streamInds, const int *featureIndSize, float *confidenceReidDetTargets, int *nearestIndReidDetTargets)
Given ReID dot product score between each detection and each target's feature gallery,...