View Full Version : filter for removing some kind of noise (not sure what its called)
Dallemon
17th April 2004, 19:52
just wandering what filter i should use to remove this kind of artifacts/noise (pic in link)
*will replace with another pic shortly*
heres the script im using:
----------------------------------------------------------
mpeg2source("C:\KORN_LIVE_DISC1\VIDEO_TS\KoRn - Live.d2v")
FieldDeinterlace(blend=false)
Undot()
Deen()
Crop(6,4,708,570)
LanczosResize(640,352)
----------------------------------------------------------
*removed fluxsmooth as it made no visual difference
thx for the help
btw its a PAL25 dvd
neily
17th April 2004, 20:28
I wouldn't like to suggest which "broad spectrum" filters to apply to this kind of artefact - I would imagine that any would have too much influence on the surrounding areas, especially as the artefact appears to be several pixels high. But if the artefacts are relatively infrequent I would suggest just overlaying something over the artefact taken from the surrounding area, such as an average of a same height selection of the area above and the area below within the frame or the same section from the previous and next frame, or most simply replacing the whole frame.
Dallemon
17th April 2004, 20:41
hmm hadnt thought of that :P
thx
Mug Funky
17th April 2004, 20:45
if the noise is transient (not longer than 1 frame) then you can kill it with removedirt and some clever settings. as a bonus you'll get a huge compressibility gain and keep pretty much all of the detail.
the downside is choosing the right settings, as it doesn't behave well with "shaky" objects, causing blocks and shearing of the image.
scharfis_brain
17th April 2004, 22:58
@Dalleman:
is this pic, you posted directly before or after a scenecut?
I believe seen kerneldeinterlacing artifacts and blending within this pic.
THis means the video might be a standards conversion (NTSC <->)
which also means, that the noise isn't transient (like Mug Funky describes it), thus meaning removedirt my get some troubles here.
btw. every written by me according this is a BIG assumption so don't trust me, trust your eyes :) )
btw2. *hrmpf* what do I see there? fielddeinterlace() ?!?
its default is blend=true, better use fieldeinterlace(blend=false)
or even better kerneldeint(order=1)
Dallemon
18th April 2004, 16:18
no there wasnt just a scenecut nor is it before... and it probably was converted from NTSC
and i'll try kerneldeint ;)
edit: kerneldeint made strange blocky artifacts :/ but fielddeinterlace(bland=false)gave better results :P
edit2: i was aware of the blending ;) but that didnt bother me too much since i could notice on the source as well :P
scharfis_brain
18th April 2004, 17:26
blocky artifacts with kerneldeint?
could you post a pic of that?
neuron2
18th April 2004, 18:03
What is the source/cause of this artifact? It would seem more intelligent to me to solve this problem at its root.
Dallemon
18th April 2004, 19:40
No Filters (http://www.angelfire.com/anime5/dalle/nofilter.jpg) - FieldDeinterlace(blend=false) (http://www.angelfire.com/anime5/dalle/field.jpg) - KernelDeint(order=1) (http://www.angelfire.com/anime5/dalle/kernel.jpg)
here's 3 different pics so you can compare :D
and there has not been applied any other filters to the sample pics
edit: i cant really see what the cause should be, apart from kerneldeint, the source is my KoRn - LIVE dvd...
edit2: i really appreciate the effort you guys are doing ^^
scharfis_brain
18th April 2004, 19:49
uhhhh, what kind of crappy source....
but to solve your problem with kerneldeint, try using lower deinterlacing threshold
ex.:
kerneldeint(order=1,threshold=7,sharp=true)
lowering the threshold deinterlaces more (smoother image, maybe jaggyness on diagonales)
raising the threshold will deinterlaces lesser, resulting in remaining combs.
to fight against the blocking try using
mpeg2source("blabla.d2v",CPU=4,iPP=true)
or use another custom AVS-deblocker of this Forum.
EDIT: I've looked a little bit closer to the unprocessed image.
because of the type of blending seen in this image, you maybe want to try restore24
Dallemon
18th April 2004, 19:55
ok thx, i will try that :)
edit: wow the artifacts from before are gone.... @ threshold=1 -_-
the CPU=4,iPP=true helped quite a bit... and the jagginess didnt get worse by lowering the threshold :/
neuron2
19th April 2004, 00:40
The original version of kerneldeint() acted as if threshold was 0. I added the thresholding to spare static areas. Maybe the default is too high.
scharfis_brain
19th April 2004, 00:46
Maybe the default is too high.
oh yes, it is :)
I gernerally use 5. It gives a good detection of motion on a wide spectrum of clips without leaving combs.
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.