Technique: Local Auto Levels

Started Oct 7, 2007 | Discussions
thejaybird
Senior MemberPosts: 2,498
Like?
Technique: Local Auto Levels
Oct 7, 2007

In a previous thread:
http://forums.dpreview.com/forums/read.asp?forum=1031&message=25006158

I promised to explain a technique I've been using on my images. I've put together a tutorial presentation to demonstrate it in detail, and decided to post it here for the benefit of others who might have an interest.

http://docs.google.com/TeamPresent?fs=true&docid=df7tj2cm_11ccskpm

There's also an action available at ActionCentral under the name "Local Contrast":

http://www.atncentral.com/download.htm#Local_Contrast

Best Regards,
Jay

CityLights
Forum ProPosts: 12,536
Like?
Very nicely presented. Thank you! (NT)
In reply to thejaybird, Oct 7, 2007
Reply   Reply with quote   Complain
Pam R
Veteran MemberPosts: 3,421
Like?
Re: Technique: Local Auto Levels
In reply to thejaybird, Oct 7, 2007

Hi Jay,

I won't pretend to understand how this works...my eyes glazed over when the math came up on your presentation ; ) I only know it works fantasically. Thank you sooooo much for sharing this excellent action! Your presentation was very well done also. I just have to look it over a couple more times for it to sink into my thick head : )

Thanks a ton!!

-- hide signature --

Pam
http://www.pbase.com/pam_r
'art is working on something 'til you like it...then leaving it that way'

Reply   Reply with quote   Complain
Kent C
Forum ProPosts: 25,803
Like?
Re: Technique: Local Auto Levels
In reply to thejaybird, Oct 7, 2007

Thanks! Great technique and thanks for explaining the math involved.

One possible monkey wrench in the works would be the different settings of people in the 'options' dialog in levels, since that is how 'auto' is defined. I'm guessing you have yours set to "enhance per channel contrast" with "snap neutral midtones" unchecked. At least I think that's what the adobe default is. I have mine set to find 'dark & light colors' with 'snap neutrals' checked as I've found only autocolor is useful in the past - plus the creativepro article on it
--
Kent

http://www.pbase.com/kentc
tutorial archive:
http://porg.4t.com/KentC.html

Reply   Reply with quote   Complain
Pictus
Veteran MemberPosts: 4,681
Like?
Thanks! Very efficient!! NT
In reply to thejaybird, Oct 7, 2007

Thanks! Very efficient!! NT

Reply   Reply with quote   Complain
Kent C
Forum ProPosts: 25,803
Like?
Re: Technique: Local Auto Levels
In reply to thejaybird, Oct 7, 2007

The layer setup in the action looks considerably different than the tutorial. I'm guessing 'legacy'
--
Kent

http://www.pbase.com/kentc
tutorial archive:
http://porg.4t.com/KentC.html

Reply   Reply with quote   Complain
qiv
qiv
Regular MemberPosts: 302
Like?
Does this work with colour images too? (nt)
In reply to thejaybird, Oct 7, 2007

no text

Reply   Reply with quote   Complain
Pat
Pat
Senior MemberPosts: 1,608
Like?
Re: Technique: Local Auto Levels
In reply to thejaybird, Oct 7, 2007

Thank you very much for this interesting action. Can you please explain a little about the different pixel size options and a suggestion as to when to use which? For example, 200px vs. 1 px?

I tried it on a few pictures, and the larger pixel size option (200px) seemed to have the effect of changing the overall contrast of a picture, while the smaller size (7px) didn't but had a nice sharpening effect bringing out fine details.

Also, is there any way to download/capture your slide presentation so it's on my hard drive?

-- hide signature --

Pat

Reply   Reply with quote   Complain
thejaybird
Senior MemberPosts: 2,498
Like?
Re: Technique: Local Auto Levels
In reply to Kent C, Oct 7, 2007

Kent C wrote:

Thanks! Great technique and thanks for explaining the math involved.

One possible monkey wrench in the works would be the different
settings of people in the 'options' dialog in levels, since that is
how 'auto' is defined. I'm guessing you have yours set to "enhance
per channel contrast" with "snap neutral midtones" unchecked. At
least I think that's what the adobe default is. I have mine set to
find 'dark & light colors' with 'snap neutrals' checked as I've found
only autocolor is useful in the past - plus the creativepro article
on it
--
Kent

That's exactly right, my implementation of Local Auto Levels is equivalent to "Enhance Per Channel Contrast" (with shadow and highlight clipping set to 0%).

Unfortunately, to implement "Find Dark & Light Colors" would require different filters than those offered by standard Photoshop. The technique hinges on the Minimum and Maximum filters, and these filters have no option for controlling what should be considered the minimum or maximum--it is just a per-channel selection of the darkest or lightest value.

Reply   Reply with quote   Complain
thejaybird
Senior MemberPosts: 2,498
Like?
Re: Technique: Local Auto Levels
In reply to Kent C, Oct 7, 2007

Kent C wrote:

The layer setup in the action looks considerably different than the
tutorial. I'm guessing 'legacy'
--
Kent

