The range of grey scale values on the input clip ( in an area corresponding to a mask) to be colored may be unsuitable for using if a different color than its original color is required. For instance if a part having a greyscale value of say 200 is to be colored black, unless this value is changed to 0, it will not result in black. In case of colors the desired exact color may not be realised without altering the grey scale values.
The grey scale range of the input clip within the window and which corresponds to the mask, is shifted by a constant value by this function. Values which go beyond 255 or below 0 due to the shifting are clipped.
The functions ColorBrush, ColorDrops, CrossFill and Inlay have this facilty builtin, so a separate call to this may not be required.
The window can be rectangular, circular or elliptical in shape. If rectangular the left top corner x and y coordinates, width and height are to be specified. If elliptical, the eliipse center, its semi axis along width and height of frame need to be specified. For circular shape the center coordinates and the radius are to be specified
RGB32, RGB24, YUY2 and YV12 formats are supported.
Description | Name | Type | Limits | Default |
Input clip grey scale value of which is to be shifted | clip | none | ||
Mask clip for reference | 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 |
shape of window | shape | string | "rect" "circle" "ellipse" | "rect" |
Process window left x for rectangle or center x for circle and ellipse | x | integer | ensure window is within frame | 0 for "rect" and width/2 for circle and ellipse |
Process window top y for rectangle or center y for circle and ellipse | y | integer | ensure window is within frame | 0 for "rect" and height/2 for circle and ellipse |
Process window width for rectangle or semi axis for ellipse or radius for circle | w | integer | window within frame | maximum possible |
Process window height for rectangle or semi axis for ellipse or radius for circle | w | integer | window within frame | maximum possible |
value of shift | st | integer | -255 to 255 | 10 |
White or black area in mask is reference? | white | boolean | true for white or false for black | false |
To Colorit Synopsis | |||
To my index page | |||
down load plugin | |||
To Avisynth |