File: SampleConsensusModelSphere.pxi

package info (click to toggle)
python-pcl 0.3.0~rc1%2Bdfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 28,324 kB
  • sloc: python: 3,100; cpp: 292; makefile: 181; sh: 24; ansic: 12
file content (21 lines) | stat: -rw-r--r-- 633 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# -*- coding: utf-8 -*-
cimport pcl_defs as cpp
cimport pcl_sample_consensus as pcl_sac

from boost_shared_ptr cimport sp_assign

cdef class SampleConsensusModelSphere:
    """
    define a model for 3D sphere segmentation class.
    """
    # cdef pcl_sac.SampleConsensusModelSphere_t *me

    def __cinit__(self, PointCloud pc not None):
        # NG
        # sp_assign(self.thisptr_shared, new pcl_sac.SampleConsensusModelSphere_t(pc.thisptr_shared))
        sp_assign(self.thisptr_shared, new pcl_sac.SampleConsensusModelSphere[cpp.PointXYZ](pc.thisptr_shared))
        pass

    # def __dealloc__(self):
    #     del self.me