kemuri-_9
11th December 2008, 03:53
I've finally become satisfied with my first filter which i have dubbed 'ColorSwitch'.
It has the ability to pick and choose pixels from input clips based on their color values on per pixel values.
I developed it to be able to selectively filter a frame based on its color values.
the basic formula of how it works is
there's 3 input clips 'scan', 'base', and 'replace'.
if scan's per pixel values is in any of the ranges you specify, it takes the respective pixel from replace.
if not, it takes it from base.
in this manner, passing
last, last, last.filtered()
can net you partial filtering based on the frame's colors
another option to using in the manner of
last, BlankClip(last, color=$000000), BlankClip(last, color=$FFFFFF)
can be used for mask creation based on the colors.
it supports up to 16 sets of color ranges, so you can nail down specific color conditions fairly well.
it also features an additional function for writing the per pixel data to file as well,
to assist with your color value choosings.
natural limitations to the filter are:
all clips must have the same width, height, and color space.
and no interlaced support....
available for dl here (http://kemuri9.net/dev/avs/ColorSwitch/ColorSwitch.zip)
It has the ability to pick and choose pixels from input clips based on their color values on per pixel values.
I developed it to be able to selectively filter a frame based on its color values.
the basic formula of how it works is
there's 3 input clips 'scan', 'base', and 'replace'.
if scan's per pixel values is in any of the ranges you specify, it takes the respective pixel from replace.
if not, it takes it from base.
in this manner, passing
last, last, last.filtered()
can net you partial filtering based on the frame's colors
another option to using in the manner of
last, BlankClip(last, color=$000000), BlankClip(last, color=$FFFFFF)
can be used for mask creation based on the colors.
it supports up to 16 sets of color ranges, so you can nail down specific color conditions fairly well.
it also features an additional function for writing the per pixel data to file as well,
to assist with your color value choosings.
natural limitations to the filter are:
all clips must have the same width, height, and color space.
and no interlaced support....
available for dl here (http://kemuri9.net/dev/avs/ColorSwitch/ColorSwitch.zip)