<?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>Pythonで何やろうかなーと思って、C言語でやりかけだった画像処理にすることにした。C言語のときと同様に、まずはグレースケール変換書いてみた。 すごいしょぼいけどコード載せてみる。コマンドライン引数でファイル名受け取って出力するようになってます。 rgb2l.py import sys from PIL import Image if len(sys.argv) != 3: print('Usage: python rgb2l.py input output') sys.exit(1) img = Image.open(sys.argv[1]) img_l = img.convert('L'…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyaritakunai.hatenablog.com%2Fentry%2F2016%2F02%2F18%2F224000&quot; title=&quot;はじめてのPython（画像処理 | グレースケール変換） - 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://images-fe.ssl-images-amazon.com/images/I/51QXhImnmFL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-02-18 22:40:00</published>
  <title>はじめてのPython（画像処理 | グレースケール変換）</title>
  <type>rich</type>
  <url>https://yaritakunai.hatenablog.com/entry/2016/02/18/224000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
