Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/scipy/ndimage/__init__.py: 100%

14 statements  

« prev     ^ index     » next       coverage.py v7.3.2, created at 2023-12-12 06:31 +0000

1""" 

2========================================================= 

3Multidimensional image processing (:mod:`scipy.ndimage`) 

4========================================================= 

5 

6.. currentmodule:: scipy.ndimage 

7 

8This package contains various functions for multidimensional image 

9processing. 

10 

11 

12Filters 

13======= 

14 

15.. autosummary:: 

16 :toctree: generated/ 

17 

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 

42 

43Fourier filters 

44=============== 

45 

46.. autosummary:: 

47 :toctree: generated/ 

48 

49 fourier_ellipsoid 

50 fourier_gaussian 

51 fourier_shift 

52 fourier_uniform 

53 

54Interpolation 

55============= 

56 

57.. autosummary:: 

58 :toctree: generated/ 

59 

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 

68 

69Measurements 

70============ 

71 

72.. autosummary:: 

73 :toctree: generated/ 

74 

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_labels - Sum of the values of the array 

89 value_indices - Find indices of each distinct value in given array 

90 variance - Variance of the values of an N-D image array 

91 watershed_ift 

92 

93Morphology 

94========== 

95 

96.. autosummary:: 

97 :toctree: generated/ 

98 

99 binary_closing 

100 binary_dilation 

101 binary_erosion 

102 binary_fill_holes 

103 binary_hit_or_miss 

104 binary_opening 

105 binary_propagation 

106 black_tophat 

107 distance_transform_bf 

108 distance_transform_cdt 

109 distance_transform_edt 

110 generate_binary_structure 

111 grey_closing 

112 grey_dilation 

113 grey_erosion 

114 grey_opening 

115 iterate_structure 

116 morphological_gradient 

117 morphological_laplace 

118 white_tophat 

119 

120""" 

121 

122# Copyright (C) 2003-2005 Peter J. Verveer 

123# 

124# Redistribution and use in source and binary forms, with or without 

125# modification, are permitted provided that the following conditions 

126# are met: 

127# 

128# 1. Redistributions of source code must retain the above copyright 

129# notice, this list of conditions and the following disclaimer. 

130# 

131# 2. Redistributions in binary form must reproduce the above 

132# copyright notice, this list of conditions and the following 

133# disclaimer in the documentation and/or other materials provided 

134# with the distribution. 

135# 

136# 3. The name of the author may not be used to endorse or promote 

137# products derived from this software without specific prior 

138# written permission. 

139# 

140# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS 

141# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 

142# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 

143# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 

144# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 

145# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 

146# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 

147# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 

148# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 

149# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 

150# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 

151 

152from ._filters import * # noqa: F401 F403 

153from ._fourier import * # noqa: F401 F403 

154from ._interpolation import * # noqa: F401 F403 

155from ._measurements import * # noqa: F401 F403 

156from ._morphology import * # noqa: F401 F403 

157 

158# Deprecated namespaces, to be removed in v2.0.0 

159from . import filters # noqa: F401 

160from . import fourier # noqa: F401 

161from . import interpolation # noqa: F401 

162from . import measurements # noqa: F401 

163from . import morphology # noqa: F401 

164 

165__all__ = [s for s in dir() if not s.startswith('_')] 

166 

167from scipy._lib._testutils import PytestTester 

168test = PytestTester(__name__) 

169del PytestTester