SegmentedAmp

From Avisynth wiki
Jump to: navigation, search
Abstract
Author V. C. Mohan
Version 17 Oct 2015
Download SegmentedAmp_2_6.zip
Category External filters
License GPLv2
Discussion Doom9 Forum


Contents

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


Syntax and Parameters

SegmentedAmp(clip, int "sh", int "sm", bool "c4", bool "useclip", clip "sclip", int "smu", int "smv")


clip   =
Input clip.


sh  int = -2
Sharpening factor for RGB and Y (luma plane) only.
  • Range: -10 to 10, must not be 0 for RGB formats.


sm  int = 2
Smoothening factor for RGB and Y (luma plane) only.
  • Range: -10 to 10, must not be 0 for RGB formats.


c4  bool = true
Nearest 4 or 8 to be used for connectivity:
  • true, connect 4 will be used in watershed.
  • false connect 8 will be used.


useclip  bool = false
Use a different clip for watershed segmentation?.
  • true for use clip in provided in sclip.
  • false for segment and process the input clip.


sclip  clip = none
if useclip is true then this clip is to be used. Does not to be specified if useclip is false.


smu  int = 0
Smoothening factor for U chroma channel.
  • Range: -10 to 10, 0 means no smoothening.


smv  int = 0
Smoothening factor for V chroma channel. 0 means no smoothening.
  • Range: -10 to 10, 0 means no smoothening.



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

Personal tools