RetouchPRO

Go Back   RetouchPRO > Technique > Photo Retouching
Register Blogs FAQ Site Nav Search Today's Posts Mark Forums Read


Photo Retouching "Improving" photos, post-production, correction, etc.

Notes on Sharpening

Reply
 
Thread Tools
  #11  
Old 02-14-2009, 06:44 PM
AFrazier's Avatar
AFrazier AFrazier is offline
Senior Member
 
Join Date: Apr 2008
Location: Greenville, South Carolina
Posts: 185
Re: Notes on Sharpening

I read the article. I understand the principle.

Unfortunately, there was a lot more on theory than on how to accomplish the results. I only actually saw one clear "how to," and it is incomplete. It doesn't actually say how to blend the channels to the layers to complete the effect.

A step by step "how to" in this thread would be nice. I'd like to try the technique, but I don't know all the steps. I think a lot of people reading the article will make more sense of it if they can walk through the technique and see what it does, how it works, etc. with their own eyes. All those equations are useless unless you are into the mathematical theory behind the technique and its methodology.
Reply With Quote top
  #12  
Old 02-15-2009, 05:37 AM
igot2pman's Avatar
igot2pman igot2pman is offline
Senior Member
 
Join Date: Sep 2008
Location: San Antonio, TX USA
Posts: 633
Re: Notes on Sharpening

AFrazier,

I feel the same way... but what i assumed was after you did the calculation, you get a grey layer that sort of looks like a high pass layer, you could then set the grey layer to soft light or overlay. Then, adjust the opacity.

hope it helps,
-Keven
Reply With Quote top
  #13  
Old 02-15-2009, 06:34 AM
AFrazier's Avatar
AFrazier AFrazier is offline
Senior Member
 
Join Date: Apr 2008
Location: Greenville, South Carolina
Posts: 185
Re: Notes on Sharpening

That's the closest I've been able to come to applying this version of sharpening. I did the blur, did the calculation, then selected the new alpha channel, copied it from the main screen, pasted it, and converted the blending mode.
In short, the only way I was able to make it work was so similar to a high pass sharpen, I don't see the need for all that extra effort.
If, however, this provides for the "pyramid" mentioned, where multiple levels of sharpening can be had, then it might be worth the effort.

I just need a precise "how to" so I can see if it is worth my while.

I read a few articles on the subject. They are all much like this article. In fact, the equations are even worse. If you aren't proficient in calculus, you might as well skip the read. All any of these articles talk about is the theory behind the method. None of them amply describe the method itself.
Reply With Quote top
  #14  
Old 02-15-2009, 07:23 AM
undavide undavide is offline
Junior Member
 
Join Date: Mar 2006
Location: Bologna, Italy
Posts: 19
Re: Notes on Sharpening

Quote:
Originally Posted by AFrazier View Post
In short, the only way I was able to make it work was so similar to a high pass sharpen, I don't see the need for all that extra effort.
Dear Alex,
I'm sorry if you and others weren't able to walk through all the examples. I did an extensive use of abbreviations and my main intent was to make everything more fluid - maybe I got the opposite effect.

I guess you missed "LL2" or "LL1", which stand for: do a further blending mode in LinearLight; I first suggested 2 different way of doing that, but now it's clear that the correct way to get the layer is to subtract with Offset=128 and Scale=2, and then blend the result (the HighPass-like layer) in LinearLight 100% opacity: this is what I call LL2.

LinearLight is not something that you should substitute with Overlay (for instance), because it's only with LL that the blurred original + the HighPass-like layer that you get back the original - something we must get in order to have later on a correct pyramidal decomposition.

Let me try to help you reading it from the beginning: you're right, the result of a single ORIG-BLUR subtraction is HighPass (LL1, while LL2 it's half the effect but you can forget this now). That's something I had to show first because it is the base of all the theory that follows - and I had to suggest LL2. Obviously the story doesn't end here.

The second step is Difference of Gaussian (DoG): a subtraction between two differently gaussian blurred versions of the original - an intermediate step off the track of traditional sharpening. I've to dig deeper in DoG, but it's something I wanted to show because it's really promising. Next, we start to enter the real play.

The third step is to use a different blurring kernel, for instance Surface blur. Instead of ORIG - GB (that is: HighPass) here the result of the subtraction (ORIG - SB) is *not at all* HighPass, it's something different and you have no way to get that HighPass-like layer but performing the subtraction. Using SB instead of GB keeps edges alone and affects mainly texture. Again, you've to put the layer LinearLight blending mode.

