Point Cloud Library (PCL)  1.11.0-dev
morphological_filter.h
1 /*
2  * Software License Agreement (BSD License)
3  *
4  * Point Cloud Library (PCL) - www.pointclouds.org
5  * Copyright (c) 2009-2012, Willow Garage, Inc.
6  * Copyright (c) 2012-, Open Perception, Inc.
7  * Copyright (c) 2014, RadiantBlue Technologies, Inc.
8  *
9  * All rights reserved.
10  *
11  * Redistribution and use in source and binary forms, with or without
12  * modification, are permitted provided that the following conditions
13  * are met:
14  *
15  * * Redistributions of source code must retain the above copyright
16  * notice, this list of conditions and the following disclaimer.
17  * * Redistributions in binary form must reproduce the above
18  * copyright notice, this list of conditions and the following
19  * disclaimer in the documentation and/or other materials provided
20  * with the distribution.
21  * * Neither the name of the copyright holder(s) nor the names of its
22  * contributors may be used to endorse or promote products derived
23  * from this software without specific prior written permission.
24  *
25  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
28  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
29  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
30  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
31  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
32  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
33  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
35  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36  * POSSIBILITY OF SUCH DAMAGE.
37  *
38  * $Id$
39  *
40  */
41 
42 #pragma once
43 
44 #include <string>
45 #include <pcl/pcl_base.h>
46 #include <pcl/PointIndices.h>
47 #include <pcl/conversions.h>
48 #include <locale>
49 
50 namespace pcl
51 {
53  {
58  };
59 }
60 
61 namespace pcl
62 {
63  /** \brief Apply morphological operator to the z dimension of the input point cloud
64  * \param[in] cloud_in the input point cloud dataset
65  * \param[in] resolution the window size to be used for the morphological operation
66  * \param[in] morphological_operator the morphological operator to apply (open, close, dilate, erode)
67  * \param[out] cloud_out the resultant output point cloud dataset
68  * \ingroup filters
69  */
70  template <typename PointT> PCL_EXPORTS void
72  float resolution, const int morphological_operator,
73  pcl::PointCloud<PointT> &cloud_out);
74 }
75 
76 #ifdef PCL_NO_PRECOMPILE
77 #include <pcl/filters/impl/morphological_filter.hpp>
78 #endif
pcl
Definition: convolution.h:46
pcl::MORPH_CLOSE
@ MORPH_CLOSE
Definition: morphological_filter.h:55
pcl::PointCloud
PointCloud represents the base class in PCL for storing collections of 3D points.
Definition: projection_matrix.h:53
pcl::MORPH_DILATE
@ MORPH_DILATE
Definition: morphological_filter.h:56
pcl::MorphologicalOperators
MorphologicalOperators
Definition: morphological_filter.h:52
pcl::MORPH_OPEN
@ MORPH_OPEN
Definition: morphological_filter.h:54
pcl::applyMorphologicalOperator
void applyMorphologicalOperator(const typename pcl::PointCloud< PointT >::ConstPtr &cloud_in, float resolution, const int morphological_operator, pcl::PointCloud< PointT > &cloud_out)
Apply morphological operator to the z dimension of the input point cloud.
Definition: morphological_filter.hpp:58
pcl::MORPH_ERODE
@ MORPH_ERODE
Definition: morphological_filter.h:57
pcl::PointCloud::ConstPtr
shared_ptr< const PointCloud< PointT > > ConstPtr
Definition: point_cloud.h:430
PCL_EXPORTS
#define PCL_EXPORTS
Definition: pcl_macros.h:331