Lyris
15th August 2012, 01:31
I have a film scan here from an old beat-up release print. It's COVERED in dirt and scratches. Temporal processing has fixed a good chunk of these, but obviously it won't fix areas of the frame that have a persistent scratch (I guess caused by a rough projector).
The scratches are tall and green (emulsion scratches?)
What HAS worked is horizontally-biased median filtering. Is there any way I can, in AviSynth, split the image into R, G and B components, attack the Green component, and then recombine?
Google searching reveals that I can MERGE RGB clips - http://avisynth.org/mediawiki/MergeARGB
But how do I split into RGB in the first place?
EDIT: Found it. Maybe useful for others:
r = ShowRed("YV12")
g = ShowGreen("YV12")
b = ShowBlue("YV12")
Edit 2: obviously this didn't help, all it would do is change the colour of the problem. Unless we were dealing with 3-strip film in which case they'd be separate anyway :) In my defense, it's 2am...
The scratches are tall and green (emulsion scratches?)
What HAS worked is horizontally-biased median filtering. Is there any way I can, in AviSynth, split the image into R, G and B components, attack the Green component, and then recombine?
Google searching reveals that I can MERGE RGB clips - http://avisynth.org/mediawiki/MergeARGB
But how do I split into RGB in the first place?
EDIT: Found it. Maybe useful for others:
r = ShowRed("YV12")
g = ShowGreen("YV12")
b = ShowBlue("YV12")
Edit 2: obviously this didn't help, all it would do is change the colour of the problem. Unless we were dealing with 3-strip film in which case they'd be separate anyway :) In my defense, it's 2am...