LUTDeRainbow(), new derainbowing script function for AVS

Locked
User avatar
Scintilla
(for EXTREME)
Joined: Mon Mar 31, 2003 8:47 pm
Status: Quo
Location: New Jersey
Contact:
Org Profile

LUTDeRainbow(), new derainbowing script function for AVS

Post by Scintilla » Fri Sep 02, 2005 8:00 pm

My apologies to dialers-up; I wanted lossless or near-lossless images so you could see the noise wasn't due to JPEG compression. But hey, I'm not breaking the 5-image-per-post limit!

Introducing <b><a href="http://www.tcnj.edu/~tomwol2/scripts/LU ... bow</a></b>, a new AVISynth derainbower function:

ARE YOU sick and tired of NASTY shimmering rainbows MUCKING UP your otherwise good DVD footage?
Are other smoothers just NOT cutting it -- or making your script WAY too slow -- or causing UGLY artifacts like chroma bleeding and ghosting?

Then YOU NEED <b><a href="http://www.tcnj.edu/~tomwol2/scripts/LU ... bow</a></b>!
It's a purely temporal derainbower that uses the power of LOOK-UP TABLES to analyze each chroma pixel's behaviour over time, then WHACK it into line if it's shimmering like a rainbow -- and it's <i>reasonably fast</i>, too!
And on top of that, since LUTDeRainbow doesn't have a spatial component, you never have to worry about chroma bleeding across edges! Wow!

Just LOOK what the power of the LUT was able to do for Chiyo-chan and her friends:

Image

Image

The left half of each image shows the U (blue offset) channel BEFORE processing -- see all that UGLY noise in the form of alternating horizontal lines? That's the rainbows at work. Yuck!

Now take a look at the right side, which is what the image looks like after having been processed with <b>LUTDeRainbow(cthresh=10,ythresh=20)</b> -- the crosstalk is GONE! A-MA-zing!

With LUTDeRainbow, Chiyo and Mr. Tadakichi were able to go from <a href="http://s93771304.onlinehome.us/compare/ ... g">this</a> to this:

Image

Just look at that satisfied smile!

And now YOU TOO can get the power of the LUT... for the very low price of <b>€0</b>! Just follow these simple instructions:

