compilerbitch: That's me, that is! (Default)
compilerbitch ([personal profile] compilerbitch) wrote2007-06-08 12:04 am

Another one from Yosemite...



Upwardly Immobile, Yosemite Valley, 2007



This photo has a slight story to it. [livejournal.com profile] doseybat and I were walking back from Lower Yosemite Falls, when she spotted this little tree living out a tenous existence on the sheer cliff face. The light was failing at that time, and to make matters worse the part of the valley we were in was in shadow anyway. It was quite difficult to focus, and I didn't get it quite bang on. I used a 150mm lens, probably stopped down a little. I can't remember the exposure I used, but it was probably quite long, at least half a second.

If I had a second chance to shoot this, I'd have (obviously) chosen a time with better light, but the bigger problem was that the tonal values of the leaves of the tree were initially identical to those of the rock. In combination with the lack of sharpness, I had originally consigned the image to the bin, but I used a technique on it that I've been experimenting with a bit recently, and not only did I manage to rescue the sharpness down to the pixel level, it also became possible to make the image really 'pop'.

The first thing I had to do was separate the tones so that you can actually see the tree -- this was done the obvious way, with a levels adjustment layer in Photoshop and a lot of painstaking hand mask painting. I had to use a fairly aggressive curve to render the rock with the tones I wanted, but this had the unfortunate effect of making it look even less sharp than it originally did -- if you ever have part of a curve nearly horizontal, it's (conventionally) really difficult to get a look that is at all acceptable.

So, I had an image with the right tonality, but it looked like a bag of unsharp crapulence. Applying sharpening conventionally really didn't work -- all it managed to do was enhance noise that I didn't want enhancing whilst failing to do anything useful with the compressed midtones in the rock. This is when I decided to use a fancy trick. In essence, it goes like this:

Step 1: Make a copy of the original, unmodified image layer. Drag it right to the top of the layer stack, above any adjustment layers (this is important).

Step 2: Run the high pass filter on it (you can find it in the menus as Filter | Others | High Pass). This will leave you with a mid grey image that shows the finer detail in the original image.

Step 3: Set the layer to Overlay mode (we'll change that later, but it lets you see what you're actually doing). At this point, the original image reappears with enhanced detail, though at this stage it probably looks a bit like it's been sharpened with the size slider too far up. Don't worry about that just yet.

Step 4: Do an unsharp mask on the high pass layer. You can probably crank the amount pretty high, but you'll want to keep the pixel radius down pretty small -- I used 0.3 to best effect.

At this point, you have your original image with all of its levels tweaks, but with greatly enhanced sharpness, including in areas that have been flattened by too-horizontal curves. You can now play around with the layer mode -- I actually used Vivid Light for this image, but different options gave different feels. You can, of course, tweak the amount of adjustment very easily after-the-fact by tweaking the layer's Opacity setting, or even by creating a layer mask.

OK, here's the theory part for why this works. The basic idea is that you're splitting the image into two separate channels, but by spatial frequency rather than by colour, level or any other more familiar attribute. The low-frequency image goes all the way down to DC in signal processing terms, so it's this one that you're most likely to want to tweak if you want to alter tonality, but because the high frequency information -- the detail -- is in a separate channel, you can get away with very substantially bluer murder. This gives me an idea for a 'frequency separation' plugin that uses 2D FFTs to generate 2 or more channels, separated by frequency, that are guaranteed to sum exactly to the original image. However, by tweaking each channel separately with layers curves, it should be possible to have extremely fine control over contrast and sharpness independently of each other. This approach would be a significant generalisation of HDR tone mapping, amongst other things. Hmmm... if and when I get some time... hmm...

Overall, I'm pretty impressed with this technique -- it's the first time I've used it on a for-real image, and as it gave so much better results than the standard approach I think it'll end up in my often-used bag of tricks.

[identity profile] lsur.livejournal.com 2007-06-08 12:33 pm (UTC)(link)
Strange coincidence - [livejournal.com profile] keirf has also just posted a picture of a tree on a rock. Is it an outbreak or alien invasion, in manner of Triffids???

