doda42 / lftoolbox Goto Github PK
View Code? Open in Web Editor NEWLight Field Toolbox for MATLAB
License: Other
Light Field Toolbox for MATLAB
License: Other
Curious if the code will allow me to extract images located at different depths in order to reconstruct a 3D image?
Maybe consider also adding program features to README.md.
I am decoding LFR images from this dataset with the toolbox.
The decode works, but the colour correction does not seem to be correct (the colours do not match up with the thumbnails, and do not look correct).
I ran LFUtilProcessWhiteImages
on the camera calibration data (available at the above link) and then LFUtilDecodeLytroFolder([], [], DecodeOptions);
on the images after settingDecodeOptions.OptionalTasks = 'ColourCorrect'
, just as per the documentation.
Do you know what could be going wrong?
old version(v0.4) of LFLytroDecodeImage.m has the note in Line72
% DecodeOptions = LFDefaultField( 'DecodeOptions', 'WhiteImageDatabasePath', fullfile('Cameras',LFMetadata.SerialData.camera.serialNumber,'WhiteImageDatabase.mat'));
which can get different kinds of camera's whiteImageDatabase in different folder
But the new version delete it(Line 70), which means that "Camera" folder can only contain one kind of camera's configuration files
While I followed "Light Field Toolbox for Matlab", I have a problem
I created a folder as follows.
Samples
Cameras
A123
Beers.lfp(sample image)
WhiteImages
And I ran the following code
LFUtilUnpackLytroArchive -> LFUtilProcessWhiteImages
So I got white image database, and I would like to get calibration information from lfp image.
I got a sample image, named "Beers.lfp" from Lytro dataset. Then I ran LFUtilCalLensletCam(ImagePath), but I got the error
==Locating light fields in path/LFToolbox0.3_Samples1/Cameras/A123/Beers.lfp===
Searching for files [ Beers.lfp ] in path/LFToolbox0.3_Samples1/Cameras/A123
Found :
'Beers.lfp'Checking zoom / focus / serial number across all files...
Error using load
Number of columns on line 5 of ASCII file
path/LFToolbox0.3_Samples1/Cameras/A123/Beers.lfp must be the same as
previous lines.Error in LFCalFindCheckerCorners (line 64)
load(fullfile(BasePath, CurFname), 'LFMetadata');Error in LFUtilCalLensletCam (line 121)
CalOptions = LFCalFindCheckerCorners( InputPath, CalOptions );
How could I get calibration information for a lfp image?
Hi, I have studied the light field toolbox you provided to decode and calibrate LF data, excellent work! But I have a question. After using the calibration parameters to convert (i,j,k,l) to (s,t,u,v), how can I get the true depth map based on the disparity map?
It would be nice if README.md contained a list of compatible cameras.
matlab R2018a, LFToolbox main branch
Error using reshape
To RESHAPE the number of elements must not change.
error: LFColourCorrect (line 40)
LF = reshape(LF, [prod(LFSize(1:NDims-1)), 3]);
Hi, first of thank you for this toolbox, it has been very helpful!
In LFReadESLF the default value for LensletSize_pix is (14,14). I am unable to confirm if that's the lenslet size for all Lytro illums? The data at http://lightfields.stanford.edu/LF2016.html seems to be read correctly with this default value, but the raw light field from our Lytro Illum seems to have (15,15) views. Am I correct to assume that different Lytro illums can have different number of pixels per lenslet and that Stanford Illum has (14,14)? And also that the resolution of views can be different, example the Stanford ones are (541,376) whereas our images are (625 , 434).
I am not sure if I did anything wrong, but there are some problems.
I follow the 3.1.2 and run LFUtilProcessWhiteImages at the step 4, it checks if there is calinfo.json file, which I think is for the F01 samples. However, what should I do to decode an Illum file? (I just want the colorful raw result from the LFR file, no further processing)
In step 5, running LFUtilDecodeLytroFolder would look for file 'Cameras/WhiteImageDatabase.mat', while the previous step generates 'CalibrationDatabase'. I think it might be a naming problem so I rename it, but then I get this error
`Index exceeds the number of array elements (0).
Error in LFFindLytroPartnerFile (line 31)
DirResult = DirResult(1).name;
Error in LFLytroDecodeImage (line 137)
WhiteProcFname = LFFindLytroPartnerFile(WhiteMetadataFname,
DecodeOptions.WhiteProcDataFnameExtension);
Error in LFUtilDecodeLytroFolder (line 194)
LFLytroDecodeImage( CurFname, DecodeOptions );`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.