Removing "Lens blur" halos in shallow DOF photo

I'm working on a portait where I want to give it a more shallow DOF (depth of field) than originally shot. In other words: I want to turn the background blurry while the foreground and subject should be sharp. I decided to use the Lens blur filter (Filter-Blur-Lens blur) for this.
Basically I just duplicated the image to a new layer, turned that layer into a smart object, added lens blur to it, then used a gradient filter on the mask in order to make the blur fade away in the front (just like a camera lens wide open would). Finally I used a brush to carefully remove (mask) the blur from the subject, revealing the (unblurred original image) bottom layer.
The problem is that the blurred layer also introduces a "halo" around things which isn't very attractive (see screenshots below). Is there a way to make the background blurry without adding halos? I've tried Gaussian blur as well but the same problem was there. I'm using Photoshop CS4 on a Mac.
Original image
Duplicated layer blurred (lens blur) -notice dark "halo" above hair
Masked to reveal sharp (original) layer for subject. The halo is of course still there. Not very flattering

Mask it ahead of time, using Refine Edge to make a new masked layer showing just the portion of the image you want in the foreground.
Then use the mask to select the subject in the background, expand the selection some, then use Content Aware Fill to remove the subject from the background.
THEN blur the entire background.  The results can end up surprisingly believable.
Refine Edge makes it possible to do quite complex subjects...
-Noel

