GraMaMa

From Avisynth wiki
Revision as of 13:54, 11 October 2015 by Reel.Deal (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Abstract
Author E-Male, Wilbert Dijkhof
Version v0.2
Download GraMaMa_v02.zip
Category Masking
License Public domain
Discussion Doom9 Thread


Contents

[edit] Description

GraMaMa creates a mask (either greyscale or black/white) given a prescribed shape (such as circle, ellipse, line, square and rectangle). It replaces the input clip by a mask with the same dimensions and color format.

[edit] Requirements

  • AviSynth 2.5.8 or greater
  • Supported color formats: YV12


[edit] Syntax and Parameters

GraMaMa (clip, int "mode", int "a", int "b", int "rad", int "rad2", bool "binarize")


clip   =
Input clip.


int  mode = 1
  • 1 : circle
  • 2 : square
  • 3 : diamond
  • 4 : line
  • 5 : ellipse
  • 6 : rectangle


int  a = width/2
int  b = height/2
(a,b) is the center of the mask. It can be located outside the clip.


int  rad = width/4
rad is the horizontal radius of the mask.


int  rad2 =
rad2 is the vertical radius of the mask (for mode=1,3,4 it is equal to rad; for mode=5,6 (default rad/2) it can be set separately; for mode=2 is results in a vertical gradient mask (when rad2>0).


bool  binarize = false
binarize = false (gradient mask), binarize = true (black and white mask).


[edit] Examples

TO DO

[edit] Changelog

Version      Date            Changes
v0.2 14/02/2008 - Some corrections and other default values. - Added ellipse and rectangle. - Added binarize=true/false. - Added documentation. v0.1 21/01/2005 - Initial release by E_Male.


[edit] Archived Downloads

Version Download Mirror
v0.2 GraMaMa_v02.zip GraMaMa_v02.zip



[edit] External Links




Back to External Filters

Personal tools