Along with replacement via inpainting, what procedure is used in infrared cleaning to remove the effect of scratches and dust?
The infrared channel, in combination with the other channels, is used to detect the location of scratches and dust.