TEMmod

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (Requirements: AviSynth 2.6)
m (Requirements)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{FilterCat4|External_filters|Plugins|Other_filters|Edge_detection}}
+
{{FilterCat4|External_filters|Plugins|Plugins_x64|Other_filters|Edge_detection}}
 
+
 
{{Filter3
 
{{Filter3
 
| {{Author/Chikuzen}}
 
| {{Author/Chikuzen}}
| v0.2.0
+
| v0.2.2
|[http://www.mediafire.com/download/wvtc1mpelav54wl/TEMmod-0.2.0.zip TEMmod-0.2.0.zip]
+
|[https://github.com/Asd-g/TEMmod/releases TEMmod-0.2.2.7z]
 
| Edge Detection  
 
| Edge Detection  
 
| [http://www.gnu.org/licenses/gpl-2.0.txt GPLv2]
 
| [http://www.gnu.org/licenses/gpl-2.0.txt GPLv2]
 
|6=[http://forum.doom9.org/showthread.php?t=168390 Doom9 Thread]}}
 
|6=[http://forum.doom9.org/showthread.php?t=168390 Doom9 Thread]}}
<br>
+
 
 
== Description ==
 
== Description ==
 
<tt>TEMmod</tt> creates an edge mask using gradient vector magnitude. It's based on [[TEdgeMask]] written by Kevin Stone (a.k.a. tritical) but rewritten from scratch exclusively for AviSynth 2.6.<br/>
 
<tt>TEMmod</tt> creates an edge mask using gradient vector magnitude. It's based on [[TEdgeMask]] written by Kevin Stone (a.k.a. tritical) but rewritten from scratch exclusively for AviSynth 2.6.<br/>
Line 14: Line 13:
  
 
== Requirements ==
 
== Requirements ==
* [http://sourceforge.net/projects/avisynth2/ AviSynth 2.6.0] or greater
+
* [x86]: [[AviSynth+]] or [http://forum.doom9.org/showthread.php?t=168764 AviSynth 2.6]
 +
* [x64]: [[AviSynth+]]
 
* Supported color formats: [[Y8]], [[YV12]], [[YV16]], [[YV24]], [[YV411]]
 
* Supported color formats: [[Y8]], [[YV12]], [[YV16]], [[YV24]], [[YV411]]
 
<br>
 
<br>
 
* [[SSE2]] capable CPU
 
* [[SSE2]] capable CPU
* [http://www.microsoft.com/en-us/download/details.aspx?id=8328 Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)]
+
* [https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads Microsoft Visual C++ 2015 Redistributable Package (x86 / x64)]
 +
:<span style="color:red">***</span> <tt>vcredist_x86.exe</tt> is required for <tt>TEMmod-x86</tt>
 +
:<span style="color:red">***</span> <tt>vcredist_x64.exe</tt> is required for <tt>TEMmod-x64</tt>
 
<br>
 
<br>
  
Line 78: Line 80:
 
== Changelog ==
 
== Changelog ==
 
  Version      Date            Changes<br>
 
  Version      Date            Changes<br>
 +
v0.2.2      2020/05/13      - Changes by asd-g
 +
                              - Update to AviSynth+'s v8 interface<br>
 +
v0.2.1      05/30/2016      - VS2010 to VS2015.<br>
 
  v0.2.0      08/12/2013      - Add new calculatre map method (generic Sobel edge detection) as type5.
 
  v0.2.0      08/12/2013      - Add new calculatre map method (generic Sobel edge detection) as type5.
 
                               - Add new argument 'scale'. <br>
 
                               - Add new argument 'scale'. <br>
Line 102: Line 107:
  
 
== External Links ==
 
== External Links ==
*[http://github.com/chikuzen/TEMmod GitHub] - Source code repository.
+
*[https://github.com/chikuzen/TEMmod GitHub] - Source code repository.
 +
*[https://github.com/Asd-g/TEMmod GitHub] - Source code repository (update).
 
*[http://forum.doom9.org/showthread.php?t=168390 Doom9 Forum] - TEMmod discussion.
 
*[http://forum.doom9.org/showthread.php?t=168390 Doom9 Forum] - TEMmod discussion.
 
<br>
 
<br>

Latest revision as of 16:41, 14 May 2020

Abstract
Author Chikuzen
Version v0.2.2
Download TEMmod-0.2.2.7z
Category Edge Detection
License GPLv2
Discussion Doom9 Thread

Contents

[edit] Description

TEMmod creates an edge mask using gradient vector magnitude. It's based on TEdgeMask written by Kevin Stone (a.k.a. tritical) but rewritten from scratch exclusively for AviSynth 2.6.

[edit] Requirements


*** vcredist_x86.exe is required for TEMmod-x86
*** vcredist_x64.exe is required for TEMmod-x64


[edit] Syntax and Parameters


TEMmod (clip, float "threshY", float "threshC", int "type", int "link", int "chroma", bool "invert", bool "preblur", float "scale")


clip   =
Input clip; only planar formats are supported.


float  threshY = 8.0
Set the magnitude thresholds for Y-plane.
If over this value then a sample will be considered an edge, and the output mask will be binarized to by 0 and 255.
Setting this to 0 means output a magnitude mask instead of binary mask.


float  threshC = 8.0
Same as threshY but sets the magnitude thresholds for U-plane and V-plane.


int  type = 4
Sets the type of first order partial derivative approximation that is used.
Possible values:
  • 1 : 2 pixel (floating point arithmetic, almost same as original)
  • 2 : 4 pixel (floating point arithmetic, almost same as original)
  • 3 : 2 pixel (type1 with SSE2 integer arithmetic, a bit incorrect but faster)
  • 4 : 4 pixel (type2 with SSE2 integer arithmetic, a bit incorrect but faster)
  • 5 : 6 pixel (Sobel operator with SSE2 integer arithmetic)


int  link = 1
Specifies whether luma to chroma linking, no linking, or linking of every plane to every other plane is used.
  • 0 : no linking
  • 1 : luma to chroma linking
  • 2 : every plane to every other plane


int  chroma = 1
This control how chroma (U-plane and V-plane) is processed:
  • 0 : do not process
  • 1 : process
  • 2 : fill with zeroes


bool  invert = false
If this is set to True, the output mask will be inverted.


bool  preblur = false
Indicates whether to apply a 3x3 guassian blur to the input image prior to generating the edge map.


float  scale = 0.0
If output is a magnitude mask(threshY=0), it is scaled by this value.
Setting this to 0 means output is adjusted automatically and scaled onto 0-255 range.


[edit] Examples

TEMmod with default settings:

AviSource("blah.avi")
TEMmod (threshY=8.0, threshC=8.0, type=4, link=1, chroma=1, invert=false, preblur=false, scale=0.0)


[edit] Changelog

Version      Date            Changes
v0.2.2 2020/05/13 - Changes by asd-g - Update to AviSynth+'s v8 interface
v0.2.1 05/30/2016 - VS2010 to VS2015.
v0.2.0 08/12/2013 - Add new calculatre map method (generic Sobel edge detection) as type5. - Add new argument 'scale'.
v0.1.1 08/09/2013 - Fix a bug
v0.1.0 08/09/2013 - Add two types of calculate map method (almost same as original) - More SSE2 optimization
v0.0.1 08/08/2013 - Initial release


[edit] Archived Downloads

Version Download Source code Mirror
v0.2.0 TEMmod-0.2.0.zip TEMmod-master.zip


[edit] External Links




Back to External Filters

Personal tools