{"title":"Python\u3067\u753b\u50cf\u51e6\u7406\uff082\u6b21\u5143FFT\u3068\u30d1\u30ef\u30fc\u30b9\u30da\u30af\u30c8\u30eb\uff09","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/c/cruller/20160320/20160320234251.png","author_url":"https://blog.hatena.ne.jp/cruller/","provider_url":"https://hatena.blog","url":"https://yaritakunai.hatenablog.com/entry/2016/03/20/235500","author_name":"cruller","blog_title":"cBlog","width":"100%","height":"190","blog_url":"https://yaritakunai.hatenablog.com/","description":"\u753b\u50cf\u306e\u30d1\u30ef\u30fc\u30b9\u30da\u30af\u30c8\u30eb\uff082\u6b21\u5143FFT\u306e\u7d76\u5bfe\u5024\u306e2\u4e57\uff09\u3092\u753b\u50cf\u3067\u51fa\u529b\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092Python\u3067\u66f8\u3044\u305f\u3002 \u3068\u306b\u304b\u304f\u3001\u30b3\u30fc\u30c9\u3092\u8f09\u305b\u308b\u3002 spectrum.py import sys from PIL import Image import numpy as np if len(sys.argv) != 3: print('Usage: python spectrum.py input output') sys.exit(1) img_in = Image.open(sys.argv[1]) x = np.array(img_in.convert('L')) X = np.fft.fft2(x) X\u2026","version":"1.0","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyaritakunai.hatenablog.com%2Fentry%2F2016%2F03%2F20%2F235500\" title=\"Python\u3067\u753b\u50cf\u51e6\u7406\uff082\u6b21\u5143FFT\u3068\u30d1\u30ef\u30fc\u30b9\u30da\u30af\u30c8\u30eb\uff09 - cBlog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2016-03-20 23:55:00","categories":["\u753b\u50cf\u51e6\u7406"],"type":"rich"}