Debian Codegraph @

plugins/core/Standard/qPCL/PclUtils/utils/copy.h

raw symbols SCIP
1 //##########################################################################
2 //# #
3 //# CLOUDCOMPARE PLUGIN: qPCL #
4 //# #
5 //# This program is free software; you can redistribute it and/or modify #
6 //# it under the terms of the GNU General Public License as published by #
7 //# the Free Software Foundation; version 2 or later of the License. #
8 //# #
9 //# This program is distributed in the hope that it will be useful, #
10 //# but WITHOUT ANY WARRANTY; without even the implied warranty of #
11 //# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
12 //# GNU General Public License for more details. #
13 //# #
14 //# COPYRIGHT: Luca Penasa #
15 //# #
16 //##########################################################################
17 //
18 //#ifdef LP_PCL_PATCH_ENABLED
19
20 #ifndef qPCL_COPY_H
21 #define qPCL_COPY_H
22
23 //Local
24 #include "PCLCloud.h"
25
26 //PCL
27 #include <pcl/PointIndices.h>
28
29 class ccPointCloud;
30
31 //! Makes a copy of all scalar fields from one cloud to another
32 /** This algorithm simply copy the scalar fields from a cloud
33 to another using the the mapping contained in a pcl::PointIndicesPtr.
34 \param inCloud the input cloud from which to copy scalars
35 \param outCloud the output cloud in which to copy the scalar fields
36 \param in2outMapping indices of the input cloud for each point in the output
37 \param overwrite you can chose to not overwrite existing fields
38 **/
39 void copyScalarFields( const ccPointCloud *inCloud,
40 ccPointCloud *outCloud,
41 pcl::PointIndicesPtr &in2outMapping,
42 bool overwrite = true);
43
44 //! Makes a copy of RGB colors from one cloud to another
45 void copyRGBColors( const ccPointCloud *inCloud,
46 ccPointCloud *outCloud,
47 pcl::PointIndicesPtr &in2outMapping,
48 bool overwrite = true);
49
50 #endif // qPCL_COPY_H
51
52 //#endif // LP_PCL_PATCH_ENABLED