[identity profile] compilerbitch.livejournal.com 2007-06-08 06:35 pm (UTC)(link)
It might well be. I can't see [livejournal.com profile] keirf's post because it's friends-locked, but in my opinion you shouldn't ever trust anything green. Not entirely, anyway.

(Should our botanical overlords make a successful play for world power, I will of course deny all knowledge of this conversation)

[identity profile] dd-b.livejournal.com 2007-06-08 04:18 pm (UTC)(link)
I started trying to read it as involving rocks mostly under water. Then I added the vertical dimension (so maybe the water was coming down a cliff or something). Then I finally got it right :-). For me, in this image, the sequence of interpretations was a good thing, though if you had asked me if an image that initially confused me had a problem I'd probably have said yes off the top of my head.

And the title you've given it is lovely.

Interesting ideas on image processing, too. I'm definitely under-using layers (and I use layers a lot already) and especially blending modes (which are not well explained anywhere; sounds like most people have at best vague ideas what they do and just experiment to see what works, especially for the more exotic ones).

[identity profile] compilerbitch.livejournal.com 2007-06-08 06:33 pm (UTC)(link)
Like a lot of my images, it really depends on plenty of resolution, so it doesn't translate all that well to web reproduction. On a print, you basically see the flaking surface of the rock, and even the detail on the moss down to its individual leaves (or whatever it is that moss has that are equivalent to leaves anyway), so it makes more visual sense. There actually isn't any water at all -- I think you're mistaking the surface of the rock for specular reflection from water.

I use layers a lot, most of my images end up with 10 or more doing something-or-other, many of which having hand-painted masks. I moved away from using destructive editing techniques for things like levels, contrast, dodging and burning, etc. a long time ago, but more recently I've started feeling the need to be able to do the same thing for sharpening. I like to do things like set up a layer so that I can effectively 'paint' with contrast -- this new technique should let me extend that to being able to paint with sharpness too.

I think for a long time I was held back by a tendency only to use Photoshop to replicate the kinds of thing I could do in a wet darkroom years ago, but it really can be so much more than that if you're prepared to let it -- by this I don't mean painting out the occasional misplaced tree, I'm thinking more in terms of being able to manipulate images to match the 'feel' that I'm visualising. I'm not sure if that makes any real sense to anyone else, of course!

[identity profile] dd-b.livejournal.com 2007-06-08 07:00 pm (UTC)(link)
Like a lot of my images, it really depends on plenty of resolution, so it doesn't translate all that well to web reproduction.

I was thinking that, should have said it. I haven't seen any of your prints, but nothing you've said suggests you're a masochist, and you don't haul around (or buy, for that matter) the kind of equipment you talk about using unless you badly need the resolution, or are a masochist :-).

By the time I realized it was a cliff and a ledge, I had realized there was no water, too; sorry I didn't make that clear. Even at web resolution the interpretation comes clear eventually.

While I'm not above removing the misplaced tree (or, once, a person from a party that many people felt really shouldn't have been there), mostly I'm doing stuff like you describe -- super-darkroom, basically. (In studio shots I often find myself extending the background, to make up for the small spaces I work in; just make sure the subject doesn't actually cross the background edges, and it's easy to extend it to the edge of whatever cropping I decide I want.)

I got the non-destructive edit bug too; and am frustrated that very useful things like painting over the image in special modes requires a different layer for each mode. I've thought of coming up with an action to take two image layers and put the differences onto a third layer; then I could make a background duplicate, use destructive tools on it, and then use the action to make a diff layer and just delete the edited layer. But a little playing hasn't come up with a method that works, which is strange; it *should* be trivially easy somewhere in image operations, I would have thought.

[identity profile] blue-mai.livejournal.com 2007-06-08 06:51 pm (UTC)(link)
nice one, that sounds rather useful. i'm kind of the opposite in photoshop - having only the most basic wet darkroom skills i use photoshop for what it is, however i don't really understand a lot of how it's doing what it's doing (a combination i think of lack of darkroom and colour knowledge) so it's all a bit hit and miss. everything Adobe i've ever done has been picked up on the go/ intuitively. non-destructive editing with layers is brilliant though.