{"author_name":"bitop","author_url":"https://blog.hatena.ne.jp/bitop/","width":"100%","url":"https://bitop.hatenablog.com/entry/2018/02/27/114302","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/b/bitop/20180227/20180227114202.png","published":"2018-02-27 11:43:02","categories":[],"title":"Interface2017\u5e7405\u6708\u53f7\u65b0\u753b\u50cf\u51e6\u7406101\u3092\u8aad\u3080","type":"rich","height":"190","provider_url":"https://hatena.blog","description":"4-5 \u5782\u76f4\u65b9\u5411\u306b\u63fa\u3089\u3081\u304b\u305b\u308b\u300c\u30b5\u30a4\u30f3\u63fa\u3089\u304e\uff08\u5782\u76f4\uff09\u300d img_src = cv2.imread(\"data/img_4-5.bmp\") #\u632f\u5e45 A = 50 #dst\u753b\u50cf\u7528\u610f img_dst = np.zeros_like(img_src) Y = img_src.shape[0] X = img_src.shape[1] for y in range(Y): for x in range(X): x2 = int(x + A*np.sin(np.pi*y/180)) if x2 < 959: img_dst[y,x2] = img_src[y,x] #\u63cf\u753b\u3059\u308b cv2.imshow(\"im\u2026","version":"1.0","blog_title":"bitop\u2019s diary","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbitop.hatenablog.com%2Fentry%2F2018%2F02%2F27%2F114302\" 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>","blog_url":"https://bitop.hatenablog.com/"}