Pallet


Author V. C. Mohan
Date Sep 14, 2005

While recoloring or coloring a black and white image the grey value is preserved by various functions( ColorBrush, ColorDrops, CrossFill and Inlay) unless specifically desired. Even though a color in RRGGBB or XXYYUUVV format is specified to these functions, they only alter the chroma values of the input clip for coloring. With a given grey value range only certain shades of colors are possible. The results are likely to be different than expected.

To overcome this problem Pallet function displays a pallet using the range of y values present in the object. The best fitting Color then can be selected and or values for shift or stretch may be arrived at. In each color box from left to right the y value (or green) changes from sgy to egy. In the next frame the start value for sgy will be sgy+ystpf and end will be this new sgy plus (egy-sgy). In case egy crosses 255 then the pallet start sgy value is reset to 0. From box to box along horizontal the red or u changes while along vertical the blue changes.

As input a blank clip( or any other desired background clip is required. The pallet boxes are shown over this clip. Stepping frame brings in new start value of sgy.

RGB32, RGB24, YUY2 and YV12 formats are supported.

Details of parameters
Description Name Type Limits Default
Input clip clip none
Start y or green value sgy integer 0 to 255 128
End Y or green value egy integer >sgy, 255. sgy+20
step of sgy per frame ystepf integer 0 to 255 egy-sgy
Number of pallet boxes along width hbox integer 1 to 255 25
Number of pallet boxes along height vbox integer 1 to 255 25

Usage examples:
pallet(last,sgy=50,egy=76,ystepf=40)
To Colorit Synopsis
To my index page
down load plugin
To Avisynth