Questions tagged [ndimage]

Multi-dimensional image processing module within Scipy.

Scipy contains modules for a variety of scientific computing tasks.

ndimage is used for multi-dimensional image processing and contains the following submodules,

  • Filters scipy.ndimage.filters
  • Fourier filters scipy.ndimage.fourier
  • Interpolation scipy.ndimage.interpolation
  • Measurements scipy.ndimage.measurements
  • Morphology scipy.ndimage.morphology
  • Utility
108 questions
0
votes
1 answer

scipy.ndimage.generic_filter returns Type Error

I am using the scipy.ndimage.generic_filter to calculate localised modal values of an array. I was comparing two methods to see which is faster (as the first approach is quite slow). My first approach is; import numpy as np import scipy.stats as…
kungphil
  • 1,759
  • 2
  • 18
  • 27
-1
votes
1 answer

How can I make z axis optional in np.arrays? (Error: footprint array has incorrect shape)

I was trying to figure out how to make "z" axis optional for 2D and 3D inputs without "if" condition if it is possible. So, if the input is 2D, it will ignore z axis. If input is 3D, it will need z value. Any help or suggestion would be…
vrd.gn
  • 198
  • 1
  • 18
1 2 3 4 5 6 7
8