Functions | |
| 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, find nearest neighbor (highest score) for each detection and target pair. More... | |
| 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. More... | |
| void | l2NormalizeReIDFeatures (const cudaStream_t &stream, const int numOfFeatures, const int reidFeatureSize, const int blockSize, float *reidFeatureDet) |
| Perform l2 normalization for ReID features. More... | |
| 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. More... | |
| void cuReID::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.
| [in] | stream | CUDA stream used for the operation. |
| [in] | srcMaskFrameBatch | Source segmentation masks for all targets. |
| [in] | srcFrameWidth | Width of each source mask in pixels. |
| [in] | srcFrameElementSize | Number of elements in each source mask. |
| [in] | imgWidth | Width of each destination image patch in pixels. |
| [in] | imgElementSize | Number of pixels in each destination image patch. |
| [in] | numOfBboxes | Number of image patches to process. |
| [in] | targetInds | Source-mask target index for each image patch. |
| [in] | srcRois | Source region of interest for each image patch. |
| [in,out] | imgPatchBatch | Image patches masked in place. |
| void cuReID::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.
| [in] | stream | CUDA stream used for the operation. |
| [in] | numOfTargets | Number of tracked targets to process. |
| [in] | reidFeatureSize | Number of values in each ReID feature vector. |
| [in] | detInds | Matched detection index for each target. |
| [in] | reidFeatureDet | Detection feature vectors. |
| [in] | reidFeatureGalleryInds | Destination gallery index for each target. |
| [in] | trackerDoProcessing | Processing-enable flag for each target. |
| [in,out] | reidFeatureGallery | Gallery receiving the matched detection features. |
| void cuReID::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, find nearest neighbor (highest score) for each detection and target pair.
| [in] | stream | CUDA stream used for the operation. |
| [in] | numOfTargets | Actual number of targets now. |
| [in] | maxDetsPerStream | Maximum number of detections in one stream. |
| [in] | historySize | Maximum number of gallery features retained per target. |
| [in] | maxReidProductSize | Max number of reid dot product elements per stream := maxNumofDet x maxFeatGallerySize. |
| [in] | targetReidFeatureInds | Feature gallery indices for all targets := numOfTargets x historySize. |
| [in] | reidProduct | Reid dot product elements for all streams := numOfStreams x numOfDet x featGallerySize. |
| [in] | reidProductSizePerStream | Actual number of features in gallery and detection features for each stream. x: featureGallerySizeThisStream, y: numOfDetThisStream. |
| [in] | streamInds | Stream index for each target to find detected features and feature gallery for that stream. |
| [in] | featureIndSize | Number of retained gallery features for each target. |
| [out] | confidenceReidDetTargets | Similarity score between each det and target after finding nearest neighbor. |
| [out] | nearestIndReidDetTargets | Gallery index of the nearest history feature for each target and detection. |
| void cuReID::l2NormalizeReIDFeatures | ( | const cudaStream_t & | stream, |
| const int | numOfFeatures, | ||
| const int | reidFeatureSize, | ||
| const int | blockSize, | ||
| float * | reidFeatureDet | ||
| ) |
Perform l2 normalization for ReID features.
| [in] | stream | CUDA stream used for the operation. |
| [in] | numOfFeatures | Number of feature vectors to normalize. |
| [in] | reidFeatureSize | Number of values in each ReID feature vector. |
| [in] | blockSize | Number of CUDA threads requested per feature vector. |
| [in,out] | reidFeatureDet | Feature vectors normalized in place. |