summaryrefslogtreecommitdiff
path: root/pcl
diff options
context:
space:
mode:
authorVadim Lobanov <vadim@lobanov.pw>2017-11-22 05:07:08 +0100
committerTooru Oonuma <t753github@gmail.com>2017-11-22 13:07:08 +0900
commit04154d9ddad1cb80c52ef66c95e7ca8890e8fdeb (patch)
tree2a0b80f76284d88c66a6bd53a422275cb92b71df /pcl
parentc3886740e7b921ce8e4ecac05ecfff4b24efe79b (diff)
Add compute() on MomentOfInertiaEstimation (#135)
Thanks for the PR. About test code. 0.3 At the time of release, we will implement it at once.
Diffstat (limited to 'pcl')
-rw-r--r--pcl/pxi/Features/MomentOfInertiaEstimation_172.pxi4
-rw-r--r--pcl/pxi/Features/MomentOfInertiaEstimation_180.pxi4
2 files changed, 8 insertions, 0 deletions
diff --git a/pcl/pxi/Features/MomentOfInertiaEstimation_172.pxi b/pcl/pxi/Features/MomentOfInertiaEstimation_172.pxi
index f6087b7..6b6ccce 100644
--- a/pcl/pxi/Features/MomentOfInertiaEstimation_172.pxi
+++ b/pcl/pxi/Features/MomentOfInertiaEstimation_172.pxi
@@ -29,6 +29,7 @@ cdef class MomentOfInertiaEstimation:
def __dealloc__(self):
del self.me
+ # feature_extractor.compute ();
# feature_extractor.getMomentOfInertia (moment_of_inertia);
# feature_extractor.getEccentricity (eccentricity);
# feature_extractor.getAABB (min_point_AABB, max_point_AABB);
@@ -36,6 +37,9 @@ cdef class MomentOfInertiaEstimation:
# feature_extractor.getEigenValues (major_value, middle_value, minor_value);
# feature_extractor.getEigenVectors (major_vector, middle_vector, minor_vector);
# feature_extractor.getMassCenter (mass_center);
+ def compute (self):
+ self.me.compute()
+
def get_MomentOfInertia (self):
cdef vector[float] moment_of_inertia
self.me.getMomentOfInertia(moment_of_inertia)
diff --git a/pcl/pxi/Features/MomentOfInertiaEstimation_180.pxi b/pcl/pxi/Features/MomentOfInertiaEstimation_180.pxi
index 1dbd8bf..d6a934e 100644
--- a/pcl/pxi/Features/MomentOfInertiaEstimation_180.pxi
+++ b/pcl/pxi/Features/MomentOfInertiaEstimation_180.pxi
@@ -29,6 +29,7 @@ cdef class MomentOfInertiaEstimation:
def __dealloc__(self):
del self.me
+ # feature_extractor.compute ();
# feature_extractor.getMomentOfInertia (moment_of_inertia);
# feature_extractor.getEccentricity (eccentricity);
# feature_extractor.getAABB (min_point_AABB, max_point_AABB);
@@ -36,6 +37,9 @@ cdef class MomentOfInertiaEstimation:
# feature_extractor.getEigenValues (major_value, middle_value, minor_value);
# feature_extractor.getEigenVectors (major_vector, middle_vector, minor_vector);
# feature_extractor.getMassCenter (mass_center);
+ def compute (self):
+ self.me.compute()
+
def get_MomentOfInertia (self):
cdef vector[float] moment_of_inertia
self.me.getMomentOfInertia(moment_of_inertia)