Fourth step is to combine GB and SB, and get a HighPass-like layer (again, something you couldn't get but with the subtraction) that enhances edges alone, and doesn't affect textures.

By now I've showed how to get a tool, an "HighPass-like" layer (to be blended in LinearLight 100% opacity), to boost either edges alone and textures alone. It's a edges OR texture tool, to combine them we've to go ahead.

Then, with pyramid decomposition, as you correctly got, the goal is to use GB, or SB, to have a 3 level (or more) simultaneous sharpening equalizer. It's different from give a picture 3 or more rounds of sharpening with different radii - and that's the why pyramidal decomposition is so interesting.

Finally, recalling that we were able to find a way to direct the sharpening to edges alone od texture alone, I suggest a "mixed" pyramid: it's like a 2 sliders tool/equalizer for sharpening separately texture AND edges.

In doing this I've showed the final Layers and Channels palettes, to help the reader to replicate everything. In all the big pictures, in the caption, I show the radii used to get precisely that effect (DoG, pyramids, etc.)

If you think I should add something more (final or intermediate screenshots, or something else), please suggest me precisely what to add in your opinion and where, in order to increase the usability of the article, and I'll be glad to add it - that's part of the work-in-progress.
Thanks for the feedback and kind regards,

Davide
Reply With Quote top
  #15  
Old 02-15-2009, 12:20 PM
AFrazier's Avatar
AFrazier AFrazier is offline
Senior Member
 
Join Date: Apr 2008
Location: Greenville, South Carolina
Posts: 185
Re: Notes on Sharpening

Okay, I got the concept with the Linear Light. In fact, I tried it. The problem I ran into (because your explanations aren't quite clear enough) was that I couldn't figure out how to maintain the Difference layer while blending in Linear Light. If you try to copy the layer, changing the Blending mode just changes the Blending mode. You can paste a copy of the Alpha channel onto the layers pallette, but it only emphasized edges so long as the image is in Difference Blend mode.
The blur I got. The edges I got. Combining the Calculations result for a Hi Pass-like effect I managed. But it's just not clear how multiple layers are to be built, used, and blended, except to say the Blend mode should be Linear Light in an otherwise non-descript fashion.

In other words, a "step 1 - Create a Duplicate Layer," "step 2 - Change the Blend mode of the Duplicate Layer to Difference," and so on.

We need a step by step. Forget the theory. It's too muddled. Just tell us how to do it. We'll understand the theory better when we can see how it functions with our own eyes.
Reply With Quote top
  #16  
Old 02-16-2009, 02:30 PM
undavide undavide is offline
Junior Member
 
Join Date: Mar 2006
Location: Bologna, Italy
Posts: 19
Walkthrough

Quote:
Originally Posted by AFrazier View Post
We need a step by step. Forget the theory. It's too muddled. Just tell us how to do it. We'll understand the theory better when we can see how it functions with our own eyes.
Dear Alex, as you requested it, here is a step by step walkthrough that follow the article chapters; let me know if it's clear, I'm going to publish it online with the article if I'll get some positive feedbacks. Anyway, I suggest to follow it at least with a copy of the article on the side, there you can find a lot of screenshot that should help - while here I'll cut every theoretical explanation, as you suggested. Proposed radii may vary according to your own picture.

0. Preliminar action.
To deal with color picture, press D (default background/foreground colors, black/white).
Duplicate the background layer, edit->fill: contents Use foreground color (or background, it's the same), blending mode: color.
You got a BW version of the original, (if you put it Luminosity and switch on and off the layer you see no difference)
Use this BW layer to do all the things that follow, I'll call it: "ORIG"

1. Difference study.
Duplicate ORIG, call it BLUR. Apply Gaussian Blur (GB) the radius you want, let's put 10.
Duplicate ORIG again, call it DIFFERENCE and put it on top of BLUR.
With DIFFERENCE selected, Image -> Apply Image, source Layer BLUR, Blending Subtract, Offset 128, Scale 2.
Put DIFFERENCE in LinearLight, clip it to BLUR. If you switch on and off BLUR (and DIFFERENCE as well, being clipped to BLUR) again you see no difference, (which is exciting, uh? ;-)

2. Gaussian sharpening.
Do like in 1. Difference study. At the end, trash BLUR and keep ORIG and DIFFERENCE. You see Gaussian sharpening in action (slightly different from HighPass, which is Subtraction with Scale=1)

3. Difference of Gaussian
Duplicate twice ORIG.
Call the first BlurMax and apply GaussianBlur radius 15.
Call the second BlurMin and apply GaussianBlur radius 4.
Select the BlurMin layer and Image->Apply Image, source Layer BlurMax, Blending Subtract, Offset 128, Scale 2. Put this in LinearLight.
Trash BlurMax. You see DoG in action.

4. Other blurring kernels
Do like 2. Gaussian sharpening, but use SurfaceBlur instead (SB) of GaussianBlur. Texture sharpening tool.

5. Combined use of different blurring kernels.
Duplicate ORIG, call it GB. Filter it with GaussianBlur (radius 5).
Duplicate ORIG, call it SB. Filter it with SurfaceBlur (radius 6, threshold 15).
Select the SB layer, and Image -> Apply Image, source Layer GB, Blending Subtract, Offset 128, Scale 2. Put this in LinearLight.
Trash the GB layer.
This is the edge only sharpening tool.

6. Image decomposition / 7. sharpening equalizer
Duplicate ORIG, call it GB1, filter it with GaussianBlur radius 1
Duplicate ORIG, call it GB2, filter it with GaussianBlur radius 5
Duplicate ORIG, call it GB3, filter it with GaussianBlur radius 25
Duplicate ORIG, call it D1. Image -> Apply Image, source Layer GB1, Blending Subtract, Offset 128, Scale 2. Put this in LinearLight blending mode.
Select GB1, rename it D2. Image -> Apply Image, source Layer GB2, Blending Subtract, Offset 128, Scale 2. Put this in LinearLight blending mode.
Select GB2, rename it D3. Image -> Apply Image, source Layer GB3, Blending Subtract, Offset 128, Scale 2. Put this in LinearLight blending mode.
Set the layers, from bottom to top: ORIG, GB3, D1, D2, D3. Put GB3, D1, D2, D3 in a layerset. switching the set ON/OFF should make no difference.
Now to make things more interesting, clip three identical S-shape curve adjustment layers to D1, D2, D3 (one each) and play with opacity to the curve adjustment layers.

8 Bilateral pyramid.
Do as before (image decomposition), but use SurfaceBlur instead of GaussianBlur.

9 Mixed pyramid.
Duplicate ORIG, call it SB1, apply SurfaceBlur filter (radius 3, threshold 16)
Duplicate ORIG, call it GB1, apply GaussianBlur filter (radius 3)
Duplicate ORIG, call it D1, Image -> Apply Image, source Layer SB1, Blending Subtract, Offset 128, Scale 2. Put this in LinearLight blending mode.
Select SB1, rename it D2, Image -> Apply Image, source Layer GB1, Blending Subtract, Offset 128, Scale 2. Put this in LinearLight blending mode.
Set the layers from bottom to top: ORIG, GB1, D1, D2. Put GB1, D1, D2, in a layerset. switching the set ON/OFF should make no difference.
Now to make things more interesting, clip two identical S-shape curve adjustment layers to D1, D2 (one each) and play with opacity to the curve adjustment layers.

That's it, lot of things to play with! Hope this helps, and again: feedbacks are welcome
Ciao,

Davide

PS
Since we've got a long thread, the link to the article is HERE again.
Reply With Quote top
  #17  
Old 02-16-2009, 04:03 PM
AFrazier's Avatar
AFrazier AFrazier is offline
Senior Member
 
Join Date: Apr 2008
Location: Greenville, South Carolina
Posts: 185
Re: Notes on Sharpening

Still a little complicated, but workable. Let me give it a try. Get back to you soon.

Thanks, by the way, for your patience.
Reply With Quote top
  #18  
Old 02-19-2009, 06:57 PM
bkravchenko's Avatar
bkravchenko bkravchenko is offline
Member
 
Join Date: Dec 2008
Location: Los Angeles
Posts: 33
Re: Notes on Sharpening

Davide, maybe you can help with this concern.

When using surface blur, after two or three adjustments to the sliders, my preview stops rendering the image. This only seems to happen with Surface blur (at least out of the filters that I use). I am working with CS4 on a brand new iMAC i bought a month ago. Maybe its a hardware issue on my part, but I figured this computer is adequate to handle it, its only about a 50MB file at time I run surface blur.

MAC specs:
Processor Name: Intel Core 2 Duo
Processor Speed: 3.06 GHz
Number Of Processors: 1
Total Number Of Cores: 2
L2 Cache: 6 MB
Memory: 2 GB
Bus Speed: 1.07 GHz
Reply With Quote top
  #19  
Old 02-20-2009, 04:00 AM
undavide undavide is offline
Junior Member
 
Join Date: Mar 2006
Location: Bologna, Italy
Posts: 19
Re: Notes on Sharpening

Quote:
Originally Posted by bkravchenko View Post
When using surface blur, after two or three adjustments to the sliders, my preview stops rendering the image. This only seems to happen with Surface blur
To me something like this happened few times, randomly. Try to zoom in/zoom out and check on/check off the preview. I guess the new GPU rendering is messing around sometimes. Let me know if it works!
Ciao,

Davide
Reply With Quote top
  #20  
Old 02-20-2009, 09:39 AM
malart malart is offline
Junior Member
 
Join Date: Oct 2008
Location: Alberta
Posts: 18
Re: Notes on Sharpening

Davide: the link to your article doesn't seem to be working. I would very much like to read it.
Reply With Quote top
Reply

  RetouchPRO > Technique > Photo Retouching


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sharpening, but which one? jtd131 Photo Retouching 6 01-18-2009 10:21 AM
Comprehensive Collection of Sharpening Actions gmitchel Software 3 12-08-2008 07:21 PM
Sharpening Textures gmitchel Photo Retouching 2 11-23-2008 09:59 AM
Portrait Sharpening Action gmitchel Software 8 11-10-2008 04:09 AM
Alpha/Beta Testers Needed for Sharpening Scripts gmitchel Photo Restoration 3 06-18-2005 01:27 PM


All times are GMT -6. The time now is 07:41 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
Copyright © 2016 Doug Nelson. All Rights Reserved