Sign in to follow this  
Followers 0
MJW

Posterize in HSV Space

5 posts in this topic

Often when I use posterize, I'm annoyed by the color shifts that occur because the truncation shifts the relationship between r, g, and b. In an attempt to reduce the problem, I wrote a CodeLab plugin that converts the color into HSV space, truncates the values, then converts back to RGB.

Each component (hue, saturation, and value) can individually be selected to be posterized or not. Posterizing only the value is probably the closest to normal posterization.

Following the philosophy that what's worth doing is worth overdoing, I added individual level controls for each of the 6 primary colors of light and pigment. For example, there can be 8 levels of red values and only 2 levels of blue values. To avoid the tedium of setting each value separately, there's also minimum level control for each component. This control overrides any individual control set to a smaller value, so it can act as a master control.

The 6 color sections are normally centered on their associated color, but the offset angle can be set plus or minus 30 degrees. This is occasionally useful to achieve a better picture.

Here is the DLL:PosterizeHSV.zip

0

Share this post


Link to post
Share on other sites

This is very cool! Excellent work. I'm a fan of your plugins.

0

Share this post


Link to post
Share on other sites

nice rather long ui only thing that its really missing is perhaps some reset to default levels buttons for entire sections. (I know there are the individual ones along side each slider)

:wink: I'm going to need some example pictures on how this works.

ciao thanks for thinking of us all and sharing your work.

OMA .

0

Share this post


Link to post
Share on other sites
nice rather long ui only thing that its really missing is perhaps some reset to default levels buttons for entire sections.
The user interface is almost ridiculously long, I admit. I'm not sure how to reset multiple controls in CodeLab plugins. Sometime soon, I hope to have time to explore writing plugins directly with Visual Studio C# Express. That'd give me more flexibility in implementing user interfaces.
0

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  
Followers 0