{"id":14977162,"url":"https://github.com/ssarcandy/hdr-imaging","last_synced_at":"2025-10-28T03:30:54.548Z","repository":{"id":83110617,"uuid":"86092889","full_name":"SSARCandy/HDR-imaging","owner":"SSARCandy","description":"An implementation of \"Paul E. Debevec, Jitendra Malik, Recovering High Dynamic Range Radiance Maps from Photographs, SIGGRAPH 1997.\"","archived":false,"fork":false,"pushed_at":"2021-01-26T14:16:19.000Z","size":66385,"stargazers_count":84,"open_issues_count":0,"forks_count":17,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-02-01T10:41:37.044Z","etag":null,"topics":["hdr-image","image-processing","ipython-notebook","opencv3","python3"],"latest_commit_sha":null,"homepage":"https://ssarcandy.tw/2017/04/16/High-Dynamic-Range-Imaging/","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SSARCandy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-24T17:16:21.000Z","updated_at":"2024-12-05T23:21:06.000Z","dependencies_parsed_at":"2023-03-01T19:30:24.503Z","dependency_job_id":null,"html_url":"https://github.com/SSARCandy/HDR-imaging","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SSARCandy%2FHDR-imaging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SSARCandy%2FHDR-imaging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SSARCandy%2FHDR-imaging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SSARCandy%2FHDR-imaging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SSARCandy","download_url":"https://codeload.github.com/SSARCandy/HDR-imaging/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238590593,"owners_count":19497351,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hdr-image","image-processing","ipython-notebook","opencv3","python3"],"created_at":"2024-09-24T13:55:13.453Z","updated_at":"2025-10-28T03:30:49.493Z","avatar_url":"https://github.com/SSARCandy.png","language":"Jupyter Notebook","readme":"# HDR imaging\n\n\n## Requirement\n\n- python3 (or higher)\n- opencv 3.0 (or higher)\n\nYou will need to install some package using `pip3`:\n\n- numpy\n- matplotlib\n\n## Usage\n\n```bash\n$ python HDR-playground.py \u003cinput img dir\u003e \u003coutput .hdr name\u003e\n\n# for example\n$ python ./HDR-playground.py taipei taipei.hdr\n```\n\nI also provide an jupyter version(`HDR-playground.ipynb`), it’s function is same as `HDR-playground.py`. jupyter is really convenient for develop python program!\n\n## Input format\n\nThe input dir should have:\n\n- Some `.png` images\n- A `image_list.txt`, file should contain:\n  - filename\n  - exposure\n  - 1/shutter_speed\n\nThis is an example for `image_list.txt`:\n\n```\n# Filename   exposure 1/shutter_speed\nDSC_0058.png 32        0.03125\nDSC_0059.png 16        0.0625\nDSC_0060.png  8        0.125\nDSC_0061.png  4        0.25\nDSC_0062.png  2        0.5\nDSC_0063.png  1        1\nDSC_0064.png  0.5      2\nDSC_0065.png  0.25     4\nDSC_0066.png  0.125    8\nDSC_0067.png  0.0625  16\n```\n\n## Output\n\nThe program will output:\n\n- A `.hdr` image\n- A reconstruct RGB response curve plot\n- A pseudo-color radiance map(with log value)\n\nfor sample output, you can see [HDR-playground.ipynb](https://github.com/SSARCandy/HDR-imaging/blob/master/HDR-playground.ipynb) as reference.\n\n## Tonemap\n\nI use tmo for tonemapping, it implement 24 algorithms.  \nI write a script `tonemap.bat` for auto-run all 24 algorithms. \n\n```bash\n$ tonemap.bat \u003cfilename without extension\u003e\n```\n\nMake sure all `tm_*.exe` is in your system PATH\n\n## Environment\n\nI test my code in Window10, but it should work fine in macOS/Linux(exclude tonemapping reference program need run in Windows)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssarcandy%2Fhdr-imaging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fssarcandy%2Fhdr-imaging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssarcandy%2Fhdr-imaging/lists"}