https://github.com/bchao1/high-dynamic-range-imaging

📷 High Dynamic Range Imaging with Debevec '97 Algorithm.

https://github.com/bchao1/high-dynamic-range-imaging

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • â—‹
    CITATION.cff file
  • ✓
    codemeta.json file
    Found codemeta.json file
  • â—‹
    .zenodo.json file
  • â—‹
    DOI references
  • â—‹
    Academic publication links
  • â—‹
    Academic email domains
  • â—‹
    Institutional organization owner
  • â—‹
    JOSS paper metadata
  • â—‹
    Scientific vocabulary similarity
    Low similarity (6.1%) to scientific vocabulary

Keywords

computer-graphic computer-vision debevec image-processing
Last synced: 6 months ago · JSON representation

Repository

📷 High Dynamic Range Imaging with Debevec '97 Algorithm.

Basic Info
  • Host: GitHub
  • Owner: bchao1
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 696 MB
Statistics
  • Stars: 2
  • Watchers: 2
  • Forks: 1
  • Open Issues: 0
  • Releases: 0
Topics
computer-graphic computer-vision debevec image-processing
Created almost 6 years ago · Last pushed almost 6 years ago
Metadata Files
Readme

README.md

VFX Project 1: High Dynamic Range Imaging

  • B06901104
  • B06901170
  • run.sh argument main.py
  • main.py import lib.hdr command line arguments
  • lib
    • hdr.py Debevec's Methods
    • hat_functions.py Debevec's Method hat functions

main.py python3 main.py run.sh argument

| Argument | Explanation | Required | | :--------: | :----------------------------------------------------------: | :------: | | inputdir | exposure | Yes | | outputdir | .hdr plots | Yes | | l | Debevec's Method lambda factor | Optional | | scale | Downsample factor | Optional | | hat | Debevec's Method weighting function | Optional | | align | alignment algorithmadvised | Optional | python3 main.py --help

Debevec's Method

img

objective function g mapping function color channel pixel radiance channel radiance map channel radiance map hdr image

img

9 exposure jpg PIL jpg metadata exposure see lib.hdr.get_labeled_exif Debevec's Method delta t

color channel sample pixel value sample random sampling Sample lib.hdr.solve_debevec g mapping function 256 0~255 index pixel value irradiance

g channel radiance map numpy vectorized np.average

python def get_radiance_map(images, g, exp, w): _h, _w = images[0].shape images = np.array(images) E = [] for i, img in enumerate(images): E.append(g[img] - exp[i]) rad = np.average(E, axis=0, weights=w[images]) return rad

channel radiance map hdr image np.float32

Luminance HDR tone map hdr image Mantuik '06

| img | img | img | | ------------------------------------- | ------------------------------------- | ------------------------------------- | | img | img | img | | img | img | img |

lambda = 20 weighting function linear sin, guassian weighting

channel mapping function g g

img

Tone mapped

img

Weighting Function

lib.hat_functions 0 - 255 pixel weighting function

img

lambda = 20 Mantuik '06 tone mapping weighting function weighting

| | g | Tone mapped | | -------- | ------------------------------------------ | ---------------------------------------- | | None | img | img | | Linear | img | img | | Gaussian | img | img | | Sin | img | img |

Lambda

lambda objective tradeoff weighting function linear Mantuik '06 tone map

| Lambda | g | Tone mapped | | ------ | ---------------------------------------- | -------------------------------------- | | 1 | img | img | | 2 | img | img | | 5 | img | img | | 10 | img | img | | 20 | img | img | | 50 | img | img |

lambda tone mapped lambda

Alignment

MTB Alignment Algorithm lib.alignment alignment weight function linearlambda = 20
AlignmentMTBalignment
MTBcv2resize6bitmap9neighborsdifference5shift6difference9neighbors1shift levelshiftshift

| | Result | | -------------- | ------------------------------------------------- | | No Alignment | img | | With Alignment | img |

Owner

  • Name: Brian Chao
  • Login: bchao1
  • Kind: user
  • Location: Stanford, California
  • Company: Stanford University

Stanford Ph.D. student. Research in computational photography, displays, and computer graphics. Open source enthusiast.

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels