Pixel Diff とは?
pixel diff は、二つの画像を点ごとに比較してどのピクセルが異なるかを報告し、通常はカウントと強調表示のオーバーレイの両方を生成します。設定可能なしきい値により、anti-aliasing による小さな色の差分を等しいものとして扱えます。この結果が、visual regression testing における pass か fail かの判定を導きます。
なぜ重要か
生のピクセルカウントは視覚的な変化を示す最も精密なシグナルですが、許容値がないと敏感すぎます。しきい値を調整することで、実際の regression の捕捉とサブピクセルのレンダリング差の無視とのバランスを取ります。
関連ガイド
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 Perceptual Hash?A perceptual hash is a fingerprint of an image that stays similar when the image is slightly altered, letting…
What Is a Snapshot Diff?A snapshot diff is the comparison between a freshly captured snapshot and a stored one, highlighting what cha…