Popular Post TechnoRobbo Posted July 25, 2015 Popular Post Share Posted July 25, 2015 TechnoRobbo's Portrait Retoucher So you took the perfect selfie but forgot to put on your makeup? There's no need fear, TR's Portrait Retoucher is here! Take years off your photo - instantly reduces blemishes. Very Intuitive controls. All for one low easy payment of $0.00 USD *Shipping and handling not included. Menu: Effects -> Photo https://www.dropbox.com/s/59c1km27c111rws/merkelRetouch.png?raw=1 TRsRetouch.zip CodeLab Source Code Hidden Content: // Submenu: Photo // Name: TR's Portrait Retouch // Title: TR's Portrait Retouch- v1.0 // Author: TechnoRobbo // URL: http://www.technorobbo.com #region UICode int Amount1 = 10; // [3,20] Amount double Amount2 = 0; // [0,1] Diffusion int Amount3 = 8; // [0,64] Brightness double Amount4 = 2; // [0.5,2] Reduce Detail #endregion private ColorBgra ClampMe(ColorBgra x,int plus) { int nR = x.R + plus, nG = x.G + plus, nB = x.B + plus; nR = (nR > 255)?255:nR; nG = (nG > 255)?255:nG; nB = (nB > 255)?255:nB; return ColorBgra.FromBgr((byte)nB,(byte)nG,(byte)nR); } void Render(Surface dst, Surface src, Rectangle rect) { GaussianBlurEffect blurEffect = new GaussianBlurEffect(); PropertyCollection bProps = blurEffect.CreatePropertyCollection(); PropertyBasedEffectConfigToken bParameters = new PropertyBasedEffectConfigToken(bProps); bParameters.SetPropertyValue(GaussianBlurEffect.PropertyNames.Radius, Amount1); blurEffect.SetRenderInfo(bParameters, new RenderArgs(dst), new RenderArgs(src)); blurEffect.Render(new Rectangle[1] {rect},0,1); ColorBgra cp,ct; for (int y = rect.Top; y < rect.Bottom; y++) { if (IsCancelRequested) return; for (int x = rect.Left; x < rect.Right; x++) { cp = src[x,y]; ct = dst[x,y]; double k = (1 - Math.Pow(cp.GetIntensity(), Amount4)) * (1 - Amount2); ct.R = (byte)(k * (double)cp.R + (double)ct.R - k * (double)ct.R); ct.G = (byte)(k * (double)cp.G + (double)ct.G - k * (double)ct.G); ct.B = (byte)(k * (double)cp.B + (double)ct.B - k * (double)ct.; ct.A = (byte)cp.A; dst[x,y] = ClampMe(ct, Amount3); } } } 11 Quote Go out there and be amazing. Have Fun, TRSome Pretty Pictures Some Cool Plugins Link to comment Share on other sites More sharing options...
TechnoRobbo Posted July 25, 2015 Author Share Posted July 25, 2015 PDN 3.5 compatible Quote Go out there and be amazing. Have Fun, TRSome Pretty Pictures Some Cool Plugins Link to comment Share on other sites More sharing options...
midora Posted July 25, 2015 Share Posted July 25, 2015 No contact to NSA to install it on her mobile? ;-) Quote Link to comment Share on other sites More sharing options...
Eli Posted July 25, 2015 Share Posted July 25, 2015 Thanks TR, and glad to see you back coding. The effect adds warmth and glamour to pictures it also adds softness skin textures. Quote Link to comment Share on other sites More sharing options...
TechnoRobbo Posted July 25, 2015 Author Share Posted July 25, 2015 NSA had the selfie as soon as she took it. Darn it , I forgot to post the code. Eli, you ain't seen nothing yet. Quote Go out there and be amazing. Have Fun, TRSome Pretty Pictures Some Cool Plugins Link to comment Share on other sites More sharing options...
Red ochre Posted July 25, 2015 Share Posted July 25, 2015 Downloading. Thanks TR, and glad to see you back coding. Seconded - not that you ever stopped! Eli, you ain't seen nothing yet. Sounds promising! 1 Quote Red ochre Plugin pack.............. Diabolical Drawings ................Real Paintings Link to comment Share on other sites More sharing options...
racerx Posted July 25, 2015 Share Posted July 25, 2015 Excellent Plugin (as always) TR. Bummer that I had to crank up the "Amount" to blur out my wrinkles on my tired old skin..... Quote Link to comment Share on other sites More sharing options...
nitenurse79 Posted July 25, 2015 Share Posted July 25, 2015 Thank you Mister Techno Robbo. I can puit this to good use Quote Link to comment Share on other sites More sharing options...
TechnoRobbo Posted July 25, 2015 Author Share Posted July 25, 2015 Thanks racerx - I'm sure your aging gracefully Your Welcome Miss Nite Nurse 79, obviously you won't use it on your selfies. Quote Go out there and be amazing. Have Fun, TRSome Pretty Pictures Some Cool Plugins Link to comment Share on other sites More sharing options...
Pixey Posted July 26, 2015 Share Posted July 26, 2015 Yay - just what I needed. Now downloaded and ready to try. Much appreciated Mr. Techno and thank you . Quote How I made Jennifer & Halle in Paint.net My Gallery | My Deviant Art "Rescuing one animal may not change the world, but for that animal their world is changed forever!" anon. Link to comment Share on other sites More sharing options...
barbieq25 Posted July 26, 2015 Share Posted July 26, 2015 Nice selfie TR! Thanks so much for the effort you put in to writing another brilliant code! Quote Knowledge is no burden to carry. April Jones, 2012 Gallery My DA Gallery Link to comment Share on other sites More sharing options...
TechnoRobbo Posted July 26, 2015 Author Share Posted July 26, 2015 Yay - just what I needed. Now downloaded and ready to try. Much appreciated Mr. Techno and thank you . Your welcome Pixey, one tip lower detail is more effective than any other setting. Nice selfie TR! Thanks so much for the effort you put in to writing another brilliant code! Thanks barbieQ - Selfie? That's actually Angela Merkel in the pic. This is me https://www.dropbox.com/s/klwc3swv5dj9r7g/Selfie.JPG?raw=1 1 Quote Go out there and be amazing. Have Fun, TRSome Pretty Pictures Some Cool Plugins Link to comment Share on other sites More sharing options...
DrewDale Posted July 26, 2015 Share Posted July 26, 2015 Interesting new plugin TR. I was getting worried that you had not made one for a few weeks. Thank you for this Quote Link to comment Share on other sites More sharing options...
TechnoRobbo Posted July 26, 2015 Author Share Posted July 26, 2015 Thanks DD, there is a new plugin from the Dwarf Horde that's taken most of my programming time. It will be available soon. Quote Go out there and be amazing. Have Fun, TRSome Pretty Pictures Some Cool Plugins Link to comment Share on other sites More sharing options...
Seerose Posted July 27, 2015 Share Posted July 27, 2015 For my wrinkles I do not need more iron use! TechoRobbo! Thank you so much for the plugin and for your effort. You are still too young. Quote Live as if you were to die tomorrow. Learn as if you were to live forever. Gandhi Link to comment Share on other sites More sharing options...
Pixey Posted July 27, 2015 Share Posted July 27, 2015 Hey - you are a really nice looking chap @TR . This Plugin is really cool. Here is my attempt and I also used a bit of the clone stamp to get her blouse back to a darker color. Quote How I made Jennifer & Halle in Paint.net My Gallery | My Deviant Art "Rescuing one animal may not change the world, but for that animal their world is changed forever!" anon. Link to comment Share on other sites More sharing options...
TechnoRobbo Posted July 27, 2015 Author Share Posted July 27, 2015 Your Welcome Seerose. Hey - you are a really nice looking chap @TR . meh Bridget Bardot = classic beauty. Quote Go out there and be amazing. Have Fun, TRSome Pretty Pictures Some Cool Plugins Link to comment Share on other sites More sharing options...
Maximilian Posted July 28, 2015 Share Posted July 28, 2015 Cosmetics department is working fine. Facial evidence of the passing of the times, i.e. wrinkles on forehead, are gone, while preserving some of the sexy freckles above lips Thanks, TR! Quote Link to comment Share on other sites More sharing options...
Eli Posted July 28, 2015 Share Posted July 28, 2015 TR, the effect needs some adjustments. I was unable to remove the wrinkles without loosing hair detail. Thanks, TR! Quote Link to comment Share on other sites More sharing options...
TechnoRobbo Posted July 28, 2015 Author Share Posted July 28, 2015 @Eli - No way. Is that real?@Maximillian why so blue, cheer up. POST EDIT: That dogs wearing a costume Quote Go out there and be amazing. Have Fun, TRSome Pretty Pictures Some Cool Plugins Link to comment Share on other sites More sharing options...
racerx Posted July 30, 2015 Share Posted July 30, 2015 (edited) Most users here probably already know this, but for those that don't...... When working with these types of filters, you don't usually don't want to apply it to the whole image as it looses too much detail. Instead it's better to work with layers and masks to apply it only where it is needed. Example: 1) Duplicate image layer and apply filter to lower layer as needed. Deselect top layer for visibility. 2) Re-Select top layer and use the "Eraser" tool with about 25% softness to erase away lines and wrinkles where needed. 3) Merge layers. Edited July 30, 2015 by racerx 1 Quote Link to comment Share on other sites More sharing options...
TechnoRobbo Posted July 30, 2015 Author Share Posted July 30, 2015 nice clickable graphic!!!! Quote Go out there and be amazing. Have Fun, TRSome Pretty Pictures Some Cool Plugins Link to comment Share on other sites More sharing options...
racerx Posted July 31, 2015 Share Posted July 31, 2015 nice clickable graphic!!!! I made it with midora's excellent Animated Images plugin. I set duration=2000ms, dither=7. Quote Link to comment Share on other sites More sharing options...
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.