[Scipy-tickets] [SciPy] #413: scipy.ndimage.filters.median_filter doesnt handle byte-orders

SciPy scipy-tickets@scipy....
Mon May 7 08:48:37 CDT 2007


#413: scipy.ndimage.filters.median_filter doesnt handle byte-orders
---------------------------+------------------------------------------------
 Reporter:  ycopin         |       Owner:  somebody
     Type:  defect         |      Status:  new     
 Priority:  normal         |   Milestone:          
Component:  scipy.ndimage  |     Version:          
 Severity:  normal         |    Keywords:          
---------------------------+------------------------------------------------
 scipy.ndimage.filters.median_filter does not handle different byte-orders:

 {{{
 >>> import numpy as N
 >>> from scipy.ndimage import filters as F
 >>> a = N.arange(9,dtype='<f4').reshape(3,3)
 >>> print F.median_filter(a,(3,3))
 [[ 1.  2.  2.]
  [ 3.  4.  5.]
  [ 6.  6.  7.]]
 >>> b = N.arange(9,dtype='>f4').reshape(3,3)
 >>> print F.median_filter(b,(3,3))
 [[  4.60060299e-41   8.96831017e-44   8.96831017e-44]
  [  2.30485571e-41   4.60074312e-41   5.74868682e-41]
  [  6.89663052e-41   6.89663052e-41   8.04457422e-41]]
 }}}

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


More information about the Scipy-tickets mailing list