vfx
RearViewMirror
The call script is :-
vfx.RearViewMirror(clip,clip bclip[,int method = 3][,int mcx = mid frame][, int mcy = mid frame][, int mwd = width/4][,int mht = height / 4][,int border = 5][,int oval = 1][,float cvx = 1.15][, float fov = 120][,int q = 1][,int test = 0][, float dim = 0.25][,int dots = 2])
clip: input clip of constant format. RGB or Y or YUV
bclip: same format as of input clip. Rear View or Fisheye created from input is overlaid on this clip.
method: 1. orthogonal, 2. linear, 3.equisolid, 4. Panoramic and 5. Radial
mcx: x coordinate of center of mirror/ Fish eye on output image.
mcy: y coordinate of center of mirror/ fish Eye on output image.
mwd: width of mirror / Fish Eye image.
mht: height of mirror / Fish Eye image.
border: black border of mirror / Fish Eye image. 0 to 30.
oval: 0. mirror/ Fish Eye is rectangular. 1. is of oval shape.
cvx: Convexity of mirror Similar to refractive index for fish eye. 1.0 to 1.5
fov: field of view of the lens.
q: Interpolation 1.manipal hybrid near point, 2. bilinear, 3. bicubic and 4 lanczos 6x6.
test: 0. Regular, 1. test mode
dim: In test mode input frame to be dimmed to this fraction. 0.0 to 1.0.
dots: density of dots in test mode
This function creates rear view mirror or Fish Eye image of input frame. With given parameters of mirror/ image, fov, rix calculates input image radius and cautions if frame dimensions are inadequate.Input image is always centered on mid point of input frame, while mirror/ FishEye image can be located in any part on output clip.