  pog Premium join:2004-06-03 Kihei, HI
·Hawaiian Telcom
2 edits | [FYI] Pog's Color Filtrator v.03 alpha...
EDIT: I've uploaded an updated version in this thread: »Re: [FYI] Pog's Color Filtrator v.032 alpha...
Yeah... I had an idea about using specific hue ranges to make cool b&w images. It didn't pan out... but I learned a lot about light and why digital imagery may never fully replace film AND color optical filters. Not saying digital can't be good... but it can never be the same. It's a long story... and I've only started to scratch the surface, really.
Anyway, while coding my idea I changed gears and produced a selective desaturation tool. It's called "Pog's Color Filtrator".
This is a Photoshop filter plugin (*.8bf). It will work with most Windows applications that can host these (PSP, Photopaint, etc). If you want to try it out, just extract the single file in the zip and save it in your image program's filter directory. You may need to restart your application.
This is not commercial software and there are no warranties or guarantees. However, it is free to use without royalties of any kind.
Now... to explain what this plugin does: color selection is done in HSL space (hue, saturation and lightness). The user specifies a target HSL value (mean) and a variance (range) for each. Normal (aka Gaussian) distribution is used to decide what pixels are to affected. The "effect" slider goes into negative territory to desaturate pixels that fall inside the distribution. A positive "effect" desaturates pixels outside the distribution. The "blend" slider dictates how much of the "effect" there should be vs the original image.
The effect itself is done in Lab space using double precision floating point math. The L channel is left untouched and saturation is not increased anywhere... so no need to worry about going out of gamut.
The coolest part, IMO, is that you can right click in the preview window to set the HSL values quickly and accurately. 
 screenshot
 PENTAX *ist DS 0mm 1/400th F4 ISO3200 before
 PENTAX *ist DS 0mm 1/400th F4 ISO3200 after
edit: download deleted... see new version. link above
Let me know if you find any bugs or have any difficulties. Later on, if I again find the time and impetus, I will add a way to selectively increase saturation and lightness... and to perhaps selectively shift hues.
Heh... I'm sure Photoshop itself can do all of this easily already. I don't have Photoshop, though... and I get to say I did it my way. LOL!
Enjoy!  -- My Site |
|
  pog Premium join:2004-06-03 Kihei, HI
·Hawaiian Telcom
| Here's another example:
 PENTAX *ist DS 18mm 1/90th F11 ISO200 before
 PENTAX *ist DS 18mm 1/90th F11 ISO200 after "a"
 PENTAX *ist DS 18mm 1/90th F11 ISO200 after "b"
Feel free to post your own before/after shots...  -- My Site |
|
  CCat Purrplexity Premium join:2005-12-06 Wonderland
·RoadRunner Cable
·WOW Internet and C..
1 edit | reply to pog I have to have my monitor set to 800x600 res. Your plugin gets cropped at that setting. Havent played with it at a higher res yet. Looks promising.
Edit: Have to play with it some more to figure how the settings work. -- Sometimes My Mind Wanders.....Other Times It Leaves Completely!
|
|
  BulldogXTRM BulldogXTRM Premium join:2001-09-28 Gonzales, LA clubs: 
·Eatel
| reply to pog
 Canon EOS 20D 70mm 1/250th F6.3 ISO400
Original |  Canon EOS 20D 70mm 1/250th F6.3 ISO400
With Pog's Color Filtrator |
I always look forward to your actions and filters. This is an awesome tool that I will probably use quite often, especially since this is a common effect that is sometimes difficult to achieve. -- Sgt. [BBR]BulldogXTRM--Bulldog Extreme Systems |
|
  CCat Purrplexity Premium join:2005-12-06 Wonderland 1 edit | reply to pog Reset res to 1024x768 and it shows fine
Edit: Thanks |
|
  Alex Debris See Right There...A Froggie Premium join:2004-06-18 Clawson, MI
| reply to pog Great stuff from a great programming mind 
This will be used for sure...
AD -- »www.pbase.com/alexdebris |
|
  dogWhite Premium join:2005-01-09 Magna, UT
| reply to pog
 NIKON D70 27mm 1/1th F6.3 ISO200
Original |  NIKON D70 27mm 1/1th F6.3 ISO200
Pog Filtered |
The filter was easy to use and worked very well. Nice work! |
|
  Nezmo The name's Bond. James Bond. Premium,MVM join:2004-11-10 Coppell, TX | reply to pog How cool. Thanks for letting us use this pog . |
