{"url":"https://randommemory.hatenablog.com/entry/2016/01/30/191813","categories":["graphics","Python"],"version":"1.0","image_url":"http://cdn-ak.f.st-hatena.com/images/fotolife/d/derwind/20160130/20160130191519.png","author_url":"https://blog.hatena.ne.jp/derwind/","description":"\u9ad8\u901fFourier\u5909\u63db\u3068\u9006\u9ad8\u901fFourier\u5909\u63db\u3092\u753b\u50cf\u306b\u304b\u307e\u3057\u3066\u307f\u308b\u3002 import sys import numpy as np from matplotlib import pyplot as plt img = plt.imread(sys.argv[1], 1) # FFT f = np.fft.fft2(img) # IFFT img_back = np.fft.ifft2(f) # complex -> uint8 img_back = img_back.real img_back = img_back.astype(np.uint8) plt.subplot(121), plt.\u2026","published":"2016-01-30 19:18:13","width":"100%","height":"190","title":"FFT\u3068IFFT","provider_url":"https://hatena.blog","blog_url":"https://randommemory.hatenablog.com/","author_name":"derwind","provider_name":"Hatena Blog","blog_title":"\u3089\u3093\u3060\u3080\u306a\u8a18\u61b6","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frandommemory.hatenablog.com%2Fentry%2F2016%2F01%2F30%2F191813\" title=\"FFT\u3068IFFT - \u3089\u3093\u3060\u3080\u306a\u8a18\u61b6\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}