Similar Messages

  • PHOTOSHOP version 7.0----How to remove a blur from a pic?

    I've done everything to try an remove the blur from my pictures but nothig works, can someone help me? I have Windows XP and have contacted the Photoshop support phoneline but as usual they wont help me because im not willing to spend more money on their newer versions, can someone please help me? I want to get soem pictures fixed using photoshop for funeral reasons so anyone that can help please help me ASAP.

    Also, sometimes the terms blurred and de-focused are used interchangeably, but they aren't. Focus Magic has a feature to detect the amount of de-focusing at selected locales in the image. That de-focusing is measured as a diameter of the local circle of confusion in pixels. An out-of-focus background has a measurably greater amount of de-focusing, while the in-focus parts of the image measure 0 pixels of de-focusing. You might not want to apply Focus Magic to an image where the photographer deliberately used an expensive fast lens to throw the background out of focus. Fortunately, Focus Magic can be applied to feathered selections in Photoshop, to avoid such blunders.
    A truly blurred image will measure 0 pixels of de-focusing, while a de-focused image will read an integer number of pixels. In an image containing areas of de-focusing, each de-focused pixel is spread over a "circle of confusion" and, to a certain extent, all of those overlapping circles of confusion can be pushed back to where they were before the de-focusing spread them out.
    Sometimes you can see that effect with the naked eye, in which a single bright point of light (say a distant star) has been spread over a circle, and we could mentally "deconvolve" it back to a point. In most out-of-focus images, the process of deconvolution is very computationally intensive, because there are so many overlapping circles. And the amount of information present in the image is limited by the number of pixels in the image.
    A de-focused image looks blurred, but it actually has some recoverable information, and the more pixels there are in the image, the more potential information that can be recovered (and the greater the amount of computation required to process it.) Check out the Focus Magic website.
    -- Burton --

  • Crummy Camera Lens Blur CS6

    The Camera Lens Blur effect that came with AE CS 5.5 and CS 6 doesn't look nearly as good as the old Lens Blur effect that came with CS 5; it's pretty much unusable for my purposes. Foreground elements that should be sharp render sharp, but with a blurry halo around them. The old Camera Lens blur does not exhibit this behavior, nor the Frischluft Depth of Field plugin.
    Here's an image showing the depth map and how the three plugins render it:
    CameraLensBlur.png
    The images are composited from 16-bit PNGs rendered out of Cinema 4D. There's a nasty halo visible around the foreground particle in the upper left in the CS6 Camera Lens Blur version. I saved the old Lens Blur effect as a preset out of a CS5 project and am, fortunately, still able to use that approach in CS6 since the "improved" version of the plugin looks pretty crummy (I skipped AE CS5.5). As a test I installed the demo of Frishluft's Lenscare plugins, and after inverting the depth buffer in the plugin I got a good result.
    The "new" Camera Lens Blur is acting like the Compound Blur effect. Foreground elements appear sharp but with a blurry halo since the entire "background" is being blurred, creating a blurred ghost of the foreground element. The old Lens Blur effect was very slow, but it did work.
    Anyone know how to make this new "improved" Camera Lens Blur look like the other plugins?  I've posted a zipped file with the image and depth map in a small AE CS6 project here if anyone here would care to check my settings.  Maybe I'm missing somthing.
    CameraBlurs folder.zip
    Thank you.
    Shawn Marshall
    Marshall Arts Motion Graphics

    It's been now more than 2 years now that Shawn referred to you this "bug". Thing that I doubt to be a bug. However, after 2 years now, and being on CC 2014.2, this is still ugly when using a depth map. The bokeh is nice, I give you that. But you clearly can't use it with a Dmap. I know it's pretty useless to tell you things that you already know, either make a bug report. It's clear now that it won't get any update.
    And as someone here said, if you can't/don't wonna fix it, why can't you simply pack the old Lens Blur from CS5 as an obsolete effect ? Or let's go crazy, just buy the Frischluft (Dat name...) blur which works and pack it.
    I would love, of course, to hear from you that you're on it and that a new release is coming soon... Anyway.
    Just to remind you, here some pictures of what we are experiencing with your Lens Blur using a depth map.
    Halo around the lens on the middle until the screw top right... and cannot be fixed by any way with the focal distance. But yes, the bokeh is really nice.
    And here with the Frischluft
    It simply works.
    You could say then, why am I not buying it ? I'm considering it a lot now.

  • Camera Lens Blur CS5.5

    Hello. I just installed the new Creative Suite CS5.5 specially for the new features like warp stabilizer and Camera lens blur
    I have even upgraded my PC to Intel core i7 - 2nd Generation processor with a normal basic graphic card. As I could not afford a really good one.
    My question is..... about the feature Camera Lens Blur.
    Inspite of having a very fast processor, the effect Camera Lens Blur takes forever to render..... even at Third or Quarter resolution...... And I am not even rendering a video. I am rendering a Jpeg photo.
    why does it happen so? even at such small preview resolution and such fast PC ???
    Any solution to make it faster?
    I do know....effects like reduce noise and blurs take time....but this takes tooo much even on a JPEG..... So i am afraid....it might take toooo much on a HD video....
    Help me regarding this
    Thankyou,
    Priyank.

    Thanks a lot Mylenium and Andrew.
    The jpeg was having a huge size of around 4000 by 5000 pixels ........ And I hadnt even Put the fast previews to OpenGL interactive. I reduced the resoution of the Jpeg. And now after doing both...... I am getting awesome reder speed even arnd 150 blur
    Thanks a lot again..

  • PSE 12 Lens Blur

    I tried to the lens blur in PSE12 with the method of selection (exactly like the tutorial) but it doesn't blur the the mask at all........very very little?

    New Blur effects in Photoshop Elements 11.
    Are these images available where I can try on the very same photo?
    And yes I can post it.
    nealeh wrote:
    Which tutorial? Did you pick a similar photo to that used in the tutorial? If not you may need different settings. Feel free to post your photo here if you want specific advice on using the filter with it.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children
    If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.
    nealeh wrote:
    Which tutorial? Did you pick a similar photo to that used in the tutorial? If not you may need different settings. Feel free to post your photo here if you want specific advice on using the filter with it.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children
    If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.

  • Photoshop lens blur: radius 4 = no effect?

    Why allow me to specify a radius < 4 if values below that will have no effect?
    Try it yourself: set up a Lens Blur with no other effects (brightness, DOF etc) and apply it to a duplicated layer. Now run difference between the two layers - all balck = no difference.
    Why can't I get more subtle values below 4?
    Same thing with Gaussian blur, though the threshold in that case is .25

    Chris Cox wrote:
    He who is neck deep in converting third party data files for a deadline doesn't always have 24 seconds or a spare machine to test on. :-)
    Yet no one seemed too interested in hiring help for you... 
    Let's ask Tom to post a bug report over on:  http://feedback.photoshop.com/photoshop_family
    -Noel

  • CS4 lens blur

    I am using lens blur for the background, have started an alpha 1 and am removing the "red" from unblurred areas.  I saved the file as .psd, but when I reopened it and started painting the rest of the red areas to remove the red all I get is white paint...please advise.

    I made duplicate layer, on it created alpha1 channel, selected it and RGB,
    Why did you select RGB?
    If you painted on a layer you could try salvaging the transparency by command-clicking it in the Layers Panel, but I’m not quite sure what you really did.
    If the Layer has a Layer Mask it needs to be selected to paint on it.
    How about posting screenshots of both the Layers Panel and the Channels Panel?

  • Lens Blur / Lenscare glitch

    Hey,
    I'm currently trying to put some nice DOF into a 3dsmax render. I loaded the render (EXR) with a seperat ZPass into After Effects, put it into 32 bits and as soon as I apply either After Effects' own Lens Blur effect or Frischluft's Lencare, I get this weird glitch:
    It changes slightly, once I assign the ZDepth-layer, but largely remains the same. This glitch doesn't occur when I apply the effect in 16 bits or 8 bits, but sadly the lens blur effects don't work properly in these modes when handling EXR files. I tried both CS6 and CS5.5, same result.
    I googled for hours but couldn't find anyone experiencing similar problems. Any suggestions?

    Thanks for your reply. The Compander effect doesn't change anything, no matter which settings I apply. My working space color management is set to "off". I tried both sRGB, Adobe RGB and Apple RGB with "Lineralize working space" on and off, but it only made the glitch go white or produce an error message. By the way, my EXR-sequence is set to "Preserve RGB", which also doesn't have any effect on the glitch.

  • Lens blur filter - limit in use?!

    I've got a question about lens blur. What I've done is duplicate my background layer, and used the quick selection tool to do some lens blur in my photo to imitate depth of field. I've done 3 different lens blur selections on this same duplicate layer. I wanted to do a fourth (I'm doing this with different amount of blurs, that's why it's not all one selection), but all of a sudden I can't apply lens blur anymore. Is there a limit for how many selections you can have in one photo? I also tried duplicating the duplicate layer, but it still won't let me add it. HELP PLEASE!!

    Good day!
    Could you please post a screenshot with the Layers Panel visible?
    Regards,
    Pfaffenbichler

  • Blur with gradient tool / Lens blur

    Hi everybody,
    I want to make some blur effects like miniature effect or open apperature lens blur.
    Currently I'm using the gradient tool with negative sharpness. But I think in 100% zoom, the effect looks a litte bit like on/off. Or is the visible effect just non-linear??
    Furthermore it would be create to simulate a lense blur effect in the corners. Currently I have to add at minimum 4 gradients, one in each corner. That's no effective
    Otherwise it would be possible to implementate a radial gradient mask additionally to the normal linear gradient. Also a reflected gradient mask, would be useful.
    Lightroom is great!!
    Thanks,
    Leschi

    -51 to -100 sharpness is lens blur.  It's power is limited by the amount of time it takes to calculate this sort of effect - bigger = longer.

  • How to remove a keyword from a group of photos

    I want to remove a keyword from a group of photos.  They all have the same keyword attached, of course.  When I right-click keyword and choose 'Remove keyword from selected photos' it removes the keyword from the most-selected photo ONLY, not from all photos that are selected.  I have to remove the keyword from each photo one at a time.
    I'm running LR 5.6 on a Mac.
    Thanks for any assistance.

    etmarcr wrote:
    I didn't think about..
    Perhaps not the most intuitive, but that's how I do it..
    Free tip: to assign to all, remove the '*' (asterisk).

  • IPhoto for iOS removes the GPS exif data from the photo after an edit

    iPhoto for iOS removes the GPS exif data from the photo after an edit
    Using the iPhone camera, I take a photo and then I want to make the photo a little brighter.
    So, I edit a photo using iPhoto for iOS and then save the photo back to the camera roll.
    Now, I might want to see where that photo was taken via another app (like Photo Mapo) or on the map using the Photos app, or even the Mac iPhoto app.
    However, the GPS data has been removed. Looks like all of the other exif data is still in the photo.
    Why not just have a feature to remove the GPS data if the user wants? no reason to remove it for them.
    The user explictily chose to have location services turned on so the GPS data would be in the photo.
    Is this a bug?
    Thanks,
    Brian.

    First thing to try is a reboot of your iPad. Press and hold the Home and Sleep buttons simultaneously ignoring the red slider until the Apple logo appears. Let go of the buttons and let the iPad restart. See if that fixes your problem.
    None of my cameras has a GPS function so I never see that data in the info of a photo in iPhoto for iOS. But I do see the map choice to set a location for the photo. Perhaps a reboot will fix this for you.

  • Lens blur problem (depth layer gives a hard edge)

    I have rendered out an RGB pass and a depth pass from my 3d package and dropped them into AFX using the lens blur filter to create some depth of field
    After juggling with some of the settings I have got the focal distance I want but as you can see from the image I have a hard edge to my RGB layer.
    Its as though the LensBlur effect is only working inside the matte of the layer its been applied to.
    Ive tried precomping the layers and turning alpha channels off to see if that makes difference but no luck.
    Can anyone suggest why the depth pass isnt blurring the edge too?
    Thanks

    Thanks for your input guys.
    I did have the effect applied to the layer so I then precomposed it as suggested which has worked...... (see attachment)
    However I now have a new problem!
    I actually need the the focus to be reversed, with the background sharp and the foreground blurred.
    I tried 'inverting the depth map' in the lens blur settings but it gave me the same problem as before with the hard edges....
    Any ideas on how to get the focus working the other way around?

  • How can I remove a person's face from a photo and then replace the spot with a person's face from another photo?

    How can I remove a person's face from a photo and then replace the spot with a person's face from another photo?

    In Editor, go to the expert tab.
    Open picture B, the one you wish to select the "replacement" face from to add to another picture.
    Use one of the selection tools, e.g. selection brush, lasso tool, to select the face. You will see an outline ("marching ants") once the selection is complete
    Go to Edit menu>copy to copy the selection to the clipboard
    Open picture A, then go to Edit>paste
    Use the move tool to position the face from picture B to cover the face on A
    In the layers palette you should see picture A as the background layer, and face B on a separate layer

  • I have PS CS5 extended.  I am trying to create a blurred lighting vignette on a photo.  I am having a great deal of trouble!

    I have PS CS5 extended.  I am trying to create a blurred lighting vignette on a photo.  I am having a great deal of trouble!

    Please elaborate and post screenshots to illustrate your issues.

