CoordinatesReduction
Function Usage
A protected member function that scales the coordinate data. (It is invoked for internal use only. Do not use it.)
Prototype
1 | void ObjectPostProcessBase::CoordinatesReduction(const uint32_t index, const ResizedImageInfo& resizedImageInfo, std::vector<ObjectInfo>& objInfos, bool normalizedFlag = true); |
1 | void ObjectPostProcessBase::CoordinatesReduction(std::vector<std::vector<ObjectInfo>> &objInfos, const std::vector<MxBase::ImagePreProcessInfo> &imagePreProcessInfos, bool normalizedFlag = true); |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
index |
Input |
Specified index for vector splitting |
resizedImageInfo |
Input |
Image information (including the original and resized widths and heights). |
objInfos |
Output |
Output information such as the coordinates, type, and confidence of the detected object. |
normalizedFlag |
Input |
(Optional) Whether to perform standardization. |
imagePreProcessInfos |
Input |
Image preprocessing information. |
Parent topic: ObjectPostProcessBase