This commit is contained in:
Tang1705
2020-05-24 23:15:27 +08:00
parent 5c923ee2d4
commit 5faeff5be1
50 changed files with 104666 additions and 4077 deletions

View File

@@ -10,7 +10,10 @@ void MyThread::run()
if(!pcd.empty())
{
PointCloud<PointXYZRGB>::Ptr cloudPtr(new PointCloud<PointXYZRGB>);
io::loadPCDFile(pcd, *cloudPtr);
if (QString::fromStdString(pcd).endsWith(".pcd", Qt::CaseInsensitive))
io::loadPCDFile(pcd, *cloudPtr);
else if (QString::fromStdString(pcd).endsWith(".ply", Qt::CaseInsensitive))
io::loadPLYFile(pcd, *cloudPtr);
cloud = *cloudPtr;
}
@@ -29,7 +32,3 @@ PointCloud<PointXYZRGB> MyThread::getCloud()
{
return cloud;
}
MyThread::~MyThread()
{
}