This repository has been archived by the owner. It is now read-only.
Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
ImageIO/+imageIO/@ExrReader/exrread.m
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
34 lines (33 sloc)
1.23 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hdr = exrread( filename ) | |
%EXRREAD Read OpenEXR high dynamic range (HDR) image. | |
% HDR = EXRREAD(FILENAME) reads the high dynamic range image HDR from | |
% FILENAME, which points to an OpenEXR .exr file. HDR is an m-by-n-by-3 RGB | |
% array in the range (-65504,65504), plus Inf and NaN, and has type single. | |
% For scene-referred datasets, these values usually are scene illumination | |
% in radians units. To display these images, use an appropriate | |
% tone-mapping operator. | |
% | |
% Class Support | |
% ------------- | |
% The output image HDR is an m-by-n-by-3 image with type single. | |
% | |
% Example | |
% ------- | |
% hdr = exrread('office.hdr'); | |
% rgb = tonemap(hdr); | |
% imshow(rgb); | |
% | |
% Note: this implementation uses the ILM IlmImf library version 1.6.1. | |
% | |
% Reference: | |
% Florian Kainz et. al. "The OpenEXR Image File Format". GPU Gems, 2004. | |
% (http://developer.download.nvidia.com/books/HTML/gpugems/gpugems_ch26.html) | |
% Industrial Light & Magic OpenEXR website and documentation | |
% (http://www.openexr.com) | |
% | |
% See also EXRWRITE,TONEMAP | |
% Edgar Velazquez-Armendariz (eva5@cs.cornell.edu) | |
% Based on the originals by Jinwei Gu (jwgu@cs.columbia.edu) | |
% | |
% (The help system uses this file, but actually doing something with it | |
% will employ the mex file). |