Skip to content

trungnguyencs/HDR-Imaging

Repository files navigation

HDR Imaging

An implementation of High-dynamic-range (HDR) imaging technique.

Motivation

Implemented Camera Radiometric Calibration and HDR system using two composition algorithms and geneartion fine tone mapped image. Histograms are also plotted for each of the RG and B channels respectively for analysis of changes in pixel values.

OS, Libraries and Language

The code can be compiled in any operating system MAC-OS, Windows. The code is written in python3 and Libraries used are:

  1. Opencv
  2. Numpy
  3. PIL
  4. sklearn
  5. Glob

Scripts

The project consist of three python notebooks belonging to each part of the project. The notebooks kernels can be refreshed and again run to verify the result of the code. The scripts name and their functionality are decribed below :

  1. RadiometryCalibration: Plot the histogram of each R,G & B channels respectively and regress the function to calculate g values.
  2. HDR: This script generates HDR using two composite merge algorithms from the three images at different exposure intensities and finally map it to generate fine tone-mapped image. The histograms are also plotted for the stack of three images used for HDR generation.

Files

  1. CE264HDR : parent directory
  2. PictureStackedImages : Consist of three images used for generation of HDR image
  3. CalibImages : Consist of 14 images taken at different exposure time and is used for radiometry calibration
  4. ToneMappedImages : Final tonned mapped image are saved in this folder

Results

Raw images:

alt text alt text alt text

HDR Image Result:

  • Method 1: alt text
  • Method 2: alt text
  • Method 3: alt text

About

High-dynamic-range (HDR) imaging implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published