Multi-dimensional image processing (scipy.ndimage
)¶
This package contains various functions for multi-dimensional image processing.
Filters¶
|
Multidimensional convolution. |
|
Calculate a one-dimensional convolution along the given axis. |
|
Multi-dimensional correlation. |
|
Calculate a one-dimensional correlation along the given axis. |
|
Multidimensional Gaussian filter. |
|
One-dimensional Gaussian filter. |
|
Multidimensional gradient magnitude using Gaussian derivatives. |
|
Multidimensional Laplace filter using gaussian second derivatives. |
|
Calculate a multi-dimensional filter using the given function. |
|
Calculate a one-dimensional filter along the given axis. |
|
Gradient magnitude using a provided gradient function. |
|
N-dimensional Laplace filter using a provided second derivative function. |
|
N-dimensional Laplace filter based on approximate second derivatives. |
|
Calculate a multi-dimensional maximum filter. |
|
Calculate a one-dimensional maximum filter along the given axis. |
|
Calculate a multidimensional median filter. |
|
Calculate a multi-dimensional minimum filter. |
|
Calculate a one-dimensional minimum filter along the given axis. |
|
Calculate a multi-dimensional percentile filter. |
|
Calculate a Prewitt filter. |
|
Calculate a multi-dimensional rank filter. |
|
Calculate a Sobel filter. |
|
Multi-dimensional uniform filter. |
|
Calculate a one-dimensional uniform filter along the given axis. |
Fourier filters¶
|
Multi-dimensional ellipsoid fourier filter. |
|
Multi-dimensional Gaussian fourier filter. |
|
Multi-dimensional fourier shift filter. |
|
Multi-dimensional uniform fourier filter. |
Interpolation¶
|
Apply an affine transformation. |
|
Apply an arbitrary geometric transform. |
|
Map the input array to new coordinates by interpolation. |
|
Rotate an array. |
|
Shift an array. |
|
Multi-dimensional spline filter. |
|
Calculate a one-dimensional spline filter along the given axis. |
|
Zoom an array. |
Measurements¶
|
Calculate the center of mass of the values of an array at labels. |
|
Calculate the minimums and maximums of the values of an array at labels, along with their positions. |
|
Find objects in a labeled array. |
|
Calculate the histogram of the values of an array, optionally at labels. |
|
Label features in an array. |
|
Roughly equivalent to [func(input[labels == i]) for i in index]. |
|
Calculate the maximum of the values of an array over labeled regions. |
|
Find the positions of the maximums of the values of an array at labels. |
|
Calculate the mean of the values of an array at labels. |
|
Calculate the median of the values of an array over labeled regions. |
|
Calculate the minimum of the values of an array over labeled regions. |
|
Find the positions of the minimums of the values of an array at labels. |
|
Calculate the standard deviation of the values of an n-D image array, optionally at specified sub-regions. |
|
Calculate the sum of the values of the array. |
|
Calculate the variance of the values of an n-D image array, optionally at specified sub-regions. |
|
Apply watershed from markers using image foresting transform algorithm. |
Morphology¶
|
Multi-dimensional binary closing with the given structuring element. |
|
Multi-dimensional binary dilation with the given structuring element. |
|
Multi-dimensional binary erosion with a given structuring element. |
|
Fill the holes in binary objects. |
|
Multi-dimensional binary hit-or-miss transform. |
|
Multi-dimensional binary opening with the given structuring element. |
|
Multi-dimensional binary propagation with the given structuring element. |
|
Multi-dimensional black tophat filter. |
|
Distance transform function by a brute force algorithm. |
|
Distance transform for chamfer type of transforms. |
|
Exact euclidean distance transform. |
|
Generate a binary structure for binary morphological operations. |
|
Multi-dimensional greyscale closing. |
|
Calculate a greyscale dilation, using either a structuring element, or a footprint corresponding to a flat structuring element. |
|
Calculate a greyscale erosion, using either a structuring element, or a footprint corresponding to a flat structuring element. |
|
Multi-dimensional greyscale opening. |
|
Iterate a structure by dilating it with itself. |
|
Multi-dimensional morphological gradient. |
|
Multi-dimensional morphological laplace. |
|
Multi-dimensional white tophat filter. |