@techstark/opencv-js 4.8.0-release.1 → 4.8.0-release.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. package/README.md +130 -1
  2. package/dist/README.md +20 -1
  3. package/dist/src/index.d.ts +1 -0
  4. package/dist/src/index.js +18 -0
  5. package/dist/src/index.js.map +1 -0
  6. package/dist/src/types/_cv.d.ts +7 -0
  7. package/dist/src/types/_cv.js +3 -0
  8. package/dist/src/types/_cv.js.map +1 -0
  9. package/dist/src/types/emscripten.d.ts +166 -0
  10. package/dist/src/types/emscripten.js +4 -0
  11. package/dist/src/types/emscripten.js.map +1 -0
  12. package/dist/src/types/opencv/Affine3.d.ts +183 -0
  13. package/dist/src/types/opencv/Affine3.js +3 -0
  14. package/dist/src/types/opencv/Affine3.js.map +1 -0
  15. package/dist/src/types/opencv/Algorithm.d.ts +105 -0
  16. package/dist/src/types/opencv/Algorithm.js +4 -0
  17. package/dist/src/types/opencv/Algorithm.js.map +1 -0
  18. package/dist/src/types/opencv/AutoBuffer.d.ts +41 -0
  19. package/dist/src/types/opencv/AutoBuffer.js +3 -0
  20. package/dist/src/types/opencv/AutoBuffer.js.map +1 -0
  21. package/dist/src/types/opencv/BFMatcher.d.ts +33 -0
  22. package/dist/src/types/opencv/BFMatcher.js +3 -0
  23. package/dist/src/types/opencv/BFMatcher.js.map +1 -0
  24. package/dist/src/types/opencv/BOWTrainer.d.ts +36 -0
  25. package/dist/src/types/opencv/BOWTrainer.js +3 -0
  26. package/dist/src/types/opencv/BOWTrainer.js.map +1 -0
  27. package/dist/src/types/opencv/CascadeClassifier.d.ts +100 -0
  28. package/dist/src/types/opencv/CascadeClassifier.js +4 -0
  29. package/dist/src/types/opencv/CascadeClassifier.js.map +1 -0
  30. package/dist/src/types/opencv/DescriptorMatcher.d.ts +172 -0
  31. package/dist/src/types/opencv/DescriptorMatcher.js +3 -0
  32. package/dist/src/types/opencv/DescriptorMatcher.js.map +1 -0
  33. package/dist/src/types/opencv/DynamicBitset.d.ts +57 -0
  34. package/dist/src/types/opencv/DynamicBitset.js +3 -0
  35. package/dist/src/types/opencv/DynamicBitset.js.map +1 -0
  36. package/dist/src/types/opencv/Exception.d.ts +38 -0
  37. package/dist/src/types/opencv/Exception.js +3 -0
  38. package/dist/src/types/opencv/Exception.js.map +1 -0
  39. package/dist/src/types/opencv/Feature2D.d.ts +14 -0
  40. package/dist/src/types/opencv/Feature2D.js +4 -0
  41. package/dist/src/types/opencv/Feature2D.js.map +1 -0
  42. package/dist/src/types/opencv/FlannBasedMatcher.d.ts +41 -0
  43. package/dist/src/types/opencv/FlannBasedMatcher.js +3 -0
  44. package/dist/src/types/opencv/FlannBasedMatcher.js.map +1 -0
  45. package/dist/src/types/opencv/HOGDescriptor.d.ts +265 -0
  46. package/dist/src/types/opencv/HOGDescriptor.js +3 -0
  47. package/dist/src/types/opencv/HOGDescriptor.js.map +1 -0
  48. package/dist/src/types/opencv/Logger.d.ts +27 -0
  49. package/dist/src/types/opencv/Logger.js +3 -0
  50. package/dist/src/types/opencv/Logger.js.map +1 -0
  51. package/dist/src/types/opencv/LshTable.d.ts +67 -0
  52. package/dist/src/types/opencv/LshTable.js +3 -0
  53. package/dist/src/types/opencv/LshTable.js.map +1 -0
  54. package/dist/src/types/opencv/Mat.d.ts +1589 -0
  55. package/dist/src/types/opencv/Mat.js +4 -0
  56. package/dist/src/types/opencv/Mat.js.map +1 -0
  57. package/dist/src/types/opencv/MatExpr.d.ts +78 -0
  58. package/dist/src/types/opencv/MatExpr.js +4 -0
  59. package/dist/src/types/opencv/MatExpr.js.map +1 -0
  60. package/dist/src/types/opencv/MatOp.d.ts +29 -0
  61. package/dist/src/types/opencv/MatOp.js +3 -0
  62. package/dist/src/types/opencv/MatOp.js.map +1 -0
  63. package/dist/src/types/opencv/Matx.d.ts +84 -0
  64. package/dist/src/types/opencv/Matx.js +3 -0
  65. package/dist/src/types/opencv/Matx.js.map +1 -0
  66. package/dist/src/types/opencv/Node.d.ts +25 -0
  67. package/dist/src/types/opencv/Node.js +3 -0
  68. package/dist/src/types/opencv/Node.js.map +1 -0
  69. package/dist/src/types/opencv/ORB.d.ts +11 -0
  70. package/dist/src/types/opencv/ORB.js +4 -0
  71. package/dist/src/types/opencv/ORB.js.map +1 -0
  72. package/dist/src/types/opencv/PCA.d.ts +170 -0
  73. package/dist/src/types/opencv/PCA.js +3 -0
  74. package/dist/src/types/opencv/PCA.js.map +1 -0
  75. package/dist/src/types/opencv/RotatedRect.d.ts +63 -0
  76. package/dist/src/types/opencv/RotatedRect.js +3 -0
  77. package/dist/src/types/opencv/RotatedRect.js.map +1 -0
  78. package/dist/src/types/opencv/_hacks.d.ts +270 -0
  79. package/dist/src/types/opencv/_hacks.js +10 -0
  80. package/dist/src/types/opencv/_hacks.js.map +1 -0
  81. package/dist/src/types/opencv/_types.d.ts +44 -0
  82. package/dist/src/types/opencv/_types.js +61 -0
  83. package/dist/src/types/opencv/_types.js.map +1 -0
  84. package/dist/src/types/opencv/calib3d.d.ts +2180 -0
  85. package/dist/src/types/opencv/calib3d.js +3 -0
  86. package/dist/src/types/opencv/calib3d.js.map +1 -0
  87. package/dist/src/types/opencv/core_array.d.ts +2513 -0
  88. package/dist/src/types/opencv/core_array.js +3 -0
  89. package/dist/src/types/opencv/core_array.js.map +1 -0
  90. package/dist/src/types/opencv/core_cluster.d.ts +54 -0
  91. package/dist/src/types/opencv/core_cluster.js +3 -0
  92. package/dist/src/types/opencv/core_cluster.js.map +1 -0
  93. package/dist/src/types/opencv/core_hal_interface.d.ts +92 -0
  94. package/dist/src/types/opencv/core_hal_interface.js +3 -0
  95. package/dist/src/types/opencv/core_hal_interface.js.map +1 -0
  96. package/dist/src/types/opencv/core_utils.d.ts +510 -0
  97. package/dist/src/types/opencv/core_utils.js +3 -0
  98. package/dist/src/types/opencv/core_utils.js.map +1 -0
  99. package/dist/src/types/opencv/dnn.d.ts +336 -0
  100. package/dist/src/types/opencv/dnn.js +3 -0
  101. package/dist/src/types/opencv/dnn.js.map +1 -0
  102. package/dist/src/types/opencv/features2d_draw.d.ts +75 -0
  103. package/dist/src/types/opencv/features2d_draw.js +3 -0
  104. package/dist/src/types/opencv/features2d_draw.js.map +1 -0
  105. package/dist/src/types/opencv/imgproc_color_conversions.d.ts +299 -0
  106. package/dist/src/types/opencv/imgproc_color_conversions.js +3 -0
  107. package/dist/src/types/opencv/imgproc_color_conversions.js.map +1 -0
  108. package/dist/src/types/opencv/imgproc_draw.d.ts +502 -0
  109. package/dist/src/types/opencv/imgproc_draw.js +3 -0
  110. package/dist/src/types/opencv/imgproc_draw.js.map +1 -0
  111. package/dist/src/types/opencv/imgproc_feature.d.ts +533 -0
  112. package/dist/src/types/opencv/imgproc_feature.js +3 -0
  113. package/dist/src/types/opencv/imgproc_feature.js.map +1 -0
  114. package/dist/src/types/opencv/imgproc_filter.d.ts +689 -0
  115. package/dist/src/types/opencv/imgproc_filter.js +3 -0
  116. package/dist/src/types/opencv/imgproc_filter.js.map +1 -0
  117. package/dist/src/types/opencv/imgproc_hist.d.ts +291 -0
  118. package/dist/src/types/opencv/imgproc_hist.js +3 -0
  119. package/dist/src/types/opencv/imgproc_hist.js.map +1 -0
  120. package/dist/src/types/opencv/imgproc_misc.d.ts +473 -0
  121. package/dist/src/types/opencv/imgproc_misc.js +3 -0
  122. package/dist/src/types/opencv/imgproc_misc.js.map +1 -0
  123. package/dist/src/types/opencv/imgproc_object.d.ts +41 -0
  124. package/dist/src/types/opencv/imgproc_object.js +3 -0
  125. package/dist/src/types/opencv/imgproc_object.js.map +1 -0
  126. package/dist/src/types/opencv/imgproc_shape.d.ts +570 -0
  127. package/dist/src/types/opencv/imgproc_shape.js +3 -0
  128. package/dist/src/types/opencv/imgproc_shape.js.map +1 -0
  129. package/dist/src/types/opencv/imgproc_transform.d.ts +430 -0
  130. package/dist/src/types/opencv/imgproc_transform.js +3 -0
  131. package/dist/src/types/opencv/imgproc_transform.js.map +1 -0
  132. package/dist/src/types/opencv/index.d.ts +4 -0
  133. package/dist/src/types/opencv/index.js +19 -0
  134. package/dist/src/types/opencv/index.js.map +1 -0
  135. package/dist/src/types/opencv/objdetect.d.ts +43 -0
  136. package/dist/src/types/opencv/objdetect.js +3 -0
  137. package/dist/src/types/opencv/objdetect.js.map +1 -0
  138. package/dist/src/types/opencv/photo_inpaint.d.ts +25 -0
  139. package/dist/src/types/opencv/photo_inpaint.js +3 -0
  140. package/dist/src/types/opencv/photo_inpaint.js.map +1 -0
  141. package/dist/src/types/opencv/softdouble.d.ts +38 -0
  142. package/dist/src/types/opencv/softdouble.js +3 -0
  143. package/dist/src/types/opencv/softdouble.js.map +1 -0
  144. package/dist/src/types/opencv/softfloat.d.ts +38 -0
  145. package/dist/src/types/opencv/softfloat.js +3 -0
  146. package/dist/src/types/opencv/softfloat.js.map +1 -0
  147. package/dist/src/types/opencv/video_track.d.ts +276 -0
  148. package/dist/src/types/opencv/video_track.js +3 -0
  149. package/dist/src/types/opencv/video_track.js.map +1 -0
  150. package/package.json +15 -6
  151. package/src/index.ts +1 -0
  152. package/src/types/_cv.ts +6 -0
  153. package/src/types/emscripten.ts +286 -0
  154. package/src/types/opencv/Affine3.ts +206 -0
  155. package/src/types/opencv/Algorithm.ts +126 -0
  156. package/src/types/opencv/AutoBuffer.ts +50 -0
  157. package/src/types/opencv/BFMatcher.ts +37 -0
  158. package/src/types/opencv/BOWTrainer.ts +43 -0
  159. package/src/types/opencv/CascadeClassifier.ts +153 -0
  160. package/src/types/opencv/DescriptorMatcher.ts +244 -0
  161. package/src/types/opencv/DynamicBitset.ts +68 -0
  162. package/src/types/opencv/Exception.ts +54 -0
  163. package/src/types/opencv/Feature2D.ts +20 -0
  164. package/src/types/opencv/FlannBasedMatcher.ts +50 -0
  165. package/src/types/opencv/HOGDescriptor.ts +401 -0
  166. package/src/types/opencv/Logger.ts +34 -0
  167. package/src/types/opencv/LshTable.ts +81 -0
  168. package/src/types/opencv/Mat.ts +1765 -0
  169. package/src/types/opencv/MatExpr.ts +107 -0
  170. package/src/types/opencv/MatOp.ts +70 -0
  171. package/src/types/opencv/Matx.ts +228 -0
  172. package/src/types/opencv/Node.ts +33 -0
  173. package/src/types/opencv/ORB.ts +22 -0
  174. package/src/types/opencv/PCA.ts +204 -0
  175. package/src/types/opencv/RotatedRect.ts +72 -0
  176. package/src/types/opencv/_hacks.ts +321 -0
  177. package/src/types/opencv/_types.ts +44 -0
  178. package/src/types/opencv/calib3d.ts +2937 -0
  179. package/src/types/opencv/core_array.ts +3102 -0
  180. package/src/types/opencv/core_cluster.ts +81 -0
  181. package/src/types/opencv/core_hal_interface.ts +159 -0
  182. package/src/types/opencv/core_utils.ts +748 -0
  183. package/src/types/opencv/dnn.ts +505 -0
  184. package/src/types/opencv/features2d_draw.ts +114 -0
  185. package/src/types/opencv/imgproc_color_conversions.ts +527 -0
  186. package/src/types/opencv/imgproc_draw.ts +733 -0
  187. package/src/types/opencv/imgproc_feature.ts +681 -0
  188. package/src/types/opencv/imgproc_filter.ts +918 -0
  189. package/src/types/opencv/imgproc_hist.ts +399 -0
  190. package/src/types/opencv/imgproc_misc.ts +616 -0
  191. package/src/types/opencv/imgproc_object.ts +58 -0
  192. package/src/types/opencv/imgproc_shape.ts +734 -0
  193. package/src/types/opencv/imgproc_transform.ts +574 -0
  194. package/src/types/opencv/index.ts +4 -0
  195. package/src/types/opencv/objdetect.ts +103 -0
  196. package/src/types/opencv/photo_inpaint.ts +37 -0
  197. package/src/types/opencv/softdouble.ts +64 -0
  198. package/src/types/opencv/softfloat.ts +64 -0
  199. package/src/types/opencv/video_track.ts +372 -0
  200. package/dist/types/index.d.ts +0 -1
