ColourMask: Difference between revisions
From Avisynth wiki
Jump to navigationJump to search
Raffriff42 (talk | contribs) redirect for convenient searching |
ColourMask: add documentation |
||
| Line 1: | Line 1: | ||
{{FilterCat4|External_filters|Plugins|Adjustment_filters|Masking}} | |||
{{ | {{Filter3 | ||
|1={{Author/mg262}} | |||
|2=v1.0 | |||
|3=[http://wilbertdijkhof.com/mg262/ColourMask_v10.zip ColourMask_v10.zip] | |||
|4=Masking | |||
|5=[http://www.gnu.org/licenses/gpl-2.0.txt GPLv2] | |||
|6=[http://forum.doom9.org/showthread.php?t=99890 Doom9 Thread]}} | |||
== Description == | |||
[[ColourMask]] is a set of filters for masking and color stabilization. This filter is meant to be used on a scene by scene basis. | |||
<br> | |||
== Requirements == | |||
* [x86] [[AviSynth+]] or [https://sourceforge.net/projects/avisynth2/ AviSynth 2.5.8 or greater] | |||
* Supported color formats: [[YV12]] | |||
<br> | |||
== [[Script variables|Syntax and Parameters]] == | |||
===ColourMask=== | |||
Returns a mask of those pixels whose colour is near (y,u,v), where nearness is defined by lumathreshold and chromathreshold. Chroma of the returned clip is nonsense. | |||
:{{Template:FuncDef|ColourMask (clip, int y, int u, int v, int lumathreshold, int chromathreshold)}} | |||
<br> | |||
::{{Par2| |clip| }} | |||
:::Input clip, must be YV12. | |||
<br> | |||
::{{Par2| |int| }} | |||
::{{Par2| |int| }} | |||
::{{Par2| |int| }} | |||
:::<code>y, u, v</code> color values. | |||
<br> | |||
::{{Par2| |int| }} | |||
:::<code>lumathreshold</code> | |||
<br> | |||
::{{Par2| |int| }} | |||
:::<code>chromathreshold</code> | |||
<br> | |||
===ColourStabilise=== | |||
Replaces pixels whose colour is near (y,u,v) with colour (y,u,v), where nearness is defined by lumathreshold and chromathreshold. (Chroma subsampling is treated sensibly.) | |||
:{{Template:FuncDef|ColourStabilise (clip, int y, int u, int v, int lumathreshold, int chromathreshold)}} | |||
<br> | |||
::{{Par2| |clip| }} | |||
:::Input clip, must be YV12. | |||
<br> | |||
::{{Par2| |int| }} | |||
::{{Par2| |int| }} | |||
::{{Par2| |int| }} | |||
:::<code>y, u, v</code> color values. | |||
<br> | |||
::{{Par2| |int| }} | |||
:::<code>lumathreshold</code> | |||
<br> | |||
::{{Par2| |int| }} | |||
:::<code>chromathreshold</code> | |||
<br> | |||
===RGBColourStabilise=== | |||
Just like ColourStabilise but takes the colour as a RGB hex value. ( Rec.601 conversion ). | |||
:{{Template:FuncDef|RGBColourStabilise (clip, int colour, int lumathreshold, int chromathreshold)}} | |||
<br> | |||
::{{Par2| |clip| }} | |||
:::Input clip, must be YV12. | |||
<br> | |||
::{{Par2| |int| }} | |||
:::<code>colour</code> values defined in RGB hex. | |||
<br> | |||
::{{Par2| |int| }} | |||
:::<code>lumathreshold</code> | |||
<br> | |||
::{{Par2| |int| }} | |||
:::<code>chromathreshold</code> | |||
<br> | |||
== Examples == | |||
'''TODO''' | |||
<br> | |||
<br> | |||
== Changelog == | |||
Version Date(D/M/Y) Changes<br> | |||
v1.0 2005/09/11 - Initial release | |||
<br> | |||
== Archived Downloads == | |||
{| class="wikitable" border="1"; width="600px" | |||
|- | |||
!!width="100px"| Version | |||
!!width="150px"| Download | |||
!!width="150px"| Mirror | |||
|- | |||
!v1.0 | |||
|[http://wilbertdijkhof.com/mg262/ColourMask_v10.zip ColourMask_v10.zip] <br >[http://www.avisynth.nl/users/warpenterprises/files/colourmask_20050911.zip colourmask_20050911.zip] | |||
|[https://web.archive.org/web/20191004062920if_/http://wilbertdijkhof.com/mg262/ColourMask_v10.zip ColourMask_v10.zip] <br> [https://web.archive.org/web/20170616055326if_/http://www.avisynth.nl/users/warpenterprises/files/colourmask_20050911.zip colourmask_20050911.zip] | |||
|} | |||
<br> | |||
==External Links == | |||
*[https://forum.doom9.org/showthread.php?t=118430 Doom9 Forum] - mg262's plugins with source | |||
<br> | |||
<br> | |||
----------------------------------------------- | |||
'''Back to [[External_filters#Averaging.2FLayering.2FMasking|External Filters]] ←''' | |||
Latest revision as of 20:44, 6 July 2020
| Abstract | |
|---|---|
| Author | mg262 |
| Version | v1.0 |
| Download | ColourMask_v10.zip |
| Category | Masking |
| License | GPLv2 |
| Discussion | Doom9 Thread |
Description
ColourMask is a set of filters for masking and color stabilization. This filter is meant to be used on a scene by scene basis.
Requirements
- [x86] AviSynth+ or AviSynth 2.5.8 or greater
- Supported color formats: YV12
ColourMask
Returns a mask of those pixels whose colour is near (y,u,v), where nearness is defined by lumathreshold and chromathreshold. Chroma of the returned clip is nonsense.
- ColourMask (clip, int y, int u, int v, int lumathreshold, int chromathreshold)
- clip =
- Input clip, must be YV12.
- clip =
- int =
- int =
- int =
y, u, vcolor values.
- int =
- int =
lumathreshold
- int =
- int =
chromathreshold
- int =
ColourStabilise
Replaces pixels whose colour is near (y,u,v) with colour (y,u,v), where nearness is defined by lumathreshold and chromathreshold. (Chroma subsampling is treated sensibly.)
- ColourStabilise (clip, int y, int u, int v, int lumathreshold, int chromathreshold)
- clip =
- Input clip, must be YV12.
- clip =
- int =
- int =
- int =
y, u, vcolor values.
- int =
- int =
lumathreshold
- int =
- int =
chromathreshold
- int =
RGBColourStabilise
Just like ColourStabilise but takes the colour as a RGB hex value. ( Rec.601 conversion ).
- RGBColourStabilise (clip, int colour, int lumathreshold, int chromathreshold)
- clip =
- Input clip, must be YV12.
- clip =
- int =
colourvalues defined in RGB hex.
- int =
- int =
lumathreshold
- int =
- int =
chromathreshold
- int =
Examples
TODO
Changelog
Version Date(D/M/Y) Changes
v1.0 2005/09/11 - Initial release
Archived Downloads
| Version | Download | Mirror |
|---|---|---|
| v1.0 | ColourMask_v10.zip colourmask_20050911.zip |
ColourMask_v10.zip colourmask_20050911.zip |
External Links
- Doom9 Forum - mg262's plugins with source
Back to External Filters ←