SmoothUV2

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (Changelog)
(v2.1.1)
Line 2: Line 2:
 
{{Filter3
 
{{Filter3
 
| [https://github.com/dubhater dubhater], [https://github.com/Asd-g asd-g]
 
| [https://github.com/dubhater dubhater], [https://github.com/Asd-g asd-g]
| v2.1.0
+
| v2.1.1
| [https://github.com/Asd-g/AviSynth-SmoothUV2/releases SmoothUV2-2.1.0.7z]
+
| [https://github.com/Asd-g/AviSynth-SmoothUV2/releases SmoothUV2-2.1.1.7z]
 
| Spatial Denoisers
 
| Spatial Denoisers
 
| [http://www.gnu.org/licenses/gpl-2.0.txt GPLv2]
 
| [http://www.gnu.org/licenses/gpl-2.0.txt GPLv2]
Line 23: Line 23:
 
* [x64]: [[AviSynth+]]
 
* [x64]: [[AviSynth+]]
 
* Supported color formats: [[YV12]], [[YV16]], [[YV24]]
 
* Supported color formats: [[YV12]], [[YV16]], [[YV24]]
 +
<br>
 +
* [https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads Microsoft Visual C++ 2019 Redistributable Package (x86 / x64)]
 +
:<span style="color:red">***</span> <tt>vc_redist.x86.exe</tt> is required for <tt>DeDot-x86</tt>
 +
:<span style="color:red">***</span> <tt>vc_redist.x64.exe</tt> is required for <tt>DeDot-x64</tt>
 
<br>
 
<br>
 
== [[Script variables|Syntax and Parameters]] ==
 
== [[Script variables|Syntax and Parameters]] ==
Line 42: Line 46:
 
::{{Par2|interlaced|bool|}}
 
::{{Par2|interlaced|bool|}}
 
:::Determine if the frame is interlaced.
 
:::Determine if the frame is interlaced.
:::Default: auto detect based on Is.FiledBased().
+
:::Default: auto detect based on [[Clip_properties#Video:_Interlacing|IsFiledBased()]].
 
:::False is for [[FAQ_different_types_content#How_do_I_recognize_progressive.2C_interlaced.2C_telecined.2C_hybrid_and_blended_content.3F|progressive]] input, true is for [[FAQ_different_types_content#How_do_I_recognize_progressive.2C_interlaced.2C_telecined.2C_hybrid_and_blended_content.3F|interlaced]] input.
 
:::False is for [[FAQ_different_types_content#How_do_I_recognize_progressive.2C_interlaced.2C_telecined.2C_hybrid_and_blended_content.3F|progressive]] input, true is for [[FAQ_different_types_content#How_do_I_recognize_progressive.2C_interlaced.2C_telecined.2C_hybrid_and_blended_content.3F|interlaced]] input.
 
<br>
 
<br>
Line 52: Line 56:
 
== Changelog ==
 
== Changelog ==
 
  Version      Date            Changes<br>
 
  Version      Date            Changes<br>
 +
v2.1.1      2020/06/03      - Fixed memory misalignment for AviSynth 2.6.
 +
                              - Fixed processing when interlaced and h % 2.<bre>
 
  v2.1.0      2020/05/17      - Move project to GitHub
 
  v2.1.0      2020/05/17      - Move project to GitHub
 
                               - Update to AviSynth+'s v8 interface
 
                               - Update to AviSynth+'s v8 interface

Revision as of 04:59, 5 June 2020

Abstract
Author dubhater, asd-g
Version v2.1.1
Download SmoothUV2-2.1.1.7z
Category Spatial Denoisers
License GPLv2
Discussion

Contents

Description

SmoothUV2 is a spatial derainbow filter. This filter performs structure-preserving smoothing (blurring) on the U/V (chrominance or colour) information of the image, leaving Y (luminance) intact. It was created in an attempt to reduce the appearance of "rainbows" (cross-colour artifacts) near lines in some cel animation.


This version is a port of the VapourSynth version, changes to the original SmoothUV:

  • Only SmoothUV() implemented
  • "fields" parameter renamed to "interlaced"
  • Additional colorspace support
  • x64 bit version


Requirements


*** vc_redist.x86.exe is required for DeDot-x86
*** vc_redist.x64.exe is required for DeDot-x64


Syntax and Parameters

SmoothUV (clip, int "radius", int "threshold", bool "interlaced")


clip   =
A clip to process. It must have constant format and it must be 8 bit YUV.


int  radius = 3
Radius. Must be between 1 and 7.
Larger values smooth more.
Default: 3


int  threshold = 270
Threshold. Must be between 0 and 450.
Larger values smooth more.
Default: 270


bool  interlaced =
Determine if the frame is interlaced.
Default: auto detect based on IsFiledBased().
False is for progressive input, true is for interlaced input.


Examples

SmoothUV with default settings:

AviSource("Blah.avi")
SmoothUV(radius=3, threshold=270)


Changelog

Version      Date            Changes
v2.1.1 2020/06/03 - Fixed memory misalignment for AviSynth 2.6. - Fixed processing when interlaced and h % 2.<bre> v2.1.0 2020/05/17 - Move project to GitHub - Update to AviSynth+'s v8 interface - Rename files to SmoothUV2
2019/04/02 - Backport SmoothUV from VapourSynth port by Dubhater - Add YV16 and YV24 support - x64 version - Compiled with Microsoft Visual Studio C++ 2019 - Author: Asd


External Links

  • GitHub - Source code repository.




Back to External Filters

Personal tools