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

SciPy Trac scipy-tickets@scipy....
Thu Sep 16 03:41:40 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:                 |  
---------------------------+------------------------------------------------

Comment(by stefan):

 I think you're right:

 {{{
 import numpy as np
 import scikits.image.morphology as m

 m.greyscale_erode(np.zeros((6,6), dtype=np.uint8), selem=np.ones((5,5),
 dtype=np.uint8))
 }}}

 {{{
 array([[0, 0, 0, 0, 0, 0],
        [0, 0, 0, 0, 0, 0],
        [0, 0, 0, 0, 0, 0],
        [0, 0, 0, 0, 0, 0],
        [0, 0, 0, 0, 0, 0],
        [0, 0, 0, 0, 0, 0]], dtype=uint8)
 }}}

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