Xhin Posted October 8, 2012 Posted October 8, 2012 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. ((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: Seed Image "Dimmed" Blue to 38. Same as above, but "leveled" blue to 0.47 Same as above, but proportional Unrelated to the above; increased all levels to the max with "proportional" on. Also unrelated; decreased all levels to the minimum with proportional on, and then dimmed blue to 0.49 Actual Plugin: Color Dimmer.zip Quote
ReMake Posted April 9, 2018 Posted April 9, 2018 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. Download 2 1 Quote
Ego Eram Reputo Posted April 9, 2018 Posted April 9, 2018 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. 1 Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker
ReMake Posted April 10, 2018 Posted April 10, 2018 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. 1 Quote
ReMake Posted October 11, 2018 Posted October 11, 2018 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. 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. 3 Quote
Seerose Posted October 12, 2018 Posted October 12, 2018 @ReMake! Thank you for sharing, and for your effort. 1 Quote Live as if you were to die tomorrow. Learn as if you were to live forever. Gandhi
ReMake Posted December 11, 2018 Posted December 11, 2018 A small change, added the ability to view the original image. Color Dimmer v1.3.zip 3 Quote
Seerose Posted December 12, 2018 Posted December 12, 2018 @ReMake! Thank you so much for the new version. 1 Quote Live as if you were to die tomorrow. Learn as if you were to live forever. Gandhi
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.