~mrol-dev/mrol/trunk

« back to all changes in this revision

Viewing changes to test/speed_test.py

  • Committer: Julian Ryde
  • Date: 2012-02-29 04:28:57 UTC
  • mto: (16.1.12 trunk) (29.1.2 trunk)
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: julian_ryde-20120229042857-2omi9vjjezsdenif
Trying to improve the speed of transformPoints by combining operations. Refactor of transformPoints and related functions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
        
33
33
        self.testpose = (-2., 42., 80., 0.2, 0.1, 2.6)
34
34
        self.testposeinv = poseutil.inverse(self.testpose)
35
 
        self.Pxformed = poseutil.check_and_transform_points(self.P, self.testpose)[0]
 
35
        self.Pxformed = poseutil.transformPoints(self.P, self.testpose)[0]
36
36
        
37
37
        self.ol = occupiedlist.OccupiedList(self.resolution, use_bloom=False)
38
38
        self.ol.add_points(self.M)
123
123
        return overlap
124
124
 
125
125
    def bench_rotate_translate_quantise(self):
126
 
        transformedpts, pose = poseutil.check_and_transform_points(self.Pxformed, self.testposeinv)
 
126
        transformedpts, pose = poseutil.transformPoints(self.Pxformed, self.testposeinv)
127
127
        transformedvoxels = occupiedlist.pointstovoxels(transformedpts, resolution=self.resolution)
128
128
        ids = occupiedlist._pack(transformedvoxels)
129
129