[Scipy-tickets] [SciPy] #1135: ndimage.grey_dilation doesn't work with scalar size or specified structure

SciPy Trac scipy-tickets@scipy....
Mon Mar 22 11:11:18 CDT 2010


#1135: ndimage.grey_dilation doesn't work with scalar size or specified structure
-----------------------+----------------------------------------------------
 Reporter:  zachrahan  |       Owner:  somebody    
     Type:  defect     |      Status:  needs_review
 Priority:  normal     |   Milestone:  0.8.0       
Component:  Other      |     Version:  0.7.0       
 Keywords:             |  
-----------------------+----------------------------------------------------
Changes (by zachrahan):

  * status:  new => needs_review


Comment:

 Quick example:
 {{{
 import numpy as np
 import scipy.ndimage as nd

 a = np.zeros((7,7))
 a[3,3]=1
 s = nd.generate_binary_structure(2,2)
 nd.grey_dilation(a,size=(3,3))
 # works

 nd.grey_dilation(a,size=(3,3),structure=s)
 # works

 nd.grey_dilation(a,structure=s)
 # error

 nd.grey_dilation(a,footprint=s)
 # works

 nd.grey_dilation(a,size=3)
 # error

 }}}

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1135#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