2009年01月21日 RMagickで画像のピクセル情報を取得する ちょっと前に写真のピクセル情報を得るには?ということで、Rで実施する方法を調べたのだが、Rubyでも RMagickを使うと可能であることを知った。 Windows用にrmagick-win32をダウンロードして ImageMagick-6.4.5-3-Q8-windows-dll.exe を起動。その後、同じフォルダにある gem をインストールする。gem install --local rmagick-2.7.1-x86-mswin32.gem Windowsの場合、Rmagickの中でImageMagickの dll ファイルを必要とするようなので、C:\Program Files\ImageMagick-6.4.5-Q8 に path を通しておく。 これでピクセルの情報が取れるようになったので、二つの画像の色