pub struct ChangeDensity { /* private fields */ }Expand description
YIQ squared-delta floor for treating a pixel as actually changed. 100.0 corresponds to a YIQ-weighted distance of 10, roughly equivalent to a perceptual delta of ~0.017 — filters near-identical pixels without throwing away genuine edits. YIQ squared-delta floor for treating a pixel as actually changed. 100.0 corresponds to a YIQ-weighted distance of 10, roughly equivalent to a perceptual delta of ~0.017 — filters near-identical pixels without throwing away genuine edits. YIQ squared-delta floor for treating a pixel as actually changed. 100.0 corresponds to a YIQ-weighted distance of 10, roughly equivalent to a perceptual delta of ~0.017 — filters near-identical pixels without throwing away genuine edits. How much of any rectangle differs between the two images at all, answered in constant time from a summed-area table.
Merging patches is a question about the gaps between them, and the change mask cannot answer it: everything below the diff threshold reads as background there. A regenerated or recolored area leaves a faint delta across the whole of itself, so its patches sit in touched space; two distinct edits are separated by pixels that are identical in both images.