mirror of
https://github.com/opencv/opencv.git
synced 2026-07-21 19:33:03 +04:00
Add MORPH_DIAMOND support to samples and tutorials
This commit is contained in:
@@ -147,6 +147,14 @@ array([[0, 0, 1, 0, 0],
|
||||
[1, 1, 1, 1, 1],
|
||||
[0, 0, 1, 0, 0],
|
||||
[0, 0, 1, 0, 0]], dtype=uint8)
|
||||
|
||||
# Diamond-shaped Kernel
|
||||
>>> cv.getStructuringElement(cv.MORPH_DIAMOND,(5,5))
|
||||
array([[0, 0, 1, 0, 0],
|
||||
[0, 1, 1, 1, 0],
|
||||
[1, 1, 1, 1, 1],
|
||||
[0, 1, 1, 1, 0],
|
||||
[0, 0, 1, 0, 0]], dtype=uint8)
|
||||
@endcode
|
||||
Additional Resources
|
||||
--------------------
|
||||
|
||||
Reference in New Issue
Block a user