MosquitoNR
From Avisynth wiki
Abstract | |
---|---|
Author | b_inary, pinterf |
Version | v0.2 |
Download | MosquitoNR_v0.2.7z |
Category | Deringing & Mosquito Noise |
License | GPLv2 |
Discussion | Doom9 Thread |
Contents |
Description
MosquitoNR is a noise reduction filter designed for mosquito noise, which is often caused by lossy compression such as MPEG.
This filter works as follows:
- 1. Compute low frequency components of the image.
- 2. Apply direction-aware blur (smoothing). This blur effectively reduces compression artifacts, but also breaks detail.
- 3. Restore the low frequency components to the blurred image.
MosquitoNR processes luma only, to correctly process chroma take a look at the example below.
Requirements
- [x86] AviSynth+ or AviSynth 2.6.0
- [x64] AviSynth+
- Progressive input only
- Supported color formats: YUY2, YV12, YV16, YV24, YV411, Y8
- CPU with SSE2 support
Syntax and Parameters
- MosquitoNR (clip, int "strength", int "restore", int "radius", int "threads")
- clip =
- Input clip
- clip =
- int strength = 16
- Range: 0 - 32
- Sets the strength of the blur.
- Setting this value higher brings stronger noise reduction effect, but side effect will also become stronger.
- Range: 0 - 32
- int strength = 16
- int restore = 128
- Range: 0 - 128
- Sets the rate of restoring.
- If set to 0, no restoring is performed.
- If set to 128, low frequency components of the blurred image is completely replaced with those of the original image, and runs slightly faster.
- Range: 0 - 128
- int restore = 128
- int radius = 2
- Range: 1 - 2
- Sets the radius of the blur.
- 1 is faster, but will have insufficient effect in some cases.
- Range: 1 - 2
- int radius = 2
- int threads = 0
- Range: 0 - 32
- Controls how many threads are used.
- By default, threads is set equal to automatically detected number of processors.
- Since this filter needs a lot of memory access, thread efficiency is not very good. Setting this value lower might improve overall processing speed.
- Range: 0 - 32
- int threads = 0
Examples
MosquitoNR with default settings:
AviSource("Blah.avi") MosquitoNR(strength=16, restore=128, radius=2, threads=0)
MosquitoNR processes only luma.
If you want to process chroma too, you can write a script like the following, but there might be no noticeable change.
AviSource("Blah.avi") MosquitoNR() u = UtoY8().MosquitoNR() v = VtoY8().MosquitoNR() YtoUV(u, v, last)
Changelog
Version Date Changes
v0.20 2022/03/23 - Moved to GitHub: https://github.com/pinterf/MosquitoNR - No longer a cpp 2.5 plugin: update to AviSynth v2.6 interface - Preserve frame properties when AviSynth+ - All inline assembly code is converted to SIMD intrinsics: 64 bit build possible - YUY2 support kept but handled as YV16 internally - Requires SSSE3 instead of SSE2 - Add DLL version resource
v0.10 2013/11/29 - x64 version - Compiled with Intel C++ Compiler XE 14.
v0.10 2013/03/14 - Fixed a crash with AviSynth MT - Added support for YV16, YV24, Y411, Y8 - Some speed optimizations - Added English documentation
v120210 2012/02/10 - Initial release
Archived Downloads
Version | Download | Mirror |
---|---|---|
v0.10 | x86: mosquito_nr_avisynth.zip
|
x86: mosquito_nr_avisynth.zip
|
- v0.10 x64 version compiled with Intel C++ Compiler XE 14.
Extenal Links
Acknowledgments
This filter is a combination of flash3kyuu's AviUtl plugin "smoothing filter" and nilpo's AviUtl plugin waveletAF - "low frequency components protection filter".
This combination was proposed by POP@4bit. I thank all of them very much.
- flash3kyuu's web page (Japanese): http://www.geocities.jp/flash3kyuu/
- nilpo's web page (Japanese): http://nilposoft.info/aviutl-plugin/
- POP@4bit's web page (Japanese): http://pop.4-bit.jp/?p=3362
Back to External Filters ←