FredThompson
19th December 2005, 03:20
I've been using this for cleaning progressive B&W vintage films:
ConverttoYV12()
LRemoveDust_YV12(17,2)
Soothe(LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=4),last,24)
FastLineDarken(strength=8, luma_cap=191, threshold=4, thinning=0)
It seems to work quite well. The FastLineDarken call is really a kludge, though. Something needed to be done after the LRemoveDust call because the darker lines were a little too light. FastLineDarken creates good results during playback but the result on a frame is really small portions of the dark areas which are pushed to black.
I'm looking for a way to darken the lines without this clipping behavior which is useful for animation but not so good for film.
I've never used masks with AviSynth but suspect that might be part of a solution. Essentially, the darker pixels of the original stream would replace those of the filtered frame. Maybe the two are combined through a weighted average so there is a little cleaning but with less loss of darkness. I suppose the threshold which specifies which pixels get treated this way should also be adjustable.
Has anyone written such a filter? Would someone show me how to create such a masking?
ConverttoYV12()
LRemoveDust_YV12(17,2)
Soothe(LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=4),last,24)
FastLineDarken(strength=8, luma_cap=191, threshold=4, thinning=0)
It seems to work quite well. The FastLineDarken call is really a kludge, though. Something needed to be done after the LRemoveDust call because the darker lines were a little too light. FastLineDarken creates good results during playback but the result on a frame is really small portions of the dark areas which are pushed to black.
I'm looking for a way to darken the lines without this clipping behavior which is useful for animation but not so good for film.
I've never used masks with AviSynth but suspect that might be part of a solution. Essentially, the darker pixels of the original stream would replace those of the filtered frame. Maybe the two are combined through a weighted average so there is a little cleaning but with less loss of darkness. I suppose the threshold which specifies which pixels get treated this way should also be adjustable.
Has anyone written such a filter? Would someone show me how to create such a masking?