Slashdot Mirror


Google's New Camera App Simulates Shallow Depth of Field

New submitter katiewilliam (3621675) writes with a story at Hardware Zone about a new feature that Google's working on for Android phones' built-in cameras: the illusion of shallow depth of field in phone snapshots, which typically err on the side of too much in focus, rather than too little. Excerpting: "The Google Research Blog [note: here's a direct link] revealed that there's quite a fair bit of algorithms running to achieve this effect; to put it in a nutshell, computer vision algorithms create a 3D model of the world based on the shots you have taken, and estimate the depth to every point in the scene."

11 of 127 comments (clear)

  1. Google rules when it comes down to blurriness. by MindPrison · · Score: 4, Funny

    Just take a look at the auto-blurring used in street-view, nothing beats it. My neighbors dogs face was blurred instead of their kid. ;)

    --
    What this world is coming to - is for you and me to decide.
  2. Re:Why? by beelsebob · · Score: 4, Insightful

    Because often, what you can't see is as important as what you can. Imagination is important. Composition is important, and emotion is important.

  3. Re:Why? by wonkey_monkey · · Score: 4, Insightful

    Because it makes the intended subject stand out more.

    --
    systemd is Roko's Basilisk.
  4. Re:Call me a rock wielding barbarian by blueg3 · · Score: 4, Insightful

    You know, your eyes have a substantial depth-of-field effect, too. You often don't notice, because your mental ability to pay attention to objects is tied pretty strongly to where your eyes are actually focusing, so anything you look at is in focus (because you focus on what you're looking at). However, you can really notice when you look at images that have deep DoF or, say, 3D movies (where they can't possibly get the DoF right).

  5. Re:2 1/2 D by BasilBrush · · Score: 5, Interesting

    Depends what you mean by 3D modelling. Looking further at the article, it's a depth mapping technique for each pixel. Which is more analogous to DOOM than Quake. Remember those restrictions? No bridges in the map, no tables. Just a single height for the floor and a single height for the ceiling at any map position.

    As the OP says it's 2.5D not 3D.

  6. A more interesting feature is vertical video by reg · · Score: 3, Interesting

    The best feature of the new camera app is that if you try to take vertical video it puts up an overlay telling you to hold it right! Hopefully everyone will copy this!

  7. Re:"subject" by bill_mcgonigle · · Score: 3, Informative

    Can boken be overdone? Sure. A 1mm think depth of field is overdoing it, but so is shooting at f/16 everywhere. But even a thin DoF and the right can result in some magical results

    Just because you know what you're talking about, and we're among friends:

    It's bokeh, with an 'h'. And it refers to the character of the blur, not the blur itself. If you've got an image, say f/3.4, a hipster might say "nice bokeh" to you, but he means that you have a good lens, not that you've selected a good aperture. And then he might also suggest you make a "glisse" print. ;)

    And, of course, shallow depth of field is a huge fad, and there's an entire generation of kids who won't ever be able to tell where they were in any of their childhood pictures. *That* will seem very "early 21st century" in a couple decades.

    --
    My God, it's Full of Source!
    OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
  8. Re:Why? by Jeremy+Erwin · · Score: 5, Insightful

    Consider this picture of a spider dining on its prey--possibly a cricket.

    What's important? the spider, the web, the meal.
    What's not important? the storm drain, the foliage

    It's not completely successful, but both the foliage and the storm drain are out of focus, while the spider, the meal, and the web are in focus. The aperture control on a large sensor camera lets the photographer select where the blurriness ends, and where it begins. Generally, the longer the focal length of the lens, the more dramatic the effects of opening up the aperture. Since camera phones use short focal length lenses, the blurring effect is quite subtle, and is often insufficient to draw in the viewers eye.
    In this particular case, it's a macro shot, so even a very narrow aperture (f/16) involves some blurriness. Quite often, macro-photographers use very narrow apertures-- f/16-f32, in an attempt to resolve all of the interesting aspects of their subjects.

  9. Re:Why? by sg_oneill · · Score: 3, Informative

    Because often, what you can't see is as important as what you can. Imagination is important. Composition is important, and emotion is important.

    Right, the thing is though theres more going on to depth of field than just "This part of the image in focus, and that part out of focus". I mean its definately a useful effect because it pretty much defines what part of the photo your supposed to be looking at, but good shallow DOF really is quite an amazing effect down well and terrible when done bad.

    On my 50mm lens (I recomend a 50mm to ANYONE whos playing with SLRs. Its a cheap lens, handles great in low light and very easy to take attractive photos with) the depth of field also interacts with light so you see these great specks of light all through the background and other esoteric effects that really enhance the effect. If I just put the background out of focus with a blur, it'd be just.... well blury.
    Finally its not a linear blur either. Some parts are more in focus than others and this adds to the effect because its how your eye does it too.

    The test photo in the article just makes it look like someones put a lasso tool on the model, inverted it, then just done some sort of blur on the background. Its just not the same as the DOF on a real wide apearature camera.

    --
    Excuse the Unicode crap in my posts. That's an apostrophe, and slashdot is busted.
  10. Re:Why? by Will.Woodhull · · Score: 4, Insightful

    Why would I want to ruin large parts of a good image with this effect?

    Portrait photography.

    Or any time when the presence of crap in the background degrades the photo. That candid picture of your Mom sharing a moment with your aunt would look great if it were not for the Ronald McDonald billboard in the background.

    --
    Will
  11. Re:"subject" by thegarbz · · Score: 3, Insightful

    And, of course, shallow depth of field is a huge fad, and there's an entire generation of kids who won't ever be able to tell where they were in any of their childhood pictures.

    Wow lets step back a bit. Though I guess someone called the automobile a fad at some point.
    The battle for wider apertures dated back to post war. The 1950s was all about big lenses, wide apertures. I fondly recall using a Canon R mount 50mm f/1.2. Not a very sharp lens but provided incredibly narrow depth of field. Mind you it wasn't until the FE mount in the 80s they managed to get a 50mm f/0.95, something which Leica managed quite a lot earlier on their M series cameras in the 1960s.

    Now that the history lesson is over, how about an art lesson. Depth of field is used to direct attention. If you want someone looking at a subject rather than the image on the whole you can isolate the subject by blurring the background. I did this on my holidays and I'm going to look back and think about what I looked like at the time who the hell cares where I was. If I wanted to take a photo of where I was I would do so. Now on the flip side, why the hell would you want to ruin a perfectly good photo of the Pantheon or some other wonderful place by standing in front of it? Why would you want to give up artistic control to some passer by telling them to look through the viewfinder and push the button.

    You seem to know the technical details of how something is done, but not have a clue of why someone would do it. Go to your grandpa and ask him if he used wide apertures when he took photos. You'll likely find him don his oversize framed glasses and say "Kid, I was the master of bokeh before it was cool."

    Fad indeed.