Giter Site home page Giter Site logo

Comments (4)

tatsy avatar tatsy commented on September 6, 2024

Hi @ZHAOZHIHAO,
Actually, I did not refer to any book or paper. The formula that I used in the code is naturally derived from the standard imaging process of the camera.

Anyway, are you sure whether the problem of your images? As far as I know, the program fails to display the light field on some old GPUs, non-power-of-2 image sizes, and non-power-of-2 images for each axis on the 2D image array.

Hope it helps.

from lightfield.

ZHAOZHIHAO avatar ZHAOZHIHAO commented on September 6, 2024

Hi tatsy,

Thank you very much. I don't think I can figure out this problem without your solution. Your solution works after I cropped my images(for each u and v) to be power-of-2, though my GTX 1070 should not be an old GPU. If I want to load and process a non-power-of-2-size image, what knowledge should I have? In other words, what makes non-power-of-2-size images not work?

from lightfield.

tatsy avatar tatsy commented on September 6, 2024

Hi @ZHAOZHIHAO,

I'm happy to hear that your problem is partially solved. I do not surely remember the reason but I think 1070 is new enough to process non-power-of-2 images in the program. Another possibility is that your images are too large to store a large light field texture on the GPU. Please check the maximum 2D texture size of GTX 1070 using OpenGL extension viewer and resize your images to fit the maximum data size. It can possibly solve the problem.

Hope it helps.

from lightfield.

ZHAOZHIHAO avatar ZHAOZHIHAO commented on September 6, 2024

Hi tatsy,

Thank you for your suggestion. The code works for 128x128 size image and doesn't work for 127x127 size image. So it should not be a problem of how much texture size GTX 1070 can use. By saying "doesn't work", it means that when I load the 127x127 size image, sometimes the code exits with "Segmentation fault (core dumped)" and sometimes a wrong image shows up. I'll try to find the solution by myself if I have to.

Thank you.

from lightfield.

Related Issues (3)

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.