Perceptual Hash とは?
perceptual hash は、画像を、正確なバイト列ではなく見た目を反映する短いフィンガープリントに凝縮します。視覚的に似た二つの画像は、わずか数ビットだけ異なる hash を生み出すため、hash 間の距離が類似度を測る指標になります。これにより、リサイズ・再圧縮・軽い編集が施された画像の照合に役立ちます。
なぜ重要か
バイト単位の比較は、些細な再圧縮に対しても差異を報告します。perceptual hash はそのノイズを許容するため、visual テストや重複排除は、無害なエンコーディングの変化ではなく、本当に異なる画像を検出します。
関連ガイド
What Is a Visual Diff?A visual diff compares a rendered screenshot against a baseline image and flags pixel-level changes, catching…
What Is a Pixel Diff?A pixel diff counts or visualizes the individual pixels that differ between two images, often with a toleranc…
What Is a Snapshot Diff?A snapshot diff is the comparison between a freshly captured snapshot and a stored one, highlighting what cha…