SegmentedAmp: Difference between revisions
From Avisynth wiki
Jump to navigationJump to search
Created page with " {{FilterCat4|External_filters|Plugins|<!-- category -->TODO|<!-- category -->TODO}} {{Filter3 |1=<!-- author -->[http://www.avisynth.nl/users/vcmohan/ V.C.Mohan] |2=<!-- ver..." |
update documentation |
||
| Line 1: | Line 1: | ||
{{FilterCat4|External_filters|Plugins|Denoisers|<!-- category -->TODO}} | |||
{{FilterCat4|External_filters|Plugins| | |||
{{Filter3 | {{Filter3 | ||
|1= | |1={{Author/vcmohan}} | ||
|2= | |2=17 Oct 2015 | ||
|3= | |3=[http://www.avisynth.nl/users/vcmohan/SegmentedAmp/SegmentedAmp_2_6.zip SegmentedAmp_2_6.zip ] | ||
|4= | |4=External filters | ||
|5=<!-- license -->[http://www.gnu.org/licenses/gpl-2.0.txt GPLv2] | |5=<!-- license -->[http://www.gnu.org/licenses/gpl-2.0.txt GPLv2] | ||
|6=<!-- discussion URL -->[http://forum.doom9.org/showthread.php?t=117710 | |6=<!-- discussion URL -->[http://forum.doom9.org/showthread.php?t=117710 Doom9 Forum]}} | ||
<br> | <br> | ||
| Line 14: | Line 12: | ||
<!-- a one-sentence description --> | <!-- a one-sentence description --> | ||
Image is segmented with watershed algorithm for smoothening and or sharpening and a full description is at [http://www.avisynth.nl/users/vcmohan/SegmentedAmp/SegmentedAmp.html click me]. | Image is segmented with watershed algorithm for smoothening and or sharpening and a full description is at [http://www.avisynth.nl/users/vcmohan/SegmentedAmp/SegmentedAmp.html click me]. | ||
*For AviSynth+ see [[modPlus]], includes high bit depth colorspace support and 64-bit. | |||
<br> | <br> | ||
== Requirements == | == Requirements == | ||
* | * [x86]: [[AviSynth+]] or [https://sourceforge.net/projects/avisynth2/ AviSynth 2.6] | ||
* | * Supported color formats: [[RGB24]], [[RGB32]], [[YUY2]], [[Y8]], [[YV12]], [[YV16]], [[YV24]] | ||
<br> | <br> | ||
== [[Script variables|Syntax and Parameters]] == | == [[Script variables|Syntax and Parameters]] == | ||
:{{Template:FuncDef| | :{{Template:FuncDef|SegmentedAmp(''clip'', int'' "sh", ''int'' "sm", ''bool'' "c4",''bool'' "useclip",''clip'' "sclip",''int'' "smu",''int'' "smv")}} | ||
<br> | <br> | ||
::{{Par2| |clip| }} | ::{{Par2| |clip| }} | ||
:::Input clip. | :::Input clip. | ||
<br> | <br> | ||
::{{Par2| | ::{{Par2|int|sh|-2}} | ||
::: | :::Sharpening factor for RGB and Y (luma plane) only. | ||
:::*Range: -10 to 10, must not be 0 for RGB formats. | |||
: | |||
::: | |||
<br> | <br> | ||
::{{Par2| | ::{{Par2|int|sm|2}} | ||
::: | :::Smoothening factor for RGB and Y (luma plane) only. | ||
:::*Range: -10 to 10, must not be 0 for RGB formats. | |||
<br> | <br> | ||
::{{Par2| | ::{{Par2|bool|c4|true}} | ||
::: | :::Nearest 4 or 8 to be used for connectivity: | ||
:::*<code>true</code>, connect 4 will be used in watershed. | |||
:::*<code>false</code> connect 8 will be used. | |||
<br> | <br> | ||
::{{Par2|< | ::{{Par2|bool|useclip|false}} | ||
:::< | :::Use a different clip for watershed segmentation?. | ||
:::*<code>true</code> for use clip in provided in <code>sclip</code>. | |||
:::*<code>false</code> for segment and process the input clip. | |||
<br> | <br> | ||
::{{Par2| | ::{{Par2|clip|sclip|none}} | ||
:::< | :::if <code>useclip</code> is true then this clip is to be used. Does not to be specified if <code>useclip</code> is false. | ||
<br> | <br> | ||
::{{Par2| | ::{{Par2|int|smu|0}} | ||
::: | ::: Smoothening factor for U chroma channel. | ||
:::*Range: -10 to 10, 0 means no smoothening. | |||
<br> | <br> | ||
::{{Par2|int|smv|0}} | |||
:::Smoothening factor for V chroma channel. 0 means no smoothening. | |||
:::*Range: -10 to 10, 0 means no smoothening. | |||
<br> | <br> | ||
<br> | <br> | ||
== Examples == | |||
* SegmentedAmp with default values: | |||
AviSource("blah.avi") | |||
SegmentedAmp(sh=-2, sm=2, c4=true, useclip=false, smu=0, smv=0) | |||
* This is some example code to sharpen and smooth an image. | |||
AviSource("blah.avi")<br> | |||
# use a blurred image to prevent over segmentation | # use a blurred image to prevent over segmentation | ||
gb = GBlur() | gb = [[GBlur]]() | ||
SegmentedAmp(sh=3, smU=6, smv=2, useclip=true, sclip=gb) | |||
<br> | |||
<br> | <br> | ||
----------------------------------------------- | ----------------------------------------------- | ||
'''Back to [[External_filters|External Filters]] ←''' | '''Back to [[External_filters|External Filters]] ←''' | ||
Revision as of 22:53, 7 June 2020
| Abstract | |
|---|---|
| Author | V. C. Mohan |
| Version | 17 Oct 2015 |
| Download | SegmentedAmp_2_6.zip |
| Category | External filters |
| License | GPLv2 |
| Discussion | Doom9 Forum |
Description
Image is segmented with watershed algorithm for smoothening and or sharpening and a full description is at click me.
- For AviSynth+ see modPlus, includes high bit depth colorspace support and 64-bit.
Requirements
- SegmentedAmp(clip, int "sh", int "sm", bool "c4",bool "useclip",clip "sclip",int "smu",int "smv")
- clip =
- Input clip.
- clip =
- sh int = -2
- Sharpening factor for RGB and Y (luma plane) only.
- Range: -10 to 10, must not be 0 for RGB formats.
- Sharpening factor for RGB and Y (luma plane) only.
- sh int = -2
- sm int = 2
- Smoothening factor for RGB and Y (luma plane) only.
- Range: -10 to 10, must not be 0 for RGB formats.
- Smoothening factor for RGB and Y (luma plane) only.
- sm int = 2
- c4 bool = true
- Nearest 4 or 8 to be used for connectivity:
true, connect 4 will be used in watershed.falseconnect 8 will be used.
- Nearest 4 or 8 to be used for connectivity:
- c4 bool = true
- useclip bool = false
- Use a different clip for watershed segmentation?.
truefor use clip in provided insclip.falsefor segment and process the input clip.
- Use a different clip for watershed segmentation?.
- useclip bool = false
- sclip clip = none
- if
useclipis true then this clip is to be used. Does not to be specified ifuseclipis false.
- if
- sclip clip = none
- smu int = 0
- Smoothening factor for U chroma channel.
- Range: -10 to 10, 0 means no smoothening.
- Smoothening factor for U chroma channel.
- smu int = 0
- smv int = 0
- Smoothening factor for V chroma channel. 0 means no smoothening.
- Range: -10 to 10, 0 means no smoothening.
- Smoothening factor for V chroma channel. 0 means no smoothening.
- smv int = 0
Examples
- SegmentedAmp with default values:
AviSource("blah.avi")
SegmentedAmp(sh=-2, sm=2, c4=true, useclip=false, smu=0, smv=0)
- This is some example code to sharpen and smooth an image.
AviSource("blah.avi")
# use a blurred image to prevent over segmentation
gb = GBlur()
SegmentedAmp(sh=3, smU=6, smv=2, useclip=true, sclip=gb)
Back to External Filters ←