|
  jaykaykay 4 Ever Young Premium,MVM join:2000-04-13 Scottsdale, AZ | reply to pog Another fantastic tool. Thank you so much. I can't wait to play. |
|
  mromero Premium join:2000-12-07 Los Angeles, CA | reply to pog This is an awesome tool! Thanks! |
|
  emk1028 Premium join:2006-04-23 Douglassville, PA
| reply to pog
 SONY MAVICA 25mm 1/125th F4 ISO80
original |  SONY MAVICA 25mm 1/125th F4 ISO80
POGGED ;) |
Thank you pog!! This is sooo cool!! I now have a pogged butterfly  |
|
  pog Premium join:2004-06-03 Kihei, HI
·Hawaiian Telcom
| reply to pog Re: [FYI] Pog's Color Filtrator v.032 alpha...
Instead of adding a bunch of things, like hue shift, etc... I decided to see if masking would work. It takes a fine touch to avoid a lot of harsh fringing... but I figure having a mask would open up a lot more doors already available in most editors. It will also make it easy to select multiple colors... just run the filter on duplicate layers.
Also added a cross hair for the cursor during selection in the preview. The selection occurs when the right button is released.
 original test image
I used this image in testing... a bit better than a random photo which may or may not have as many colors, etc.
 isolate a specific blue
- I right clicked on the blue square which sets mean hue, mean saturation and mean lightness. - I wanted a narrower tolerance for hue, so I lowered the hue range. Hue is measured in degrees but for simplicity I have the control go from 0.000 to 1.000. It's the same as 0-360 degrees. - a range of "1.000" more than covers the entire range available and I wanted to select only blues that were highly saturated. The saturation sliders above mean "select pixels that have a saturation of 73.6% to 100%" - the lightness selection means 0.572 +/-0.027. In most (all?) spaces with a Lightness channel, it's important to know that 100% lightness is out of gamut if there's any color. 100% lightness in RGB works out to white. - most of all, this is really more vision-based selection than calculation.
 mask a specific blue
- This is the same as before but I clicked the "mask" checkbox. This can't work unless you're on a layer that has an alpha channel. A message box pops up if there's a problem. - The blend slider turns into a "gain" slider. Transparency needs to be a bit harsher sometimes, so the gain slider can help with this. It's linear and the results can be severe at full strength (jagged, etc).
 inverse mask a specific blue
- this is the same as above, except the effect slider has moved all the way to the left. - note that the result is not the exact opposite. I'd like it to be... maybe I will figure out where I goofed. Probably with the "gain".
 mask specific saturation
- setting the ranges for hue and lightness allows me to select based on saturation. The settings for saturation say "select pixels that have 0-2.7% saturation". Sometimes, what we see as pure gray is not perfectly gray and has some saturation in it. - note how harsh the selection is... this is the gain ramped up high, mostly.
 isolate specific range of green
- here, more seriously, I want to isolate a certain set of greens. It's pretty smooth IMO... output below.
 isolate specific range of green output
 pog_color_fi···lpha.zip 98765 bytes zipped 8bf plugin
download the filter here. The instructions are the same as the original post. Have fun!
Don't forget to post your before/after shots... I'd love to see them!  -- My Site |
|
  altermatt Premium join:2004-01-22 White Plains, NY
·Verizon Online DSL
1 edit | Incredible work, pog; as always, thanks. I particularly appreciate the "tutorials"; I'm still using some of your other filters at default settings because I'm a tad unsure about what everything does .
And fabulous examples, everyone. Can't wait to play. -- The truth of a thing is the feel of it, not the think of it. -- Stanley Kubrick |
|
 Acidbaby
join:2004-06-01 Shamokin, PA
·Service Electric B..
2 edits | reply to pog Re: [FYI] Pog's Color Filtrator v.03 alpha...
I just want to say THANK YOU pog.
I am a Photoshop newbie but I love to play around with it and learn as I go. I have never divulged into filters or actions much but I am thinking I should try some out.
Now I need to get an action for framing and watermarking my pics.
Original picture is not mine. Just played around with it a bit. |
|
  Wyattx17 Wyatt Premium join:2004-04-21 Stockton, CA | reply to pog Wow pog Thanks so much for your incredible work!! |
|