Jump to content
How to Install Plugins ×

Adjustments > Color Dimmer v1.0


Xhin

Recommended Posts

This plugin is all about "dimming" a certain channel, which means desaturating the highest-saturation pixels first and working its way down smoothly. There are also other RGB adjustment algorithms that add fine adjustment.

First, let's look at the menu.

yYx5K.png

((NOTE)): Default settings should have all X-axis's set to 1.00. This makes the image appear as itself. Apologies, since I'm dealing with limitations in Codelab here.

Red -- X axis -- Adjusts the red channel according to the "dimmer" algorithm.

Red -- Y axis -- Adjusts the red channel according to a standard "levels" type algorithm.

Green -- X axis -- Adjusts the green channel according to the "dimmer" algorithm.

Green -- Y axis -- Adjusts the green channel according to a standard "levels" type algorithm.

Blue -- X axis -- Adjusts the blue channel according to the "dimmer" algorithm.

Blue -- Y axis -- Adjusts the blue channel according to a standard "levels" type algorithm.

Proportional Shift -- Alters the Y-axis levels algorithm so the color shift is proportional to the distance between the current value and the max or min values.

If that's confusing for you (it is!), here's a better explanation. If you use the in-built "levels" plugin in, say, red, it will raise or lower the red channel's value globally. So if you have a piece where one section has a red value of 60 and another section has a red value of 200, the "levels" algorithm will raise them both by a fixed amount. So the 60-red will now be 64-red and the 200-red will now be 204-red. More saturated sections will max out at 255, while all other red channels increase by that fixed amount.

The Y-axis of each part of this plugin will follow this algorithm perfectly. However, if you turn on the "proportional shift" option, the channel will instead increase by a proportional amount. 155-red would increase to 205-red, while 55-red would increase to 155-red, because in both cases it's increasing by half the distance to 255.

If you go in the negative direction, the setting would decrease each by its distance to 0, so for example 50-red would decrease to 25-red, while 100-red would decrease to 50-red.

Combined with the fact that black pixels are ignored on the decrease and white pixels are ignored on the increase, this option gives a smoother color transition.

Now, the X-axis algorithm is more complicated. What this does is "dims" a channel by decreasing the saturation, starting with the most saturated pixels and ending with the least. So your 255-reds and 244-reds are the first to be desaturated, while the 30-reds, etc wait until lower settings. The algorithm is set up in such a way that there are no jagged pixels, so this too is a smooth transition.

Combined together, the two algorithms give a fine adjustment of all three channels. I stuck the controls into a double vector so it's easier to make adjustments without switching between sliders.

It's hard to give examples of this plugin's use because the settings can be subtle. Nonetheless:

w6mwM.png

Seed Image

Wotmc.png

"Dimmed" Blue to 38.

POtpI.png

Same as above, but "leveled" blue to 0.47

S845N.png

Same as above, but proportional

mZKCQ.png

Unrelated to the above; increased all levels to the max with "proportional" on.

farC8.png

Also unrelated; decreased all levels to the minimum with proportional on, and then dimmed blue to 0.49

Actual Plugin:

Color Dimmer.zip

xhin.png

Link to comment
Share on other sites

  • 5 years later...

Interesting plugin, but with some settings it leads to crash. Check the 'Proportional Shift' box and set the value of any of the channels to -1, -1. Any next action will result in a crash.

 

I have slightly changed and recompiled a plugin. Now it works as well.

 

dimmer_ui_en.png

 

:arrow-right:  Download

 

  • Like 2
  • Upvote 1
Link to comment
Share on other sites

Excellent! Thank you ReMake.

 

I think you would be best releasing your new version in a new thread. Then we can lock this old one.

  • Like 1
Link to comment
Share on other sites

5 hours ago, Ego Eram Reputo said:

I think you would be best releasing your new version in a new thread.

 

I will think about your offer. Although I have changed only the type of variables in the original plugin.

  • Like 1
Link to comment
Share on other sites

  • 6 months later...
On 10/8/2012 at 6:30 AM, Xhin said:

((NOTE)): Default settings should have all X-axis's set to 1.00. This makes the image appear as itself. Apologies, since I'm dealing with limitations in Codelab here.

Fixed in version 1.2. By default, all X-axis values are set to 1.00.

color-dimmer-ui-2.png

 

:arrow-right:  Download

 

 

On 4/10/2018 at 1:11 AM, Ego Eram Reputo said:

I think you would be best releasing your new version in a new thread.

I'm still not ready for this event. This plugin needs to be improved algorithm. Perhaps when the plugin is finalized, we can open a new thread.

  • Like 3
Link to comment
Share on other sites

  • 1 month later...

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...