This is an archival dump of old wiki content --- see scipy.org for current material

This package contains various functions for any-dimensional image processing.

See also numarray.ndimage documentation.

Filters

Common parameters


convolve1d(input, weights, axis=-1, output=None, mode='reflect', cval=0.0, origin=0)

gaussian_filter1d(input, sigma, axis=-1, order=0, output=None, mode='reflect', cval=0.0)

gaussian_filter(input, sigma, order=0, output=None, mode='reflect', cval=0.0)

prewitt(input, axis=-1, output=None, mode='reflect', cval=0.0)

sobel(input, axis=-1, output=None, mode='reflect', cval=0.0)

generic_laplace(input, derivative2, output=None, mode='reflect', cval=0.0, extra_arguments=(), extra_keywords={})

laplace(input, output=None, mode='reflect', cval=0.0)

gaussian_laplace(input, sigma, output=None, mode='reflect', cval=0.0)

generic_gradient_magnitude(input, derivative, output=None, mode='reflect', cval=0.0, extra_arguments=(), extra_keywords={})

gaussian_gradient_magnitude(input, sigma, output=None, mode='reflect', cval=0.0)

correlate(input, weights, output=None, mode='reflect', cval=0.0, origin=0)

convolve(input, weights, output=None, mode='reflect', cval=0.0, origin=0)

uniform_filter1d(input, size, axis=-1, output=None, mode='reflect', cval=0.0, origin=0)

uniform_filter(input, size=3, output=None, mode='reflect', cval=0.0, origin=0)

minimum_filter1d(input, size, axis=-1, output=None, mode='reflect', cval=0.0, origin=0)

maximum_filter1d(input, size, axis=-1, output=None, mode='reflect', cval=0.0, origin=0)

minimum_filter(input, size=None, footprint=None, output=None, mode='reflect', cval=0.0, origin=0)

maximum_filter(input, size=None, footprint=None, output=None, mode='reflect', cval=0.0, origin=0)

rank_filter(input, rank, size=None, footprint=None, output=None, mode='reflect', cval=0.0, origin=0)

median_filter(input, size=None, footprint=None, output=None, mode='reflect', cval=0.0, origin=0)

percentile_filter(input, percentile, size=None, footprint=None, output=None, mode='reflect', cval=0.0, origin=0)

generic_filter1d(input, function, filter_size, axis=-1, output=None, mode='reflect', cval=0.0, origin=0, extra_arguments=(), extra_keywords={})

generic_filterinput, function, size=None, footprint=None, output=None, mode='reflect', cval=0.0, origin=0, extra_arguments=(), extra_keywords={})

Fourier

fourier_gaussian(input, sigma, n=-1, axis=-1, output=None)

fourier_uniform(input, size, n=-1, axis=-1, output=None)

fourier_ellipsoid(input, size, n=-1, axis=-1, output=None)

fourier_shift(input, shift, n=-1, axis=-1, output=None)

Interpolation

spline_filter1d(input, order=3, axis=-1, output=<type 'numpy.float64'>, output_type=None)

spline_filter(input, order=3, output=<type 'numpy.float64'>, output_type=None)

geometric_transform(input, mapping, output_shape=None, output_type=None, output=None, order=3, mode='constant', cval=0.0, prefilter=True, extra_arguments=(), extra_keywords={})

map_coordinates(input, coordinates, output_type=None, output=None, order=3, mode='constant', cval=0.0, prefilter=True)

affine_transform(input, matrix, offset=0.0, output_shape=None, output_type=None, output=None, order=3, mode='constant', cval=0.0, prefilter=True)

shift(input, shift, output_type=None, output=None, order=3, mode='constant', cval=0.0, prefilter=True)

zoom(input, zoom, output_type=None, output=None, order=3, mode='constant', cval=0.0, prefilter=True)

rotate(input, angle, axes=(-1, -2), reshape=True, output_type=None, output=None, order=3, mode='constant', cval=0.0, prefilter=True)

Measurements

Common parameters


find_objects(input, max_label=0)

sum(input, labels=None, index=None)

mean(input, labels=None, index=None)

variance(input, labels=None, index=None)

standard_deviation(input, labels=None, index=None)

minimum(input, labels=None, index=None)

maximum(input, labels=None, index=None)

minimum_position(input, labels=None, index=None)

maximum_position(input, labels=None, index=None)

extrema(input, labels=None, index=None)

center_of_mass(input, labels=None, index=None)

histogram(input, min, max, bins, labels=None, index=None)

watershed_ift(input, markers, structure=None, output=None)

Morphology

Common parameters


generate_binary_structure(rank, connectivity)

binary_erosion(input, structure=None, iterations=1, mask=None, output=None, border_value=0, origin=0, brute_force=False)

binary_dilation(input, structure=None, iterations=1, mask=None, output=None, border_value=0, origin=0, brute_force=False)

binary_opening(input, structure=None, iterations=1, output=None, origin=0)

binary_closing(input, structure=None, iterations=1, output=None, origin=0)

binary_hit_or_miss(input, structure1=None, structure2=None, output=None, origin1=0, origin2=None)

binary_propagation(input, structure=None, mask=None, output=None, border_value=0, origin=0)

binary_fill_holes(input, structure=None, output=None, origin=0)

grey_erosion(input, size=None, footprint=None, structure=None, output=None, mode='reflect', cval=0.0, origin=0)

grey_dilation(input, size=None, footprint=None, structure=None, output=None, mode='reflect', cval=0.0, origin=0)

grey_opening(input, size=None, footprint=None, structure=None, output=None, mode='reflect', cval=0.0, origin=0)

grey_closing(input, size=None, footprint=None, structure=None, output=None, mode='reflect', cval=0.0, origin=0)

morphological_gradient(input, size=None, footprint=None, structure=None, output=None, mode='reflect', cval=0.0, origin=0)

morphological_laplace(input, size=None, footprint=None, structure=None, output=None, mode='reflect', cval=0.0, origin=0)

white_tophat(input, size=None, footprint=None, structure=None, output=None, mode='reflect', cval=0.0, origin=0)

black_tophat

distance_transform_bf(input, metric='euclidean', sampling=None, return_distances=True, return_indices=False, distances=None, indices=None)

distance_transform_cdt(input, structure='chessboard', return_distances=True, return_indices=False, distances=None, indices=None)

distance_transform_edt(input, sampling=None, return_distances=True, return_indices=False, distances=None, indices=None)


SciPy: SciPyPackages/Ndimage (last edited 2015-10-24 17:48:24 by anonymous)