NMM视频技术(旧)

 找回密码
 成为会员
搜索
查看: 4599|回复: 2

[求助]AVS滤镜Temporalsoften的是干什么用的?

[复制链接]
发表于 2004-10-26 18:23 | 显示全部楼层 |阅读模式
这个好象是内置的,不清楚每一个参数的作用,请大大们指教一下
发表于 2004-10-26 22:04 | 显示全部楼层
以下是TemporalSoften的英文文档,如果楼主E文好的话,应该能轻易看懂。如果不好的话……我实在没时间翻译了,最近在写《高品质DVDRIP教程》,已经不可开交了。
还有一个TemporalSoften2,据AviSynth的文档说,这个比内置的TemporalSoften还好。如果楼主感兴趣,可以看看DOOM9的这帖:
http://forum.doom9.org/showthread.php?s=&threadid=22096
当然,也是E文的。

SpatialSoften / TemporalSoften
SpatialSoften(clip, int radius, int luma_threshold, int chroma_threshold)
TemporalSoften(clip, int radius, int luma_threshold, int chroma_threshold, int "scenechange", int "mode"

The SpatialSoften and TemporalSoften filters remove noise from a video clip by selectively blending pixels. These filters can work miracles, and I highly encourage you to try them. But they can also wipe out fine detail if set too high, so don't go overboard. And they are very slow, especially with a large value of radius, so don't turn them on until you've got everything else ready.

SpatialSoften replaces each sample in a frame with the average of all nearby samples with differ from the central sample by no more than a certain threshold value. "Nearby" means no more than radius pixels away in the x and y directions. The threshold used is luma_threshold for the Y (intensity) samples, and chroma_threshold for the U and V (color) samples.

TemporalSoften is similar, except that it looks at the same pixel in nearby frames, instead of nearby pixels in the same frame. All frames no more than radius away are examined. This filter doesn't seem to be as effective as SpatialSoften.

I encourage you to play around with the parameters for these filters to get an idea of what they do--for example, try setting one of the three parameters to a very high value while leaving the others low, and see what happens. Note that setting any of the three parameters to zero will cause the filter to become a very slow no-op.

TemporalSoften smoothes luma and chroma separately, but SpatialSoften smoothes only if both luma and chroma have passed the threshold.

As of AviSynth v1.0 beta 5, the SpatialSoften and TemporalSoften filters work only with YUY2 input. You can use the ConvertToYUY2 filter if your input is not in YUY2 format.

Note that if you use AviSynth v2.04, you don't need the TemporalSoften2 plugin anymore, the built-in TemporalSoften is replaced with that implementation.

Starting from v2.50, two options are added to TemporalSoften:

An optional mode=2 parameter: It has a new and better way of blending frame and provides better quality. It is also much faster. Requires ISSE. mode=1 is default operation, and works as always.
An optional scenechange=n parameter: Using this parameter will avoid blending across scene changes. 'n' defines the maximum average pixel change between frames. Good values for 'n' are between 5 and 30. Requires ISSE.
[Good initial values: TemporalSoften(4,4,8,15,2)]
 楼主| 发表于 2004-10-28 13:50 | 显示全部楼层
恩,终于看懂了.

不过还是期待一下老大在第五章关于AVS的讲解,希望能更详尽
就好
您需要登录后才可以回帖 登录 | 成为会员

本版积分规则

小黑屋|手机版|NMM视频技术

GMT+8, 2025-5-6 02:12 , Processed in 0.112614 second(s), 14 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表