3D Feature の1つ,Spin Imageを計算する
void computeSpinImages( const Octree& Octree, const vector<Point3f>& points, const vector<Point3f>& normals, vector<uchar>& mask, Mat& spinImages, int imageWidth, float binSize)†
OpenCV 2.0から,ずいぶんC++なインタフェースが増えた
- Octree:Octree型の何か分類器
- points:Point3f型のvectorの点群
- normals:Point3f型のvectorの法線群
- mask:uchar型のvectorのSpinImageに使割れた点群のフラグ(出力)
- spinImages:Mat型のSpin Image
- imageWidth:spinImagesの幅
- imageHeight:spinImagesの高さ
- binSize:float型のbinのサイズ?
返り値†
- OpenCV2.0から実装
- imageWidthとimageHeightでspinImagesは内部で宣言される
実体ファイル†
- OpenCV 2.0, 2.1
- src/cvaux/cvspinimages.cpp
- include/opencv/cvaux.hpp
- OpenCV 2.2, 2.3
- modules/contrib/src/spinimages.cpp
- opencv2/contrib/contrib.hpp
- OpenCV 2.0からずいぶん構造が変わったなぁ
ジャンル:OpenCV:OpenCV 2.0:OpenCV 2.1:OpenCV 2.2:OpenCV 2.3準拠