44 #include <pcl/point_cloud.h>
47 #include <pcl/ml/densecrf.h>
48 #include <pcl/filters/voxel_grid.h>
57 template <
typename Po
intT>
89 setVoxelGridLeafSize (
const float x,
const float y,
const float z);
104 createDataVectorFromVoxelGrid ();
108 createUnaryPotentials (std::vector<float> &unary,
109 std::vector<int> &colors,
110 unsigned int n_labels);
120 setSmoothnessKernelParameters (
const float sx,
const float sy,
const float sz,
const float w);
132 setAppearanceKernelParameters (
float sx,
float sy,
float sz,
133 float sr,
float sg,
float sb,
138 setSurfaceKernelParameters (
float sx,
float sy,
float sz,
139 float snx,
float sny,
float snz,
169 std::vector<Eigen::Vector3i, Eigen::aligned_allocator<Eigen::Vector3i> >
data_;
171 std::vector<Eigen::Vector3i, Eigen::aligned_allocator<Eigen::Vector3i> >
color_;
173 std::vector<Eigen::Vector3f, Eigen::aligned_allocator<Eigen::Vector3f> >
normal_;
181 float smoothness_kernel_param_[4];
192 float appearance_kernel_param_[7];
194 float surface_kernel_param_[7];
211 #ifdef PCL_NO_PRECOMPILE
212 #include <pcl/segmentation/impl/crf_segmentation.hpp>
Eigen::Vector4f voxel_grid_leaf_size_
indices of the filtered cloud.
pcl::PointCloud< pcl::PointNormal >::Ptr filtered_normal_
~CrfSegmentation()
This destructor destroys the cloud...
std::vector< Eigen::Vector3i, Eigen::aligned_allocator< Eigen::Vector3i > > data_
voxel grid data points packing order [x0y0z0, x1y0z0,x2y0z0,...,x0y1z0,x1y1z0,...,...
unsigned int n_iterations_
pcl::VoxelGrid< PointT > voxel_grid_
Voxel grid to discretize the scene.
Eigen::Vector3i dim_
Voxel grid dimensions.
std::vector< Eigen::Vector3i, Eigen::aligned_allocator< Eigen::Vector3i > > color_
void setNumberOfIterations(unsigned int n_iterations=10)
pcl::PointCloud< PointT >::Ptr filtered_cloud_
voxel grid filtered cloud.
pcl::PointCloud< PointT >::Ptr input_cloud_
input cloud that will be segmented.
std::vector< Eigen::Vector3f, Eigen::aligned_allocator< Eigen::Vector3f > > normal_
pcl::PointCloud< pcl::PointNormal >::Ptr normal_cloud_
pcl::PointCloud< pcl::PointXYZRGBL >::Ptr filtered_anno_
pcl::PointCloud< pcl::PointXYZRGBL >::Ptr anno_cloud_
shared_ptr< PointCloud< PointT > > Ptr
VoxelGrid assembles a local 3D grid over a given PointCloud, and downsamples + filters the data.
Defines all the PCL implemented PointT point type structures.
#define PCL_MAKE_ALIGNED_OPERATOR_NEW
Macro to signal a class requires a custom allocator.
Defines functions, macros and traits for allocating and using memory.
Defines all the PCL and non-PCL macros used.