Git Product home page Git Product logo

lftoolbox's People

Contributors

doda42 avatar pirlruc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

lftoolbox's Issues

Extraction of depth slices

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.

Colour correction

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?

opt: LFLytroDecodeImage.m

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

How to get "CalInfo.json" for a lfp image?

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?

How to use the calibration parameters to get depth map

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?

error report in LFColourCorrect (line 40)

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]);

LensletSize_pix in LFReadESLF

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).

Confused about the section 3 quick tour

I am not sure if I did anything wrong, but there are some problems.

  1. 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)

  2. 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 );`

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.