Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove MovingLeastSquares. Causing problems with PCL1.6

  • Loading branch information...
commit 3039be4068165deb2cb5916f9277298d8b931981 1 parent e8dfcb7
@julienr authored
Showing with 0 additions and 62 deletions.
  1. +0 −51 pcl.pyx
  2. +0 −11 pcl_defs.pxd
View
51 pcl.pyx
@@ -297,17 +297,6 @@ cdef class PointCloud:
cfil.setInputCloud(ccloud.makeShared())
return fil
- def make_moving_least_squares(self):
- """
- Return a pcl.MovingLeastSquares object with this object set as the input-cloud
- """
- mls = MovingLeastSquares()
-
- cdef cpp.MovingLeastSquares_t *cmls = <cpp.MovingLeastSquares_t *>mls.me
- cdef cpp.PointCloud_t *ccloud = <cpp.PointCloud_t *>self.thisptr
- cmls.setInputCloud(ccloud.makeShared())
- return mls
-
def extract(self, pyindices, bool negative=False):
"""
Given a list of indices of points in the pointcloud, return a
@@ -366,46 +355,6 @@ cdef class StatisticalOutlierRemovalFilter:
self.me.filter(deref(ccloud))
return pc
-cdef class MovingLeastSquares:
- """
- Smoothing class which is an implementation of the MLS (Moving Least Squares)
- algorithm for data smoothing and improved normal estimation.
- """
- cdef cpp.MovingLeastSquares_t *me
- def __cinit__(self):
- self.me = new cpp.MovingLeastSquares_t()
- def __dealloc__(self):
- del self.me
-
- def set_search_radius(self, double radius):
- """
- Set the sphere radius that is to be used for determining the k-nearest neighbors used for fitting.
- """
- self.me.setSearchRadius (radius)
-
- def set_polynomial_order(self, bool order):
- """
- Set the order of the polynomial to be fit.
- """
- self.me.setPolynomialOrder(order)
-
- def set_polynomial_fit(self, int fit):
- """
- Sets whether the surface and normal are approximated using a polynomial,
- or only via tangent estimation.
- """
- self.me.setPolynomialFit(fit)
-
- def process(self):
- """
- Apply the smoothing according to the previously set values and return
- a new pointcloud
- """
- pc = PointCloud()
- cdef cpp.PointNormalCloud_t *ccloud = <cpp.PointNormalCloud_t *>pc.thisptr
- self.me.process(deref(ccloud))
- return pc
-
cdef class VoxelGridFilter:
"""
Assembles a local 3D grid over a given PointCloud, and downsamples + filters the data.
View
11 pcl_defs.pxd
@@ -57,17 +57,6 @@ cdef extern from "pcl/segmentation/sac_segmentation.h" namespace "pcl":
ctypedef SACSegmentation[PointXYZ] SACSegmentation_t
ctypedef SACSegmentationFromNormals[PointXYZ,Normal] SACSegmentationNormal_t
-cdef extern from "pcl/surface/mls.h" namespace "pcl":
- cdef cppclass MovingLeastSquares[I,N]:
- MovingLeastSquares()
- void setInputCloud (shared_ptr[PointCloud[I]])
- void setSearchRadius (double)
- void setPolynomialOrder(bool)
- void setPolynomialFit(int)
- void process (PointCloud[N])
-
-ctypedef MovingLeastSquares[PointXYZ,Normal] MovingLeastSquares_t
-
cdef extern from "pcl/search/kdtree.h" namespace "pcl::search":
cdef cppclass KdTree[T]:
KdTree()
Please sign in to comment.
Something went wrong with that request. Please try again.