vt-vl-lab / 3d-photo-inpainting

[CVPR 2020] 3D Photography using Context-aware Layered Depth Inpainting
https://shihmengli.github.io/3D-Photo-Inpainting/
Other
6.9k stars 1.11k forks source link

traj_types: circle. How to animate the background and not the foreground? #115

Open mikemmx opened 3 years ago

mikemmx commented 3 years ago

Help! I've been trying for the whole day almost. I just need a hint.

I'm trying to animate the background and not the foreground. My guess is utils.py > path_planning am I on the right track? I can get the effect I want by inverting the depth mask but it don't look right and I can see why.

Python is new to me but this is really interesting and I want to learn more.

ugocapeto commented 3 years ago

That's a very good point!

When using traj_type=double-straight-line (for example x=0015,y=0,z=0), it would be nice to be able to control what remains fixed (doesn't rotate). You should be able to have the back ground fixed (as it is now), the foreground fixed and anything in between. This would be extremely useful to create lenticulars. With lenticular printing, what's in focus is whatever is fixed/doesn't rotate. The way it is now, if I were to use the synthetic views for lenticular printing, the background would be always in focus and the foreground would be in a blur. Not exactly what you want.