Skip to main content
Known Participant
March 30, 2017
Question

What *exactly* is Clarity?

  • March 30, 2017
  • 9 replies
  • 23668 views

Hi,

camera raw and lightroom have the slider clarity.

But what exactly is clarity?
Yes I know what it is in principle, its mide ton contrast, but I'm asking for the algorithm to reproduce it in PS.
In the internet you read a lot about its like unsharp mask with large radius and small intensity. But this is true only for small corrections.
When moving the clarity-slider to the extrem right the image looks different. At first it seems that it influences only the luminosity.

But using an upper layer, applying unsharp mask (radius around 100, amount 20% -30%) and combining it with luminance-method looks quite differently.

I tried differenz things. Some come near, but not exaclty. And all what I found in the internet is rubbish and ad hoc thinking.

I need the hard slightly desaturated look when pushing clarity to the extreme.

    This topic has been closed for replies.

    9 replies

    Participant
    August 14, 2018

    Some local tone-mapping algorithm for increasing local contrast.

    Sharpen (convolution or deconvolution) can be seen as a low-quality local tone-mapping algorithm. (I call it low-quality because of ringing effect.)

    jbm007
    Community Expert
    Community Expert
    August 14, 2018

    It has a sharpening function hence the ringing effect if pushed to hard.

    It also crushes the blue end to much, pushing into the purple end of the spectrum.

    thats one of the reasons I use it in LAB mode

    D Fosse
    Community Expert
    Community Expert
    August 14, 2018

    But paper mine has a point - you get exactly the same effect with Unsharp Mask at high radius.

    Personally I hate Clarity and never use it. It always looks over-processed, fake-HDR to me.

    ThomasTAuthor
    Known Participant
    April 5, 2017

    Hi,
    thank you to all replyer.
    So I think my question has been answered.
    The aswer is: clarity is some magic stuff with a history and there exist some approximaitons by using usm with large radius and small amount. At least for lower values of clarity. But the clarity-algorithm itself is keeped a secret.

    ThomasTAuthor
    Known Participant
    March 31, 2017

    Hi,

    actually I mean with *exactly* the concrete algorithm. In a way that I can programm it as a photoshop plugin or standalone image processor etc.
    All what you told is not new for me ;-)

    Its seems nobody except the adobe programmers really have a clue ....

    Regards Thomas

    Stephen Marsh
    Community Expert
    Community Expert
    April 1, 2017

    actually I mean with *exactly* the concrete algorithm.

    Over 10 years ago a company named Pixmantec created a nice piece of software known as RawShooter that was offered in “Essentials” and “Professional” versions. This product offered two “unique” tools – Clarity and Vibrance. A few years later, Adobe purchased Pixmantec and introduced Clarity and Vibrance into Adobe Camera Raw and Lightroom (however the values/numbers in Adobe’s implementation were not exactly the same or interchangeable with the now defunct RawShooter product).

    In a way that I can programm it as a photoshop plugin or standalone image processor etc.

    ThomasT, this is not known outside of the programmers – for good reason! This is known as Intellectual Property, I.P. or otherwise as a trade secret. You have stated that you would like to “recreate” this effect that Adobe purchased when acquiring the assets of Pixmantec.

    As has been stated, the exact code is not known. What is known is the results of using the tool, which can be used to *try* to reverse engineer the results. Many have come “visually very close” using a recipe similar to this:

    • Copy image to new layer
    • Apply a density based mask, often known as a luminosity mask (however the density could be Lightness, channel mixed etc)
    • Curve the luminosity mask into a “U” shape (or an inverted “U” shape depending on your curve display settings), known as a “midtone mask” or “endpoint mask” so that only the midtones are revealed (or using layer blend if sliders to do similar)
    • Optionally soften/blur the mask a little bit
    • Apply USM to the masked image using a small amount and large radius

    P.S. It should also be noted that the results of using the Camera Raw filter on rendered data is quite different when compared to raw camera data.

    ThomasTAuthor
    Known Participant
    April 2, 2017

    No, Clarity is not a “public domain” algorithm such as Gaussian blur.

    think you receipe come close for small amounts of clarity. But when you push Clarity above 80% or so the image become are more graphical look and is desaturated. And in this case I need the look.

    I have tried that recipe on different values, some low and others higher, it is very close up to 50% however I have not really pushed it to 100%. I am sure that you are correct in your observations. At 100% clarity a different sharpening method may be required that is not Gaussian blur based, such as a “difference of medians” or perhaps using a contrast blend mode and desaturation with the USM or something else… I have not bothered trying to recreate the command at maximum value when the built in tool is easier and has far less steps.

    I’m curious (my camera does not shoot video)…

    What file format are you processing? Can you list the exact step by step to apply the Clarity option to this file?

    What happens if you open one of these video frames into Photoshop without applying Clarity in the Adobe Camera Raw module – but then apply the Camera Raw filter from the filter menu to this rendered (non-raw) data? Note the Clarity Filter value used. Then open the same frame in ACR and apply the exact same value to the raw data. Are the two noticeably different in result?


    I process the original DNGs from the blacmagic pocket cam.

    Clarity works identical in both cases. Via eye. I did not check pixelvalue differences.

    Derek Cross
    Community Expert
    Community Expert
    March 30, 2017

    Clarity is for sharpening / softening an image.

    barbara_a7746676
    Community Expert
    Community Expert
    March 30, 2017

    Clarity increases contrast, mostly in the midtones.

    Trevor.Dennis
    Community Expert
    Community Expert
    March 30, 2017

    https://forums.adobe.com/people/Barbara+Ash  wrote

    Clarity increases contrast, mostly in the midtones.

    You beat me to it Barbara, except I was going to say 'local contrast'.  It stretches out the histogram dropping the black point and brightening whites, but tries not to blow highlights.  But if you watch the histogram while dragging the clarity and contrast sliders to the right, the effect is very similar. 

    A trick some people miss is negative Clarity, which is a super easy, and very effective tool for cleaning skin blemishes.  It _tries_ not to soften the blacks too much when doing this, but it is best to do it on a copied layer and mask out the eyes, lashes, hair, lips etc.

    Inspiring
    March 30, 2017

    Haaha! Sure then, dont go over the top while editing.Keep it minimal and i think you will get the desired loo.Keep the clarity sliders on a lower value to maintain natural appearance.

    ThomasTAuthor
    Known Participant
    March 30, 2017

    In this case I want a little unnatural look. Unnatural, but not looking unnatural, if you know what I mean.

    Inspiring
    March 30, 2017

    The clarity slider is an excellent tool for adding punch to images without making them look unnatural. The secret is to get all your primary corrections done first, exposure, color, highlights and shadows but not to touch the contrast. Keep the histogram within limits and then when happy with the result, slowly add in some clarity, keeping one eye on the histogram. Like any tool push it too far and the result will start to look unnatural but used carefully it can add some real sharpness to even the dullest of shots.

    davescm
    Community Expert
    Community Expert
    March 30, 2017

    I don't pretend to know the exact algorithm. But on a practical point, if you want to use clarity in Photoshop, make the layers into a smart object and use Filter - Camera Raw

    Dave