Grid


Author V. C. Mohan
Last modified Date Aug 2014

In several applications of video image processing, coordinates along width (x axis) and height (Y axis) need to be specified with a fair degree of accuracy. Grid plugin facilitates this by superimposing a Grid on the frame.

Grid lines are drawn as dotted lines, while those specified as bold are drawn as dashed lines and very bold ones are drawn as full lines. Color of these lines can be specified. In addition or as an alternative graduated central axes lines can be displayed


RGB32, RGB24, YUY2 and planar (YV12 only by 2.5 version) formats only are supported.
Details of parameters
Description Name Type Limits Default
Input clip clip none
grid display to start from frame number sf integer must be within clip. 0
grid display to end on frame number ef integer must be within clip and not less than sf. last frame of clip
grid line (dotted) interval in pixels lineint integer Positive even number not less than 4 10
bold line( dashed) at every nth grid line bold integer 5
very bold line( solid) at every nth bold line vbold integer 2
color of grid line color integer specified as RRGGBB 0
color of bold line bcolor integer specified as RRGGBB color
color of very bold line vbcolor integer specified as RRGGBB color
Whether grid lines to be displayed grid boolean true / false true
Whether axis lines to be displayed axis boolean true / false false

#Usage examples:-
Grid(last,24,200,25,4,5,$ff0000,$7f0000,$5f0000,true,false)
#for grid lines and very bold lines only (vbold=1 ensures it)
Grid(last,24,200,10,10,1)
Grid(last,24,200,color=255)
# vbold lines will not be displayed as large value ensures out of frame
Grid(last,24,200,vbold=7000)
Grid(last,24,200,grid=false,axis=true)


Example:
To my index page To Avisynth