Coder Social home page Coder Social logo

unclejerry / hdr-refill-repo Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 240.5 MB

This is the implementation for IET Image Processing paper: Texture and exposure awareness based refill for HDRI reconstruction of saturated and occluded areas

Home Page: https://doi.org/10.1049/ipr2.12257

License: Creative Commons Attribution 4.0 International

Python 100.00%
computer-vision hdr image-refill deghost

hdr-refill-repo's Introduction

Paper Implementation: Texture and exposure awareness based refill for HDRI reconstruction of saturated and occluded areas

This is the implementation for IET Image Processing paper (Texture and exposure awareness based refill for HDRI reconstruction of saturated and occluded areas). This paper proposed a pre-process algorithm to improve HDRI reconstruction.

論文(Texture and exposure awareness based refill for HDRI reconstruction of saturated and occluded areas)の実装となります。この論文はHDR写真の合成を改善する前処理アルゴリズムを提案した。

Environment

For our implementation (下記の環境は実装に必要である):

  • Python 3.6
  • OpenCV for Python
  • skimage >= 0.16
  • scipy
  • numpy

For optical flow tool: flownet2-tf, please check (here)

For image refill tool, please check (here). In a nutshell, this tool requires OpenCV for C++

How to Obtain Experimental Data

Which Data Which Tool
Saturation Map for middle-exposed Image saturation.py
Optical Flow Data (flownet2-tf)
Refilled Image (im_complete_opencv_constraint.cpp)

Usage of Refill Tool (再補充ツールの使い方)

./ImageRefill Input_image Mask_image Restriction_image Output_name

The Relation between Paper and Implementation (論文の章とソースコードの関連)

Which Chapter (どの章) Which File (どのファイル)
Chapter 3.2 P1.py
Chapter 3.3.2 P2.py
Chapter 3.3.3 P3.py

Execution Order is P1.py --> P2.py --> refill tool --> P3.py.

Before execution, please prepare saturation map and optical flow data.

コードを実行する前に、saturation mapとoptical flow dataを用意しておいてください。

About Optical Flow Data

You should use flownet2-tf to obtain two directions of motion data:

  1. Lower-exposed ---> middle-exposed image
  2. Middle-exposed ---> lower-exposed image

About the Output of source codes (実行したら何を出力するか)

Source Code Output
P1.py mask for low-exposed image which marks the areas need to be refilled
P2.py small pieces of refill areas, and corresponding restriction
P3.py Tile refill

Example of Refill (再補充された写真の)

Red box points out the result of refill tool basing on P2.py output. Blue boxes points out the tile result of P3.py.

Please refer to Scenes folder for more results.

Refill Result Example

hdr-refill-repo's People

Contributors

unclejerry avatar

Watchers

 avatar

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.