You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pages/availablefunctions.md
+57-2Lines changed: 57 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1793,6 +1793,23 @@ invoke(
1793
1793
): Mat;
1794
1794
```
1795
1795
1796
+
### getStructuringElement
1797
+
1798
+
Returns a structuring element of the specified size and shape for morphological operations.
1799
+
1800
+
- shape Element shape that could be one of MorphShapes
1801
+
- ksize Size of the structuring element.
1802
+
- anchor Anchor position within the element. The default value means that the anchor is at the center. Note that only the shape of a cross-shaped element depends on the anchor position. In other cases the anchor just regulates how much the result of the morphological operation is shifted..
1803
+
1804
+
```js
1805
+
invoke(
1806
+
name:'getGaussianKernel',
1807
+
shape: MorphShapes,
1808
+
ksize: Size,
1809
+
anchor:Point
1810
+
): Mat;
1811
+
```
1812
+
1796
1813
### Laplacian
1797
1814
Calculates the Laplacian of an image.
1798
1815
- name Function name.
@@ -1829,6 +1846,14 @@ The function smoothes an image using the median filter with the 𝚔𝚜𝚒𝚣
@@ -192,6 +192,19 @@ export type ImageFiltering = {
192
192
ktype: DataTypes.CV_32F|DataTypes.CV_64F
193
193
): Mat;
194
194
195
+
/**
196
+
* Returns a structuring element of the specified size and shape for morphological operations.
197
+
* @param shape Element shape that could be one of MorphShapes
198
+
* @param ksize Size of the structuring element.
199
+
* @param anchor Anchor position within the element. The default value means that the anchor is at the center. Note that only the shape of a cross-shaped element depends on the anchor position. In other cases the anchor just regulates how much the result of the morphological operation is shifted.
200
+
*/
201
+
invoke(
202
+
name: 'getStructuringElement',
203
+
shape: MorphShapes,
204
+
ksize: Size,
205
+
anchor: Point
206
+
): Mat;
207
+
195
208
/**
196
209
* Calculates the Laplacian of an image.
197
210
* @param name Function name.
@@ -224,6 +237,11 @@ export type ImageFiltering = {
0 commit comments