1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210
|
# -*- coding: utf-8 -*-
# Header for _pcl.pyx functionality that needs sharing with other modules.
cimport pcl_defs as cpp
# KdTree
cimport pcl_kdtree as pclkdt
# RangeImage
cimport pcl_range_image as pcl_rngimg
# Features
cimport pcl_features as pcl_ftr
# SampleConsensus
cimport pcl_sample_consensus as pcl_sac
# class override(PointCloud)
cdef class PointCloud:
cdef cpp.PointCloudPtr_t thisptr_shared # XYZ
# Buffer protocol support.
cdef Py_ssize_t _shape[2]
cdef Py_ssize_t _view_count
cdef inline cpp.PointCloud[cpp.PointXYZ] *thisptr(self) nogil:
# Shortcut to get raw pointer to underlying PointCloud<PointXYZ>.
return self.thisptr_shared.get()
# class override(PointCloud_PointXYZI)
cdef class PointCloud_PointXYZI:
cdef cpp.PointCloud_PointXYZI_Ptr_t thisptr_shared # XYZI
# Buffer protocol support.
cdef Py_ssize_t _shape[2]
cdef Py_ssize_t _view_count
cdef inline cpp.PointCloud[cpp.PointXYZI] *thisptr(self) nogil:
# Shortcut to get raw pointer to underlying PointCloud<PointXYZ>.
return self.thisptr_shared.get()
# class override(PointCloud_PointXYZRGB)
cdef class PointCloud_PointXYZRGB:
cdef cpp.PointCloud_PointXYZRGB_Ptr_t thisptr_shared
# Buffer protocol support.
cdef Py_ssize_t _shape[2]
cdef Py_ssize_t _view_count
cdef inline cpp.PointCloud[cpp.PointXYZRGB] *thisptr(self) nogil:
# Shortcut to get raw pointer to underlying PointCloud<PointXYZRGB>.
return self.thisptr_shared.get()
# class override(PointCloud_PointXYZRGBA)
cdef class PointCloud_PointXYZRGBA:
cdef cpp.PointCloud_PointXYZRGBA_Ptr_t thisptr_shared # XYZRGBA
# Buffer protocol support.
cdef Py_ssize_t _shape[2]
cdef Py_ssize_t _view_count
cdef inline cpp.PointCloud[cpp.PointXYZRGBA] *thisptr(self) nogil:
# Shortcut to get raw pointer to underlying PointCloud<PointXYZRGBA>.
return self.thisptr_shared.get()
# class override
cdef class Vertices:
cdef cpp.VerticesPtr_t thisptr_shared # Vertices
# Buffer protocol support.
cdef Py_ssize_t _shape[2]
cdef Py_ssize_t _view_count
cdef inline cpp.Vertices *thisptr(self) nogil:
# Shortcut to get raw pointer to underlying Vertices
return self.thisptr_shared.get()
# class override(PointCloud_PointWithViewpoint)
cdef class PointCloud_PointWithViewpoint:
cdef cpp.PointCloud_PointWithViewpoint_Ptr_t thisptr_shared # PointWithViewpoint
# Buffer protocol support.
cdef Py_ssize_t _shape[2]
cdef Py_ssize_t _view_count
cdef inline cpp.PointCloud[cpp.PointWithViewpoint] *thisptr(self) nogil:
# Shortcut to get raw pointer to underlying PointCloud<PointWithViewpoint>.
return self.thisptr_shared.get()
# class override(PointCloud_Normal)
cdef class PointCloud_Normal:
cdef cpp.PointCloud_Normal_Ptr_t thisptr_shared # Normal
# Buffer protocol support.
cdef Py_ssize_t _shape[2]
cdef Py_ssize_t _view_count
cdef inline cpp.PointCloud[cpp.Normal] *thisptr(self) nogil:
# Shortcut to get raw pointer to underlying PointCloud<Normal>.
return self.thisptr_shared.get()
# class override(PointCloud_PointNormal)
cdef class PointCloud_PointNormal:
cdef cpp.PointCloud_PointNormal_Ptr_t thisptr_shared # PointNormal
# Buffer protocol support.
cdef Py_ssize_t _shape[2]
cdef Py_ssize_t _view_count
cdef inline cpp.PointCloud[cpp.PointNormal] *thisptr(self) nogil:
# Shortcut to get raw pointer to underlying PointCloud<PointNormal>.
return self.thisptr_shared.get()
## KdTree
# class override
cdef class KdTree:
cdef pclkdt.KdTreePtr_t thisptr_shared # KdTree
cdef inline pclkdt.KdTree[cpp.PointXYZ] *thisptr(self) nogil:
# Shortcut to get raw pointer to underlying KdTree<PointXYZ>.
return self.thisptr_shared.get()
# cdef class KdTreeFLANN:
# cdef pclkdt.KdTreeFLANNPtr_t thisptr_shared # KdTreeFLANN
#
# cdef inline pclkdt.KdTreeFLANN[cpp.PointXYZ] *thisptr(self) nogil:
# # Shortcut to get raw pointer to underlying KdTreeFLANN<PointXYZ>.
# return self.thisptr_shared.get()
## RangeImages
# class override
cdef class RangeImages:
cdef pcl_rngimg.RangeImagePtr_t thisptr_shared # RangeImages
cdef inline pcl_rngimg.RangeImage *thisptr(self) nogil:
# Shortcut to get raw pointer to underlying RangeImage.
return self.thisptr_shared.get()
### Features
# class override
# cdef class IntegralImageNormalEstimation:
# cdef pcl_ftr.IntegralImageNormalEstimationPtr_t thisptr_shared # IntegralImageNormalEstimation
#
# cdef inline pcl_ftr.IntegralImageNormalEstimation[cpp.PointXYZ, cpp.Normal] *thisptr(self) nogil:
# # Shortcut to get raw pointer to underlying pcl::IntegralImageNormalEstimation<pcl::PointXYZ, pcl::Normal>.
# return self.thisptr_shared.get()
# cdef class NormalEstimation:
# cdef pcl_ftr.NormalEstimationPtr_t thisptr_shared # NormalEstimation
#
# cdef inline pcl_ftr.NormalEstimation[cpp.PointXYZ, cpp.Normal] *thisptr(self) nogil:
# # Shortcut to get raw pointer to underlying pcl::NormalEstimation<pcl::PointXYZ, pcl::Normal>.
# return self.thisptr_shared.get()
## SampleConsensus
# class override
cdef class SampleConsensusModel:
cdef pcl_sac.SampleConsensusModelPtr_t thisptr_shared # SampleConsensusModel
cdef inline pcl_sac.SampleConsensusModel[cpp.PointXYZ] *thisptr(self) nogil:
# Shortcut to get raw pointer to underlying pcl::SampleConsensusModel<pcl::PointXYZ>.
return self.thisptr_shared.get()
cdef class SampleConsensusModelPlane:
cdef pcl_sac.SampleConsensusModelPlanePtr_t thisptr_shared # SampleConsensusModelPlane
cdef inline pcl_sac.SampleConsensusModelPlane[cpp.PointXYZ] *thisptr(self) nogil:
# Shortcut to get raw pointer to underlying pcl::SampleConsensusModelPlane<pcl::PointXYZ>.
return self.thisptr_shared.get()
cdef class SampleConsensusModelSphere:
cdef pcl_sac.SampleConsensusModelSpherePtr_t thisptr_shared # SampleConsensusModelSphere
cdef inline pcl_sac.SampleConsensusModelSphere[cpp.PointXYZ] *thisptr(self) nogil:
# Shortcut to get raw pointer to underlying pcl::SampleConsensusModelSphere<pcl::PointXYZ>.
return self.thisptr_shared.get()
cdef class SampleConsensusModelCylinder:
cdef pcl_sac.SampleConsensusModelCylinderPtr_t thisptr_shared # SampleConsensusModelSphere
cdef inline pcl_sac.SampleConsensusModelCylinder[cpp.PointXYZ, cpp.Normal] *thisptr(self) nogil:
# Shortcut to get raw pointer to underlying pcl::SampleConsensusModelCylinder<pcl::PointXYZ, pcl::Normal>.
return self.thisptr_shared.get()
cdef class SampleConsensusModelLine:
cdef pcl_sac.SampleConsensusModelLinePtr_t thisptr_shared # SampleConsensusModelLine
cdef inline pcl_sac.SampleConsensusModelLine[cpp.PointXYZ] *thisptr(self) nogil:
# Shortcut to get raw pointer to underlying pcl::SampleConsensusModelLine<pcl::PointXYZ>.
return self.thisptr_shared.get()
cdef class SampleConsensusModelRegistration:
cdef pcl_sac.SampleConsensusModelRegistrationPtr_t thisptr_shared # SampleConsensusModelRegistration
cdef inline pcl_sac.SampleConsensusModelRegistration[cpp.PointXYZ] *thisptr(self) nogil:
# Shortcut to get raw pointer to underlying pcl::SampleConsensusModelRegistration<pcl::PointXYZ>.
return self.thisptr_shared.get()
cdef class SampleConsensusModelStick:
cdef pcl_sac.SampleConsensusModelStickPtr_t thisptr_shared # SampleConsensusModelStick
cdef inline pcl_sac.SampleConsensusModelStick[cpp.PointXYZ] *thisptr(self) nogil:
# Shortcut to get raw pointer to underlying pcl::SampleConsensusModelStick<pcl::PointXYZ>.
return self.thisptr_shared.get()
|