Point Cloud Library (PCL)
1.11.1
|
42 #include "clipper3D.h"
52 template<
typename Po
intT>
57 using Ptr = shared_ptr<BoxClipper3D<PointT> >;
58 using ConstPtr = shared_ptr<const BoxClipper3D<PointT> >;
74 BoxClipper3D (
const Eigen::Vector3f& rodrigues,
const Eigen::Vector3f& translation,
const Eigen::Vector3f& box_size);
88 void setTransformation (
const Eigen::Vector3f& rodrigues,
const Eigen::Vector3f& translation,
const Eigen::Vector3f& box_size);
111 clone () const override;
120 Eigen::Affine3f transformation_;
127 #include <pcl/filters/impl/box_clipper3D.hpp>
Defines all the PCL and non-PCL macros used.
Base class for 3D clipper objects.
BoxClipper3D(const Eigen::Affine3f &transformation)
Constructor taking an affine transformation matrix, which allows also shearing of the clipping area.
PointCloud represents the base class in PCL for storing collections of 3D points.
A point structure representing Euclidean xyz coordinates, and the RGB color.
Clipper3D< PointT > * clone() const override
polymorphic method to clone the underlying clipper with its parameters.
shared_ptr< BoxClipper3D< PointT > > Ptr
Implementation of a box clipper in 3D. Actually it allows affine transformations, thus any parallelep...
#define PCL_MAKE_ALIGNED_OPERATOR_NEW
Macro to signal a class requires a custom allocator.
float getDistance(const PointT &point) const
void clipPointCloud3D(const pcl::PointCloud< PointT > &cloud_in, std::vector< int > &clipped, const std::vector< int > &indices=std::vector< int >()) const override
interface to clip a point cloud
void transformPoint(const PointT &pointIn, PointT &pointOut) const
~BoxClipper3D() noexcept
virtual destructor
void setTransformation(const Eigen::Affine3f &transformation)
Set the affine transformation.
bool clipLineSegment3D(PointT &from, PointT &to) const override
shared_ptr< const BoxClipper3D< PointT > > ConstPtr
bool clipPoint3D(const PointT &point) const override
interface to clip a single point
Defines functions, macros and traits for allocating and using memory.
void clipPlanarPolygon3D(std::vector< PointT, Eigen::aligned_allocator< PointT > > &polygon) const override