LoginSignup
8
10

More than 5 years have passed since last update.

JavaScriptで画像処理 - 画像比較

Last updated at Posted at 2018-01-18

サンプル

同じサイズの画像2つ選択して、compareボタンを押してください。
異なる箇所が赤く表示されます。

See the Pen Compare by Shinichiro Maki (@olj611) on CodePen.


画像比較のロジック

ピクセルの色を比較するだけなので、特筆すべきことはありません。
今回のサンプルは、画像のサイズが一致する時のみ画像比較しています。

8
10
5

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
10