ColourMask

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(redirect for convenient searching)
 
(ColourMask: add documentation)
 
Line 1: Line 1:
#REDIRECT [[External_filters#Averaging.2FLayering.2FMasking]]
+
{{FilterCat4|External_filters|Plugins|Adjustment_filters|Masking}}
{{FilterCat|External_filters|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]] &larr;'''

Latest revision as of 19:44, 6 July 2020

Abstract
Author mg262
Version v1.0
Download ColourMask_v10.zip
Category Masking
License GPLv2
Discussion Doom9 Thread

Contents

[edit] 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.


[edit] Requirements


[edit] Syntax and Parameters

[edit] 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.


int   =
int   =
int   =
y, u, v color values.


int   =
lumathreshold


int   =
chromathreshold


[edit] 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.


int   =
int   =
int   =
y, u, v color values.


int   =
lumathreshold


int   =
chromathreshold


[edit] 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.


int   =
colour values defined in RGB hex.


int   =
lumathreshold


int   =
chromathreshold


[edit] Examples

TODO

[edit] Changelog

Version      Date(D/M/Y)      Changes
v1.0 2005/09/11 - Initial release


[edit] Archived Downloads

Version Download Mirror
v1.0 ColourMask_v10.zip
colourmask_20050911.zip
ColourMask_v10.zip
colourmask_20050911.zip


[edit] External Links




Back to External Filters

Personal tools