mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
Create Texture (inpaint::synthesize) averaged each block 50/50 into the already-synthesised overlap. Averaging two unrelated grain patterns cuts their standard deviation by about 1/sqrt(2), so the fill came out smoother than its surroundings (75 % of the grain for one 30 px dab), and every overlapping stroke, which samples the previous ones, lost more (57 % after eight). Blocks are now joined along Efros & Freeman's minimum-error boundary cut (Image Quilting, SIGGRAPH 2001): each pixel is copied from one block or the other, never averaged. Content-Aware and Proximity Match already keep the grain on main since #2202 (patch copies instead of voting blur); the new test guards all three. Co-authored-by: Claude Opus 5.5 <[email protected]>