PDA

View Full Version : Using Conditional Temporal Denoise


slakouze
13th October 2003, 17:15
Hi, i'm french and i ahve a problem with an encode.

I have small dots (white or black) on some scene.
It appears mostly on fix scene.

I use Conditional Temporal Denoise, but can't find how to se the paramters in order to fix my problem.

The readme.txt is in egnlish and and i dont understand a lot.

I would like to kick only 1x1 sized pixels.
Thank you very much


Parms for ConditionalDenoise are any of the following

p1 (default 24)
p2 (default 12)
A pixel needs to be at different from its neighbors by at least 'P1'
in order for it to be considered noise. The surrounding pixels must
be different by at lease 'P2' in order for the pixel to be
considered part of the same speck.

pwidth (default 16)
pheight (default 5)
A speck can be no larger than PWIDTH x PHEIGHT

Parms for both ConditionalDenoise and ConditionalMedian are:

mthres (default 16)
A pixel needs to be different from the previous frame by at least
'MTHRES' in order to be considered moving. This number should
be larger than 'P2' in order to prevent noise from being identified
by motion.

mwidth (default 7)
mheight (default 5)
mp (default 11)
These control the behavior of the the motion map denoising algorithm.



TUNING THE PARMS

In order for the filter to work right the various parameters MUST be
set correctly. There is no good default values.

The first parameter that needs to be set is interlaced, set it to true
if your video is interlaced, false otherwise.

Than pwidth and pheight need to be set. Set these to be slightly
larger than the specks you want to eliminate. If your video is
interlaced than height represents the height of an individual field.
Thus, it will essentially be doubled.

Than p1, p2, and mthres need to be set. In general, p1 > mthres > p2.
If these are set too low than you may lose detail as small pixel
variations might be mistaken as specks, thus losing detail, and more
importantly, real specks might not be recognized as the size of the
filter thinks the spec is might be larger than pwidth by pheight.
ConditionalDenoiseMark, and ConditionalDenoiseMap might be helpful in
setting these parameters.

KpeX
13th October 2003, 17:19
I don't know much about conditional filtering, but based on the problem you describe, a simpler solution might be Undot (http://www.avisynth.org/users/warpenterprises/files/undot_25_dll_20030118.zip). hth,

slakouze
13th October 2003, 17:47
No i tried with Undot() but it doesnt remove dots