雷射雷達點雲障礙物檢測 (一)濾波部分

2021-10-23 07:43:42 字數 1126 閱讀 6057

processpointclouds.cpp中濾波部分我單獨拿出進行學習,濾波後只考慮每一幀點雲中汽車周圍部分點雲

原始點雲如下:

濾波後點雲如下:

之後在對其進行分割檢測等操作,濾波**如下:

#include #include #include #include #include #include #include #include #include int main()

; //建立乙個內點物件,將提取到車身周圍點,放到內點物件中

for (int point : indices)

//建立點雲提取函式

pcl::extractindice***tract;

extract.setinputcloud(cloudregion);

extract.setindices(inliers);

extract.setnegative(true); //false 提取內點也就是提取車身周圍的幾個點,, true提取出了車身周圍的點

extract.filter(*cloudregion);

/*pcl::pcdwriter writer;

writer.write("c:\\users\\administrator\\downloads\\求助\\求助\\tree-2-rend.pcd", *cloud_filtered1);*/

pcl::visualization::pclvisualizer::ptr viewer(new pcl::visualization::pclvisualizer("顯示視窗")); //視窗顯示點雲

viewer->addpointcloud(cloudregion, "*cloud");

viewer->resetcamera(); //相機點重置

viewer->spin();

system("pause");

return (0);

}

雷射雷達點雲PCL庫學習(一)

分類專欄 雷射雷達pcl庫學習 pcl point cloud library 是在吸收了前人點雲相關研究基礎上建立起來的大型跨平台開源c 程式設計庫,它實現了大量點雲相關的通用演算法和高效資料結構,涉及到點雲獲取 濾波 分割 配準 檢索 特徵提取 識別 追蹤 曲面重建 視覺化等。支援多種作業系統平...

LiDAR MEMS雷射雷達點雲實時顯示

mems雷射雷達出來後,為了不用leddartech的ide軟體,於是對其 進行了封裝,以供其他軟體呼叫。在研究的過程中,點雲的實時顯示以前還未做過,就寫了段測試 驗證一下 include stdafx.h include 標準輸入輸出流 include pcl的pcd格式檔案的輸入輸出標頭檔案 i...

雷射雷達點雲的特徵表達

點對點特徵 point wise feature 提取 特徵融合 雷射雷達是一種綜合的光探測與測量系統,通過發射接受雷射束,分析雷射遇到目標物件後的折返時間,計算出目標物件與車的相對距離。目前常見的有16線 32線 64線雷射雷達。雷射雷達線束越多,測量精度越高,安全性越高。多束雷射線同時發射,並配...