Giter Club home page Giter Club logo

Comments (3)

reyet avatar reyet commented on June 8, 2024

Hi – I think the issue is with the mpi plane depths. The range of depths in this data is narrow and very different from the real estate data, so it's better to choose min_depth and max_depth to fit the scene.

Looking back, I see that I ran it like this:

mpi_from_images \
   --image1=$HCI/buddha/image_04_04.png \
   --image2=$HCI/buddha/image_05_04.png \
   --output_dir=$OUTPUT/buddha \
   --xshift=23 --fx=9.375 --fy=9.375 --xoffset=48 \
   --min_depth=14000 --max_depth=16000   --render

N.B. this is using a different input pair (two images horizontally adjacent) and my files were named differently, but you could make the appropriate adjustments.

It might seem odd that my xoffset is so big compared to your yoffset. But really what's important is the ratio of the plane depths to the offsets. So I think you can scale xoffset and yoffset up or down as much as you like, but you have to apply the same scaling to min_depth and max_depth.

I hope this helps!

from stereo-magnification.

jingjin25 avatar jingjin25 commented on June 8, 2024

@reyet Many thanks! It really helps!

from stereo-magnification.

jingjin25 avatar jingjin25 commented on June 8, 2024

@reyet Hi, by re-reading the code, I think to test on a light field image with the disparity range of [-d, d], the parameters only need to satisfy the following relations:
fx * width * xoffset / min_depth = xshift + d
fx * width * xoffset / max_depth = xshift - d

Is it correct? And if there is any other condition to influence the performance?

Thanks!

from stereo-magnification.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.