Live data from Hacker News

Parallax effect from Google Lens Blur photos

depthy.stamina.pl

51–60 of 61 posts

Re: Parallax effect from Google Lens Blur photos

#53

This requires a depth map in the image. Would it also work on any image by calculating a depthmap from the blurriness?

No, because “blurriness” (low local contrast) may indicate something besides a particular depth.

Consider, for instance, a head-on photograph of a print of a shallow-focused photo. The region that print embodies will have plenty of variation in contrast, but exist at a single depth. Also, consider that blurring increases in both in front of and behind the center of focus; how could we tell which depth the blurring indicated?

Something similar to what you suggest is, however, done in software autofocus, which can take repeated samples at different focal distances to clear things up. Maybe that’s something to think about, e.g. for a static subject. http://en.wikipedia.org/wiki/Autofocus#Contrast_detection

Re: Parallax effect from Google Lens Blur photos

#54
post #5

Surprisingly well faked in face of the fact that there's no real 3D information in the pictures. There simply cannot be new 'pixels' appearing that were (i.e. before applying the effect) hidden from objects in the cameras line-of-sight. This is evident upon closer inspection (look at edges around the approximate middle of the DOF). The trompe-l'œil then falls a bit apart. Interestingly, I did not notice above with th…

There actually is 3D information in the form of a depth map including in the images, put their by the Google Camera app.

Re: Parallax effect from Google Lens Blur photos

#55
post #53

This requires a depth map in the image. Would it also work on any image by calculating a depthmap from the blurriness?

No, because “blurriness” (low local contrast) may indicate something besides a particular depth. Consider, for instance, a head-on photograph of a print of a shallow-focused photo. The region that print embodies will have plenty of variation in contrast, but exist at a single depth. Also, consider that blurring increases in both in front of and behind the center of focus; how could we tell which depth the blurring in…

Yup, there's no simple way to recover depth from blur: there will be featureless regions where you can't tell if there was any blur -- in other words, there is no universal way to tell if a region has gone through a low-pass filter or if it is natively low frequency.

Would heuristics work well? I can think of a handful, but none really good.

Re: Parallax effect from Google Lens Blur photos

#57
post #32

Earlier quoted context omitted.

Has anyone managed to replicate the lens blur effect that's being utilized in the new Android camera app? Or at least know what research paper it's based on?

Yes, here: http://jabtunes.com/labs/lensblur/index3.html and here: http://quasimondo.com/QuasimondoLibsJS/demos/DepthMapLensBlu...

That seems to just be using the depth map information stored by the app, not replicating the effect from scratch.

Re: Parallax effect from Google Lens Blur photos

#58

I'm putting the over/under on how long till this is used for porn at 4.5 days. Any takers?

As I understand it, the depth map is created by slowly moving the camera while taking images of the same objects. It probably wouldn't work as well with a moving subject (even small movements).

Re: Parallax effect from Google Lens Blur photos

#59

I'm putting the over/under on how long till this is used for porn at 4.5 days. Any takers?

As I understand it, the depth map is created by slowly moving the camera while taking images of the same objects. It probably wouldn't work as well with a moving subject (even small movements).

"slowly" is < 0.5seconds. Would work fine on models

Re: Parallax effect from Google Lens Blur photos

#60
post #57

Earlier quoted context omitted.

Yes, here: http://jabtunes.com/labs/lensblur/index3.html and here: http://quasimondo.com/QuasimondoLibsJS/demos/DepthMapLensBlu...

That seems to just be using the depth map information stored by the app, not replicating the effect from scratch.

They recalculate the blur. Were you asking about calculating the depthmap?
Post reply on HN