high-pass filter for sharpening pictures?

Ask a Question related to Adobe Photoshop 7, CS, CS2 & CS3, Design and Development.

  1. #1

    Default Re: high-pass filter for sharpening pictures?



    A blurred picture is basicly nothing more than a crisp picture passed
    throught a 2-D low-pass filter of a certain characteristic




    I'm not an engineer, so take that into consideration. I'm not certain that the statement above is 100% true. It seems to imply that no matter how badly a picutre is out of focus, there should be a "counter" algorithm to bring it back into focus.

    If I've got that right, and if this is true, I don't know how this helps us at all. Consider your typical non-digital camera: the variation in focus seems infinite in the possiblilities of the "math" behind why it's out of focus. We use our eye with a little help from the TTL viewfinder to assure an image is in focus, but that value is (or seems that it would be) impossible to produce twice in a row unless the focus was never changed.

    With that in mind, you snap a pic of Aunt Judy at 3 feet away, that would produce a "math value" of X; if you never touch the focus again, it *might* be possible to calculate the algorithm that would counter any out-of-focus issues. However, if you put the camera down, and reposition Aunt Judy to get a profile, the photographer will re-focus, thereby changing the algorithm needed to correct any slight out of focus.

    Taking that a step further, if you always shot out of focus, never changing the focus of the camera, a single step forward or step backward by the subject, would again, change whatever value you were trying to apply, from an algorithm perspective, thereby obviating the whole exercise.

    So, I'm not saying I understand exactly what you're after, but as an engineer, I'm sure you know, theory is WAY different than real life.

    Once the transmission of this filter function is found, it should be easy
    to calculate an inverse transformation to bring back the sharpness,




    In consideration of what I was saying above, I'm not sure that you can EVER find the inverse transformation.

    <shrug>

    Peace,
    Tony
    YrbkMgr Guest

  2. Similar Questions and Discussions

    1. High run queue, high idle cpu percentage
      Hey - I have a werid situation: vmstat shows high r (always r>0, sometimes r>10), but id > 90%. The rest of the values are nominal. Any...
    2. sharpening (and unsharpmask)
      I don't have the time (or energy) to individually and manually sharpen all my images. If I use unsharp mask, is there an ideal setting for all three...
    3. What's best for image sharpening?
      Without much effort I found several image sharpening "programs" that all claim to be the best and work in some unique way. In addition to unsharpen...
    4. Unsharp Mask--Not just for sharpening
      Unsharp mask -- not just for sharpening A friend sent me this URL <http://www.luminous-landscape.com/tutorials/contrast-enhancement.shtml> ...
    5. B&W Pictures + Color Filter
      Hi there, I'm looking at the Pentax Optio's sample pictures at http://www.steves-digicams.com/2003_reviews/optio33l_samples.html Nice effect...
  3. #2

    Default Re: high-pass filter for sharpening pictures?

    Harald,

    You're correct that the high-pass filter can be used for sharpening an image, and it is a pretty common technique in Photoshop even if easily overlooked since "sharpen" isn't part of the tool's name. If you do a Google search on the words/phrases "photoshop", "sharpening", and "hi-pass filter", you'll see links to many sites discussing the technique.

    Adding another comment, now seeing Tony's posting, I'll just add that while theory may differ somewhat from reality, at least the premise of your idea is correct. And, better yet, without worrying about the theory you can simplify it down to exploring use of the hi-pass filter to sharpen your images.

    Regards,

    Daryl
    Daryl Pritchard Guest

  4. #3

    Default Re: high-pass filter for sharpening pictures?

    Harald,

    it´s probably not the forum here for theoretical discusssions.

    In a few words & formulas:

    OI = Original image
    HI = High Pass filtered image
    LI = Low Pass filtered image
    SI = Sharpened image

    SI = OI + HI = 2*OI-LI

    HI = OI - LI

    The factor 2 comes from the fact that a uniformly colored
    image is not affected:
    SI = 2*OI - OI = OI.

    SI should be calculated in one pass. The splitting into two
    filters may cause unnecessary clipping. The FINAL result has
    to be clipped for [0,255] in each channel.
    If users have the impression that High Pass + Original is better
    than direct Sharpening, then this may be a result of different
    implementations of the single filters in PhS (they are not comple-
    mentary).
    Sorry if this shouldn´t be understandable. I have tried to explain it
    by formulas (and it works in practice).

    Best regards --Gernot
    Gernot Hoffmann Guest

  5. #4

    Default Re: high-pass filter for sharpening pictures?

    Focus Magic claims to sharpen via 'unblurring'.
    There's a free demo. Interesting results.
    Enrique Ivern Guest

  6. #5

    Default Re: high-pass filter for sharpening pictures?

    You can sharpen via High Pass.

    See

    <http://www.2morrow.dk/75ppi/coolpix/actions/>

    For example. (Blatant selfpromotion aside - I learned from Bruce Fraser)

    Mathias
    Mathias Vejerslev Guest

  7. #6

    Default Re: high-pass filter for sharpening pictures?

    Well I always knew you could sharpen via high pass, and in fact use Mathias' action every day. I guess I misunderstood the question.

    Sorry for sounding like a dope.
    YrbkMgr Guest

  8. #7

    Default Re: high-pass filter for sharpening pictures?

    Sharpening an image with the High-Pass filter on a duplicate layer with blend mode set to Overlay, Soft Light, or even Hard Light and using that layer's opacity as a control has been so commonly cited that it is difficult to credit any one source.

    While the technique has been passed along from author to author, what I have never seen is an explanation of why it works. A full explanation is probably too tedious for this forum, but here's a broad brush look at the process:

    The high-pass filter does half the job. It determines where the rate-of-change in brightness exceeds a threshold determined by the radius parameter the user selects. At pixel sites where the threshold is not exceeded, a mid-gray (128) value is assigned to that point. When the threshold is exceeded the gray value laid down deviates from 128---upward or downward depending on the sense of the brightness change, with magnitude depending on the rate-of-change detected.

    The blend mode takes over where the High-Pass filter leaves off. They work hand-in-glove. For any of the three blend modes cited---and this is the key idea---the layer has NO EFFECT WHATSOEVER at points where it is mid-gray (most of the image).

    The resulting brightness is increased or decreased from the substrate brightness where the layer brightness value (produced by the High-Pass filter)is higher or lower, respectively, than mid-gray. In close to mid-gray the brightness change is hardly noticeable.

    Thus, you end up exaggerating the contrast across edges, because it is at edges that high rates of change are detected by the High-Pass filter. You mute the blend mode effect via the layer's opacity. You control the filter's effect via the radius.

    You probably should use Soft Light, but if you need extreme sharpening not achievable with Soft Light, Overlay will widen the range of possible effects. The Hard Light range is even greater but, although usable, is not really needed and, unless the opacity is set very low, may give bizarre results.

    George
    George Austin Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139