Sign in to follow this  
MJW

Posterize in HSV Space

Recommended Posts

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

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 .

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this