CrossFill


Author V. C. Mohan
Date Sep 14, 2005

Different methods used to create masks output different discriminations. Some times we may need to use two types of descriminations in combination to get desired coloring solution. CrossFill accepts two mask clips and coloring is controlled by whether a mark is present on either, or both or one of them only (logical OR, AND and XOR). The process can be limited to a rectangular window.

The grey scale value can be modified by either shift (add) or by stretch ( + %age) if opted for, otherwise they are unaltered.

RGB32, RGB24, YUY2 and YV12 formats only are supported

Details of parameters
Description Name Type Limits Default
Input clip to be colored clip none
Input mask clip a clip none
Input mask clip b clip none
Starting frame number to process sf integer within clip 0
End frame number to process ef integer within clip and not less than sf last frame-1
type of combination of masks type string 'aORb" 'aANDb" "aNOTb" "aANDb"
Process window left x at start frame lx integer within frame, less than rx 0
Process window top y at start frame ty integer within clip, less than by 0
Process window right x at start frame rx integer within clip, more than lx frame width-1
Process window bottom y at start frame by integer within frame, more than ty frame height-1
color to fill color integer RRGGBB or XXYYUUVV $7f7f00
white marks on masks to be used? white boolean true for white, false for black true
shift or stretch grey values? shift boolean true for shift, false for stretch true
value of shift or stretch st integer -255 to 255 for shift, -100 to reasonable for stretch 0
Process window left x at end frame elx integer within frame, less than erx lx
Process window top y at end frame ety integer within clip, less than eby ty
Process window right x at end frame erx integer within clip, more than elx rx
Process window bottom y at end frame eby integer within frame, more than ety by

usage examples:
CrossFill(last,mask1,mask2,5,9,"aNOTb", color=$129978,white=false)
To Colorit Synopsis
To my index page
down load plugin
To Avisynth