Jump to content
How to Install Plugins ×

Posterize in HSV Space


MJW

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

Link to comment
Share on other sites

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

 

The Doctor: There was a goblin, or a trickster, or a warrior... A nameless, terrible thing, soaked in the blood of a billion galaxies. The most feared being in all the cosmos. And nothing could stop it, or hold it, or reason with it. One day it would just drop out of the sky and tear down your world.
Amy: But how did it end up in there?
The Doctor: You know fairy tales. A good wizard tricked it.
River Song: I hate good wizards in fairy tales; they always turn out to be him.

Link to comment
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 .

Link to comment
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.
Link to comment
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.

×
×
  • Create New...