<?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_Bore</id>
	<title>Vapoursynth Bore - 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_Bore"/>
	<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_Bore&amp;action=history"/>
	<updated>2026-11-19T08:12:31Z</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_Bore&amp;diff=462&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_Bore&amp;diff=462&amp;oldid=prev"/>
		<updated>2026-11-16T08:47:30Z</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;Bore&amp;#039;&amp;#039;&amp;#039; fixes dirty borders – lines near the frame edge that are brighter or darker than they should be – by scaling each line to match its inner neighbor.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Filtering → Vapoursynth → Frame → Edge&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Vapoursynth_Bore.png|none|Bore controls in Hybrid]]&lt;br /&gt;
&lt;br /&gt;
== What it does ==&lt;br /&gt;
For each border line a correction factor is found by linear least squares against the neighboring line further inside. The lines are processed from the innermost to the outermost, so each one is compared with a line that has already been fixed. The modes differ in what the factor is computed from: one factor per line, one per line using all three planes, or one per pixel from a limited window around it.&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;
| Mode || – || SinglePlane, MultiPlane, SinglePlaneLimited, SinglePlaneWeighted || SinglePlane || SinglePlane: one factor per line; MultiPlane: the regression uses all three planes; SinglePlaneLimited: a factor per pixel from the 2×&amp;#039;&amp;#039;Ref. line size&amp;#039;&amp;#039;+1 nearest pixels; SinglePlaneWeighted: like Limited, with bilateral-style weights.&lt;br /&gt;
|-&lt;br /&gt;
| Adjust (l/t/r/b) || left / top / right / bottom || 0 – 32768 each || 0 || Lines to fix on each edge (at most half the plane size).&lt;br /&gt;
|-&lt;br /&gt;
| Plane || plane || first, second, third || first || Plane that is fixed.&lt;br /&gt;
|-&lt;br /&gt;
| Ref. line size || ref_line_size || 1 – 4096 || 100 || Half the window size; only for SinglePlaneLimited and SinglePlaneWeighted.&lt;br /&gt;
|-&lt;br /&gt;
| Sigma (S/R/D) || sigmaS / sigmaR / sigmaD || 0 – 255 / 0 – 10 / 0 – 10 || 50 / 0.5 / 1.5 || Weights of SinglePlaneWeighted: S = spatial sigma (distance along the line), R = range sigma (pixel difference along the line), D = sigma for differences between neighboring adjustments.&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;
# adjusting color space from YUV420P10 to YUV444PS for vsBore&lt;br /&gt;
clip = core.resize.Bicubic(clip=clip, format=vs.YUV444PS)&lt;br /&gt;
# Fix borders of an image using Bore&lt;br /&gt;
clip = core.bore.SinglePlane(clip)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How Hybrid calls it ==&lt;br /&gt;
* Bore works on 32-bit float YUV or float RGB; Hybrid converts to float. MultiPlane needs float YUV 4:4:4 or RGB, so for that mode subsampled input is converted to 4:4:4.&lt;br /&gt;
* Options are only written when they differ from the defaults (Hybrid&amp;#039;s defaults are the plugin&amp;#039;s); Ref. line size and the sigmas only for the modes that use them.&lt;br /&gt;
* Frame count and frame rate do not change.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
=== Modes ===&lt;br /&gt;
The plugin marks the Limited and Weighted modes as experimental. It also has a debug mode that writes the computed adjustments to the frame properties, and an optional weight mask; Hybrid does not offer them. For other ways to fix border lines see [[Vapoursynth EdgeFixer|EdgeFixer]] and [[Vapoursynth Balance Borders|Balance Borders]].&lt;br /&gt;
&lt;br /&gt;
== Sources ==&lt;br /&gt;
* [https://github.com/OpusGang/bore bore]&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>