Along with replacement via inpainting, what procedure is used in infrared cleaning to remove the effect of scratches and dust?
Once located, those defects can be corrected by scaling or replaced by inpainting.