MCPcopy Create free account
hub / github.com/PointCloudLibrary/pcl / compute

Function compute

tools/train_unary_classifier.cpp:103–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103void
104compute (const CloudT::Ptr &input, std::vector<FeatureT, Eigen::aligned_allocator<FeatureT> > &output,
105 unsigned int k,
106 float normal_radius_search,
107 float fpfh_radius_search,
108 bool label)
109{
110 TicToc tt;
111 tt.tic ();
112
113 print_highlight ("Computing ");
114
115 UnaryClassifier<PointT> classifier;
116 classifier.setInputCloud (input);
117 classifier.setClusterSize (k);
118 classifier.setNormalRadiusSearch (normal_radius_search);
119 classifier.setFPFHRadiusSearch (fpfh_radius_search);
120 classifier.setLabelField (label);
121
122 FeatureT::Ptr feature (new FeatureT);
123 classifier.train (feature);
124 output.push_back (*feature);
125
126 print_info ("[done, ");
127 print_value ("%g", tt.toc ());
128 print_info (" ms : "); print_value ("%d", feature->width * feature->height);
129 print_info (" features]\n");
130}
131
132void
133compute (const CloudLT::Ptr &input, std::vector<FeatureT, Eigen::aligned_allocator<FeatureT> > &output,

Callers 1

mainFunction · 0.70

Calls 8

print_valueFunction · 0.85
ticMethod · 0.80
tocMethod · 0.80
trainWithLabelMethod · 0.80
setInputCloudMethod · 0.45
trainMethod · 0.45
push_backMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected