Terka
20th February 2010, 12:10
goal: want to have steady background
so i tried to make global motion compensation using:
mvtools for vector estimation
and
depaninterleave for interleaving them.
when comparing the result with DePanEstimate->depaninterleave, have following conclusion:
1.the background is calm for mvtools->depaninterleave, cant say this for DePanEstimate->depaninterleave
2.the mvtools->depaninterleave doesnot only shift (rotate) the picture, but it blurs also.
why the blur happens? what am i doing wrong?
nn=clp.nnedi2(field=-2)
tri=nn.GlobalMOCO(bobC, prev=1,next=1,matchfields=false)
tri
function GlobalMOCO (clip clp, clip calm, int "prev", int "next", int "subpixel", bool "matchfields", float "pixaspect", bool "info")
{
prev = default( prev , 0 )
next = default( next , 1 )
subpixel = default( subpixel , 2 ) #quality of matching 0-2
matchfields = default( matchfields, True ) # xxx todo
pixaspect = default( pixaspect , 1.094 ) #PAL
info = default( info , false ) #PAL
# procedure ##############
mdata = DePanEstimate (calm) #motion data
depa = DePanInterleave(clp, data=mdata, matchfields =matchfields,prev=prev, next=next,pixaspect=pixaspect,subpixel=subpixel,info=info)
return (depa)
}
nn
vectors = MSuper().MAnalyse(isb = false)
globalmotion = MDepan(vectors, pixaspect=1.094, thSCD1=50000)
mvtools=DePanInterleave(nn, data=globalmotion)
nn3=interleave(nn,nn,nn)
stackhorizontal(nn3,tri,mvtools,Overlay(tri,mvtools, mode="difference", pc_range=true).tweak(sat=3.75))
so i tried to make global motion compensation using:
mvtools for vector estimation
and
depaninterleave for interleaving them.
when comparing the result with DePanEstimate->depaninterleave, have following conclusion:
1.the background is calm for mvtools->depaninterleave, cant say this for DePanEstimate->depaninterleave
2.the mvtools->depaninterleave doesnot only shift (rotate) the picture, but it blurs also.
why the blur happens? what am i doing wrong?
nn=clp.nnedi2(field=-2)
tri=nn.GlobalMOCO(bobC, prev=1,next=1,matchfields=false)
tri
function GlobalMOCO (clip clp, clip calm, int "prev", int "next", int "subpixel", bool "matchfields", float "pixaspect", bool "info")
{
prev = default( prev , 0 )
next = default( next , 1 )
subpixel = default( subpixel , 2 ) #quality of matching 0-2
matchfields = default( matchfields, True ) # xxx todo
pixaspect = default( pixaspect , 1.094 ) #PAL
info = default( info , false ) #PAL
# procedure ##############
mdata = DePanEstimate (calm) #motion data
depa = DePanInterleave(clp, data=mdata, matchfields =matchfields,prev=prev, next=next,pixaspect=pixaspect,subpixel=subpixel,info=info)
return (depa)
}
nn
vectors = MSuper().MAnalyse(isb = false)
globalmotion = MDepan(vectors, pixaspect=1.094, thSCD1=50000)
mvtools=DePanInterleave(nn, data=globalmotion)
nn3=interleave(nn,nn,nn)
stackhorizontal(nn3,tri,mvtools,Overlay(tri,mvtools, mode="difference", pc_range=true).tweak(sat=3.75))