F2QMask


Author V. C. Mohan
Date Jan 27, 2008
EMail: mohanvc

F2QMask function convolves the input clip with the given mask frame in spatial domain. The clip and mask(s) are transformed into 2d frequency using fft, multiplied and inverse transformed to get the convolved output. Mask can be a single frame, to be used for all the input clip frames or can be from a seperate mask clip, using successive frames as corresponding masks

Rescale facility is available.

Only YUY2 and YV12 formats are acceptable. Y values only are processed.Frame height and width must be multiples of 4.


Details of parameters
Description Name Type Limits Default
Input clip clip none
Mask clip clip none
Use a single frame as mask for entire clip? single boolean true for yes false
frame number in mask clip to be used as mask if single is true mframe integer within mask clip 0
Is rescaling of output required? rescale boolean true or false false

Usage examples:-
F2QMask(s,m,single = true,mframe = 55, rescale = false)


An example of test:Left is output, center is input and right is mask used