/*
/harris3d ../../filtering/build/table_scene_lms400_inliers.pcd
*/#include
//標準輸入輸出流
#include
#include
//pcl的pcd格式檔案的輸入輸出標頭檔案
#include
//#include //關鍵點檢測
#include
#include
#include
using
namespace std;
//定義別名
typedef pcl::pointxyz pointtype;
// -----main-----
intmain
(int argc,
char
** ar**)
// -------------------------------------
// -----show keypoints in 3d viewer-----
// -------------------------------------
//在3d圖形視窗中顯示關鍵點
pcl::visualization::pointcloudcolorhandlercustom
harris_color_handler
(cloud_harris_ptr,
255,0,
0);//第乙個引數型別為 指標
viewer-
>
addpointcloud
(cloud_harris_ptr, harris_color_handler,
"harris");
//第乙個引數型別為 指標
viewer-
>
setpointcloudrenderingproperties
(pcl::visualization::pcl_visualizer_point_size,5,
"harris");
//--------------------
// -----main loop-----
//--------------------
while
(!viewer-
>
wasstopped()
)return0;
}
特徵工程 特徵提取
特徵提取 將任意資料 如文字或影象 轉換為可用於機器學習的數字特徵 注 特徵值化是為了計算機更好的去理解資料 字典特徵提取 作用 對字典資料進行特徵值化 dictvectorizer.get feature names 返回類別名稱 from sklearn.feature extraction i...
顏色特徵提取
顏色特徵是在影象檢索中應用最為廣泛的視覺特徵,主要原因在於顏色往往和影象中所包含的物體或場景十分相關。此外,與其他的視覺特徵相比,顏色特徵對影象本身的尺寸 方向 視角的依賴性較小,從而具有較高的魯棒性。面向影象檢索的顏色特徵的表達涉及到若干問題。首先,我們需要選擇合適的顏色空間來描述顏色特徵 其次,...
顏色特徵提取
顏色特徵是在影象檢索中應用最為廣泛的視覺特徵,主要原因在於顏色往往和影象中所包含的物體或場景十分相關。此外,與其他的視覺特徵相比,顏色特徵對影象本身的尺寸 方向 視角的依賴性較小,從而具有較高的魯棒性。面向影象檢索的顏色特徵的表達涉及到若干問題。首先,我們需要選擇合適的顏色空間來描述顏色特徵 其次,...