40 #include <pcl/pcl_base.h>
44 template <
typename Po
intT>
50 PointCloudInPtr structuring_element_;
206 #include <pcl/2d/impl/morphology.hpp>
void dilationBinary(pcl::PointCloud< PointT > &output)
Binary erosion is similar to a logical addition of sets.
void subtractionBinary(pcl::PointCloud< PointT > &output, const pcl::PointCloud< PointT > &input1, const pcl::PointCloud< PointT > &input2)
Set operation output = input1 - input2.
void erosionGray(pcl::PointCloud< PointT > &output)
Takes the min of the pixels where kernel is 1.
void openingBinary(pcl::PointCloud< PointT > &output)
This function performs erosion followed by dilation.
void erosionBinary(pcl::PointCloud< PointT > &output)
Binary dilation is similar to a logical disjunction of sets.
void setStructuringElement(const PointCloudInPtr &structuring_element)
void closingGray(pcl::PointCloud< PointT > &output)
Grayscale dilation followed by erosion.
void closingBinary(pcl::PointCloud< PointT > &output)
This function performs dilation followed by erosion.
void intersectionBinary(pcl::PointCloud< PointT > &output, const pcl::PointCloud< PointT > &input1, const pcl::PointCloud< PointT > &input2)
Set operation .
void unionBinary(pcl::PointCloud< PointT > &output, const pcl::PointCloud< PointT > &input1, const pcl::PointCloud< PointT > &input2)
Set operation .
void structuringElementRectangle(pcl::PointCloud< PointT > &kernel, const int height, const int width)
Creates a rectangular structing element of size height x width.
void applyMorphologicalOperation(pcl::PointCloud< PointT > &output)
void openingGray(pcl::PointCloud< PointT > &output)
Grayscale erosion followed by dilation.
MORPHOLOGICAL_OPERATOR_TYPE
void structuringElementCircular(pcl::PointCloud< PointT > &kernel, const int radius)
Creates a circular structing element.
MORPHOLOGICAL_OPERATOR_TYPE operator_type
void dilationGray(pcl::PointCloud< PointT > &output)
Takes the max of the pixels where kernel is 1.
PointCloud represents the base class in PCL for storing collections of 3D points.
shared_ptr< PointCloud< PointT > > Ptr