CoordinatesReduction
函数功能
保护成员函数,用于对坐标数据进行缩放。(该方法为内部调用方法,请用户不要使用。)
函数原型1
void CoordinatesReduction(const uint32_t index, const ResizedImageInfo& resizedImageInfo, std::vector<ObjectInfo>& objInfos, bool normalizedFlag = true);
参数说明1
参数名 |
输入/输出 |
说明 |
---|---|---|
index |
输入 |
指定切分向量的索引。 |
resizedImageInfo |
输入 |
图片信息(包括原图和缩放后宽高)。 |
objInfos |
输出 |
输出目标检测的坐标、类型、置信度等信息。 |
normalizedFlag |
输入 |
是否进行标准化,可选。 |
函数原型2
void CoordinatesReduction(std::vector<std::vector<ObjectInfo>> &objInfos, const std::vector<MxBase::ImagePreProcessInfo> &imagePreProcessInfos, bool normalizedFlag = true);
参数说明2
参数名 |
输入/输出 |
说明 |
---|---|---|
objectInfos |
输出 |
输出目标检测的坐标、类型、置信度等信息。 |
imagePreProcessInfos |
输入 |
图片前处理信息。 |
normalizedFlag |
输入 |
是否进行标准化,可选。 |