[Scipy-tickets] [SciPy] #1570: Some scipy.ndimage functions fails for Yx1024x1024 images

SciPy Trac scipy-tickets@scipy....
Sat Nov 26 18:01:09 CST 2011


#1570: Some scipy.ndimage functions fails for Yx1024x1024 images
---------------------------------------+------------------------------------
 Reporter:  chcomin                    |       Owner:  somebody   
     Type:  defect                     |      Status:  new        
 Priority:  high                       |   Milestone:  Unscheduled
Component:  scipy.ndimage              |     Version:  0.9.0      
 Keywords:  image dimension correlate  |  
---------------------------------------+------------------------------------

Comment(by chcomin):

 Great, the code turned out a little messy. Here is the code again:

 Right result:
 {{{
 img = numpy.ones([1,1023,1023])
 s = numpy.ones([3,3,3])
 res = scipy.ndimage.filters.correlate(img,s)
 }}}

 Wrong result:
 {{{
 img = numpy.ones([1,1024,1024])
 s = numpy.ones([3,3,3])
 res = scipy.ndimage.filters.correlate(img,s)
 }}}

 Right result:
 {{{
 img = numpy.ones([1024,1024])
 s = numpy.ones([3,3])
 res = scipy.ndimage.filters.correlate(img,s)
 }}}

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


More information about the Scipy-tickets mailing list