Git Product home page Git Product logo

openrefocus's Introduction

HorizonFlow Lab

Welcome new members who has strong insight and motivition in AI and CS cross-fields.
Feel free to email your CV/resume to our PI @ Yuanjie Gu.

Email1: [email protected] Email2: [email protected]

OpenRefocus

In order to observe targets in expanded depths of view in light field imaging, we design an open source light field parallel refocusing Qt GUI software named OpenRefocus, which is based on classical spatial projection integration.

Demo-Preview

OpenRefocus

Table of contents

Installation

If you want to use CPU mode or use GPU mode with GTX-1050Ti Download OpenRefocusRelease and open OpenRefocus.exe

Because of the upload restriction, the program is divided into volumes in PackingCompression.part1.rar and PackingCompression.part2.rar.

If you want to use GPU mode with more version GPUs, reconfigure CUDA setting in the .pro file

Fermi (CUDA 3.2 and later, deprecated from CUDA 9):
SM20 or SM_20, compute_30 – Older cards such as GeForce 400, 500, 600, GT-630
Kepler (CUDA 5 and later):
SM30 or SM_30, compute_30 – Kepler architecture (generic – Tesla K40/K80, GeForce 700, GT-730)
Adds support for unified memory programming
SM35 or SM_35, compute_35 – More specific Tesla K40
Adds support for dynamic parallelism. Shows no real benefit over SM30 in my experience.
SM37 or SM_37, compute_37 – More specific Tesla K80
Adds a few more registers. Shows no real benefit over SM30 in my experience
Maxwell (CUDA 6 and later):
SM50 or SM_50, compute_50 – Tesla/Quadro M series
SM52 or SM_52, compute_52 – Quadro M6000 , GeForce 900, GTX-970, GTX-980, GTX Titan X
SM53 or SM_53, compute_53 – Tegra (Jetson) TX1 / Tegra X1
Pascal (CUDA 8 and later)
SM60 or SM_60, compute_60 – GP100/Tesla P100 – DGX-1 (Generic Pascal)
SM61 or SM_61, compute_61 – GTX 1080, GTX 1070, GTX 1060, GTX 1050, GTX 1030, Titan Xp, Tesla P40, Tesla P4
SM62 or SM_62, compute_62 – Drive-PX2, Tegra (Jetson) TX2, Denver-based GPU
Volta (CUDA 9 and later)
SM70 or SM_70, compute_70 – Tesla V100
SM71 or SM_71, compute_71 – probably not implemented
SM72 or SM_72, compute_72 – currently unknown

Usage

  1. Import micro-lens coords, ours Lytro Illum demo .txt files are in ./OpenRefocusSourceCode/cameraData/
  2. Import light field image, ours Lytro Illum demo images files are in ./OpenRefocusSourceCode/imageData/
  3. Type parameters

imgHeight: refocusing image height, default 434 for ours Lytro Illum.
imgWidth: refocusing image height, default 541 for ours Lytro Illum.
radius: micro-lens radius, default 7 for ours Lytro Illum.
depthResolution: how much refocusing images u want, often 256.
alphaMin: alpha range, default 0.2.
alphaMax: alpha range, default 2.

  1. Refocusing, choose CPU or GPU mode
  2. Display, drag the slider or click on the area where u interest
  3. Save and Reboot

Development

License

MIT License

Copyright (c) 2021 Yuanjie Gu

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Footer

(Back to top)

Leave a star in GitHub, give a clap in Medium and share this guide if you found this helpful. For anything, please contact email [email protected]

openrefocus's People

Contributors

guyuanjie avatar

Stargazers

yinghan avatar 石磊 avatar Zhen Cheng avatar Realcat avatar Nan Meng avatar  avatar  avatar  avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

xl-robert monaen

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.