[Scipy-tickets] [SciPy] #796: ndimage.shift destroys data from edges

SciPy scipy-tickets@scipy....
Tue Nov 25 02:18:47 CST 2008


#796: ndimage.shift destroys data from edges
---------------------------+------------------------------------------------
 Reporter:  0ion9          |        Owner:  somebody
     Type:  defect         |       Status:  new     
 Priority:  normal         |    Milestone:          
Component:  scipy.ndimage  |      Version:  devel   
 Severity:  normal         |   Resolution:          
 Keywords:                 |  
---------------------------+------------------------------------------------
Comment (by 0ion9):

 Similar behaviour is observable in geometric_transform, as evidenced by :


 {{{
 sni.geometric_transform(a, lambda c:(c[0] , (c[1] - 1)), mode = 'wrap')
 }}}


 does not wrap data, compared to :


 {{{
 sni.geometric_transform(a, lambda c:(c[0] , (c[1] +1 ) % a.shape[1])),
 mode = 'wrap')
 }}}


 (which manually wraps coordinates; It performs the operation which I was
 originally trying to do with shift() correctly.)

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