[Scipy-tickets] [SciPy] #1608: ndimage.center_of_mass is VERY slow (not using C extension)

SciPy Trac scipy-tickets@scipy....
Fri Feb 24 17:41:14 CST 2012


#1608: ndimage.center_of_mass is VERY slow (not using C extension)
---------------------------+------------------------------------------------
 Reporter:  chenxing       |       Owner:  somebody   
     Type:  defect         |      Status:  new        
 Priority:  normal         |   Milestone:  Unscheduled
Component:  scipy.ndimage  |     Version:  0.10.0     
 Keywords:                 |  
---------------------------+------------------------------------------------

Comment(by chenxing):

 Well, I looked the profiling result, 75% of the time is spent in
 numpy.bincount, which probably implies that everything in ndimage is not
 that bad.

 Probably my "fast" code is an ad-hoc approach for sparse images only. I
 don't have an idea of improving this generally. Sorry.

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1608#comment:4>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list