일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- pycharm
- install
- SPL
- Button
- LSTM
- javascript
- Splunk
- SciPy
- CNN
- 알고리즘
- mariadb
- DFS
- Python
- index
- synology
- RNN
- GitHub
- Series
- pip
- keras
- Lotto
- GT-S80
- pandas
- E-P1
- ipad
- mean
- imread
- dataframe
- 삼성소프트웨어멤버십
- Numpy
Archives
- Today
- Total
잠토의 잠망경
[OpenCV] morphological Transformations 본문
erode
목적: 삐져 나온것 지우기
src = cv2.imread('img.png')
kernel = cv2.getStructuringElement(shape=cv2.MORPH_CROSS, ksize=(3,3))
erode = cv2.erode(src, kernel, iteraions=10)
cv2.imshow('erode', erode)
dilate
목적: 매꾸기
src = cv2.imread('img.png')
kernel = cv2.getStructuringElement(shape=cv2.MORPH_CROSS, ksize=(3,3))
erode = cv2.dilate(src, kernel, iteraions=10)
cv2.imshow('erode', erode)
Comments