THPDFRenderedCompareOptions
Configures perceptual page comparison, changed-region reporting, optional overlays, and allocation bounds
字段
DPI选择渲染分辨率,上限为 2,400ColorSpaceselects RGB maximum-channel or luminance differenceColorToleranceignores per-pixel deltas at or below 0 through 255MinimumSimilarity设置可接受的最低类 SSIM 分数,范围 0 到 1MaxChangedPixelRatio设置可接受的最大变化像素比例,范围 0 到 1TileSize设置把变化像素合并成区域时所用的方形 tile 边长MaxChangedRegionslimits retained region details while preserving the total region countMaxPixelsPerPagelimits either rendered page before allocationMaxTotalPixelslimits aggregate compared pixelsGenerateHeatmapsenables PNG difference overlaysHeatmapDirectoryselects the overlay output directoryOverlayOpacitycontrols changed-pixel highlight opacity from 0 through 255
默认值
Default 返回:72 DPI、RGB 比较、精确的颜色与相似度门限、64 像素 tile、保留 256 个区域、每页 1 亿像素、总计 5 亿像素、禁用热力图、不透明度 160
无效的有限范围会在比较之前被规范化为安全的默认值或钳制后的边界
Acceptance rule
只有当 changedPixelRatio <= MaxChangedPixelRatio 且 similarity >= MinimumSimilarity 时,页面才算相似