PDA

View Full Version : I'm looking for natural looking motion blur filter


Atak_Snajpera
4th January 2009, 01:23
Is There any way to achive natural looking motion blur?

Original frame
http://img115.imageshack.us/img115/4272/originalframent3.th.png (http://img115.imageshack.us/my.php?image=originalframent3.png)

Simulated motion blur in Corel Photo-Paint
http://img57.imageshack.us/img57/5503/simulatedblurvr3.th.png (http://img57.imageshack.us/my.php?image=simulatedblurvr3.png)

And this what I got using MFlowBlur
http://img291.imageshack.us/img291/1007/mflowblurbk3.th.png (http://img291.imageshack.us/my.php?image=mflowblurbk3.png)
It looks more like glass effect not motion blur.

My script
LoadPlugin("..\DGDecode.dll")
video=MPEG2Source("..\index.d2v")

#Deinterlace
LoadCplugin("..\Yadif\Yadif.dll")
video=yadif(video,mode=0,order=1)

#Resize
video=Spline36Resize(video,1280,720)

#MTools
Loadplugin("..\mvtools2.dll")

src = video
super = src.MSuper()
bvec = super.MAnalyse(isb=true,delta=1,blksize=8,overlap=4)
fvec = super.MAnalyse(isb=false,delta=1,blksize=8,overlap=4)
src = src.MFlowBlur(super,bvec,fvec,blur=25)
video = src

return video


sample: http://www.mediafire.com/?adgoymjdqzz

Sagekilla
4th January 2009, 08:35
Have you tried modifying the MAnalyse params? Specifically block size and overlap. Try using blksize = 4 or 16 and see what kind of results you get.

Alternative: Find a way to mask out areas that have not moved (the areas around the moving bike, for example).