<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.selur.net/index.php?action=history&amp;feed=atom&amp;title=Vapoursynth_FastLineDarken</id>
	<title>Vapoursynth FastLineDarken - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.selur.net/index.php?action=history&amp;feed=atom&amp;title=Vapoursynth_FastLineDarken"/>
	<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_FastLineDarken&amp;action=history"/>
	<updated>2026-11-20T08:17:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://wiki.selur.net/index.php?title=Vapoursynth_FastLineDarken&amp;diff=527&amp;oldid=prev</id>
		<title>Selur: New filter page (via create-page on MediaWiki MCP Server)</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_FastLineDarken&amp;diff=527&amp;oldid=prev"/>
		<updated>2026-11-16T08:49:22Z</updated>

		<summary type="html">&lt;p&gt;New filter page (via create-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;div style=&amp;quot;float:right; margin:0 0 1em 1em;&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;FastLineDarken&amp;#039;&amp;#039;&amp;#039; (1.4x MT MOD by Vectrangle, Didée and Dogway) is a classic line darkener for drawn material, with optional line thinning.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Filtering → Vapoursynth → Line&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Vapoursynth_FastLineDarken.png|none|FastLineDarken controls in Hybrid]]&lt;br /&gt;
&lt;br /&gt;
== What it does ==&lt;br /&gt;
Each luma pixel is compared with a grey-closed (maximum, then minimum) version of its neighborhood. Where it is darker than its surroundings – on a line – it is lowered; weak lines get proportionally less. Optional thinning makes the lines narrower. Chroma is not changed.&lt;br /&gt;
&lt;br /&gt;
== Settings ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Control !! Parameter !! Range / values !! Hybrid default !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| Strength || strength || 0 – 256 || 48 || Maximum luma reduction; weaker lines are darkened proportionally less.&lt;br /&gt;
|-&lt;br /&gt;
| Protection || protection || 0 – 50 || 5 || Keeps the darkest lines from being darkened further; 0 = no protection, about 50 protects everything.&lt;br /&gt;
|-&lt;br /&gt;
| Luma cap || luma_cap || 0 – 255 || 191 || Neighborhood values brighter than this are treated as this bright, so bright pixels do not blind the detection and grey lines on white still work; lower means less darkening, 255 = off.&lt;br /&gt;
|-&lt;br /&gt;
| Line threshold || threshold || 0 – 255 || 4 || Darkenings smaller than this are skipped (noise); 0 = off.&lt;br /&gt;
|-&lt;br /&gt;
| Thinning || thinning || 0 – 256 || 0 || Line thinning; 0 skips the second, much slower path. Thinning also darkens the remaining line pixels a little.&lt;br /&gt;
|-&lt;br /&gt;
| Tools: Expr || – || akarin, cranexpr, std || akarin (std without AVX2) || Expression evaluator.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Default settings on a 10-bit YUV 4:2:0 source (640x356):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Using FastLineDarkenMOD for line darkening&lt;br /&gt;
clip = linedarken.FastLineDarkenMOD(clip, tools={&amp;#039;expr&amp;#039;: &amp;#039;akarin&amp;#039;})&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How Hybrid calls it ==&lt;br /&gt;
* FastLineDarken works on YUV and gray clips of every bit depth, integer and float.&lt;br /&gt;
* Values are only written when they differ from the defaults; Hybrid&amp;#039;s defaults are the script&amp;#039;s defaults.&lt;br /&gt;
* Luma cap and Line threshold are on the 8-bit scale and are scaled to the bit depth by the script; Protection becomes a threshold relative to the format maximum. Strength and Thinning are relative factors.&lt;br /&gt;
* Only the luma is processed; the chroma is copied back.&lt;br /&gt;
* FastLineDarken also offers the [[Vapoursynth common filter options|common options]] (Masked, ApplyOnlyTo, Merge, OnRegion, Gimmick).&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
=== Origin ===&lt;br /&gt;
FastLineDarken started in the Doom9 forum and was reworked several times; Hybrid uses the MOD version from the script collection. The script notes recommend a threshold of 4 and point out that thinning is the slow part.&lt;br /&gt;
&lt;br /&gt;
== Sources ==&lt;br /&gt;
* [http://forum.doom9.org/showthread.php?t=82125 Doom9 thread]&lt;br /&gt;
* [https://github.com/Selur/VapoursynthScriptsInHybrid VapoursynthScriptsInHybrid] (the script collection Hybrid uses)&lt;br /&gt;
* Hybrid&amp;#039;s tooltips&lt;br /&gt;
&lt;br /&gt;
[[Category:Vapoursynth Filters]]&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
</feed>