Grid


Author V. C. Mohan
1st Oct 2020

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.

If grid is set true ( axis = false) then top left corner is used as origin of the grid. If both grid and axis are set to true, then frame center is used as origin of grid. If only axis is set true then graduated central axes lines are displayed


RGB, YUY2 and all planar formats and bit depths supported by avisynth+ (2237 +) builds. It is thread safe MT_NICE_FILTER.
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 down loadmanyPlus plugin To Avisynth