{"width":"100%","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/b/bitop/20180317/20180317102941.png","url":"https://bitop.hatenablog.com/entry/2018/03/17/103059","categories":[],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbitop.hatenablog.com%2Fentry%2F2018%2F03%2F17%2F103059\" title=\"Interface2017\u5e7405\u6708\u53f7\u65b0\u753b\u50cf\u51e6\u7406101\u3092\u8aad\u3080 - bitop\u2019s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/bitop/","title":"Interface2017\u5e7405\u6708\u53f7\u65b0\u753b\u50cf\u51e6\u7406101\u3092\u8aad\u3080","provider_name":"Hatena Blog","published":"2018-03-17 10:30:59","version":"1.0","blog_title":"bitop\u2019s diary","blog_url":"https://bitop.hatenablog.com/","provider_url":"https://hatena.blog","height":"190","description":"7-3 \u5185\u5916\u304c\u308f\u304b\u308b\u7e26\u65b9\u5411\u8f2a\u90ed\u691c\u51fa\uff08\u6a2a\u65b9\u5411\u306e2\u6b21\u5fae\u5206\uff09 import cv2 import numpy as np img_src = cv2.imread(\"data/img_7-1.bmp\") gray = cv2.cvtColor(img_src, cv2.COLOR_RGB2GRAY) # \u30ab\u30fc\u30cd\u30eb kernel = np.array([[0, 0, 0], [1, 2, 1], [0, 0, 0]]) img_dst = cv2.filter2D(gray, -1, kernel) cv2.imshow(\"img_src\",img_src) cv2.imshow(\"img_dst\",\u2026","type":"rich","author_name":"bitop"}