Giter VIP home page Giter VIP logo

high-dynamic-range-image's Introduction

high-dynamic-range-imaging

This is a python project from recovering the response curve to reconstruct the irradiance map(HDR) in the real scene.

Project Description

There are several steps(shown below) between the scene radiance and the image we see. Starting from taking few photographs in different exposures, we use Paul Debevec's method to recover the response curve by these photographs. After we got the response curve, we are now able to reconstuct the irradiance map also known as HDR images. Also, we developed a global tone mapping algorithm to see the combination of these photographs.

Algorithms

Recovering the Response Curve

The function of response curve is a general term for the many steps shown above. To recover from pixel values record on image to radiance map we need a function g which is: .

  • is the unknown response function

  • is a linear weighting function. g will be less smooth and will fit the data more poorly near extremes (Z=0 or Z=255). Debevec introduces a weighting function to enphasize the smoothness fitting terms toward the middle of the curve.

  • is the exposure time in index

  • is the unknown radiance in different pixel

  • : is the observed value in pixel and exposure time

  • is the pixel location index, is the exposure index and P is the total number of exposures.

Reconstruct the Irradiance Map

And now we can reconstruct the irradiance map by the formula below. After this step, we are able to have the output.hdr file.

Global Tone Mapping

In this part, we implemented a naive global tone mapping algorithm(shown below) to get a image which can match our visual experience. and now we can have the result.

Usages

Results

Original image


Exposure 1/160 sec

Exposure 1/125 sec

Exposure 1/80 sec

Exposure 1/60 sec

Exposure 1/40 sec

Exposure 1/15 sec

HDR image

Result 2

Original image


Exposure 1/400 sec

Exposure 1/250 sec

Exposure 1/100 sec

Exposure 1/40 sec

Exposure 1/25 sec

Exposure 1/8 sec

Exposure 1/3 sec

HDR image

Acknowledgements

high-dynamic-range-image's People

Contributors

qa276390 avatar vivianhylee 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.