<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://avisynth.nl/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://avisynth.nl/index.php?action=history&amp;feed=atom&amp;title=MaskTools%2FMaskedMerge</id>
		<title>MaskTools/MaskedMerge - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://avisynth.nl/index.php?action=history&amp;feed=atom&amp;title=MaskTools%2FMaskedMerge"/>
		<link rel="alternate" type="text/html" href="http://avisynth.nl/index.php?title=MaskTools/MaskedMerge&amp;action=history"/>
		<updated>2026-07-01T03:14:58Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.24</generator>

	<entry>
		<id>http://avisynth.nl/index.php?title=MaskTools/MaskedMerge&amp;diff=177&amp;oldid=prev</id>
		<title>Admin: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://avisynth.nl/index.php?title=MaskTools/MaskedMerge&amp;diff=177&amp;oldid=prev"/>
				<updated>2013-05-09T15:02:00Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 15:02, 9 May 2013&lt;/td&gt;
			&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>http://avisynth.nl/index.php?title=MaskTools/MaskedMerge&amp;diff=176&amp;oldid=prev</id>
		<title>Gzarkadas: New page: {{FilterCat|External_filters|Other_filters|Support_filters}}  {{FuncDef|MaskedMerge (clip base_clip, clip overlay_clip, clip mask_clip) }}  '''Plugin''': MaskTools  This filter applies...</title>
		<link rel="alternate" type="text/html" href="http://avisynth.nl/index.php?title=MaskTools/MaskedMerge&amp;diff=176&amp;oldid=prev"/>
				<updated>2008-02-28T22:07:30Z</updated>
		
		<summary type="html">&lt;p&gt;New page: {{FilterCat|External_filters|Other_filters|Support_filters}}  {{FuncDef|MaskedMerge (clip base_clip, clip overlay_clip, clip mask_clip) }}  &amp;#039;&amp;#039;&amp;#039;Plugin&amp;#039;&amp;#039;&amp;#039;: &lt;a href=&quot;/index.php/MaskTools&quot; title=&quot;MaskTools&quot;&gt;MaskTools&lt;/a&gt;  This filter applies...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{FilterCat|External_filters|Other_filters|Support_filters}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDef|MaskedMerge (clip base_clip, clip overlay_clip, clip mask_clip) }}&lt;br /&gt;
&lt;br /&gt;
'''Plugin''': [[MaskTools]]&lt;br /&gt;
&lt;br /&gt;
This filter applies the clip &amp;lt;tt&amp;gt;overlay_clip&amp;lt;/tt&amp;gt; on the clip &amp;lt;tt&amp;gt;base_clip&amp;lt;/tt&amp;gt;, considering the clip &amp;lt;tt&amp;gt;mask_clip&amp;lt;/tt&amp;gt;. More precisely, with bc, oc and  mc the values of three pixels taken respectively on &amp;lt;tt&amp;gt;base_clip&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;overlay_clip&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;mask_clip&amp;lt;/tt&amp;gt;, the result will be :&lt;br /&gt;
&lt;br /&gt;
 v = ((256 - mc) * bc + mc * oc + 128) / 256&lt;br /&gt;
&lt;br /&gt;
128 is here in order to reduce the error due to the rounding of the integer division.&lt;br /&gt;
&lt;br /&gt;
So, if the mask is 255, the pixel will be the pixel from the &amp;lt;tt&amp;gt;overlay_clip&amp;lt;/tt&amp;gt;, if the mask is 0, the pixel will be from the &amp;lt;tt&amp;gt;base_clip&amp;lt;/tt&amp;gt;, and in between, it will be blended between both clips.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Back to [[MaskTools]].&lt;/div&gt;</summary>
		<author><name>Gzarkadas</name></author>	</entry>

	</feed>