diff options
author | Tooru Oonuma <t753github@gmail.com> | 2017-11-22 14:06:12 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-22 14:06:12 +0900 |
commit | 66d25ca8c6a4540a14b6f53465c2da51bcfba6fa (patch) | |
tree | 2a0b80f76284d88c66a6bd53a422275cb92b71df /pcl | |
parent | 29c136712bcf02d7b831a979f05a5eca6b35bc75 (diff) |
Revert "Revert "Add compute() on MomentOfInertiaEstimation (#135)" (#136)" (#137)
This reverts commit 29c136712bcf02d7b831a979f05a5eca6b35bc75.
Diffstat (limited to 'pcl')
-rw-r--r-- | pcl/pxi/Features/MomentOfInertiaEstimation_172.pxi | 4 | ||||
-rw-r--r-- | pcl/pxi/Features/MomentOfInertiaEstimation_180.pxi | 4 |
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) |