logo Sign In

Post #622911

Author
csd79
Parent topic
Image registration on video frames (experimental)
Link to post in topic
https://originaltrilogy.com/post/id/622911/action/topic#622911
Date created
16-Feb-2013, 1:54 PM

_,,,^..^,,,_: The method of extracting detail from the DeEd frames after registration is similar to what's described here. I made the first sample frames in Photoshop, and the video sample is made with this Avisynth script:

tech = ImageSource(fix\tech/04d.png", start=20, fps=23.976).Trim(0,609)

reg = ImageSource("output\test%04d.png", start=6, fps=23.976).Trim(0,609)

 

techblur = tech.GCBlur().GCBlur()

 

reg_ovl = reg.Invert().GCBlur().GCBlur()

reg_detail = Overlay(reg, reg_ovl, opaity=0.5, mode="Blend")

 

hardlight = Overlay(techblur, reg_detail, mode="HardLight")

softlight = Overlay(techblur, reg_detail, mode="SoftLight")

 

luma = Overlay(softlight, hardlight, opacity=0.75)

result = Overlay(tech.ConvertToYV12(), luma.ConvertToYV12(), mode="Luma")

 

return StackVertical(tech.ConvertToYV12(), result)

 

 

################

 

function GCBlur(clip input)

{

return input.ConvertToRGB32().GeneralConvolution(0, "

10 10 10 10 10

10 10 10 10 10

10 10 16 10 10

10 10 10 10 10

10 10 10 10 10", 256, False)

}

The GeneralConvolution function in Avisynth seems to serve this method much better than Photoshop's blur filter. Looking at the samples in my first post now, they don't look convincing at all.

msycamore: I know you are a perfectionist so I hope you don't take it as an insult when I say: I think you did a very god job with what you had. :) Seriously, your DVD shows more of what SW could or should be color-wise than any other video version, so that's what makes it valuable. The only other transfer of SW that has validity in it's color palette IMO is the early PNS with the soft skin tones (after lowering the gamma), but that is a re-interpretation of the SW look for video, while the Tech is closer to the real thing. Thanks for releasing it on DVD!