<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>matsu4512</author_name>
  <author_url>https://blog.hatena.ne.jp/matsu4512/</author_url>
  <blog_title>Every day is Carnival</blog_title>
  <blog_url>https://matsu4512.hatenadiary.org/</blog_url>
  <categories>
    <anon>ActionScript</anon>
    <anon>画像処理</anon>
    <anon>Flex</anon>
  </categories>
  <description>今回も拡大、縮小のアルゴリズム こんな感じ (ソースは右クリックでどうぞ) 動かない場合は最新のFlashPlayerをインストールしてください 前回のバイリニア法は周りの４点の色を見てその重み付き平均を求います。 今回のニアレストネイバー法は単純に求めたい位置の値をそのまま利用しています。 式はこんなん f':変換先の画像, w':変換先の画像の横幅, h': 縦幅, f:元の画像, w:元画像の横幅, h:縦幅 Math.round: 四捨五入 f'(x, y) = f(Math.round(x*w/w'), Math.round(y*h/h')) 一般的にニアレストネイバー法よりバイリニ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmatsu4512.hatenadiary.org%2Fentry%2F20090601%2F1243822085&quot; title=&quot;画像処理の勉強  Nearest Neighbor法 - Every day is Carnival&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>2009-06-01 11:08:05</published>
  <title>画像処理の勉強  Nearest Neighbor法</title>
  <type>rich</type>
  <url>https://matsu4512.hatenadiary.org/entry/20090601/1243822085</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
