<?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=WarpSharp%2FXsharpen</id>
		<title>WarpSharp/Xsharpen - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://avisynth.nl/index.php?action=history&amp;feed=atom&amp;title=WarpSharp%2FXsharpen"/>
		<link rel="alternate" type="text/html" href="http://avisynth.nl/index.php?title=WarpSharp/Xsharpen&amp;action=history"/>
		<updated>2026-04-07T23:46:26Z</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=WarpSharp/Xsharpen&amp;diff=7311&amp;oldid=prev</id>
		<title>Reel.Deal: more info</title>
		<link rel="alternate" type="text/html" href="http://avisynth.nl/index.php?title=WarpSharp/Xsharpen&amp;diff=7311&amp;oldid=prev"/>
				<updated>2015-11-29T20:05:24Z</updated>
		
		<summary type="html">&lt;p&gt;more info&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 20:05, 29 November 2015&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{FilterCat4|External_filters|Plugin_functions|Adjustment_filters|Sharpeners}} 	&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{FilterCat4|External_filters|Plugin_functions|Adjustment_filters|Sharpeners}} 	&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Sharpening filter like VirtualDub's [http://rationalqm.us/xsharp.html Xsharpen]. It &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;works as follows:&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Sharpening filter like VirtualDub's [http://rationalqm.us/xsharp.html Xsharpen]&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;. This filter performs a subtle but useful sharpening effect&lt;/ins&gt;. It &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;operates by running a small window over &lt;/ins&gt;the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;frame &lt;/ins&gt;and &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;each center pixel is either passed through untouched (depending upon a {{Template:FuncDef3|threshold}} setting), or mapped to either &lt;/ins&gt;the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;brightest or dimmest pixel in the window, depending upon which is nearest to the center pixel&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;If &lt;/ins&gt;the center &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;pixel is mapped, it is also alpha-blended with &lt;/ins&gt;the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;original pixel &lt;/ins&gt;value &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;using a configurable {{Template:FuncDef3|strength}} setting&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;The result is a sharpening effect that not only avoids amplifying noise&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;but also tends to reduce &lt;/ins&gt;it&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;. A welcome side effect is that files processed &lt;/ins&gt;with &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;this filter tend to compress to smaller files&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;br&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;#It computes &lt;/del&gt;the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;minimum &lt;/del&gt;and &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;maximum value of luma from &lt;/del&gt;the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;neighboring 8 pixels&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;#It chooses smaller one between absolute values from &lt;/del&gt;the center &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;of &lt;/del&gt;the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;minimum value and maximum &lt;/del&gt;value.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;#Then&lt;/del&gt;, it &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;interpolates the chosen value &lt;/del&gt;with &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;luma&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== [[Script variables|Syntax and Parameters]] ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== [[Script variables|Syntax and Parameters]] ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;:{{Template:FuncDef|Xsharpen (clip, int &amp;quot;strength&amp;quot;, int &amp;quot;threshold&amp;quot;)}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;:{{Template:FuncDef|Xsharpen (clip, int &amp;quot;strength&amp;quot;, int &amp;quot;threshold&amp;quot;)}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 14:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;::{{Par2|strength|int|128|}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;::{{Par2|strength|int|128|}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;:::&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Strength&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;:::&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;When this value is 255, mapped pixels are not blended with the original pixel values, so a full-strength effect is obtained. As the value is reduced, each mapped pixel is blended with more of the original pixel. At a value of 0, the original pixels are passed through and there is no sharpening effect.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;::{{Par2|threshold|int|8}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;::{{Par2|threshold|int|8}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;:::&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Threshold&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;:::&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;This value determines how close a pixel must be to the brightest or dimmest pixel to be mapped. If a pixel is more than {{Template:FuncDef3|threshold}} away from the brightest or dimmest pixel, it is not mapped. Thus, as the {{Template:FuncDef3|threshold}} is reduced, pixels in the mid range start to be spared.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Reel.Deal</name></author>	</entry>

	<entry>
		<id>http://avisynth.nl/index.php?title=WarpSharp/Xsharpen&amp;diff=7310&amp;oldid=prev</id>
		<title>Reel.Deal: WarpSharp/Xsharpen</title>
		<link rel="alternate" type="text/html" href="http://avisynth.nl/index.php?title=WarpSharp/Xsharpen&amp;diff=7310&amp;oldid=prev"/>
				<updated>2015-11-29T16:06:41Z</updated>
		
		<summary type="html">&lt;p&gt;WarpSharp/Xsharpen&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{FilterCat4|External_filters|Plugin_functions|Adjustment_filters|Sharpeners}} 	&lt;br /&gt;
Sharpening filter like VirtualDub's [http://rationalqm.us/xsharp.html Xsharpen]. It works as follows:&lt;br /&gt;
&lt;br /&gt;
#It computes the minimum and maximum value of luma from the neighboring 8 pixels.&lt;br /&gt;
#It chooses smaller one between absolute values from the center of the minimum value and maximum value.&lt;br /&gt;
#Then, it interpolates the chosen value with luma.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== [[Script variables|Syntax and Parameters]] ==&lt;br /&gt;
:{{Template:FuncDef|Xsharpen (clip, int &amp;quot;strength&amp;quot;, int &amp;quot;threshold&amp;quot;)}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
::{{Par2| |clip| |}}&lt;br /&gt;
:::Input clip.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
::{{Par2|strength|int|128|}}&lt;br /&gt;
:::Strength&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
::{{Par2|threshold|int|8}}&lt;br /&gt;
:::Threshold&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Xsharpen with default settings:&lt;br /&gt;
 [[AviSource]](&amp;quot;Blah.avi&amp;quot;)&lt;br /&gt;
 Xsharpen(strength=128, threshold=8) &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
--------------------------------------------------------&lt;br /&gt;
'''Back to [[WarpSharp]] &amp;amp;larr;'''&lt;/div&gt;</summary>
		<author><name>Reel.Deal</name></author>	</entry>

	</feed>