Coder Social home page Coder Social logo

Comments (6)

hahnec avatar hahnec commented on August 15, 2024

Heya,

The disp2pts function is not part of this repo, but belongs to the depthy Python package (see here). The idea behind these separate repos is that depth extraction algorithms may serve light-fields or stereo images from non-plenoptic cameras. So, the reason why default parameters might not be suitable in your case is simply that parameters are meant for another input source.

If it is your goal to extract depth from a Lytro camera, have you checked the Lytro Illum Demo notebook? When you follow this recipe, you are supposed to retrieve a depth map.

from plenopticam.

backkon avatar backkon commented on August 15, 2024

Thank you for your reply. Yes, I ran the code according to that recipe. In the depth extraction module, it first extracts the disparity map, and then extracts the depth map according to the disp2pts function in depthy, but the parameters used in the code are default and do not conform to reality . I want to know how to get the correct parameters?

from plenopticam.

hahnec avatar hahnec commented on August 15, 2024

If you are more specific on what data is passed to the function and what the error looks like, I can get a better understanding of what is going wrong. For example: Are you sure that the disparity map is valid? What kind of error message are you receiving?

A documentation for the disp2pts function usage can be found here:
https://hahnec.github.io/depthy/build/html/apidoc.html#depthy-misc-ply-handler

from plenopticam.

backkon avatar backkon commented on August 15, 2024

094209

Sorry, I may not express my question too clearly, there is nothing going wrong. I just want to find the right values for the parameters shown in the figure above. For example, how do I get the baseline parameters and the sensor size parameters of the illum camera, obviously the default 1 is not appropriate and needs to be adjusted according to the specific camera. The problem I care about is how to get correct values of the illum camera.

from plenopticam.

hahnec avatar hahnec commented on August 15, 2024

While the sensor size can be found in Lytro's json-metadata file extracted by PlenoptiCam, you'll probably have a hard time determining the baseline of the Lytro camera. This is because the camera's zoom lens affects the baseline meaning it can change from one picture to another. I spent some time in my PhD developing a model that predicts the baseline of a plenoptic camera based on the focal length, pixel pitch and focus position (see our paper). In the case of Lytro cameras, however, focal length and focus position are provided as relative numbers which have to be numerically converted, e.g. to a millimeter value such as the pixel pitch from the metadata file. This can be solved experimentally by placing an object at a known distance, analyzing the disparity and plugging these values into Eq. (31) in the paper above. Hope this helps :)

from plenopticam.

backkon avatar backkon commented on August 15, 2024

OK, I see. Thank you for your patience~

from plenopticam.

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.