1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

Add MORPH_DIAMOND support to samples and tutorials

This commit is contained in:
krikera
2025-06-27 21:09:53 +05:30
parent 5ee8919139
commit 27867cc72c
11 changed files with 42 additions and 16 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ def main():
cv.imshow('original', img)
modes = cycle(['erode/dilate', 'open/close', 'blackhat/tophat', 'gradient'])
str_modes = cycle(['ellipse', 'rect', 'cross'])
str_modes = cycle(['ellipse', 'rect', 'cross', 'diamond'])
if PY3:
cur_mode = next(modes)