Maybe you are looking for

  • CAN I USE TWO IPODS ON THE SAME COMPUTER? PLS help

    i cant seem to find alot of info about this on here... i am probably looking in the wrong place... but heres my situation. Ive had an ipod mini for 2 years now but ive just bought an ipod nano ..... i do all of my main downloading on my power mac g4,

  • The icon  for PHOTOSHOP 64-BIT DOESN'T OPEN ANYMORE. I GET A MESSAGE THAT SAYS IT CAN NOT BE FOUND IN THE DYNAMIC LIBRARY.

    THE PHOTOSHOP ICON 64-BIT DOESN'T OPEN ANYMORE THE PROGRAM. I GET A MESSAGE THAT IT CAN NOT BE FOUND IN THE DYNAMIC LIBRARY. WHAT TO DO TO RESTORE IT AND OPEN THE PROGRAM?

  • Ads file format

    I tried everything I can think of here, ...this is the error I keep getting, Input line '#root|BRANCHES|BRANCHES_|Y|' does not have expected format of 4 columns Suggestions appreciated...the selected delimiter when I create the profile is correct...

  • JTable with JButton Cell renderer

    How can I get buttons (JButtons) to "depress" properly in a JTable when using them as the cell renderer for a specific column in a JTable? Currently when pressing any button in the column, there is no change in the visible state of the button, i.e. i

  • B1 2005B: excise registers

    Dear All Can any one help me how to see the excise registers like RG23AII,PLA,etc.. in B1 2005 B (indian version) regards Amal