The HDR Toolbox
Editor's Note: This file was selected as MATLAB Central Pick of the Week
The HDR Toolbox provides functions for processing HDR images and videos for different tasks such as tone mapping, inverse tone mapping, reverse tone mapping, expansion, HDR compression, image-based lighting, handling HDR videos, color transforms, etc.
The HDR Toolbox is part of the book "Advanced High Dynamic Range Imaging", where you can find extra documentation about the code and more details on HDR imaging. Please visit the website of the book at the following URL:
http://www.advancedhdrbook.com/
Note that the GitHub repository of the HDR Toolbox can be found at the following URL:
https://github.com/banterle/HDR_Toolbox
HOW TO INSTALL:
1) Unzip the file HDRToolbox.zip in a FOLDER on your PC/MAC
2) Run Matlab
3) Set the FOLDER as the current directory
4) Write the command:
installHDRToolbox
in the Command Window, and wait for the installation process to end.
NOTE ON TONE MAPPING:
The majority of TMOs return tone-mapped images with linear values. This means that gamma encoding needs to be applied to the output of these TMOs before visualization or before writing tone mapped images on the disk; otherwise, these images may appear dark. A few operators (e.g. Mertens et al.'s operator) return gamma-encoded values, so there is no need to apply gamma to them; in this case, a message (e.g. a Warning) is displayed after tone mapping alerting that there is no need of gamma encoding.
NOTE ON EXPANSION OPERATORS (INVERSE/REVERSE TONE MAPPING):
The majority of EOs require having as input LDR images in the range [0,1] that are LINEARIZED. This means that the camera response function (CRF) or the gamma encoding has been removed. This operation is MANDATORY in order to generate fair comparisons; please do use the gammaRemoval parameter to remove gamma if you do not have the CRF of the input image. RAW files do not require this step because they are already linear.
REFERENCE:
Please reference the book in your work or papers if you use this toolbox:
@book{Banterle:2017,
author = {Banterle, Francesco and Artusi, Alessandro and Debattista, Kurt and Chalmers, Alan},
title = {Advanced High Dynamic Range Imaging (2nd Edition)},
year = {2017},
month={July},
isbn = {9781498706940},
publisher = {AK Peters (CRC Press)},
address = {Natick, MA, USA},
}
Cite As
Francesco Banterle (2024). The HDR Toolbox (https://github.com/banterle/HDR_Toolbox), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Import, Export, and Conversion > High Dynamic Range Images >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
demos
source_code/Alignment
source_code/Alignment/util
source_code/Analysis
source_code/BatchFunctions
source_code/ColorCorrection
source_code/ColorSpace
source_code/Compression
source_code/Deghosting
source_code/Deghosting/util
source_code/EO
source_code/EO/util
source_code/EnvironmentMaps
source_code/Formats
source_code/Generation
source_code/Generation/util
source_code/Generation_video
source_code/Generation_video/util
source_code/IBL
source_code/IBL/util
source_code/IO
source_code/IO_stack
source_code/IO_video
source_code/LaplacianPyramids
source_code/Metrics
source_code/Metrics/util
source_code/NativeVisualization
source_code/Tmo
source_code/Tmo/util
source_code/Tmo_video
source_code/Tools
source_code/util
Versions that use the GitHub default branch cannot be downloaded
Version | Published | Release Notes | |
---|---|---|---|
2.0.0.0 | Updated the thumbnail
minor changes to the text. |
|