http://www.pbase.com/kentc
tutorial archive:
http://porg.4t.com/KentC.html

That's correct, the action is optimized for speed. Several steps have been merged and/or refactored to keep the layer count and operation count low.

Reply   Reply with quote   Complain
thejaybird
Senior MemberPosts: 2,498
Like?
Yes.
In reply to qiv, Oct 7, 2007

Keep in mind that because it is a per-channel operation, it will muck with your colors (just like Auto Levels with "Enhance Per Channel Contrast" checked). To preserve your original colors, you can paste the result onto your original image and change the blending mode to "Luminosity".

Reply   Reply with quote   Complain
thejaybird
Senior MemberPosts: 2,498
Like?
Re: Technique: Local Auto Levels
In reply to Pat, Oct 7, 2007

Pat wrote:

Thank you very much for this interesting action. Can you please
explain a little about the different pixel size options and a
suggestion as to when to use which? For example, 200px vs. 1 px?

The pixel radius controls the size of the detail that will be enhanced. It's very similar to USM or High Pass techniques--the choice of radius is highly dependent on the content and resolution of the image.

For an 8mp image, I would probably start with a radius of 100 and go from there. I usually run it two or three times at different radii and combine the results with masking.

I tried it on a few pictures, and the larger pixel size option
(200px) seemed to have the effect of changing the overall contrast of
a picture, while the smaller size (7px) didn't but had a nice
sharpening effect bringing out fine details.

That's exactly right--the smaller the radius, the more it will resemble a sharpening technique (sharpening in general is just an enhancement of contrast in fine details--i.e. "micro contrast"). A very large radius produces something closer to what regular, non-local "Auto Levels" would give you.

Also, is there any way to download/capture your slide presentation so
it's on my hard drive?

E-mail me at the address given in the "About" action, and I will send you a zip of the presentation. Unfortunately, I don't think there is any way to download it from Google.

Reply   Reply with quote   Complain
carl english
Veteran MemberPosts: 6,899Gear list
Like?
Re: Technique: Local Auto Levels
In reply to thejaybird, Oct 7, 2007

I quite sure if you turn the sound up you will hear a round of applause, you certainly deserve one.

 carl english's gear list:carl english's gear list
Panasonic Lumix DMC-FZ150 Panasonic Lumix DMC-FZ200 Nikon D70
Reply   Reply with quote   Complain
Kent C
Forum ProPosts: 25,803
Like?
Thanks....
In reply to thejaybird, Oct 7, 2007

That info should help if people have different options settings and are wondering why they get different results
--
Kent

http://www.pbase.com/kentc
tutorial archive:
http://porg.4t.com/KentC.html

Reply   Reply with quote   Complain
Kent C
Forum ProPosts: 25,803
Like?
Thanks...nt
In reply to thejaybird, Oct 7, 2007
-- hide signature --
Reply   Reply with quote   Complain
Ron Whitaker
Regular MemberPosts: 346
Like?
thanks nt
In reply to thejaybird, Oct 7, 2007
-- hide signature --
Reply   Reply with quote   Complain
Ron_M
Senior MemberPosts: 2,886
Like?
Re: Technique: Local Auto Levels
In reply to thejaybird, Oct 7, 2007

Doesn't view very well in Firefox. It runs right off the monitor with no way to scroll and then unable to read it all.
Works OK in IE.

thejaybird wrote:

In a previous thread:
http://forums.dpreview.com/forums/read.asp?forum=1031&message=25006158
I promised to explain a technique I've been using on my images. I've
put together a tutorial presentation to demonstrate it in detail, and
decided to post it here for the benefit of others who might have an
interest.

http://docs.google.com/TeamPresent?fs=true&docid=df7tj2cm_11ccskpm

Best Regards,
Jay

-- hide signature --

Ron_M

Reply   Reply with quote   Complain
thejaybird
Senior MemberPosts: 2,498
Like?
Re: Technique: Local Auto Levels
In reply to Ron_M, Oct 8, 2007

Ron_M wrote:

Doesn't view very well in Firefox. It runs right off the monitor
with no way to scroll and then unable to read it all.
Works OK in IE.

Hmm... I haven't had any trouble viewing it in Firefox myself... be sure to send a bug report to Google if it doesn't work for you

Reply   Reply with quote   Complain
lylejk
Forum ProPosts: 21,467Gear list
Like?
Some issues seeing the tutorial too Jay.
In reply to thejaybird, Oct 8, 2007

Using IE7 and all I see is text (no images). Don't have a Google account and that might be the reason why. Oh well. I downloaded the action and look forward to playing with it when that mood hits me.

-- hide signature --

 lylejk's gear list:lylejk's gear list
Leica V-LUX 1 Sony Cyber-shot DSC-W7
Reply   Reply with quote   Complain
rspino
Contributing MemberPosts: 722
Like?
Thanks
In reply to thejaybird, Oct 8, 2007

Just bookmarking this great thread.
--
Roberto (equipment in my profile)
http://spino.smugmug.com

Reply   Reply with quote   Complain
Keyboard shortcuts:
FForum MMy threads