Tanel Posted January 15, 2008 Posted January 15, 2008 (edited) This plugin extracts a color range from image, by leaving pixels of selected color opaque and making the rest transparent. Only alpha values are altered, color remains intact. It is useful if you need to edit certain colors on your image separately: duplicate the image layer and run the plugin to get color-based "selection" for further editing. It is more flexible than Magic Wand or Curves+ which could provide similar results but not always exactly as needed. Menu location: Effects > Photo. Download as part of my plugin pack. Updated to version 2.2 (2008-12-24)! Changes: few UI and code optimizations; moved to Color submenu. Updated to version 2.1 (2008-08-31)! - Compatibility fix for paint.net 3.36 Changes in v2 (2008-01-23): - Effect is now located in Adjustments menu - Added check box "Override Original Alpha" (see details below) - Few minor bugfixes Use the six color controls (on top) to define your color selection, and three adjustment controls (on bottom) to adjust the output. For ease of use, the default color range is defined around primary color. So I suggest to use color picker tool before starting the plugin. Check box near each color control defines whether you restrict color by this parameter or not. Unchecking equals to selecting the full range. Tolerance control makes alpha to fade off gradually, based on color's similarity to selected color. Max tolerance makes full alpha gradient from selected color to it's opposite (for example from full bright to full dark, if brightness from 255 to 255 is selected). Feather control softens edges by blurring alpha channel by selected radius. I recommended to adjust this after all other controls are set, due to heavy impact on processing speed. Base Opacity control adjusts alpha of "non-selected" color. Invert Alpha check box inverts final alpha. Override Original Alpha check box controls how to handle originally transparent/semitransparent pixels: - unchecked (default) -> transparent pixels remain transparent, even if pixel's color match your selected color - checked -> transparent pixels turn opaque if pixel's color match your selected color Reset button returns to default setting (that is: color range from primary color and other controls zero). Note: greyscale pixels are also treated as color, defined by Hue=0, Saturation=0. Example: here I attempted to extract skin tones from the photo. I started with color picker tool and clicked in the middle of his raised arm to get a good color sample. Then opened the plugin, adjusted the color range a bit, finally feathered by amount of 4. Screenshot: You can learn the behaviour of this plugin on my test image, containing hue, saturation and brightness gradients: link. Tip: Feather, Base Opacity and Invert Alpha can be also used independently from color controls (with unchecked Hue/Sat/Brigh); so you may find alternative uses: - Feather - Base Opacity: to "un-erase" erased areas - Invert Alpha: to invert opacity Enjoy! Edited November 26, 2018 by toe_head2001 Restored images Quote
Ash Posted January 15, 2008 Posted January 15, 2008 Awesome! Thanks! Quote All creations Ash + Paint.NET [ Googlepage | deviantArt | Club PDN | PDN Fan ]
Tanel Posted January 15, 2008 Author Posted January 15, 2008 quick note: I fixed a little UI appearance problem (related to win xp theme) about 10 minutes ago, you may want to re-download (clean your browser cache before that). Quote
Ash Posted January 15, 2008 Posted January 15, 2008 Can you put it in either Effects->Adjustment ? or Effects->Colors ? or If you can think of a better place? Thanks. Quote All creations Ash + Paint.NET [ Googlepage | deviantArt | Club PDN | PDN Fan ]
Tanel Posted January 15, 2008 Author Posted January 15, 2008 Can you put it in eitherEffects->Adjustment ? or Effects->Colors ? or If you can think of a better place? Thanks. I couldn't make my mind on that, so I left it in Effects menu. Maybe I have better idea after some more user comments... Quote
MiguelPereira Posted January 15, 2008 Posted January 15, 2008 really nice just a thing what about an UI like the Conditional Hue\Saturation? you know with the color wheel to show the range.. oh yeah and Adjustments menu too, if you don't mind... Thanks Quote [The stock on my sig is a photo I took not a render from Splatter] [My deviantART][My Gallery][My Space]
david.atwell Posted January 15, 2008 Posted January 15, 2008 This is really stinkin' cool, Tanel. :-) Quote 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.
ncfan51 Posted January 15, 2008 Posted January 15, 2008 Yeah, what he said. :shock: Finally, a way to cut out antialiased images fast*! *Key word. Quote +_+_+_+_+_+_+_+_+_+_+_+ I am a disco dancer. +_+_+_+_+_+_+_+_+_+_+_+
Fisherman's Friend Posted January 16, 2008 Posted January 16, 2008 Effects->Colors ?or If you can think of a better place? Thanks. Wouldn't it be "Color" (without "s")? (I just want to avoid to have two submenus with the same meaning.) I don't care where this fine plugin is located, but I don't think it's an adjustment. Quote
Geoff Posted January 16, 2008 Posted January 16, 2008 Tanel, nice update and great improvements from "Tone Picker", glad to see you took my advice and added the "feather" effect to your plug-in . Geoff Quote
Tanel Posted January 16, 2008 Author Posted January 16, 2008 just a thing what about an UI like the Conditional Hue\Saturation?you know with the color wheel to show the range.. I'm a fan of that color wheel - angle control too, but this is Evan's own creation and I don't want to rip off his code.oh yeah and Adjustments menu too, if you don't mind...I tend to agree on Adjustments menu, seems to be more relevant than Effects. I will change it together with other possible fixes in a week or so. Quote
MiguelPereira Posted January 17, 2008 Posted January 17, 2008 I'm a fan of that color wheel - angle control too, but this is Evan's own creation and I don't want to rip off his code. isn't that what open source is? something you can use to your own work by 'inspiration' from the work of others, without abusing it of course... Quote [The stock on my sig is a photo I took not a render from Splatter] [My deviantART][My Gallery][My Space]
barkbark00 Posted January 17, 2008 Posted January 17, 2008 I don't think Conditional Hue and Saturation's source was released. Quote Take responsibility for your own intelligence. 😉 -Rick Brewster
Tanel Posted January 17, 2008 Author Posted January 17, 2008 I don't think Conditional Hue and Saturation's source was released.Yes it is, here: http://www.evanolds.com/pdnhs.htmlBut it is still quite over my head. :? Quote
barkbark00 Posted January 17, 2008 Posted January 17, 2008 Ah, sorry. I was looking at the plugin thread... Anyway, great plugin on your part, Tanel! That color wheel would be nice, but I can live without it! Quote Take responsibility for your own intelligence. 😉 -Rick Brewster
Ash Posted January 17, 2008 Posted January 17, 2008 Please keep the UI as it is, it's very easy to work with and different then Con/Hue/Sat. Quote All creations Ash + Paint.NET [ Googlepage | deviantArt | Club PDN | PDN Fan ]
Fisherman's Friend Posted January 17, 2008 Posted January 17, 2008 Please keep the UI as it is, it's very easy to work with and different then Con/Hue/Sat. Seconded. The current UI is rather a + than a -. Quote
barkbark00 Posted January 18, 2008 Posted January 18, 2008 Please keep the UI as it is, it's very easy to work with and different then Con/Hue/Sat.Personally, I disagree. At first use, trying to figure how to select your desired color range takes way too long. I think Conditional Hue/Sat makes the whole color range selection thing way more discoverable.Once you get past that, this plugin is one of the best plugins ever...just to be clear. Quote Take responsibility for your own intelligence. 😉 -Rick Brewster
The_Lionhearted Posted January 18, 2008 Posted January 18, 2008 Please keep the UI as it is, it's very easy to work with and different then Con/Hue/Sat.Personally, I disagree. At first use, trying to figure how to select your desired color range takes way too long. I think Conditional Hue/Sat makes the whole color range selection thing way more discoverable.Once you get past that, this plugin is one of the best plugins ever...just to be clear. I concur. I like Conditional Hue/Sat's UI...like barkbark00 mentioned, good stuff. That being said, it's your plugin and you are free to do whatever you like with it. Beggars can't be choosers...we're just lucky to have it! Quote My Gallery
Tanel Posted January 18, 2008 Author Posted January 18, 2008 I'm going to keep current UI at this point. Though I agree it's not easy for beginners. Quote
Deborah Posted January 23, 2008 Posted January 23, 2008 The downside of the Conditional Hue/Sat UI is that you can't select shades (black/white/gray). For that reason I prefer the current UI. Great plugin. Quote
Tanel Posted January 23, 2008 Author Posted January 23, 2008 Hi, I have made few improvements, please upgrade! Download link in 1st post. Changes in v2: 1) Effect is now located in Adjustments menu. 2) Fixed a bug caused by PDN's Gaussian Blur misbehaviour. Semitransparent areas are now feathered correctly. 3) Added check box "Override Original Alpha". This controls how to handle originally transparent/semitransparent pixels: - unchecked (default) -> transparent pixels remain transparent, even if pixel's color match your selected color. - checked -> transparent pixels turn opaque if pixel's color match your selected color. This is useful if a layer contains erased areas: you can decide wheter to keep those intact or not. BTW, note that Feather, Base Opacity and Invert Alpha can be also used independently from color controls (with unchecked Hue/Sat/Brigh); so you may find alternative uses: - Feather (without mishandling semitransparent areas -> bug in current Feather and Gaussian Blur Channel effects) - Base Opacity to "un-erase" erased areas - Invert Alpha to invert opacity Quote
bEPIK Posted May 2, 2008 Posted May 2, 2008 I like the colour wheel but agree with Deborah, so why not mix them? (I have no coding experience so I don't know if it's possible or difficult to make this UI) Pros - Smaller window (71% of original size), has colour wheel, can still choose brightness, can still fine tune Cons - Takes time to make Thanks for the plugin Quote Water, Wood and Hair Tutorial
BoltBait Posted May 2, 2008 Posted May 2, 2008 I would rather see the From and To values on the screen at the same time. That way my brain can comprehend the range that I'm working with. Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game
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.