View Full Version : remove blue,red,green lines


Mounir
3rd November 2009, 23:57
Here is what i deal with:
http://img38.imageshack.us/img38/4219/91948282.jpg
http://img407.imageshack.us/img407/542/86978963.jpg

I need to remove the blue/red/green line(s)

Sugestions are welcome

canuckerfan
4th November 2009, 00:43
try something like DeFreq: http://avisynth.org.ru/defreq/defreq.html

Mounir
4th November 2009, 01:32
You think that'll work efficiently?

Where can i download this defreq plugin,the zip on this page (http://avisynth.org/warpenterprises/files/) is corupted

Thanks in advance

canuckerfan
4th November 2009, 01:57
i don't know for sure but the plugin looks to tackle the kind of thing that is exhibited in your screencaps. download: http://avisynth.org.ru/defreq/defreq07.zip (it's near the bottom of that page that I linked)
oh and this plugin is linked to the fft3w.dll library so remember to download that as well. all the instructions are on the DeFreq page. remember to tune the parametres of the plugin to your footage. instructions for that are also on the page.

Mounir
4th November 2009, 03:09
Thanks for some reason this direct link does nothing in my browser (download won't start) but this http://avisynth.org.ru/defreq/ actually work as you can see what's in the folder.

I'm just informing for the next guy that will need this plugin.


I will try it and report thanks again ill get back at you if i need some more infos

Mug Funky
4th November 2009, 03:57
this will need a custom script and a temporal-median filter.

i can't be bothered writing one now :), but rest assured it is possible.

something like:

-mt_lutxy to get a map of the saturation only to use as a mask
-find a threshold that catches the whole line, be it red green or blue, and use it in mt_binarize
-expand it with mt_expand and maybe a blur, just to catch any pixels outside the lines that need fixing too.
-merge between a strong denoised (removedirt at a high setting) and the original clip using the expanded saturation map as a mask.

[edit]

btw, these lines just show up on single frames, right? they're not always in the same place are they?

Mounir
4th November 2009, 04:34
Well i got plenty of them, sometimes at the top others at the middle or bottom, it's kinda random.They're always horizontal that is a good news i suppose
I tried photoshop in the past with this very video, but i wasn't pleased with the result.
The other day i read this thread here: http://forum.doom9.org/showthread.php?t=150535 and found the guy removed entirely similar artifacts, though not as vivid as what i deal with. See the picture he's posted.

I just tried Defreq & it seems to produce no result whatsoever, maybe it's my fault.

MadRat
5th November 2009, 09:34
That's my thread. What I was removing is called rainbowing or rainbows. I think it's different from what you have Mounir. I'll attach two pictures: one is from defreq and shows the lines it gets rid of, the other picture is from a cartoon and shows what rainbowing looks like. Rainbowing is caused by areas where there is a lot of contrast. For example: if you have a white background and a black line that's where you can expect rainbows.