test_feature.cpp
Go to the documentation of this file.
00001 /*
00002  * test_feature.cpp
00003  *
00004  *  Created on: Jul 11, 2012
00005  *      Author: vsu
00006  */
00007 
00008 #include <pcl17/io/pcd_io.h>
00009 #include <pcl17/point_cloud.h>
00010 #include <pcl17/point_types.h>
00011 #include <pcl17/features/esf.h>
00012 
00013 int main(){
00014 
00015   pcl17::PointCloud<pcl17::PointNormal> pn;
00016   pcl17::io::loadPCDFile("../furniture_classification/data/debug/Cluster0/Segment10.pcd",pn);
00017 
00018   pcl17::ESFEstimation<pcl17::PointNormal, pcl17::ESFSignature640> e;
00019   e.setInputCloud(pn.makeShared());
00020 
00021   pcl17::PointCloud<pcl17::ESFSignature640> pc;
00022   e.compute(pc);
00023 
00024   std::cerr << pc.size() << std::endl;
00025 
00026   for(int i=0; i<640; i++){
00027     std::cerr << pc[0].histogram[i] << " ";
00028   }
00029 
00030 
00031   return 0;
00032 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


furniture_features
Author(s): Stefan
autogenerated on Sun Oct 6 2013 11:58:55