Point Cloud Library (PCL)
1.7.1
|
SeededHueSegmentation. More...
#include <pcl/segmentation/seeded_hue_segmentation.h>
Public Types | |
typedef pcl::PointCloud< PointXYZRGB > | PointCloud |
typedef PointCloud::Ptr | PointCloudPtr |
typedef PointCloud::ConstPtr | PointCloudConstPtr |
typedef pcl::search::Search< PointXYZRGB > | KdTree |
typedef pcl::search::Search< PointXYZRGB >::Ptr | KdTreePtr |
typedef PointIndices::Ptr | PointIndicesPtr |
typedef PointIndices::ConstPtr | PointIndicesConstPtr |
![]() | |
typedef pcl::PointCloud< PointXYZRGB > | PointCloud |
typedef PointCloud::Ptr | PointCloudPtr |
typedef PointCloud::ConstPtr | PointCloudConstPtr |
typedef boost::shared_ptr< PointIndices > | PointIndicesPtr |
typedef boost::shared_ptr< PointIndices const > | PointIndicesConstPtr |
Public Member Functions | |
SeededHueSegmentation () | |
Empty constructor. More... | |
void | setSearchMethod (const KdTreePtr &tree) |
Provide a pointer to the search object. More... | |
KdTreePtr | getSearchMethod () const |
Get a pointer to the search method used. More... | |
void | setClusterTolerance (double tolerance) |
Set the spatial cluster tolerance as a measure in the L2 Euclidean space. More... | |
double | getClusterTolerance () const |
Get the spatial cluster tolerance as a measure in the L2 Euclidean space. More... | |
void | setDeltaHue (float delta_hue) |
Set the tollerance on the hue. More... | |
float | getDeltaHue () const |
Get the tolerance on the hue. More... | |
void | segment (PointIndices &indices_in, PointIndices &indices_out) |
Cluster extraction in a PointCloud given by <setInputCloud (), setIndices ()> More... | |
![]() | |
PCLBase () | |
Empty constructor. More... | |
PCLBase (const PCLBase &base) | |
Copy constructor. More... | |
virtual | ~PCLBase () |
Destructor. More... | |
virtual void | setInputCloud (const PointCloudConstPtr &cloud) |
Provide a pointer to the input dataset. More... | |
PointCloudConstPtr const | getInputCloud () |
Get a pointer to the input point cloud dataset. More... | |
virtual void | setIndices (const IndicesPtr &indices) |
Provide a pointer to the vector of indices that represents the input data. More... | |
virtual void | setIndices (const IndicesConstPtr &indices) |
Provide a pointer to the vector of indices that represents the input data. More... | |
virtual void | setIndices (const PointIndicesConstPtr &indices) |
Provide a pointer to the vector of indices that represents the input data. More... | |
virtual void | setIndices (size_t row_start, size_t col_start, size_t nb_rows, size_t nb_cols) |
Set the indices for the points laying within an interest region of the point cloud. More... | |
IndicesPtr const | getIndices () |
Get a pointer to the vector of indices used. More... | |
const PointXYZRGB & | operator[] (size_t pos) |
Override PointCloud operator[] to shorten code. More... | |
Protected Member Functions | |
virtual std::string | getClassName () const |
Class getName method. More... | |
![]() | |
bool | initCompute () |
This method should get called before starting the actual computation. More... | |
bool | deinitCompute () |
This method should get called after finishing the actual computation. More... | |
Protected Attributes | |
KdTreePtr | tree_ |
A pointer to the spatial search object. More... | |
double | cluster_tolerance_ |
The spatial cluster tolerance as a measure in the L2 Euclidean space. More... | |
float | delta_hue_ |
The allowed difference on the hue. More... | |
![]() | |
PointCloudConstPtr | input_ |
The input point cloud dataset. More... | |
IndicesPtr | indices_ |
A pointer to the vector of point indices to use. More... | |
bool | use_indices_ |
Set to true if point indices are used. More... | |
bool | fake_indices_ |
If no set of indices are given, we construct a set of fake indices that mimic the input PointCloud. More... | |
Definition at line 94 of file seeded_hue_segmentation.h.
Definition at line 103 of file seeded_hue_segmentation.h.
Definition at line 104 of file seeded_hue_segmentation.h.
Definition at line 99 of file seeded_hue_segmentation.h.
Definition at line 101 of file seeded_hue_segmentation.h.
Definition at line 100 of file seeded_hue_segmentation.h.
Definition at line 107 of file seeded_hue_segmentation.h.
Definition at line 106 of file seeded_hue_segmentation.h.
|
inline |
Empty constructor.
Definition at line 111 of file seeded_hue_segmentation.h.
|
inlineprotectedvirtual |
Class getName method.
Definition at line 168 of file seeded_hue_segmentation.h.
|
inline |
Get the spatial cluster tolerance as a measure in the L2 Euclidean space.
Definition at line 132 of file seeded_hue_segmentation.h.
References cluster_tolerance_.
|
inline |
Get the tolerance on the hue.
Definition at line 142 of file seeded_hue_segmentation.h.
References delta_hue_.
|
inline |
Get a pointer to the search method used.
Definition at line 122 of file seeded_hue_segmentation.h.
References tree_.
void pcl::SeededHueSegmentation::segment | ( | PointIndices & | indices_in, |
PointIndices & | indices_out | ||
) |
Cluster extraction in a PointCloud given by <setInputCloud (), setIndices ()>
[in] | indices_in | |
[out] | indices_out |
Definition at line 199 of file seeded_hue_segmentation.hpp.
References cluster_tolerance_, pcl::PCLBase< PointXYZRGB >::deinitCompute(), delta_hue_, pcl::PointIndices::indices, pcl::PCLBase< PointXYZRGB >::indices_, pcl::PCLBase< PointXYZRGB >::initCompute(), pcl::PCLBase< PointXYZRGB >::input_, pcl::seededHueSegmentation(), and tree_.
|
inline |
Set the spatial cluster tolerance as a measure in the L2 Euclidean space.
[in] | tolerance | the spatial cluster tolerance as a measure in the L2 Euclidean space |
Definition at line 128 of file seeded_hue_segmentation.h.
References cluster_tolerance_.
|
inline |
Set the tollerance on the hue.
[in] | delta_hue | the new delta hue |
Definition at line 138 of file seeded_hue_segmentation.h.
References delta_hue_.
|
inline |
Provide a pointer to the search object.
[in] | tree | a pointer to the spatial search object. |
Definition at line 118 of file seeded_hue_segmentation.h.
References tree_.
|
protected |
The spatial cluster tolerance as a measure in the L2 Euclidean space.
Definition at line 162 of file seeded_hue_segmentation.h.
Referenced by getClusterTolerance(), segment(), and setClusterTolerance().
|
protected |
The allowed difference on the hue.
Definition at line 165 of file seeded_hue_segmentation.h.
Referenced by getDeltaHue(), segment(), and setDeltaHue().
|
protected |
A pointer to the spatial search object.
Definition at line 159 of file seeded_hue_segmentation.h.
Referenced by getSearchMethod(), segment(), and setSearchMethod().