{"categories":[],"type":"rich","width":"100%","blog_url":"https://bitop.hatenablog.com/","title":"Interface2017\u5e7405\u6708\u53f7\u65b0\u753b\u50cf\u51e6\u7406101\u3092\u8aad\u3080","author_url":"https://blog.hatena.ne.jp/bitop/","published":"2018-01-22 06:13:11","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","author_name":"bitop","version":"1.0","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/b/bitop/20180115/20180115055759.png","blog_title":"bitop\u2019s diary","description":"2-3 \uff11\u6b21\u95a2\u6570\u306b\u3088\u308b\u6fc3\u6de1\u8abf\u6574\u300c\u6298\u308c\u7dda\u30c8\u30fc\u30f3\u30ab\u30fc\u30d6\u51e6\u7406\u300d img_src = cv2.imread(\"data/Mandrill.png\") #\u30eb\u30c3\u30af\u30a2\u30c3\u30d7\u30c6\u30fc\u30d6\u30eb\u306e\u8a2d\u5b9a a = 1.1 #\u50be\u304d b = 50 #\u5207\u7247 look_up_table = np.zeros((256, 1), dtype = 'uint8') for i in range(256): p = a * i + b if p > 255: p = 255 if p < 0: p = 0 look_up_table[i][0] = p img_dst = cv2.LUT(img_src, look_up_table) #\u63cf\u2026","url":"https://bitop.hatenablog.com/entry/2018/01/22/061311","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbitop.hatenablog.com%2Fentry%2F2018%2F01%2F22%2F061311\" 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>"}