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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user