Point Cloud Library (PCL)  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions
pcl::PointCloudSpring< PointT > Class Template Reference

Class PointCloudSpring used to expand or shrink a point cloud in horizontal and or vertical direction using either mirroring or duplicating edges of the input point cloud or filling the new cells with some value. More...

#include <pcl/common/spring.h>

List of all members.

Public Types

enum  EXPAND_POLICY { MIRROR = 0, DUPLICATE }
 expansion policy More...
enum  DIRECTION { HORIZONTAL = 0, VERTICAL, BOTH }
 direction of the expansion More...
typedef pcl::PointCloud< PointT > PointCloud
typedef PointCloud::Ptr PointCloudPtr
typedef PointCloud::ConstPtr PointCloudConstPtr
typedef PointCloud::iterator iterator

Public Member Functions

 PointCloudSpring ()
 Default constructor.
void setExpandPolicy (int policy)
 expansion policy
int getExpandPolicy ()
void setDirection (int direction)
 expansion's direction
int getDirection ()
void setAmount (int amount)
 expansion amount
int getAmount ()
void setInputCloud (PointCloudPtr &input)
 input cloud
PointCloudPtr getInputCloud ()
void expand ()
 expand a point cloud in the set direction and policy.
void expand (const PointT &val)
 expand a point cloud in the set direction.
void shrink ()
 shrink a point cloud in the set direction.

Detailed Description

template<typename PointT>
class pcl::PointCloudSpring< PointT >

Class PointCloudSpring used to expand or shrink a point cloud in horizontal and or vertical direction using either mirroring or duplicating edges of the input point cloud or filling the new cells with some value.

This class will modify the input point cloud so that no deep copy are made.

Author:
Nizar Sallem

Definition at line 58 of file spring.h.


Member Typedef Documentation

template<typename PointT>
typedef PointCloud::iterator pcl::PointCloudSpring< PointT >::iterator

Definition at line 64 of file spring.h.

template<typename PointT>
typedef pcl::PointCloud<PointT> pcl::PointCloudSpring< PointT >::PointCloud

Definition at line 61 of file spring.h.

template<typename PointT>
typedef PointCloud::ConstPtr pcl::PointCloudSpring< PointT >::PointCloudConstPtr

Definition at line 63 of file spring.h.

template<typename PointT>
typedef PointCloud::Ptr pcl::PointCloudSpring< PointT >::PointCloudPtr

Definition at line 62 of file spring.h.


Member Enumeration Documentation

template<typename PointT>
enum pcl::PointCloudSpring::DIRECTION

direction of the expansion

Enumerator:
HORIZONTAL 
VERTICAL 
BOTH 

Definition at line 69 of file spring.h.

template<typename PointT>
enum pcl::PointCloudSpring::EXPAND_POLICY

expansion policy

Enumerator:
MIRROR 
DUPLICATE 

Definition at line 67 of file spring.h.


Constructor & Destructor Documentation

template<typename PointT>
pcl::PointCloudSpring< PointT >::PointCloudSpring ( ) [inline]

Default constructor.

Definition at line 71 of file spring.h.


Member Function Documentation

template<typename PointT>
void pcl::PointCloudSpring< PointT >::expand ( ) [inline]

expand a point cloud in the set direction and policy.

If the policy is set to mirror then the new created rows and/or columns are symmetrical to the top and bottom rows and/or left and right columns of the original point cloud. If the policy is set to duplicate then the top and bottom rows and/or the right and left columns will be duplicated.

Definition at line 110 of file spring.h.

template<typename PointT>
void pcl::PointCloudSpring< PointT >::expand ( const PointT &  val) [inline]

expand a point cloud in the set direction.

val the point value to be used to fill.

Definition at line 135 of file spring.h.

template<typename PointT>
int pcl::PointCloudSpring< PointT >::getAmount ( ) [inline]
Returns:
the amount

Definition at line 89 of file spring.h.

template<typename PointT>
int pcl::PointCloudSpring< PointT >::getDirection ( ) [inline]
Returns:
direction

Definition at line 83 of file spring.h.

template<typename PointT>
int pcl::PointCloudSpring< PointT >::getExpandPolicy ( ) [inline]
Returns:
the policy

Definition at line 77 of file spring.h.

template<typename PointT>
PointCloudPtr pcl::PointCloudSpring< PointT >::getInputCloud ( ) [inline]
Returns:
input cloud

Definition at line 95 of file spring.h.

template<typename PointT>
void pcl::PointCloudSpring< PointT >::setAmount ( int  amount) [inline]

expansion amount

Definition at line 86 of file spring.h.

template<typename PointT>
void pcl::PointCloudSpring< PointT >::setDirection ( int  direction) [inline]

expansion's direction

Definition at line 80 of file spring.h.

template<typename PointT>
void pcl::PointCloudSpring< PointT >::setExpandPolicy ( int  policy) [inline]

expansion policy

Definition at line 74 of file spring.h.

template<typename PointT>
void pcl::PointCloudSpring< PointT >::setInputCloud ( PointCloudPtr input) [inline]

input cloud

Definition at line 92 of file spring.h.

template<typename PointT>
void pcl::PointCloudSpring< PointT >::shrink ( ) [inline]

shrink a point cloud in the set direction.

  • If direction is vertical or both then the specified amount of top and bottom rows are deleted.
  • If direction is horizontal or both then the specified amount of left and right columns are deleted.

Definition at line 157 of file spring.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines