Skip to content

Commit a03b8d8

Browse files
committed
Merge pull request strawlab#78 from kuchi/cone-fix
Add missing set_min_max_opening_angle function to SegmentationNormal
2 parents abab8e4 + 651a1e0 commit a03b8d8

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

pcl/_pcl.pyx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,15 @@ cdef class SegmentationNormal:
127127
self.me.setEpsAngle (ea)
128128
def set_axis(self, double ax, double ay, double az):
129129
mpcl_sacnormal_set_axis(deref(self.me),ax,ay,az)
130+
def set_min_max_opening_angle(self, double min_angle, double max_angle):
131+
""" Set the minimum and maximum cone opening angles in radians for a cone model.
132+
"""
133+
self.me.setMinMaxOpeningAngle(min_angle, max_angle)
134+
def get_min_max_opening_angle(self):
135+
min_angle = 0.0
136+
max_angle = 0.0
137+
self.me.getMinMaxOpeningAngle(min_angle, max_angle)
138+
return min_angle, max_angle
130139

131140

132141
# Empirically determine strides, for buffer support.

pcl/pcl_defs.pxd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ cdef extern from "pcl/segmentation/sac_segmentation.h" namespace "pcl":
6868
void setInputNormals (shared_ptr[PointCloud[N]])
6969
void setEpsAngle (double ea)
7070
void segment (PointIndices, ModelCoefficients)
71+
void setMinMaxOpeningAngle(double, double)
72+
void getMinMaxOpeningAngle(double, double)
73+
7174

7275
cdef cppclass SACSegmentation[T]:
7376
void setOptimizeCoefficients (bool)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy