[Scipy-tickets] [SciPy] #213: ndimage.rotate creates artifacts (general problem in ndimage.spline_filter)

SciPy scipy-tickets@scipy....
Sun Mar 18 05:46:34 CDT 2007


#213: ndimage.rotate creates artifacts (general problem in ndimage.spline_filter)
---------------------------+------------------------------------------------
 Reporter:  stefan         |        Owner:  somebody
     Type:  defect         |       Status:  new     
 Priority:  normal         |    Milestone:          
Component:  scipy.ndimage  |      Version:  devel   
 Severity:  normal         |   Resolution:          
 Keywords:                 |  
---------------------------+------------------------------------------------
Comment (by stefan):

 {{{
 In [25]: import numpy as N

 In [26]: x = N.array([[4,3,8,1],[4,3,8,1.]])

 In [27]:
 ndi.geometric_transform(x,shift,output_shape=(2,6),prefilter=False,order=0,cval=-1)
 Out[27]:
 array([[-1.,  3.,  8.,  1.,  8., -1.],
        [-1.,  3.,  8.,  1.,  8., -1.]])
 }}}

 Looks like the spline fit is done on mirrored input data, instead of
 padding the input with the cval.

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


More information about the Scipy-tickets mailing list