[Scipy-tickets] [SciPy] #1282: -1 result of eroding 0s

SciPy Trac scipy-tickets@scipy....
Wed Sep 15 15:08:25 CDT 2010


#1282: -1 result of eroding 0s
---------------------------+------------------------------------------------
 Reporter:  bshanks        |       Owner:  somebody
     Type:  defect         |      Status:  new     
 Priority:  normal         |   Milestone:  0.9.0   
Component:  scipy.ndimage  |     Version:  0.7.0   
 Keywords:                 |  
---------------------------+------------------------------------------------
 I'm new to morphology, but shouldn't the erosion of a matrix of 0s be
 another matrix of 0s?

 scipy.ndimage.morphology.grey_erosion(zeros((6,6)),structure=ones((5,5)))
 Out[1017]:
 array([[-1., -1., -1., -1., -1., -1.],
        [-1., -1., -1., -1., -1., -1.],
        [-1., -1., -1., -1., -1., -1.],
        [-1., -1., -1., -1., -1., -1.],
        [-1., -1., -1., -1., -1., -1.],
        [-1., -1., -1., -1., -1., -1.]])

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


More information about the Scipy-tickets mailing list