Fusion

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(redirect for convenient searching ** TODO: 'blending' category?)
 
(add documentation)
Line 1: Line 1:
#REDIRECT [[External_filters#Averaging.2FLayering.2FMasking]]
+
{{FilterCat4|External_filters|Plugins|Adjustment_filters|Layering}}
{{FilterCat|External_filters|Adjustment_filters|TODO}}
+
{{Filter3
 +
| {{Author/David Horman}}
 +
| 24/09/2012
 +
| 3=[http://horman.net/fusion.zip fusion.zip]
 +
| 4=Audio filters
 +
| 5=
 +
| 6=[http://forum.doom9.org/showthread.php?t=152109 Doom9 Thread]}}
 +
 
 +
== Description ==
 +
[[Fusion]] is a set of filters that use image pyramids to blend clips together (more commonly used in the creation of [http://en.wikipedia.org/wiki/High-dynamic-range_imaging HDR] images and image stitching).
 +
 
 +
<br>
 +
== Requirements ==
 +
* AviSynth 2.5.8 or [http://sourceforge.net/projects/avisynth2/  greater]
 +
* Supported color formats: [[RGB32]]
 +
<br>
 +
== [[Script variables|Syntax and Parameters]] ==
 +
 
 +
===fuse===
 +
Fuse two videos using the mask created by {{Template:FuncDef3|fusemask}}. As opposed to a normal mix of clips with a mask, {{Template:FuncDef3|fuse}} will "decompose" frames with a high pass filter, making a stack of different levels of detail. These levels are then blended separately before being recomposed into a final image.
 +
 
 +
:{{Template:FuncDef|fuse (clip, clip, clip, bool "clamp")}}
 +
<br>
 +
::{{Par2| |clip| }}
 +
:::Input clip 1.
 +
 
 +
::{{Par2| |clip| }}
 +
:::Input clip 2.
 +
 
 +
::{{Par2| |clip| }}
 +
:::Mask input clip; black represents clip 1, white represents clip 2.
 +
 
 +
::{{Par2|clamp|bool|false}}
 +
:::If true, it keeps each pixel value within the range of the two pixel values from each clip. It won't do anything if the pixel value is already between the two, which it usually is.
 +
<br>
 +
===fusemask===
 +
Creates a binary mask to pass to {{Template:FuncDef3|fuse}} and can be used to merge two differently exposed images of the same scene [http://forum.doom9.org/showpost.php?p=1384755&postcount=6].
 +
 
 +
:{{Template:FuncDef|fusemask (clip, clip, clip, float "exp")}}
 +
<br>
 +
::{{Par2| |clip| }}
 +
:::Input clip 1.
 +
 
 +
::{{Par2| |clip| }}
 +
:::Input clip 2.
 +
 
 +
::{{Par2|exp|float|0.5}}
 +
:::{{Template:FuncDef3|exp}} is a target exposure for the mask, and takes values between 0.0 and 1.0 (with 0.5 as the default).
 +
:::Some of the "harshness" that is evident in fusion's image can be mitigated slightly by blurring the fusemask.
 +
<br>
 +
===fusevis===
 +
Displays the "decomposed" frames.
 +
 
 +
:{{Template:FuncDef|fusemask (clip)}}
 +
<br>
 +
::{{Par2| |clip| }}
 +
:::Input clip.
 +
<br>
 +
== Examples ==
 +
'''TODO'''
 +
<br>
 +
<br>
 +
== Changelog ==
 +
Version      Date(D/M/Y)      Changes<br>
 +
              24/09/2012      - Add "clamp" parameter to fuse
 +
              31/12/2011      - Filter rewrite, only implements fuse and fusemask
 +
              21/03/2010      - Fix a couple of bugs, and include a new filter, fusemask.
 +
              16/01/2010      - Initial release
 +
<br>
 +
 
 +
== Archived Downloads ==
 +
{| class="wikitable" border="1"; width="600px"
 +
|-
 +
!!width="100px"| Version
 +
!!width="150px"| Download
 +
!!width="150px"| Mirror
 +
|-
 +
!24/09/2012
 +
|[http://horman.net/fusion.zip fusion.zip]
 +
|[http://web.archive.org/web/20130714193744/http://horman.net/fusion.zip fusion.zip]
 +
|}
 +
<br>
 +
==External Links ==
 +
<br>
 +
<br>
 +
-----------------------------------------------
 +
'''Back to [[External_filters#Averaging.2FLayering.2FMasking|External Filters]] &larr;'''

Revision as of 05:25, 9 January 2016

Abstract
Author wonkey_monkey
Version 24/09/2012
Download fusion.zip
Category Audio filters
License
Discussion Doom9 Thread

Contents

Description

Fusion is a set of filters that use image pyramids to blend clips together (more commonly used in the creation of HDR images and image stitching).


Requirements


Syntax and Parameters

fuse

Fuse two videos using the mask created by fusemask. As opposed to a normal mix of clips with a mask, fuse will "decompose" frames with a high pass filter, making a stack of different levels of detail. These levels are then blended separately before being recomposed into a final image.

fuse (clip, clip, clip, bool "clamp")


clip   =
Input clip 1.
clip   =
Input clip 2.
clip   =
Mask input clip; black represents clip 1, white represents clip 2.
bool  clamp = false
If true, it keeps each pixel value within the range of the two pixel values from each clip. It won't do anything if the pixel value is already between the two, which it usually is.


fusemask

Creates a binary mask to pass to fuse and can be used to merge two differently exposed images of the same scene [1].

fusemask (clip, clip, clip, float "exp")


clip   =
Input clip 1.
clip   =
Input clip 2.
float  exp = 0.5
exp is a target exposure for the mask, and takes values between 0.0 and 1.0 (with 0.5 as the default).
Some of the "harshness" that is evident in fusion's image can be mitigated slightly by blurring the fusemask.


fusevis

Displays the "decomposed" frames.

fusemask (clip)


clip   =
Input clip.


Examples

TODO

Changelog

Version      Date(D/M/Y)      Changes
24/09/2012 - Add "clamp" parameter to fuse 31/12/2011 - Filter rewrite, only implements fuse and fusemask 21/03/2010 - Fix a couple of bugs, and include a new filter, fusemask. 16/01/2010 - Initial release


Archived Downloads

Version Download Mirror
24/09/2012 fusion.zip fusion.zip


External Links




Back to External Filters

Personal tools