25 Replies Latest reply on Aug 15, 2018 4:31 AM by Paper Mine

    What *exactly* is Clarity?

    ThomasT Level 1

      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.

        • 1. Re: What *exactly* is Clarity?
          davescm Adobe Community Professional

          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

          1 person found this helpful
          • 2. Re: What *exactly* is Clarity?
            Bahaar Khan Level 4

            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.

            • 3. Re: What *exactly* is Clarity?
              ThomasT Level 1

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

              • 4. Re: What *exactly* is Clarity?
                Bahaar Khan Level 4

                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.

                • 5. Re: What *exactly* is Clarity?
                  Barbara Ash Adobe Community Professional

                  Clarity increases contrast, mostly in the midtones.

                  • 6. Re: What *exactly* is Clarity?
                    Trevor.Dennis Adobe Community Professional

                    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.

                    • 7. Re: What *exactly* is Clarity?
                      Derek Cross Adobe Community Professional

                      Clarity is for sharpening / softening an image.

                      • 8. Re: What *exactly* is Clarity?
                        ThomasT Level 1

                        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

                        • 9. Re: What *exactly* is Clarity?
                          D Fosse Adobe Community Professional & MVP

                          You won't get an answer to this unless an ACR engineer comes by.

                           

                          All of the above is correct, with the important distinction the clarity works locally, not globally. I suspect it's related to highlight and shadow recovery, and as such part of the "image adaptive processing". IOW it works according to actual content, not by a general rule.

                          • 10. Re: What *exactly* is Clarity?
                            Stephen_A_Marsh Adobe Community Professional

                            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.

                            2 people found this helpful
                            • 11. Re: What *exactly* is Clarity?
                              ThomasT Level 1

                              Hi,

                               

                              thanks for answering. I actually didn't think that in this process is much more knowledge than to say in a USM or gaussion blur. And this is fully understanded and image processing standards. So I thought Clarity is just a useful combination of such simple steps.

                               

                              I 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.

                               

                              But anyway I processed the ca. 5000 raw video frames in Camera Raw ... (in steps of 500).
                              This is sick ...;-)

                               

                              Thomas

                              • 12. Re: What *exactly* is Clarity?
                                Stephen_A_Marsh Adobe Community Professional

                                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?

                                • 13. Re: What *exactly* is Clarity?
                                  ThomasT Level 1

                                  I process the original DNGs from the blacmagic pocket cam.

                                   

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

                                  • 14. Re: What *exactly* is Clarity?
                                    Trevor.Dennis Adobe Community Professional

                                    ThomasT  wrote

                                     

                                    I process the original DNGs from the blacmagic pocket cam.

                                     

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

                                    I'm guessing that you know you can overlay one version over the other, and set the upper layer to Difference?  Full black indicates identical values.  So the screen shot below shows the background layer copied, and a subtle curves layer clipped to the copied layer.  Where the curves layer is masked it shows full black as expected.  You could use this as a tool to compare and reference.

                                     

                                    Note: the left (edited) side of the image looks darker in my browser (Firefox) than it did in Photoshop.

                                    There are forums our there specialising in the math of image manipulation, and other companies like Topaz and On-One that produce local contrast plug-ins.  Topaz is clever about it as their product range are not so very different from each other, but each one represents another revenue steam.  So, like Stephen has said, it is a big ask to expect them to share their intellectual property.

                                    • 15. Re: What *exactly* is Clarity?
                                      jbm007 Adobe Community Professional

                                      Here is a little inside secret regarding using clarity especially on landscapes.

                                       

                                      many people have probably used clarity on landscape images only to realize that it pushes the blue sky in to un natural colors.

                                       

                                      Here is the best way to use clarity.

                                       

                                      After doing your work in ACR open in PS

                                       

                                      Use the function in PS ACR filter, not when using ACR as primary workflow.

                                       

                                      Change the image mode to LAB.

                                       

                                      Select the "Lightness" channel and then go to the ACR filter in PS.

                                       

                                      Make your adjustments there. Convert back to RGB and you have a image that does not have the blue color shift in it.

                                       

                                      Try it.

                                      • 16. Re: What *exactly* is Clarity?
                                        ThomasT Level 1

                                        When pushed to the extreme (80%-100%) the saturation decreses.
                                        I desated the green-yellow (grass) color. But keeped skin and dress (red-orange) and sky (cyan-blue) untouched.
                                        Clarity was around 85-90%.
                                        venus_hörselberg_gradingtest1_800.jpg

                                        • 17. Re: What *exactly* is Clarity?
                                          jbm007 Adobe Community Professional

                                          There are many work arounds.

                                           

                                          But if you don't want to mess with saturation levels of complex

                                          landscapes, my solution is the most workable.

                                          • 18. Re: What *exactly* is Clarity?
                                            Jeff Schewe Level 5

                                            Stephen_A_Marsh  wrote

                                             

                                            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).

                                             

                                            Actually, while "Vibrance" was indeed a part of Pixmantec, "Clarity" was homegrown by Thomas Knoll. I know this because I was the one who talked him into adding a midtown contrast tool in ACR 4.1 also incorporated "Vibrance"...

                                            • 19. Re: What *exactly* is Clarity?
                                              Stephen_A_Marsh Adobe Community Professional

                                              Thanks Jeff – so much for my memory then (it sometimes feels like each time I learn something new it pushes out something old)!

                                              • 20. Re: What *exactly* is Clarity?
                                                ThomasT Level 1

                                                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.

                                                • 21. Re: What *exactly* is Clarity?
                                                  Paper Mine

                                                  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.)

                                                  • 22. Re: What *exactly* is Clarity?
                                                    jbm007 Adobe Community Professional

                                                    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

                                                    • 23. Re: What *exactly* is Clarity?
                                                      D Fosse Adobe Community Professional & MVP

                                                      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.

                                                      • 24. Re: What *exactly* is Clarity?
                                                        jbm007 Adobe Community Professional

                                                        True

                                                         

                                                        But is depends on the subject matter.

                                                         

                                                        Its biggest issue is that it is like a blunt knife.

                                                         

                                                        Hard to control what it does if its not limited in its use.

                                                        • 25. Re: What *exactly* is Clarity?
                                                          Paper Mine Level 1

                                                          I prefer Dehaze than Clarity to avoid photos look like over-sharpened.