Files
photocraft/crates
hnoerenberg 8baf4639ca fix(algo): continue straight bands and stripes through the fill's hole
Content-Aware Fill copies the sampling area with a 7x7 patch. On the
document #14191 measured, the straight features are 10 px bands and
20 px stripes: a 7x7 patch fits inside one stripe or inside one band
gap, so it carries no phase information and the completion decides from
colour alone. The blue half of that document ran down into the green
one (300,205 gave 65,127,205 where the reference application shows
80,180,90) and the light band was not continued at all (300,165 gave
64,124,201 instead of 120,170,230).

The fill now works the option set #14191 measured out with an 11x11
patch, which covers a feature and the one next to it and keeps their
phase through the hole: all nine measured samples land within 4 levels
of the reference values (the issue asks for 12), and every one of the
10000 hole pixels carries the document's own colour within 12 levels.

High and Very High colour adaptation, the rotation levels, Scale and
Mirror are marked "not measured" in #14191, so they keep the old patch
radius; the new tests pin their samples as main gives them today.
2026-11-16 08:32:44 +01:00
..
…
…
…
…