https://github.com/bchao1/high-dynamic-range-imaging
📷 High Dynamic Range Imaging with Debevec '97 Algorithm.
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
Repository
📷 High Dynamic Range Imaging with Debevec '97 Algorithm.
Basic Info
Statistics
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
VFX Project 1: High Dynamic Range Imaging
- B06901104
- B06901170
run.shargumentmain.pymain.pyimport lib.hdrcommand line argumentslibhdr.pyDebevec's Methodshat_functions.pyDebevec'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

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

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
| |
|
|
| ------------------------------------- | ------------------------------------- | ------------------------------------- |
|
|
|
|
|
|
|
|
lambda = 20 weighting function linear sin, guassian weighting
channel mapping function g g

Tone mapped

Weighting Function
lib.hat_functions 0 - 255 pixel weighting function

lambda = 20 Mantuik '06 tone mapping weighting function weighting
| | g | Tone mapped |
| -------- | ------------------------------------------ | ---------------------------------------- |
| None |
|
|
| Linear |
|
|
| Gaussian |
|
|
| Sin |
|
|
Lambda
lambda objective tradeoff weighting function linear Mantuik '06 tone map
| Lambda | g | Tone mapped |
| ------ | ---------------------------------------- | -------------------------------------- |
| 1 |
|
|
| 2 |
|
|
| 5 |
|
|
| 10 |
|
|
| 20 |
|
|
| 50 |
|
|
lambda tone mapped lambda
Alignment
MTB Alignment Algorithm lib.alignment alignment weight function linearlambda = 20
AlignmentMTBalignment
MTBcv2resize6bitmap9neighborsdifference5shift6difference9neighbors1shift
levelshiftshift
| | Result |
| -------------- | ------------------------------------------------- |
| No Alignment |
|
| With Alignment |
|
Owner
- Name: Brian Chao
- Login: bchao1
- Kind: user
- Location: Stanford, California
- Company: Stanford University
- Website: https://bchao1.github.io
- Twitter: BrianCChao
- Repositories: 14
- Profile: https://github.com/bchao1
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