mirror of
https://github.com/storytold/lightcraft.git
synced 2026-11-25 03:53:53 +01:00
Heal (and Remove's heal) added a Gaussian-weighted average of the difference between photo and source around the spot, in linear light. It was not pinned to the photo at the spot's edge: spots on gradients left a faint disc, dark features near a spot that it doesn't touch smudged in, texture moved across light kept its absolute amplitude (blotchy in shadows, flat in highlights), and bilinear reads at fractional source offsets halved the grain. Process V8 (docs/process-versions.md), so edited photos keep their look until Update to Current Process: - the patch is source * e^P, P the membrane fill (inpaint::membrane_fill) of the log ratio of photo to source, known only on the ring of pixels touching the spot, blurred there over the outside only (1.5 px); - the source's fine detail is scaled to the detail around the spot (ratio of medians, within 0.5 to 2x); - every spot, Clone included, reads its source at whole pixels; - the GPU renderer reads the image back for the spot stage on V8 photos with spots; V1 to V7 keep the device kernels. New tests in spots::pinned each also check that the previous heal fails them; existing spot tests run on both methods; GPU spots_match covers V7 and V8.