File: SampleConsensusModel.pxi

package info (click to toggle)
python-pcl 0.3.0~rc1%2Bdfsg-14
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 31,828 kB
  • sloc: python: 3,094; cpp: 283; makefile: 181; sh: 24; ansic: 12
file content (24 lines) | stat: -rw-r--r-- 697 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
22
23
24
# -*- coding: utf-8 -*-
cimport pcl_defs as cpp
cimport pcl_sample_consensus as pcl_sac

from boost_shared_ptr cimport sp_assign

cdef class SampleConsensusModel:
    """
    represents the base model class.
    """
    # cdef pcl_sac.SampleConsensusModel_t *me

    def __cinit__(self, PointCloud pc not None):
        # NG
        # self.me = new pcl_sac.SampleConsensusModel_t()
        # self.me = new pcl_sac.SampleConsensusModel_t(pc.thisptr_shared)
        # shared_ptr
        # sp_assign(self.thisptr_shared, pc.thisptr_shared)
        sp_assign(self.thisptr_shared, new pcl_sac.SampleConsensusModel_t(pc.thisptr_shared))
        pass

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