A method, system, and computer program for automatic restoration of digital film and video frames, by operation of a sequence of five main interactive computer program blocks, mainly separating moving objects from still objects, separating smooth texture from regions containing edges using the coherency map, and detecting and removing defects to provide restored frames using a pair of frames as reference frames for each processed frame.