Point Cloud Library (PCL)
1.7.1
Main Page
Modules
Namespaces
Classes
common
include
pcl
common
spring.h
1
/*
2
* Software License Agreement (BSD License)
3
*
4
* Point Cloud Library (PCL) - www.pointclouds.org
5
* Copyright (c) 2010-2011, Willow Garage, Inc.
6
*
7
* All rights reserved.
8
*
9
* Redistribution and use in source and binary forms, with or without
10
* modification, are permitted provided that the following conditions
11
* are met:
12
*
13
* * Redistributions of source code must retain the above copyright
14
* notice, this list of conditions and the following disclaimer.
15
* * Redistributions in binary form must reproduce the above
16
* copyright notice, this list of conditions and the following
17
* disclaimer in the documentation and/or other materials provided
18
* with the distribution.
19
* * Neither the name of the copyright holder(s) nor the names of its
20
* contributors may be used to endorse or promote products derived
21
* from this software without specific prior written permission.
22
*
23
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
26
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
27
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
28
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
29
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
30
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
31
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
33
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34
* POSSIBILITY OF SUCH DAMAGE.
35
*
36
* $Id$
37
*
38
*/
39
40
#ifndef PCL_POINT_CLOUD_SPRING_H_
41
#define PCL_POINT_CLOUD_SPRING_H_
42
43
#include <pcl/point_cloud.h>
44
45
namespace
pcl
46
{
47
namespace
common
48
{
49
/** expand point cloud inserting \a amount rows at the
50
* top and the bottom of a point cloud and filling them with
51
* custom values.
52
* \param[in] input the input point cloud
53
* \param[out] output the output point cloud
54
* \param[in] val the point value to be insterted
55
* \param[in] amount the amount of rows to be added
56
*/
57
template
<
typename
Po
int
T>
void
58
expandRows
(
const
PointCloud<PointT>
& input,
PointCloud<PointT>
& output,
59
const
PointT
& val,
const
size_t
& amount);
60
61
/** expand point cloud inserting \a amount columns at
62
* the right and the left of a point cloud and filling them with
63
* custom values.
64
* \param[in] input the input point cloud
65
* \param[out] output the output point cloud
66
* \param[in] val the point value to be insterted
67
* \param[in] amount the amount of columns to be added
68
*/
69
template
<
typename
Po
int
T>
void
70
expandColumns
(
const
PointCloud<PointT>
& input,
PointCloud<PointT>
& output,
71
const
PointT
& val,
const
size_t
& amount);
72
73
/** expand point cloud duplicating the \a amount top and bottom rows times.
74
* \param[in] input the input point cloud
75
* \param[out] output the output point cloud
76
* \param[in] amount the amount of rows to be added
77
*/
78
template
<
typename
Po
int
T>
void
79
duplicateRows
(
const
PointCloud<PointT>
& input,
PointCloud<PointT>
& output,
80
const
size_t
& amount);
81
82
/** expand point cloud duplicating the \a amount right and left columns
83
* times.
84
* \param[in] input the input point cloud
85
* \param[out] output the output point cloud
86
* \param[in] amount the amount of cilumns to be added
87
*/
88
template
<
typename
Po
int
T>
void
89
duplicateColumns
(
const
PointCloud<PointT>
& input,
PointCloud<PointT>
& output,
90
const
size_t
& amount);
91
92
/** expand point cloud mirroring \a amount top and bottom rows.
93
* \param[in] input the input point cloud
94
* \param[out] output the output point cloud
95
* \param[in] amount the amount of rows to be added
96
*/
97
template
<
typename
Po
int
T>
void
98
mirrorRows
(
const
PointCloud<PointT>
& input,
PointCloud<PointT>
& output,
99
const
size_t
& amount);
100
101
/** expand point cloud mirroring \a amount right and left columns.
102
* \param[in] input the input point cloud
103
* \param[out] output the output point cloud
104
* \param[in] amount the amount of rows to be added
105
*/
106
template
<
typename
Po
int
T>
void
107
mirrorColumns
(
const
PointCloud<PointT>
& input,
PointCloud<PointT>
& output,
108
const
size_t
& amount);
109
110
/** delete \a amount rows in top and bottom of point cloud
111
* \param[in] input the input point cloud
112
* \param[out] output the output point cloud
113
* \param[in] amount the amount of rows to be added
114
*/
115
template
<
typename
Po
int
T>
void
116
deleteRows
(
const
PointCloud<PointT>
& input,
PointCloud<PointT>
& output,
117
const
size_t
& amount);
118
119
/** delete \a amount columns in top and bottom of point cloud
120
* \param[in] input the input point cloud
121
* \param[out] output the output point cloud
122
* \param[in] amount the amount of rows to be added
123
*/
124
template
<
typename
Po
int
T>
void
125
deleteCols
(
const
PointCloud<PointT>
& input,
PointCloud<PointT>
& output,
126
const
size_t
& amount);
127
};
128
}
129
130
#include <pcl/common/impl/spring.hpp>
131
132
#endif