Comments (6)
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.
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.
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.
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.
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.
OK, I see. Thank you for your patience~
from plenopticam.
Related Issues (20)
- Install Issue HOT 5
- Calibration data HOT 1
- sub-apertures data format HOT 1
- Upgrade SciPy from version 1.4.1 HOT 3
- About the use of the Lytro Illum camera HOT 3
- Use for LFM HOT 5
- White image file not found. Revise calibration path settings HOT 18
- Unable to solve dependencies on latest Ubuntu HOT 4
- Futur ?
- White image file not found. HOT 2
- white image file not present error HOT 4
- Problem running Plenopticam on Ubuntu HOT 2
- Depth of Field Control HOT 4
- Why didn't Lytro Desktop use the more accurate/primitive refocusing algorithm? HOT 1
- How to save the results in a different directory? HOT 1
- White image file not found. Revise calibration path settings. 0.9.3 HOT 11
- Original Lytro unlock
- bug whith slycing to get the bay_img in lfp_decoder HOT 1
- how to convert depth map to absolute distance HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plenopticam.