Sign in to follow this  
jxp

Posterize Alpha

Recommended Posts

To cut a long story short I wrote a new posterize effect and then didn't actually need it :oops: . Anyway it's all written so I thought I may as well post it.

Hopefully someone else will find a use for it.

It's based on the standard Posterize adjustment effect with the following enhancements;

Allows posterization of the Alpha channel

Allows up to 256 variations per channel (i.e. no posterization)

Allows a transparency threshold to be applied (so only transparent or opaque colors can be effected)

30002_45c42d987d296079a5850ae96488b119

PosterizeAlpha.zip

Share this post


Link to post
Share on other sites

As requested here are some sample pics.

The first is to show the 256 option (using opaque colours).

The picture contains 3 sets of color bands (grey, red, green, blue) each varying in intensity from 0 to 255.

The first set of bands is the original showing a smooth progression from black to the relevant colour.

The second set shows the standard Posterize effect applied to this image with Red & Blue set to 16 but Green set to 64 (max value). You can see bands in each strip (especcially at the darker end).

The third set shows the Posterize Alpha effect applied (to opaque colours) with value 16 for red & blue but 256 for Green. The green colour band now has no banding.

30002_01d42221a7414a37093793aa50091386

The second image is to show the transparancy option.

The picture contains 3 sets of solid blocks of colour (blue, green, red, white) each with varying alpha values (0 to 255).

The standard posterize adjustment has no effect on this image!

The first set of bands shows the original with smooth variance of the transparancy.

The second set of bands shows a posterize value of 4 applied to the alpha channel (so there are only four possible alpha values).

The third set of bands shows the transparent only value being applied. The threshold was set at 220. You can see the topmost block has a few colours that have been posterized to fully opaque but the rest (above the threshold) are unchanged

(This can't be viewed inline as it blanks out the tranparancy)

30002_9b0640093205420b39038c479a6b88f3

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this