GithubHelp home page GithubHelp logo

lightfield's Introduction

LightField

Build Status

Light field image viewer with Qt5.

Installation

You need Qt5 to build this project. With Qt5, you can easily build the project using CMake.

$ git clone https://github.com/tatsy/LightField.git
$ mkdir build && cd build
$ cmake ..
$ cmake --build .

Usage

Datasets

This viewer accepts light field images from Stanford Light Field Archive. Please download the rectified datasets at this archive.

Also, I prepared a download script in data directory. Please run download.py on data directory and choose the light field file that you want.

Load

Run the viewer, push the Load button, and choose the unzipped folder rectified (you can change the folder name, but please make sure that the chosen directory contains all the downloaded images).

Interface

  • Focus and aperture size: with the sliders in the right, you can change the focus and aperture size of the camera.

  • View point: by clicking and dragging on the view, you can change the view point.

Screen shot

Light field viewer

License

  • MIT License, Tatsuya Yatagawa (tatsy)

lightfield's People

Contributors

tatsy 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lightfield's Issues

Error about QOpenGLShader

After build the project, it runs with error:
QOpenGLShader::compile(Vertex): ERROR: 0:1: '' : version '150' is not supported
ERROR: 0:6: 'smooth' : syntax error: syntax error
I think maybe its about the OpenGL version

Lightfields not showing up

Hi Tatsuya,

long time has passed but i finally found the time to test your code and for some reason i just get a black window. no errors anywhere. Can you double check if there is anything wrong?
RAM is filling up while assembling the single images and the image size in the viewer also changes to the correct size, but it's just black. I have a feeling it's the openGL part of the code that has a bug.

tested on Centos 7 and Ubuntu

cheers
Oliver

What are the formulas you used in lightfield.frag?

Thank you for your neat codes.

I would like to modify your codes to be compatible with light field images. But I got irrational results. I guess the reason may be that the way how you get refocused images is not suit for my light field images. Because I think I stored the input data in the codes as the same way you stored the gantry images. Do you still remember the formulas you used in lightfield.frag? A brief reference would be good enough.

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.