Point Cloud Library (PCL)
1.6.0
Main Page
Modules
Namespaces
Classes
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
surface
include
pcl
surface
mls_omp.h
Go to the documentation of this file.
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 Willow Garage, Inc. 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: mls_omp.h 5823 2012-06-01 20:25:35Z aichim $
37
*
38
*/
39
40
#ifndef PCL_MLS_OMP_H_
41
#define PCL_MLS_OMP_H_
42
43
#include <
pcl/surface/mls.h
>
44
45
namespace
pcl
46
{
52
template
<
typename
Po
int
InT,
typename
Po
int
OutT>
53
class
MovingLeastSquaresOMP
:
public
MovingLeastSquares
<PointInT, PointOutT>
54
{
55
using
MovingLeastSquares<PointInT, PointOutT>::input_
;
56
using
MovingLeastSquares<PointInT, PointOutT>::indices_
;
57
using
MovingLeastSquares<PointInT, PointOutT>::fake_indices_
;
58
using
MovingLeastSquares<PointInT, PointOutT>::initCompute
;
59
using
MovingLeastSquares<PointInT, PointOutT>::deinitCompute
;
60
using
MovingLeastSquares<PointInT, PointOutT>::nr_coeff_
;
61
using
MovingLeastSquares<PointInT, PointOutT>::order_
;
62
using
MovingLeastSquares<PointInT, PointOutT>::normals_
;
63
using
MovingLeastSquares<PointInT, PointOutT>::upsample_method_
;
64
using
MovingLeastSquares<PointInT, PointOutT>::voxel_size_
;
65
using
MovingLeastSquares<PointInT, PointOutT>::dilation_iteration_num_
;
66
using
MovingLeastSquares<PointInT, PointOutT>::tree_
;
67
using
MovingLeastSquares<PointInT, PointOutT>::mls_results_
;
68
using
MovingLeastSquares<PointInT, PointOutT>::search_radius_
;
69
using
MovingLeastSquares<PointInT, PointOutT>::compute_normals_
;
70
using
MovingLeastSquares<PointInT, PointOutT>::searchForNeighbors
;
71
72
typedef
typename
MovingLeastSquares<PointInT, PointOutT>::PointCloudIn
PointCloudIn
;
73
typedef
typename
MovingLeastSquares<PointInT, PointOutT>::PointCloudOut
PointCloudOut
;
74
typedef
typename
MovingLeastSquares<PointInT, PointOutT>::NormalCloud
NormalCloud
;
75
typedef
typename
MovingLeastSquares<PointInT, PointOutT>::MLSVoxelGrid
MLSVoxelGrid;
76
77
public
:
79
MovingLeastSquaresOMP
() : threads_ (1)
80
{};
81
85
MovingLeastSquaresOMP
(
unsigned
int
nr_threads) : threads_ (0)
86
{
87
setNumberOfThreads
(nr_threads);
88
}
89
93
inline
void
94
setNumberOfThreads
(
unsigned
int
nr_threads)
95
{
96
if
(nr_threads == 0)
97
nr_threads = 1;
98
threads_ = nr_threads;
99
}
100
101
private
:
103
unsigned
int
threads_;
104
108
virtual
void
109
performProcessing (
PointCloudOut
&output);
110
112
std::string getClassName ()
const
{
return
(
"MovingLeastSquaresOMP"
); }
113
};
114
}
115
116
#endif //#ifndef PCL_MLS_H_
Generated on Fri Mar 8 2013 12:50:59 for Point Cloud Library (PCL) by
1.8.3.1