View Single Post
Old 17th January 2013, 01:43   #44  |  Link
Space Hopper
Registered User
 
Join Date: Mar 2002
Location: Denmark
Posts: 42
Quote:
Originally Posted by GMJCZP View Post
Formalizing the idea:

###
# Function DeCelluloid
###

# Eliminate garbage of top and bottom image of old videos.
# Low Gfactor values => larger detection, more probability appear artifacts
# High Gfactor values => minor detection, more safe.
# Thanks a Didée for the idea.
# Requirements: RemoveDirt 0.9
# Version 1.0, first attempt.

function DeCelluloid(clip source, float "Gfactor", bool "_grey" )
{
Gfactor=default(Gfactor, 5.0) # Garbage factor
_grey = default(_grey, false) # Source in Black and White
prev = BackwardClense(source, grey=_grey, cache=1)
next = ForwardClense(source, grey=_grey, cache=1)
h = height(source)
h_top = int(h*0.20)
h_top = (h_top % 2) == 0 ? h_top : h_top + 1
h_bottom = int(h*0.375)
h_bottom = (h_bottom % 2) == 0 ? h_bottom : h_bottom + 1
source.LetterBox(h_top,h_bottom).SCSelect(next,prev,source,dfactor=Gfactor)
}
Gave this a test on some old Anime, and it kinda introduces more artifacts that it fixes. This is on the default setting of 5. Also it misses a lot of scene changes.

I like the idea though. But I guess one has to face the fact that this is hard to fix automatically.
Space Hopper is offline   Reply With Quote