<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cruller</author_name>
  <author_url>https://blog.hatena.ne.jp/cruller/</author_url>
  <blog_title>cBlog</blog_title>
  <blog_url>https://yaritakunai.hatenablog.com/</blog_url>
  <categories>
    <anon>画像処理</anon>
  </categories>
  <description>画像のパワースペクトル（2次元FFTの絶対値の2乗）を画像で出力するプログラムをPythonで書いた。 とにかく、コードを載せる。 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…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyaritakunai.hatenablog.com%2Fentry%2F2016%2F03%2F20%2F235500&quot; title=&quot;Pythonで画像処理（2次元FFTとパワースペクトル） - cBlog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/c/cruller/20160320/20160320234251.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-03-20 23:55:00</published>
  <title>Pythonで画像処理（2次元FFTとパワースペクトル）</title>
  <type>rich</type>
  <url>https://yaritakunai.hatenablog.com/entry/2016/03/20/235500</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
