On Thu, 24 Jul 2008 02:18:27 -0700 (PDT), ruedis.ch wrote:
In Photoshop CS3 I have taken photos at different focus points and put them in different layers and aligned the pictures. Now I would like to mask the unsharp image areas on each layer in order to get a composit picture of all the sharp areas in all the layers.
Is there a way to select or mask everyting on a layer that is unsharp?
There is an automated way to do this that works pretty well. The principle is to subtract each layer from a blurred copy of itself, and use the resulting image as a mask. Here's the procedure:
Copy and paste layer 2 to a new image, convert it Lab, dupe to a new layer, blur the upper layer, set it to difference mode, and flatten. The Lightness channel of the resulting image will be black, or nearly so, for the blurred parts of the image, and lighter for the less blurred portions. Use levels to bump the contrast, and paste it into the layer mask of layer 2. The black areas of the mask are where the background layer will show through.
Repeat for layers 3, 4, etc.
As I mentioned, this method works well for most images, but there are some details you may need to deal with. Particularly for macro and other relatively close up work, you may run into fringing or double outlines. This is due to the fact that the lens to sensor distance changes slightly. To deal with this, juggle the levels of the masks to select one layer or the other, use a Photoshop's transform tool to align things better, or use the brush tool to manually touch up the mask.
--
Mike Russell -
http://www.curvemeister.com