1. Make sure you have the Repair (part of the <a href="http://www.avisynth.org/warpenterprises ... emoveGrain package</a>) and <a href="http://www.avisynth.org/warpenterprises ... skTools</a> plugins in your AVISynth 2.5 plugins directory.

2. Save <a href="http://www.tcnj.edu/~tomwol2/scripts/LU ... .avsi">the LUTDeRainbow script</a> to your AVISynth 2.5 plugins directory. (Don't change the extension from AVSI.)

3. Use like any other AVISynth function, following the syntax guidelines included in the AVSI file. It's EASY!

Just think, YOU could be getting results like these:

Image

Image
(Processed with <b>LUTdeRainbow(cthresh=10,ythresh=15)</b>)

BUT WAIT! There's MORE!

If you order NOW, you can also get <a href="http://www.amvwiki.org/index.php/DFMDeR ... Rainbow</a>, a more spatially-minded derainbower that also uses masks to target ONLY the rainbows, at NO EXTRA COST! It's TWO derainbowers for the price of ONE!

So don't wait! Get YOUR copy of <a href="http://www.tcnj.edu/~tomwol2/scripts/LU ... Rainbow</a> today!


Disclaimers: Don't send check or money order anywhere, except maybe to Phade. Your results may vary. This function is meant specifically for shimmering rainbows. Not effective on stationary rainbows. Not effective on scene changes. Not effective on edges with significant motion (non-moving edges in the same image will still be good though). Not recommended for scenes with high motion, because it may cause artifacting. Please, no C.O.D.'s. This product is offered without warranty. Please place BEFORE any IVTC operations. The contents of the required plugins are the sole responsibility of the plugins' creators. This function does not contain iodide, a necessary nutrient. You use this function at your own risk: we accept no responsibility for adverse effects to your footage. If it wrecks it, then just comment it out, you lazy bastard. No refunds. Operators are NOT standing by. Deal with it.
ImageImage
:pizza: :pizza: Image :pizza: :pizza:

User avatar
808-buma
Joined: Mon Apr 25, 2005 5:40 pm
Org Profile

Post by 808-buma » Fri Sep 02, 2005 8:52 pm

cool! Quick questions -

the masktools zip file extracts to a folder, do you just plop the whole folder into the plugins directory?

the remove grain zip file also contains another zip file nested inside of it. do we just leave it in the plugins folder or do we also unzip that and drop it into the plugins folder?

Thanks for the heads up on this!

User avatar
Scintilla
(for EXTREME)
Joined: Mon Mar 31, 2003 8:47 pm
Status: Quo
Location: New Jersey
Contact:
Org Profile

Post by Scintilla » Fri Sep 02, 2005 9:01 pm

808-buma wrote:the masktools zip file extracts to a folder, do you just plop the whole folder into the plugins directory?
Go into that folder; you should see "MaskTools.dll" and two more sub-folders. The plugin itself is that DLL file; extract that to the plugins directory. The folders with the documentation and source code aren't necessary (though the documentation is quite helpful if you want to use the many filters of MaskTools).

I should point out that, if you have the AMVApp, then you already have MaskTools.
808-buma wrote:the remove grain zip file also contains another zip file nested inside of it. do we just leave it in the plugins folder or do we also unzip that and drop it into the plugins folder?
That ZIP is just the source code. You don't need to unpack it.

Also with RemoveGrain, be careful to follow the instructions in the HTML document for unpacking the DLLs -- you should only have one version of each of: RemoveGrain, Repair, SSETools. I personally use RemoveGrainS.dll, RepairS.dll, and SSEToolsS.dll (which I'm pretty sure are the "failsafe" versions).
ImageImage
:pizza: :pizza: Image :pizza: :pizza:

User avatar
badmartialarts
Bad Martial Artist
Joined: Sat Oct 25, 2003 5:31 am
Location: In ur Kitchen Stadium, eatin ur peppurz
Org Profile

Post by badmartialarts » Sat Sep 03, 2005 11:31 am

But can it save Armitage III footage? That is the true test of any derainbower...:)

/me will download now and check later.
Life's short.
eBayhard.

User avatar
Scintilla
(for EXTREME)
Joined: Mon Mar 31, 2003 8:47 pm
Status: Quo
Location: New Jersey
Contact:
Org Profile

Post by Scintilla » Sat Sep 03, 2005 1:06 pm

badmartialarts wrote:But can it save Armitage III footage? That is the true test of any derainbower...:)
Argh, after checking the Armitage III processing page on AMVwiki, I realized that I forgot to mention that this script is only meant to work on <i>frame-based</i> footage; SeparateFields() will screw up the process (unless you separate the top fields into one stream and the bottom fields into another and derainbow each stream separately).

I'll go add that to the notes now.
ImageImage
:pizza: :pizza: Image :pizza: :pizza:

User avatar
Kalium
Sir Bugsalot
Joined: Fri Oct 03, 2003 11:17 pm
Location: Plymouth, Michigan
Org Profile

Post by Kalium » Sat Sep 03, 2005 1:10 pm

Hm, how is this on speed?

User avatar
Scintilla
(for EXTREME)
Joined: Mon Mar 31, 2003 8:47 pm
Status: Quo
Location: New Jersey
Contact:
Org Profile

Post by Scintilla » Sat Sep 03, 2005 1:31 pm

I haven't tried actually encoding any clips with it yet, but in VirtualDubMod, it seemed to be about as fast as Shodan's RainbowKiller (known in the AMVapp as SDDeRainbow), and certainly much faster than mf's mfRainbow (though that's not hard to do). Naturally, any suggestions for further optimization are welcome.
ImageImage
:pizza: :pizza: Image :pizza: :pizza:

Locked

Return to “Video & Audio Help”