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 CoordinatesReduction(const uint32_t index, const ResizedImageInfo& resizedImageInfo,
std::vector<ObjectInfo>& objInfos, bool normalizedFlag = true);
Parameter Description 1
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 level of the detected object |
normalizedFlag |
Input |
Whether to perform standardization. This parameter is optional. |
Prototype 2
void CoordinatesReduction(std::vector<std::vector<ObjectInfo>> &objInfos,
const std::vector<MxBase::ImagePreProcessInfo> &imagePreProcessInfos,
bool normalizedFlag = true);
Parameter Description 2
Parameter |
Input/Output |
Description |
|---|---|---|
objectInfos |
Output |
Output information such as the coordinates, type, and confidence level of the detected object |
imagePreProcessInfos |
Input |
Image pre-processing information |
normalizedFlag |
Input |
Whether to perform standardization. This parameter is optional. |