<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yasuo_ssi</author_name>
  <author_url>https://blog.hatena.ne.jp/yasuo_ssi/</author_url>
  <blog_title>省型旧形国電の残影を求めて</blog_title>
  <blog_url>https://yasuo-ssi.hatenablog.com/</blog_url>
  <categories>
    <anon>ImageJ</anon>
    <anon>Python</anon>
    <anon>ImageJ / Python プログラミング</anon>
  </categories>
  <description>[2021.12追記: 誤りがありましたので一部記述を訂正しました] ImageJでPython (Jython) を使って画像の個々のピクセルにアクセスし、そこに記されている輝度(明るさ)の値を取得したり、設定(書換え)する方法についてのメモを記しておきます。 ■ピクセルの輝度値の取得 これに必要なライブラリの呼び出しは次の通りです。 from ij import IJ, ImagePlus そして、具体的には次のようなコードで取得します。 a = imp.getPixel(x, y) a: 取得した値を格納する任意の名前の変数imp: 値を読む画像 (任意の名前の imagePlus オブ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyasuo-ssi.hatenablog.com%2Fentry%2F2021%2F03%2F14%2F000000&quot; title=&quot;ImageJ / Pyhon Tips 画像ピクセルの輝度値の取得 / 設定･書換え - 省型旧形国電の残影を求めて&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/y/yasuo_ssi/20210316/20210316170627.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-03-14 00:00:00</published>
  <title>ImageJ / Pyhon Tips 画像ピクセルの輝度値の取得 / 設定･書換え</title>
  <type>rich</type>
  <url>https://yasuo-ssi.hatenablog.com/entry/2021/03/14/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
