Coverage for /home/martinb/.local/share/virtualenvs/camcops/lib/python3.6/site-packages/scipy/ndimage/__init__.py : 100%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1"""
2=========================================================
3Multidimensional image processing (:mod:`scipy.ndimage`)
4=========================================================
6.. currentmodule:: scipy.ndimage
8This package contains various functions for multidimensional image
9processing.
12Filters
13=======
15.. autosummary::
16 :toctree: generated/
18 convolve - Multidimensional convolution
19 convolve1d - 1-D convolution along the given axis
20 correlate - Multidimensional correlation
21 correlate1d - 1-D correlation along the given axis
22 gaussian_filter
23 gaussian_filter1d
24 gaussian_gradient_magnitude
25 gaussian_laplace
26 generic_filter - Multidimensional filter using a given function
27 generic_filter1d - 1-D generic filter along the given axis
28 generic_gradient_magnitude
29 generic_laplace
30 laplace - N-D Laplace filter based on approximate second derivatives
31 maximum_filter
32 maximum_filter1d
33 median_filter - Calculates a multidimensional median filter
34 minimum_filter
35 minimum_filter1d
36 percentile_filter - Calculates a multidimensional percentile filter
37 prewitt
38 rank_filter - Calculates a multidimensional rank filter
39 sobel
40 uniform_filter - Multidimensional uniform filter
41 uniform_filter1d - 1-D uniform filter along the given axis
43Fourier filters
44===============
46.. autosummary::
47 :toctree: generated/
49 fourier_ellipsoid
50 fourier_gaussian
51 fourier_shift
52 fourier_uniform
54Interpolation
55=============
57.. autosummary::
58 :toctree: generated/
60 affine_transform - Apply an affine transformation
61 geometric_transform - Apply an arbritrary geometric transform
62 map_coordinates - Map input array to new coordinates by interpolation
63 rotate - Rotate an array
64 shift - Shift an array
65 spline_filter
66 spline_filter1d
67 zoom - Zoom an array
69Measurements
70============
72.. autosummary::
73 :toctree: generated/
75 center_of_mass - The center of mass of the values of an array at labels
76 extrema - Min's and max's of an array at labels, with their positions
77 find_objects - Find objects in a labeled array
78 histogram - Histogram of the values of an array, optionally at labels
79 label - Label features in an array
80 labeled_comprehension
81 maximum
82 maximum_position
83 mean - Mean of the values of an array at labels
84 median
85 minimum
86 minimum_position
87 standard_deviation - Standard deviation of an N-D image array
88 sum - Sum of the values of the array
89 variance - Variance of the values of an N-D image array
90 watershed_ift
92Morphology
93==========
95.. autosummary::
96 :toctree: generated/
98 binary_closing
99 binary_dilation
100 binary_erosion
101 binary_fill_holes
102 binary_hit_or_miss
103 binary_opening
104 binary_propagation
105 black_tophat
106 distance_transform_bf
107 distance_transform_cdt
108 distance_transform_edt
109 generate_binary_structure
110 grey_closing
111 grey_dilation
112 grey_erosion
113 grey_opening
114 iterate_structure
115 morphological_gradient
116 morphological_laplace
117 white_tophat
119"""
121# Copyright (C) 2003-2005 Peter J. Verveer
122#
123# Redistribution and use in source and binary forms, with or without
124# modification, are permitted provided that the following conditions
125# are met:
126#
127# 1. Redistributions of source code must retain the above copyright
128# notice, this list of conditions and the following disclaimer.
129#
130# 2. Redistributions in binary form must reproduce the above
131# copyright notice, this list of conditions and the following
132# disclaimer in the documentation and/or other materials provided
133# with the distribution.
134#
135# 3. The name of the author may not be used to endorse or promote
136# products derived from this software without specific prior
137# written permission.
138#
139# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
140# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
141# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
142# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
143# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
144# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
145# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
146# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
147# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
148# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
149# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
151from .filters import *
152from .fourier import *
153from .interpolation import *
154from .measurements import *
155from .morphology import *
157__version__ = '2.0'
159__all__ = [s for s in dir() if not s.startswith('_')]
161from scipy._lib._testutils import PytestTester
162test = PytestTester(__name__)
163del PytestTester