Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040 #include <gtest/gtest.h>
00041 #include <pcl/point_cloud.h>
00042 #include <pcl/features/vfh.h>
00043 #include <pcl/features/usc.h>
00044 #include <pcl/features/statistical_multiscale_interest_region_extraction.h>
00045 #include <pcl/features/spin_image.h>
00046 #include <pcl/features/rsd.h>
00047 #include <pcl/features/rift.h>
00048 #include <pcl/features/normal_based_signature.h>
00049
00050 using namespace pcl;
00051 using namespace std;
00052
00054 TEST (PCL, FeaturePtr)
00055 {
00056 VFHEstimation<PointXYZ, PointNormal, VFHSignature308>::Ptr vfh (new VFHEstimation<PointXYZ, PointNormal, VFHSignature308> ());
00057 vfh->setViewPoint (1.0f, 1.0f, 1.0f);
00058
00059 UniqueShapeContext<PointXYZ, ShapeContext1980, ReferenceFrame>::Ptr usc (new UniqueShapeContext<PointXYZ, ShapeContext1980, ReferenceFrame> ());
00060 usc->setMinimalRadius (5);
00061
00062 StatisticalMultiscaleInterestRegionExtraction<PointXYZ>::Ptr smire (new StatisticalMultiscaleInterestRegionExtraction<PointXYZ> ());
00063 smire->getScalesVector ();
00064
00065 SpinImageEstimation<PointXYZ, PointNormal, Histogram<153> >::Ptr spin (new SpinImageEstimation<PointXYZ, PointNormal, Histogram<153> > ());
00066 spin->setImageWidth (20);
00067
00068
00069
00070
00071 #ifndef PCL_ONLY_CORE_POINT_TYPES
00072 RIFTEstimation<PointXYZI, IntensityGradient, Histogram<32> >::Ptr rift (new RIFTEstimation<PointXYZI, IntensityGradient, Histogram<32> > ());
00073 rift->setNrDistanceBins (10);
00074 #endif
00075 NormalBasedSignatureEstimation<PointXYZ, Normal, NormalBasedSignature12>::Ptr nbs (new NormalBasedSignatureEstimation<PointXYZ, Normal, NormalBasedSignature12> ());
00076 nbs->setN (20);
00077 }
00078
00079
00080 int
00081 main (int argc, char** argv)
00082 {
00083 testing::InitGoogleTest (&argc, argv);
00084 return (RUN_ALL_TESTS ());
00085 }
00086