diff options
author | Tanbakuchi <atanbak@s984487.srn.sandia.gov> | 2015-09-23 13:47:20 -0600 |
---|---|---|
committer | Tanbakuchi <atanbak@s984487.srn.sandia.gov> | 2015-09-23 13:47:20 -0600 |
commit | 26910770caacd54ec67c24e1196945e2b3339a3b (patch) | |
tree | 80d78b69fbee1ec06856846b33922c9848b8fa88 /pcl | |
parent | 0fd7d524f41562bb1a841c38e46bed0fdaefdfe0 (diff) |
Added setMinMaxOpeningAngle and getMinMAxOpeningAngle to SACSSegmentationFromNormal for use with cone fitting.
Diffstat (limited to 'pcl')
-rw-r--r-- | pcl/_pcl.pyx | 26 | ||||
-rw-r--r-- | pcl/pcl_defs.pxd | 8 |
2 files changed, 0 insertions, 34 deletions
diff --git a/pcl/_pcl.pyx b/pcl/_pcl.pyx index eb2d407..fbf2af3 100644 --- a/pcl/_pcl.pyx +++ b/pcl/_pcl.pyx @@ -142,32 +142,6 @@ cdef class SegmentationNormal: return min_angle, max_angle -cdef class SampleConsensusModelCylinder(SegmentationNormal): - - cdef cpp.SampleConsensusModelCylinder_t *me - # cdef cpp.ModelCoefficients *coeffs - def __cinit__(self): - self.me = new cpp.SACSegmentationNormal_t() - - def get_distance_to_model(self, list model_coefficients): - """ Compute all distances from the model. You must have already fit the model. - :return: vector of distances - """ - - cdef vector[double] distances - - self.me.getDistancesToModel(self._coeffs, distances) - # def count_within_distance(self, list model_coefficients, double threshold): - # cdef cpp.ModelCoefficients coeffs - # cdef vector[float] vals = model_coefficients - # coeffs.values = vals - # #coeffs.values.resize(len(model_coefficients)) - # # for i, v in enumerate(model_coefficients): - # # coeffs.value[i] = v - # return self.me.countWithinDistance(vals, threshold) - - - # Empirically determine strides, for buffer support. # XXX Is there a more elegant way to get these? cdef Py_ssize_t _strides[2] diff --git a/pcl/pcl_defs.pxd b/pcl/pcl_defs.pxd index 4056d9c..b477b6a 100644 --- a/pcl/pcl_defs.pxd +++ b/pcl/pcl_defs.pxd @@ -80,14 +80,6 @@ cdef extern from "pcl/segmentation/sac_segmentation.h" namespace "pcl": void setInputCloud (shared_ptr[PointCloud[T]]) void segment (PointIndices, ModelCoefficients) -cdef extern from "pcl/sample_consensus/sac_model_cylinder.h" namespace "pcl": - - cdef cppclass SampleConsensusModelCylinder[T, N]: - int countWithinDistance(vector[double], double) - void getDistancesToModel(vector[double], vector[double]) - - - ctypedef SACSegmentation[PointXYZ] SACSegmentation_t ctypedef SACSegmentationFromNormals[PointXYZ,Normal] SACSegmentationNormal_t |