Extended Data Fig. 5: Key phases in digital mask construction.
From: Physical restoration of a painting with a digitally constructed mask

a, General artifacts are initially identified through thresholding perceived differences in value and saturation. b, Following application of tolerance analysis-driven considerations, larger areas end up consolidated with the majority of microscopic regions excluded. c, Contextual features, which are more easily visually perceived owing to their contrast with a uniform background, are separately masked. d, The combined general artifacts and contextual features mask spans most areas that require infilling based on human visual perception. e, Manual additions incorporate large area losses, such as the exposed panel support around the edges of the work, that are not visually significant from an algorithmic standpoint but are identifiable by a human viewer based on broader context. f, The final masking areas overlayed on the damaged painting.