@@ -0,0 +1,689 @@
1
+ import { bool, double, InputArray, int, Mat, OutputArray, OutputArrayOfArrays, Point, Scalar, Size, TermCriteria } from "./_types";
2
+ /**
3
+ * The function applies bilateral filtering to the input image, as described in bilateralFilter can
4
+ * reduce unwanted noise very well while keeping edges fairly sharp. However, it is very slow compared
5
+ * to most filters.
6
+ *
7
+ * Sigma values*: For simplicity, you can set the 2 sigma values to be the same. If they are small (<
8
+ * 10), the filter will not have much effect, whereas if they are large (> 150), they will have a very
9
+ * strong effect, making the image look "cartoonish".
10
+ *
11
+ * Filter size*: Large filters (d > 5) are very slow, so it is recommended to use d=5 for real-time
12
+ * applications, and perhaps d=9 for offline applications that need heavy noise filtering.
13
+ *
14
+ * This filter does not work inplace.
15
+ *
16
+ * @param src Source 8-bit or floating-point, 1-channel or 3-channel image.
17
+ *
18
+ * @param dst Destination image of the same size and type as src .
19
+ *
20
+ * @param d Diameter of each pixel neighborhood that is used during filtering. If it is non-positive,
21
+ * it is computed from sigmaSpace.
22
+ *
23
+ * @param sigmaColor Filter sigma in the color space. A larger value of the parameter means that
24
+ * farther colors within the pixel neighborhood (see sigmaSpace) will be mixed together, resulting in
25
+ * larger areas of semi-equal color.
26
+ *
27
+ * @param sigmaSpace Filter sigma in the coordinate space. A larger value of the parameter means that
28
+ * farther pixels will influence each other as long as their colors are close enough (see sigmaColor ).
29
+ * When d>0, it specifies the neighborhood size regardless of sigmaSpace. Otherwise, d is proportional
30
+ * to sigmaSpace.
31
+ *
32
+ * @param borderType border mode used to extrapolate pixels outside of the image, see BorderTypes
33
+ */
34
+ export declare function bilateralFilter(src: InputArray, dst: OutputArray, d: int, sigmaColor: double, sigmaSpace: double, borderType?: int): void;
35
+ /**
36
+ * The function smooths an image using the kernel:
37
+ *
38
+ * `\\[\\texttt{K} = \\frac{1}{\\texttt{ksize.width*ksize.height}} \\begin{bmatrix} 1 & 1 & 1 & \\cdots
39
+ * & 1 & 1 \\\\ 1 & 1 & 1 & \\cdots & 1 & 1 \\\\ \\hdotsfor{6} \\\\ 1 & 1 & 1 & \\cdots & 1 & 1 \\\\
40
+ * \\end{bmatrix}\\]`
41
+ *
42
+ * The call `blur(src, dst, ksize, anchor, borderType)` is equivalent to `boxFilter(src, dst,
43
+ * src.type(), anchor, true, borderType)`.
44
+ *
45
+ * [boxFilter], [bilateralFilter], [GaussianBlur], [medianBlur]
46
+ *
47
+ * @param src input image; it can have any number of channels, which are processed independently, but
48
+ * the depth should be CV_8U, CV_16U, CV_16S, CV_32F or CV_64F.
49
+ *
50
+ * @param dst output image of the same size and type as src.
51
+ *
52
+ * @param ksize blurring kernel size.
53
+ *
54
+ * @param anchor anchor point; default value Point(-1,-1) means that the anchor is at the kernel
55
+ * center.
56
+ *
57
+ * @param borderType border mode used to extrapolate pixels outside of the image, see BorderTypes
58
+ */
59
+ export declare function blur(src: InputArray, dst: OutputArray, ksize: Size, anchor?: Point, borderType?: int): void;
60
+ /**
61
+ * The function smooths an image using the kernel:
62
+ *
63
+ * `\\[\\texttt{K} = \\alpha \\begin{bmatrix} 1 & 1 & 1 & \\cdots & 1 & 1 \\\\ 1 & 1 & 1 & \\cdots & 1
64
+ * & 1 \\\\ \\hdotsfor{6} \\\\ 1 & 1 & 1 & \\cdots & 1 & 1 \\end{bmatrix}\\]`
65
+ *
66
+ * where
67
+ *
68
+ * `\\[\\alpha = \\fork{\\frac{1}{\\texttt{ksize.width*ksize.height}}}{when
69
+ * \\texttt{normalize=true}}{1}{otherwise}\\]`
70
+ *
71
+ * Unnormalized box filter is useful for computing various integral characteristics over each pixel
72
+ * neighborhood, such as covariance matrices of image derivatives (used in dense optical flow
73
+ * algorithms, and so on). If you need to compute pixel sums over variable-size windows, use
74
+ * [integral].
75
+ *
76
+ * [blur], [bilateralFilter], [GaussianBlur], [medianBlur], [integral]
77
+ *
78
+ * @param src input image.
79
+ *
80
+ * @param dst output image of the same size and type as src.
81
+ *
82
+ * @param ddepth the output image depth (-1 to use src.depth()).
83
+ *
84
+ * @param ksize blurring kernel size.
85
+ *
86
+ * @param anchor anchor point; default value Point(-1,-1) means that the anchor is at the kernel
87
+ * center.
88
+ *
89
+ * @param normalize flag, specifying whether the kernel is normalized by its area or not.
90
+ *
91
+ * @param borderType border mode used to extrapolate pixels outside of the image, see BorderTypes
92
+ */
93
+ export declare function boxFilter(src: InputArray, dst: OutputArray, ddepth: int, ksize: Size, anchor?: Point, normalize?: bool, borderType?: int): void;
94
+ /**
95
+ * The function constructs a vector of images and builds the Gaussian pyramid by recursively applying
96
+ * pyrDown to the previously built pyramid layers, starting from `dst[0]==src`.
97
+ *
98
+ * @param src Source image. Check pyrDown for the list of supported types.
99
+ *
100
+ * @param dst Destination vector of maxlevel+1 images of the same type as src. dst[0] will be the same
101
+ * as src. dst[1] is the next pyramid layer, a smoothed and down-sized src, and so on.
102
+ *
103
+ * @param maxlevel 0-based index of the last (the smallest) pyramid layer. It must be non-negative.
104
+ *
105
+ * @param borderType Pixel extrapolation method, see BorderTypes (BORDER_CONSTANT isn't supported)
106
+ */
107
+ export declare function buildPyramid(src: InputArray, dst: OutputArrayOfArrays, maxlevel: int, borderType?: int): void;
108
+ /**
109
+ * The function dilates the source image using the specified structuring element that determines the
110
+ * shape of a pixel neighborhood over which the maximum is taken: `\\[\\texttt{dst} (x,y) = \\max
111
+ * _{(x',y'): \\, \\texttt{element} (x',y') \\ne0 } \\texttt{src} (x+x',y+y')\\]`
112
+ *
113
+ * The function supports the in-place mode. Dilation can be applied several ( iterations ) times. In
114
+ * case of multi-channel images, each channel is processed independently.
115
+ *
116
+ * [erode], [morphologyEx], [getStructuringElement]
117
+ *
118
+ * @param src input image; the number of channels can be arbitrary, but the depth should be one of
119
+ * CV_8U, CV_16U, CV_16S, CV_32F or CV_64F.
120
+ *
121
+ * @param dst output image of the same size and type as src.
122
+ *
123
+ * @param kernel structuring element used for dilation; if elemenat=Mat(), a 3 x 3 rectangular
124
+ * structuring element is used. Kernel can be created using getStructuringElement
125
+ *
126
+ * @param anchor position of the anchor within the element; default value (-1, -1) means that the
127
+ * anchor is at the element center.
128
+ *
129
+ * @param iterations number of times dilation is applied.
130
+ *
131
+ * @param borderType pixel extrapolation method, see BorderTypes
132
+ *
133
+ * @param borderValue border value in case of a constant border
134
+ */
135
+ export declare function dilate(src: InputArray, dst: OutputArray, kernel: InputArray, anchor?: Point, iterations?: int, borderType?: int, borderValue?: any): void;
136
+ /**
137
+ * The function erodes the source image using the specified structuring element that determines the
138
+ * shape of a pixel neighborhood over which the minimum is taken:
139
+ *
140
+ * `\\[\\texttt{dst} (x,y) = \\min _{(x',y'): \\, \\texttt{element} (x',y') \\ne0 } \\texttt{src}
141
+ * (x+x',y+y')\\]`
142
+ *
143
+ * The function supports the in-place mode. Erosion can be applied several ( iterations ) times. In
144
+ * case of multi-channel images, each channel is processed independently.
145
+ *
146
+ * [dilate], [morphologyEx], [getStructuringElement]
147
+ *
148
+ * @param src input image; the number of channels can be arbitrary, but the depth should be one of
149
+ * CV_8U, CV_16U, CV_16S, CV_32F or CV_64F.
150
+ *
151
+ * @param dst output image of the same size and type as src.
152
+ *
153
+ * @param kernel structuring element used for erosion; if element=Mat(), a 3 x 3 rectangular
154
+ * structuring element is used. Kernel can be created using getStructuringElement.
155
+ *
156
+ * @param anchor position of the anchor within the element; default value (-1, -1) means that the
157
+ * anchor is at the element center.
158
+ *
159
+ * @param iterations number of times erosion is applied.
160
+ *
161
+ * @param borderType pixel extrapolation method, see BorderTypes
162
+ *
163
+ * @param borderValue border value in case of a constant border
164
+ */
165
+ export declare function erode(src: InputArray, dst: OutputArray, kernel: InputArray, anchor?: Point, iterations?: int, borderType?: int, borderValue?: any): void;
166
+ /**
167
+ * The function applies an arbitrary linear filter to an image. In-place operation is supported. When
168
+ * the aperture is partially outside the image, the function interpolates outlier pixel values
169
+ * according to the specified border mode.
170
+ *
171
+ * The function does actually compute correlation, not the convolution:
172
+ *
173
+ * `\\[\\texttt{dst} (x,y) = \\sum _{ \\stackrel{0\\leq x' < \\texttt{kernel.cols},}{0\\leq y' <
174
+ * \\texttt{kernel.rows}} } \\texttt{kernel} (x',y')* \\texttt{src} (x+x'- \\texttt{anchor.x} ,y+y'-
175
+ * \\texttt{anchor.y} )\\]`
176
+ *
177
+ * That is, the kernel is not mirrored around the anchor point. If you need a real convolution, flip
178
+ * the kernel using [flip] and set the new anchor to `(kernel.cols - anchor.x - 1, kernel.rows -
179
+ * anchor.y - 1)`.
180
+ *
181
+ * The function uses the DFT-based algorithm in case of sufficiently large kernels (~`11 x 11` or
182
+ * larger) and the direct algorithm for small kernels.
183
+ *
184
+ * [sepFilter2D], [dft], [matchTemplate]
185
+ *
186
+ * @param src input image.
187
+ *
188
+ * @param dst output image of the same size and the same number of channels as src.
189
+ *
190
+ * @param ddepth desired depth of the destination image, see combinations
191
+ *
192
+ * @param kernel convolution kernel (or rather a correlation kernel), a single-channel floating point
193
+ * matrix; if you want to apply different kernels to different channels, split the image into separate
194
+ * color planes using split and process them individually.
195
+ *
196
+ * @param anchor anchor of the kernel that indicates the relative position of a filtered point within
197
+ * the kernel; the anchor should lie within the kernel; default value (-1,-1) means that the anchor is
198
+ * at the kernel center.
199
+ *
200
+ * @param delta optional value added to the filtered pixels before storing them in dst.
201
+ *
202
+ * @param borderType pixel extrapolation method, see BorderTypes
203
+ */
204
+ export declare function filter2D(src: InputArray, dst: OutputArray, ddepth: int, kernel: InputArray, anchor?: Point, delta?: double, borderType?: int): void;
205
+ /**
206
+ * The function convolves the source image with the specified Gaussian kernel. In-place filtering is
207
+ * supported.
208
+ *
209
+ * [sepFilter2D], [filter2D], [blur], [boxFilter], [bilateralFilter], [medianBlur]
210
+ *
211
+ * @param src input image; the image can have any number of channels, which are processed
212
+ * independently, but the depth should be CV_8U, CV_16U, CV_16S, CV_32F or CV_64F.
213
+ *
214
+ * @param dst output image of the same size and type as src.
215
+ *
216
+ * @param ksize Gaussian kernel size. ksize.width and ksize.height can differ but they both must be
217
+ * positive and odd. Or, they can be zero's and then they are computed from sigma.
218
+ *
219
+ * @param sigmaX Gaussian kernel standard deviation in X direction.
220
+ *
221
+ * @param sigmaY Gaussian kernel standard deviation in Y direction; if sigmaY is zero, it is set to be
222
+ * equal to sigmaX, if both sigmas are zeros, they are computed from ksize.width and ksize.height,
223
+ * respectively (see getGaussianKernel for details); to fully control the result regardless of possible
224
+ * future modifications of all this semantics, it is recommended to specify all of ksize, sigmaX, and
225
+ * sigmaY.
226
+ *
227
+ * @param borderType pixel extrapolation method, see BorderTypes
228
+ */
229
+ export declare function GaussianBlur(src: InputArray, dst: OutputArray, ksize: Size, sigmaX: double, sigmaY?: double, borderType?: int): void;
230
+ /**
231
+ * The function computes and returns the filter coefficients for spatial image derivatives. When
232
+ * `ksize=FILTER_SCHARR`, the Scharr `$3 \\times 3$` kernels are generated (see [Scharr]). Otherwise,
233
+ * Sobel kernels are generated (see [Sobel]). The filters are normally passed to [sepFilter2D] or to
234
+ *
235
+ * @param kx Output matrix of row filter coefficients. It has the type ktype .
236
+ *
237
+ * @param ky Output matrix of column filter coefficients. It has the type ktype .
238
+ *
239
+ * @param dx Derivative order in respect of x.
240
+ *
241
+ * @param dy Derivative order in respect of y.
242
+ *
243
+ * @param ksize Aperture size. It can be FILTER_SCHARR, 1, 3, 5, or 7.
244
+ *
245
+ * @param normalize Flag indicating whether to normalize (scale down) the filter coefficients or not.
246
+ * Theoretically, the coefficients should have the denominator $=2^{ksize*2-dx-dy-2}$. If you are going
247
+ * to filter floating-point images, you are likely to use the normalized kernels. But if you compute
248
+ * derivatives of an 8-bit image, store the results in a 16-bit image, and wish to preserve all the
249
+ * fractional bits, you may want to set normalize=false .
250
+ *
251
+ * @param ktype Type of filter coefficients. It can be CV_32f or CV_64F .
252
+ */
253
+ export declare function getDerivKernels(kx: OutputArray, ky: OutputArray, dx: int, dy: int, ksize: int, normalize?: bool, ktype?: int): void;
254
+ /**
255
+ * For more details about gabor filter equations and parameters, see: .
256
+ *
257
+ * @param ksize Size of the filter returned.
258
+ *
259
+ * @param sigma Standard deviation of the gaussian envelope.
260
+ *
261
+ * @param theta Orientation of the normal to the parallel stripes of a Gabor function.
262
+ *
263
+ * @param lambd Wavelength of the sinusoidal factor.
264
+ *
265
+ * @param gamma Spatial aspect ratio.
266
+ *
267
+ * @param psi Phase offset.
268
+ *
269
+ * @param ktype Type of filter coefficients. It can be CV_32F or CV_64F .
270
+ */
271
+ export declare function getGaborKernel(ksize: Size, sigma: double, theta: double, lambd: double, gamma: double, psi?: double, ktype?: int): Mat;
272
+ /**
273
+ * The function computes and returns the `$\\texttt{ksize} \\times 1$` matrix of Gaussian filter
274
+ * coefficients:
275
+ *
276
+ * `\\[G_i= \\alpha *e^{-(i-( \\texttt{ksize} -1)/2)^2/(2* \\texttt{sigma}^2)},\\]`
277
+ *
278
+ * where `$i=0..\\texttt{ksize}-1$` and `$\\alpha$` is the scale factor chosen so that `$\\sum_i
279
+ * G_i=1$`.
280
+ *
281
+ * Two of such generated kernels can be passed to sepFilter2D. Those functions automatically recognize
282
+ * smoothing kernels (a symmetrical kernel with sum of weights equal to 1) and handle them accordingly.
283
+ * You may also use the higher-level GaussianBlur.
284
+ *
285
+ * [sepFilter2D], [getDerivKernels], [getStructuringElement], [GaussianBlur]
286
+ *
287
+ * @param ksize Aperture size. It should be odd ( $\texttt{ksize} \mod 2 = 1$ ) and positive.
288
+ *
289
+ * @param sigma Gaussian standard deviation. If it is non-positive, it is computed from ksize as sigma
290
+ * = 0.3*((ksize-1)*0.5 - 1) + 0.8.
291
+ *
292
+ * @param ktype Type of filter coefficients. It can be CV_32F or CV_64F .
293
+ */
294
+ export declare function getGaussianKernel(ksize: int, sigma: double, ktype?: int): Mat;
295
+ /**
296
+ * The function constructs and returns the structuring element that can be further passed to [erode],
297
+ * [dilate] or [morphologyEx]. But you can also construct an arbitrary binary mask yourself and use it
298
+ * as the structuring element.
299
+ *
300
+ * @param shape Element shape that could be one of MorphShapes
301
+ *
302
+ * @param ksize Size of the structuring element.
303
+ *
304
+ * @param anchor Anchor position within the element. The default value $(-1, -1)$ means that the anchor
305
+ * is at the center. Note that only the shape of a cross-shaped element depends on the anchor position.
306
+ * In other cases the anchor just regulates how much the result of the morphological operation is
307
+ * shifted.
308
+ */
309
+ export declare function getStructuringElement(shape: int, ksize: Size, anchor?: Point): Mat;
310
+ /**
311
+ * The function calculates the Laplacian of the source image by adding up the second x and y
312
+ * derivatives calculated using the Sobel operator:
313
+ *
314
+ * `\\[\\texttt{dst} = \\Delta \\texttt{src} = \\frac{\\partial^2 \\texttt{src}}{\\partial x^2} +
315
+ * \\frac{\\partial^2 \\texttt{src}}{\\partial y^2}\\]`
316
+ *
317
+ * This is done when `ksize > 1`. When `ksize == 1`, the Laplacian is computed by filtering the image
318
+ * with the following `$3 \\times 3$` aperture:
319
+ *
320
+ * `\\[\\vecthreethree {0}{1}{0}{1}{-4}{1}{0}{1}{0}\\]`
321
+ *
322
+ * [Sobel], [Scharr]
323
+ *
324
+ * @param src Source image.
325
+ *
326
+ * @param dst Destination image of the same size and the same number of channels as src .
327
+ *
328
+ * @param ddepth Desired depth of the destination image.
329
+ *
330
+ * @param ksize Aperture size used to compute the second-derivative filters. See getDerivKernels for
331
+ * details. The size must be positive and odd.
332
+ *
333
+ * @param scale Optional scale factor for the computed Laplacian values. By default, no scaling is
334
+ * applied. See getDerivKernels for details.
335
+ *
336
+ * @param delta Optional delta value that is added to the results prior to storing them in dst .
337
+ *
338
+ * @param borderType Pixel extrapolation method, see BorderTypes
339
+ */
340
+ export declare function Laplacian(src: InputArray, dst: OutputArray, ddepth: int, ksize?: int, scale?: double, delta?: double, borderType?: int): void;
341
+ /**
342
+ * The function smoothes an image using the median filter with the `$\\texttt{ksize} \\times
343
+ * \\texttt{ksize}$` aperture. Each channel of a multi-channel image is processed independently.
344
+ * In-place operation is supported.
345
+ *
346
+ * The median filter uses [BORDER_REPLICATE] internally to cope with border pixels, see [BorderTypes]
347
+ *
348
+ * [bilateralFilter], [blur], [boxFilter], [GaussianBlur]
349
+ *
350
+ * @param src input 1-, 3-, or 4-channel image; when ksize is 3 or 5, the image depth should be CV_8U,
351
+ * CV_16U, or CV_32F, for larger aperture sizes, it can only be CV_8U.
352
+ *
353
+ * @param dst destination array of the same size and type as src.
354
+ *
355
+ * @param ksize aperture linear size; it must be odd and greater than 1, for example: 3, 5, 7 ...
356
+ */
357
+ export declare function medianBlur(src: InputArray, dst: OutputArray, ksize: int): void;
358
+ export declare function morphologyDefaultBorderValue(): Scalar;
359
+ /**
360
+ * The function [cv::morphologyEx] can perform advanced morphological transformations using an erosion
361
+ * and dilation as basic operations.
362
+ *
363
+ * Any of the operations can be done in-place. In case of multi-channel images, each channel is
364
+ * processed independently.
365
+ *
366
+ * [dilate], [erode], [getStructuringElement]
367
+ *
368
+ * The number of iterations is the number of times erosion or dilatation operation will be applied. For
369
+ * instance, an opening operation ([MORPH_OPEN]) with two iterations is equivalent to apply
370
+ * successively: erode -> erode -> dilate -> dilate (and not erode -> dilate -> erode -> dilate).
371
+ *
372
+ * @param src Source image. The number of channels can be arbitrary. The depth should be one of CV_8U,
373
+ * CV_16U, CV_16S, CV_32F or CV_64F.
374
+ *
375
+ * @param dst Destination image of the same size and type as source image.
376
+ *
377
+ * @param op Type of a morphological operation, see MorphTypes
378
+ *
379
+ * @param kernel Structuring element. It can be created using getStructuringElement.
380
+ *
381
+ * @param anchor Anchor position with the kernel. Negative values mean that the anchor is at the kernel
382
+ * center.
383
+ *
384
+ * @param iterations Number of times erosion and dilation are applied.
385
+ *
386
+ * @param borderType Pixel extrapolation method, see BorderTypes
387
+ *
388
+ * @param borderValue Border value in case of a constant border. The default value has a special
389
+ * meaning.
390
+ */
391
+ export declare function morphologyEx(src: InputArray, dst: OutputArray, op: int, kernel: InputArray, anchor?: Point, iterations?: int, borderType?: int, borderValue?: any): void;
392
+ /**
393
+ * By default, size of the output image is computed as `Size((src.cols+1)/2, (src.rows+1)/2)`, but in
394
+ * any case, the following conditions should be satisfied:
395
+ *
396
+ * `\\[\\begin{array}{l} | \\texttt{dstsize.width} *2-src.cols| \\leq 2 \\\\ | \\texttt{dstsize.height}
397
+ * *2-src.rows| \\leq 2 \\end{array}\\]`
398
+ *
399
+ * The function performs the downsampling step of the Gaussian pyramid construction. First, it
400
+ * convolves the source image with the kernel:
401
+ *
402
+ * `\\[\\frac{1}{256} \\begin{bmatrix} 1 & 4 & 6 & 4 & 1 \\\\ 4 & 16 & 24 & 16 & 4 \\\\ 6 & 24 & 36 &
403
+ * 24 & 6 \\\\ 4 & 16 & 24 & 16 & 4 \\\\ 1 & 4 & 6 & 4 & 1 \\end{bmatrix}\\]`
404
+ *
405
+ * Then, it downsamples the image by rejecting even rows and columns.
406
+ *
407
+ * @param src input image.
408
+ *
409
+ * @param dst output image; it has the specified size and the same type as src.
410
+ *
411
+ * @param dstsize size of the output image.
412
+ *
413
+ * @param borderType Pixel extrapolation method, see BorderTypes (BORDER_CONSTANT isn't supported)
414
+ */
415
+ export declare function pyrDown(src: InputArray, dst: OutputArray, dstsize?: any, borderType?: int): void;
416
+ /**
417
+ * The function implements the filtering stage of meanshift segmentation, that is, the output of the
418
+ * function is the filtered "posterized" image with color gradients and fine-grain texture flattened.
419
+ * At every pixel (X,Y) of the input image (or down-sized input image, see below) the function executes
420
+ * meanshift iterations, that is, the pixel (X,Y) neighborhood in the joint space-color hyperspace is
421
+ * considered:
422
+ *
423
+ * `\\[(x,y): X- \\texttt{sp} \\le x \\le X+ \\texttt{sp} , Y- \\texttt{sp} \\le y \\le Y+ \\texttt{sp}
424
+ * , ||(R,G,B)-(r,g,b)|| \\le \\texttt{sr}\\]`
425
+ *
426
+ * where (R,G,B) and (r,g,b) are the vectors of color components at (X,Y) and (x,y), respectively
427
+ * (though, the algorithm does not depend on the color space used, so any 3-component color space can
428
+ * be used instead). Over the neighborhood the average spatial value (X',Y') and average color vector
429
+ * (R',G',B') are found and they act as the neighborhood center on the next iteration:
430
+ *
431
+ * `\\[(X,Y)~(X',Y'), (R,G,B)~(R',G',B').\\]`
432
+ *
433
+ * After the iterations over, the color components of the initial pixel (that is, the pixel from where
434
+ * the iterations started) are set to the final value (average color at the last iteration):
435
+ *
436
+ * `\\[I(X,Y) <- (R*,G*,B*)\\]`
437
+ *
438
+ * When maxLevel > 0, the gaussian pyramid of maxLevel+1 levels is built, and the above procedure is
439
+ * run on the smallest layer first. After that, the results are propagated to the larger layer and the
440
+ * iterations are run again only on those pixels where the layer colors differ by more than sr from the
441
+ * lower-resolution layer of the pyramid. That makes boundaries of color regions sharper. Note that the
442
+ * results will be actually different from the ones obtained by running the meanshift procedure on the
443
+ * whole original image (i.e. when maxLevel==0).
444
+ *
445
+ * @param src The source 8-bit, 3-channel image.
446
+ *
447
+ * @param dst The destination image of the same format and the same size as the source.
448
+ *
449
+ * @param sp The spatial window radius.
450
+ *
451
+ * @param sr The color window radius.
452
+ *
453
+ * @param maxLevel Maximum level of the pyramid for the segmentation.
454
+ *
455
+ * @param termcrit Termination criteria: when to stop meanshift iterations.
456
+ */
457
+ export declare function pyrMeanShiftFiltering(src: InputArray, dst: OutputArray, sp: double, sr: double, maxLevel?: int, termcrit?: TermCriteria): void;
458
+ /**
459
+ * By default, size of the output image is computed as `Size(src.cols\\*2, (src.rows\\*2)`, but in any
460
+ * case, the following conditions should be satisfied:
461
+ *
462
+ * `\\[\\begin{array}{l} | \\texttt{dstsize.width} -src.cols*2| \\leq ( \\texttt{dstsize.width} \\mod
463
+ * 2) \\\\ | \\texttt{dstsize.height} -src.rows*2| \\leq ( \\texttt{dstsize.height} \\mod 2)
464
+ * \\end{array}\\]`
465
+ *
466
+ * The function performs the upsampling step of the Gaussian pyramid construction, though it can
467
+ * actually be used to construct the Laplacian pyramid. First, it upsamples the source image by
468
+ * injecting even zero rows and columns and then convolves the result with the same kernel as in
469
+ * pyrDown multiplied by 4.
470
+ *
471
+ * @param src input image.
472
+ *
473
+ * @param dst output image. It has the specified size and the same type as src .
474
+ *
475
+ * @param dstsize size of the output image.
476
+ *
477
+ * @param borderType Pixel extrapolation method, see BorderTypes (only BORDER_DEFAULT is supported)
478
+ */
479
+ export declare function pyrUp(src: InputArray, dst: OutputArray, dstsize?: any, borderType?: int): void;
480
+ /**
481
+ * The function computes the first x- or y- spatial image derivative using the Scharr operator. The
482
+ * call
483
+ *
484
+ * `\\[\\texttt{Scharr(src, dst, ddepth, dx, dy, scale, delta, borderType)}\\]`
485
+ *
486
+ * is equivalent to
487
+ *
488
+ * `\\[\\texttt{Sobel(src, dst, ddepth, dx, dy, FILTER_SCHARR, scale, delta, borderType)} .\\]`
489
+ *
490
+ * [cartToPolar]
491
+ *
492
+ * @param src input image.
493
+ *
494
+ * @param dst output image of the same size and the same number of channels as src.
495
+ *
496
+ * @param ddepth output image depth, see combinations
497
+ *
498
+ * @param dx order of the derivative x.
499
+ *
500
+ * @param dy order of the derivative y.
501
+ *
502
+ * @param scale optional scale factor for the computed derivative values; by default, no scaling is
503
+ * applied (see getDerivKernels for details).
504
+ *
505
+ * @param delta optional delta value that is added to the results prior to storing them in dst.
506
+ *
507
+ * @param borderType pixel extrapolation method, see BorderTypes
508
+ */
509
+ export declare function Scharr(src: InputArray, dst: OutputArray, ddepth: int, dx: int, dy: int, scale?: double, delta?: double, borderType?: int): void;
510
+ /**
511
+ * The function applies a separable linear filter to the image. That is, first, every row of src is
512
+ * filtered with the 1D kernel kernelX. Then, every column of the result is filtered with the 1D kernel
513
+ * kernelY. The final result shifted by delta is stored in dst .
514
+ *
515
+ * [filter2D], [Sobel], [GaussianBlur], [boxFilter], [blur]
516
+ *
517
+ * @param src Source image.
518
+ *
519
+ * @param dst Destination image of the same size and the same number of channels as src .
520
+ *
521
+ * @param ddepth Destination image depth, see combinations
522
+ *
523
+ * @param kernelX Coefficients for filtering each row.
524
+ *
525
+ * @param kernelY Coefficients for filtering each column.
526
+ *
527
+ * @param anchor Anchor position within the kernel. The default value $(-1,-1)$ means that the anchor
528
+ * is at the kernel center.
529
+ *
530
+ * @param delta Value added to the filtered results before storing them.
531
+ *
532
+ * @param borderType Pixel extrapolation method, see BorderTypes
533
+ */
534
+ export declare function sepFilter2D(src: InputArray, dst: OutputArray, ddepth: int, kernelX: InputArray, kernelY: InputArray, anchor?: Point, delta?: double, borderType?: int): void;
535
+ /**
536
+ * In all cases except one, the `$\\texttt{ksize} \\times \\texttt{ksize}$` separable kernel is used to
537
+ * calculate the derivative. When `$\\texttt{ksize = 1}$`, the `$3 \\times 1$` or `$1 \\times 3$`
538
+ * kernel is used (that is, no Gaussian smoothing is done). `ksize = 1` can only be used for the first
539
+ * or the second x- or y- derivatives.
540
+ *
541
+ * There is also the special value `ksize = [FILTER_SCHARR] (-1)` that corresponds to the `$3\\times3$`
542
+ * Scharr filter that may give more accurate results than the `$3\\times3$` Sobel. The Scharr aperture
543
+ * is
544
+ *
545
+ * `\\[\\vecthreethree{-3}{0}{3}{-10}{0}{10}{-3}{0}{3}\\]`
546
+ *
547
+ * for the x-derivative, or transposed for the y-derivative.
548
+ *
549
+ * The function calculates an image derivative by convolving the image with the appropriate kernel:
550
+ *
551
+ * `\\[\\texttt{dst} = \\frac{\\partial^{xorder+yorder} \\texttt{src}}{\\partial x^{xorder} \\partial
552
+ * y^{yorder}}\\]`
553
+ *
554
+ * The Sobel operators combine Gaussian smoothing and differentiation, so the result is more or less
555
+ * resistant to the noise. Most often, the function is called with ( xorder = 1, yorder = 0, ksize = 3)
556
+ * or ( xorder = 0, yorder = 1, ksize = 3) to calculate the first x- or y- image derivative. The first
557
+ * case corresponds to a kernel of:
558
+ *
559
+ * `\\[\\vecthreethree{-1}{0}{1}{-2}{0}{2}{-1}{0}{1}\\]`
560
+ *
561
+ * The second case corresponds to a kernel of:
562
+ *
563
+ * `\\[\\vecthreethree{-1}{-2}{-1}{0}{0}{0}{1}{2}{1}\\]`
564
+ *
565
+ * [Scharr], [Laplacian], [sepFilter2D], [filter2D], [GaussianBlur], [cartToPolar]
566
+ *
567
+ * @param src input image.
568
+ *
569
+ * @param dst output image of the same size and the same number of channels as src .
570
+ *
571
+ * @param ddepth output image depth, see combinations; in the case of 8-bit input images it will result
572
+ * in truncated derivatives.
573
+ *
574
+ * @param dx order of the derivative x.
575
+ *
576
+ * @param dy order of the derivative y.
577
+ *
578
+ * @param ksize size of the extended Sobel kernel; it must be 1, 3, 5, or 7.
579
+ *
580
+ * @param scale optional scale factor for the computed derivative values; by default, no scaling is
581
+ * applied (see getDerivKernels for details).
582
+ *
583
+ * @param delta optional delta value that is added to the results prior to storing them in dst.
584
+ *
585
+ * @param borderType pixel extrapolation method, see BorderTypes
586
+ */
587
+ export declare function Sobel(src: InputArray, dst: OutputArray, ddepth: int, dx: int, dy: int, ksize?: int, scale?: double, delta?: double, borderType?: int): void;
588
+ /**
589
+ * Equivalent to calling:
590
+ *
591
+ * ```cpp
592
+ * Sobel( src, dx, CV_16SC1, 1, 0, 3 );
593
+ * Sobel( src, dy, CV_16SC1, 0, 1, 3 );
594
+ * ```
595
+ *
596
+ * [Sobel]
597
+ *
598
+ * @param src input image.
599
+ *
600
+ * @param dx output image with first-order derivative in x.
601
+ *
602
+ * @param dy output image with first-order derivative in y.
603
+ *
604
+ * @param ksize size of Sobel kernel. It must be 3.
605
+ *
606
+ * @param borderType pixel extrapolation method, see BorderTypes
607
+ */
608
+ export declare function spatialGradient(src: InputArray, dx: OutputArray, dy: OutputArray, ksize?: int, borderType?: int): void;
609
+ /**
610
+ * For every pixel `$ (x, y) $` in the source image, the function calculates the sum of squares of
611
+ * those neighboring pixel values which overlap the filter placed over the pixel `$ (x, y) $`.
612
+ *
613
+ * The unnormalized square box filter can be useful in computing local image statistics such as the the
614
+ * local variance and standard deviation around the neighborhood of a pixel.
615
+ *
616
+ * [boxFilter]
617
+ *
618
+ * @param src input image
619
+ *
620
+ * @param dst output image of the same size and type as _src
621
+ *
622
+ * @param ddepth the output image depth (-1 to use src.depth())
623
+ *
624
+ * @param ksize kernel size
625
+ *
626
+ * @param anchor kernel anchor point. The default value of Point(-1, -1) denotes that the anchor is at
627
+ * the kernel center.
628
+ *
629
+ * @param normalize flag, specifying whether the kernel is to be normalized by it's area or not.
630
+ *
631
+ * @param borderType border mode used to extrapolate pixels outside of the image, see BorderTypes
632
+ */
633
+ export declare function sqrBoxFilter(src: InputArray, dst: OutputArray, ddepth: int, ksize: Size, anchor?: Point, normalize?: bool, borderType?: int): void;
634
+ export declare const MORPH_RECT: MorphShapes;
635
+ /**
636
+ * a cross-shaped structuring element: `\\[E_{ij} = \\fork{1}{if i=\\texttt{anchor.y} or
637
+ * j=\\texttt{anchor.x}}{0}{otherwise}\\]`
638
+ *
639
+ */
640
+ export declare const MORPH_CROSS: MorphShapes;
641
+ /**
642
+ * an elliptic structuring element, that is, a filled ellipse inscribed into the rectangle Rect(0, 0,
643
+ * esize.width, 0.esize.height)
644
+ *
645
+ */
646
+ export declare const MORPH_ELLIPSE: MorphShapes;
647
+ export declare const MORPH_ERODE: MorphTypes;
648
+ export declare const MORPH_DILATE: MorphTypes;
649
+ /**
650
+ * an opening operation `\\[\\texttt{dst} = \\mathrm{open} ( \\texttt{src} , \\texttt{element} )=
651
+ * \\mathrm{dilate} ( \\mathrm{erode} ( \\texttt{src} , \\texttt{element} ))\\]`
652
+ *
653
+ */
654
+ export declare const MORPH_OPEN: MorphTypes;
655
+ /**
656
+ * a closing operation `\\[\\texttt{dst} = \\mathrm{close} ( \\texttt{src} , \\texttt{element} )=
657
+ * \\mathrm{erode} ( \\mathrm{dilate} ( \\texttt{src} , \\texttt{element} ))\\]`
658
+ *
659
+ */
660
+ export declare const MORPH_CLOSE: MorphTypes;
661
+ /**
662
+ * a morphological gradient `\\[\\texttt{dst} = \\mathrm{morph\\_grad} ( \\texttt{src} ,
663
+ * \\texttt{element} )= \\mathrm{dilate} ( \\texttt{src} , \\texttt{element} )- \\mathrm{erode} (
664
+ * \\texttt{src} , \\texttt{element} )\\]`
665
+ *
666
+ */
667
+ export declare const MORPH_GRADIENT: MorphTypes;
668
+ /**
669
+ * "top hat" `\\[\\texttt{dst} = \\mathrm{tophat} ( \\texttt{src} , \\texttt{element} )= \\texttt{src}
670
+ * - \\mathrm{open} ( \\texttt{src} , \\texttt{element} )\\]`
671
+ *
672
+ */
673
+ export declare const MORPH_TOPHAT: MorphTypes;
674
+ /**
675
+ * "black hat" `\\[\\texttt{dst} = \\mathrm{blackhat} ( \\texttt{src} , \\texttt{element} )=
676
+ * \\mathrm{close} ( \\texttt{src} , \\texttt{element} )- \\texttt{src}\\]`
677
+ *
678
+ */
679
+ export declare const MORPH_BLACKHAT: MorphTypes;
680
+ /**
681
+ * "hit or miss" .- Only supported for CV_8UC1 binary images. A tutorial can be found in the
682
+ * documentation
683
+ *
684
+ */
685
+ export declare const MORPH_HITMISS: MorphTypes;
686
+ export declare const FILTER_SCHARR: SpecialFilter;
687
+ export type MorphShapes = any;
688
+ export type MorphTypes = any;
689
+ export type SpecialFilter = any;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=imgproc_filter.js.map