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

Function TEST

test/features/test_ptr.cpp:53–76  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

51
52//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
53TEST (PCL, FeaturePtr)
54{
55 VFHEstimation<PointXYZ, PointNormal, VFHSignature308>::Ptr vfh (new VFHEstimation<PointXYZ, PointNormal, VFHSignature308> ());
56 vfh->setViewPoint (1.0f, 1.0f, 1.0f);
57
58 UniqueShapeContext<PointXYZ, UniqueShapeContext1960, ReferenceFrame>::Ptr usc (new UniqueShapeContext<PointXYZ, UniqueShapeContext1960, ReferenceFrame> ());
59 usc->setMinimalRadius (5);
60
61 StatisticalMultiscaleInterestRegionExtraction<PointXYZ>::Ptr smire (new StatisticalMultiscaleInterestRegionExtraction<PointXYZ> ());
62 smire->getScalesVector ();
63
64 SpinImageEstimation<PointXYZ, PointNormal, Histogram<153> >::Ptr spin (new SpinImageEstimation<PointXYZ, PointNormal, Histogram<153> > ());
65 spin->setImageWidth (20);
66
67// RSDEstimation<PointXYZ, Normal, PrincipalRadiiRSD>::Ptr rsd (new RSDEstimation<PointXYZ, Normal, PrincipalRadiiRSD> ());
68// rsd->setNrSubdivisions (20);
69
70#ifndef PCL_ONLY_CORE_POINT_TYPES
71 RIFTEstimation<PointXYZI, IntensityGradient, Histogram<32> >::Ptr rift (new RIFTEstimation<PointXYZI, IntensityGradient, Histogram<32> > ());
72 rift->setNrDistanceBins (10);
73#endif
74 NormalBasedSignatureEstimation<PointXYZ, Normal, NormalBasedSignature12>::Ptr nbs (new NormalBasedSignatureEstimation<PointXYZ, Normal, NormalBasedSignature12> ());
75 nbs->setN (20);
76}
77
78/* ---[ */
79int

Callers

nothing calls this directly

Calls 6

setNMethod · 0.80
setViewPointMethod · 0.45
setMinimalRadiusMethod · 0.45
getScalesVectorMethod · 0.45
setImageWidthMethod · 0.45
setNrDistanceBinsMethod · 0.45

Tested by

no test coverage detected