40 #include <pcl/pcl_base.h>
41 #include <pcl/PointIndices.h>
56 template <
typename Po
intT,
typename Po
intLT>
68 using Ptr = shared_ptr<OrganizedEdgeBase<PointT, PointLT> >;
69 using ConstPtr = shared_ptr<const OrganizedEdgeBase<PointT, PointLT> >;
179 template <
typename Po
intT,
typename Po
intLT>
261 template <
typename Po
intT,
typename Po
intNT,
typename Po
intLT>
316 inline PointCloudNConstPtr
367 template <
typename Po
intT,
typename Po
intNT,
typename Po
intLT>
415 #ifdef PCL_NO_PRECOMPILE
416 #include <pcl/features/impl/organized_edge_detection.hpp>
OrganizedEdgeBase, OrganizedEdgeFromRGB, OrganizedEdgeFromNormals, and OrganizedEdgeFromRGBNormals fi...
int getEdgeType() const
Get the detecting edge types.
static const int num_of_edgetype_
float th_depth_discon_
The tolerance in meters for the relative difference in depth values between neighboring points (The d...
int getMaxSearchNeighbors() const
Get the max search distance for deciding occluding and occluded edges.
int detecting_edge_types_
The bit encoded value that represents edge types to detect.
OrganizedEdgeBase()
Constructor for OrganizedEdgeBase.
void assignLabelIndices(pcl::PointCloud< PointLT > &labels, std::vector< pcl::PointIndices > &label_indices) const
Assign point indices for each edge label.
float getDepthDisconThreshold() const
Get the tolerance in meters for the relative difference in depth values between neighboring points.
~OrganizedEdgeBase() override=default
Destructor for OrganizedEdgeBase.
void extractEdges(pcl::PointCloud< PointLT > &labels) const
Perform the 3D edge detection (edges from depth discontinuities) and assign point indices for each ed...
void setEdgeType(int edge_types)
Set the detecting edge types.
void setMaxSearchNeighbors(const int max_dist)
Set the max search distance for deciding occluding and occluded edges.
void compute(pcl::PointCloud< PointLT > &labels, std::vector< pcl::PointIndices > &label_indices) const
Perform the 3D edge detection (edges from depth discontinuities)
void setDepthDisconThreshold(const float th)
Set the tolerance in meters for the relative difference in depth values between neighboring points.
shared_ptr< const OrganizedEdgeBase< PointT, PointLT > > ConstPtr
shared_ptr< OrganizedEdgeBase< PointT, PointLT > > Ptr
int max_search_neighbors_
The max search distance for deciding occluding and occluded edges.
@ EDGELABEL_HIGH_CURVATURE
PointCloudNConstPtr getInputNormals() const
Get the input normals.
void compute(pcl::PointCloud< PointLT > &labels, std::vector< pcl::PointIndices > &label_indices) const
Perform the 3D edge detection (edges from depth discontinuities and high curvature regions) and assig...
PointCloudNConstPtr normals_
A pointer to the input normals.
void setHCCannyLowThreshold(const float th)
Set the low threshold value for high curvature Canny edge detection.
float th_hc_canny_high_
The high threshold value for high curvature Canny edge detection (default: 1.1)
void setHCCannyHighThreshold(const float th)
Set the high threshold value for high curvature Canny edge detection.
OrganizedEdgeFromNormals()
Constructor for OrganizedEdgeFromNormals.
float getHCCannyHighThreshold() const
Get the high threshold value for high curvature Canny edge detection.
~OrganizedEdgeFromNormals() override=default
Destructor for OrganizedEdgeFromNormals.
void extractEdges(pcl::PointCloud< PointLT > &labels) const
Perform the 3D edge detection (edges from depth discontinuities and high curvature regions)
void setInputNormals(const PointCloudNConstPtr &normals)
Provide a pointer to the input normals.
float th_hc_canny_low_
The low threshold value for high curvature Canny edge detection (default: 0.4)
float getHCCannyLowThreshold() const
Get the low threshold value for high curvature Canny edge detection.
float getRGBCannyLowThreshold() const
Get the low threshold value for RGB Canny edge detection.
void extractEdges(pcl::PointCloud< PointLT > &labels) const
Perform the 3D edge detection (edges from depth discontinuities and RGB Canny edge)
float getRGBCannyHighThreshold() const
Get the high threshold value for RGB Canny edge detection.
OrganizedEdgeFromRGB()
Constructor for OrganizedEdgeFromRGB.
float th_rgb_canny_high_
The high threshold value for RGB Canny edge detection (default: 100.0)
~OrganizedEdgeFromRGB() override=default
Destructor for OrganizedEdgeFromRGB.
void setRGBCannyLowThreshold(const float th)
Set the low threshold value for RGB Canny edge detection.
void setRGBCannyHighThreshold(const float th)
Set the high threshold value for RGB Canny edge detection.
float th_rgb_canny_low_
The low threshold value for RGB Canny edge detection (default: 40.0)
void compute(pcl::PointCloud< PointLT > &labels, std::vector< pcl::PointIndices > &label_indices) const
Perform the 3D edge detection (edges from depth discontinuities and RGB Canny edge) and assign point ...
void compute(pcl::PointCloud< PointLT > &labels, std::vector< pcl::PointIndices > &label_indices) const
Perform the 3D edge detection (edges from depth discontinuities, RGB Canny edge, and high curvature r...
~OrganizedEdgeFromRGBNormals() override=default
Destructor for OrganizedEdgeFromRGBNormals.
OrganizedEdgeFromRGBNormals()
Constructor for OrganizedEdgeFromRGBNormals.
typename PointCloud::Ptr PointCloudPtr
typename PointCloud::ConstPtr PointCloudConstPtr
PointCloud represents the base class in PCL for storing collections of 3D points.
shared_ptr< PointCloud< PointT > > Ptr
shared_ptr< const PointCloud< PointT > > ConstPtr
Neighbor(int dx, int dy, int didx)
A point structure representing Euclidean xyz coordinates, and the RGB color.