Avisynth: Motion Adaptive? - digitalFAQ.com Forums [Archives]
 digitalFAQ.com Forums [Archives] Avisynth: Motion Adaptive?

#1
07-07-2008, 05:49 PM
 tengo6dedos Free Member Join Date: Mar 2008 Location: Tierra del Fuego, Chile Posts: 121 Thanks: 0 Thanked 0 Times in 0 Posts
hello,

i was lookin to the motion adaptive script in "optimal" space, can someone explain me better this function? how can i get more aggresive filtering using the function?

i cant find much info written in easy english and in spanish i found nothing

thanks
Someday, 12:01 PM
 Site Staff / Ad Manager Join Date: Dec 2002 Posts: 42 Thanks: ∞ Thanked 42 Times in 42 Posts
#2
07-08-2008, 07:38 AM
 Dialhot Free Member Join Date: May 2003 Posts: 10,463 Thanks: 0 Thanked 0 Times in 0 Posts
The "motion adaptative" part is only this line :
Code:
`ScriptClip(" nf = YDifferenceToNext()" +chr(13)+ "unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ).TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1)  ")`
The idea is to have a script that changes according to some elements of the image. Here we look at the difference between an image and the next one ( YDifferenceToNext()) and the effect of combo of filters that follows (unfilter().TemporalSoften()) change according to that value "nf". If the difference is big, the "action" in the scene is big and we can blur the image a little as the eye wont see the difference between a sharp image and a blured one when there is a lot of movement. That is the purpose of unfilter.
The opposite : if nf is small, the scene is static and the filtering applyied is a simple temporal denoise to remove grain without altering too visibily the image.

What do you need as "more agressive filtering" ?
#3
07-08-2008, 01:51 PM
 tengo6dedos Free Member Join Date: Mar 2008 Location: Tierra del Fuego, Chile Posts: 121 Thanks: 0 Thanked 0 Times in 0 Posts
thanks, im startin to understand. So motion adaptive is after sharpening?

Quote:
 What do you need as "more agressive filtering" ?

I mean like addin fft3dfilter to be changin with the motion to remove more noise where motion is higher and then unfilter or temporal to soft it a bit more
#4
07-08-2008, 02:59 PM
 Dialhot Free Member Join Date: May 2003 Posts: 10,463 Thanks: 0 Thanked 0 Times in 0 Posts
I don't think denoising where there is motion is needed, but you can replace temporalsoften by fft3dfilter and use it to denoise static scene and not moving ones.
The point is to find values for the parameters, using nf in the same way it is used for temporalsoften (that is the bugg nf is, the more you tend to 0 for the filter).

 Similar Threads Thread Thread Starter Forum Replies Last Post CheronAph Avisynth Scripting 1 09-07-2003 08:01 AM CheronAph Avisynth Scripting 24 06-25-2003 01:17 AM bicho_visacoso Avisynth Scripting 6 06-15-2003 06:30 AM sbin Avisynth Scripting 494 06-13-2003 06:43 PM ovg64 Avisynth Scripting 0 06-07-2003 04:07 PM