planeLocalization
version 1.3.0 : 修正了取发动机点特征点的一个Bug
This commit is contained in:
parent
c31b4d35cf
commit
168c0e92a9
@ -633,7 +633,7 @@ int main()
|
||||
|
||||
for (int fidx = fileIdx[grp].nMin; fidx <= fileIdx[grp].nMax; fidx++)
|
||||
{
|
||||
//fidx =7;
|
||||
//fidx =31;
|
||||
char _scan_file[256];
|
||||
sprintf_s(_scan_file, "%sLaserData_%d.txt", dataPath[grp], fidx);
|
||||
|
||||
|
||||
@ -8,7 +8,8 @@
|
||||
//version 1.0.0 : base version release to customer
|
||||
//version 1.1.0 : 优化了机鼻点提取(迭代),增加了没有飞机的输出
|
||||
//version 1.2.0 : 修正了回归测试中发现的问题
|
||||
std::string m_strVersion = " PlaneLocalization 1.2.0";
|
||||
//version 1.3.0 : 修正了取发动机点特征点的一个Bug
|
||||
std::string m_strVersion = " PlaneLocalization 1.3.0";
|
||||
const char* wd_PlaneLocalizationVersion(void)
|
||||
{
|
||||
return m_strVersion.c_str();
|
||||
@ -699,9 +700,12 @@ SSX_planeInfo wd_planeLocalization(
|
||||
|
||||
for (int i = 0; i < (int)objClusters[clusterIdx].size(); i++)
|
||||
{
|
||||
double dist = sqrt(pow(nosePoint.pt3D.x - objClusters[clusterIdx][i].pt3D.x, 2) + pow(nosePoint.pt3D.z - objClusters[clusterIdx][i].pt3D.z, 2));
|
||||
if ((dist >= engineToNoseDistRange.min) && (dist <= engineToNoseDistRange.max))
|
||||
distanceValidData[idx].push_back(objClusters[clusterIdx][i]);
|
||||
if (objClusters[clusterIdx][i].pt3D.z > nosePoint.pt3D.z)
|
||||
{
|
||||
double dist = sqrt(pow(nosePoint.pt3D.x - objClusters[clusterIdx][i].pt3D.x, 2) + pow(nosePoint.pt3D.z - objClusters[clusterIdx][i].pt3D.z, 2));
|
||||
if ((dist >= engineToNoseDistRange.min) && (dist <= engineToNoseDistRange.max))
|
||||
distanceValidData[idx].push_back(objClusters[clusterIdx][i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
//计算ROI
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user