<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>licheng</author_name>
  <author_url>https://blog.hatena.ne.jp/licheng/</author_url>
  <blog_title>滴了庵日録</blog_title>
  <blog_url>https://lipoyang.hatenablog.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
  </categories>
  <description>PILのImageの画素に(x,y)座標でアクセスする速度を計測した。 目的 「Pythonでfor文を使ったら負け」とも言われるが、PILやOpenCVの画像処理機能を使わずに自前で画像処理を実装する場合、画素へのアクセスはどのような方法が高速かを比較検討する。 画素へのアクセス方法 方法1: Image.getpixel/putpixel 方法2: Image.load 方法3: Image.getdata/putdata 方法4: Image.tobytes/frombytes 方法5: NumPy配列, Image.fromarray 方法6: 方法5 + NumbaによるJITコンパ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flipoyang.hatenablog.com%2Fentry%2F2024%2F02%2F29%2F140751&quot; title=&quot; PILの画素アクセスの高速化検討 - 滴了庵日録&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-02-29 14:07:51</published>
  <title> PILの画素アクセスの高速化検討</title>
  <type>rich</type>
  <url>https://lipoyang.hatenablog.com/entry/2024/02/29/140751</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
