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/ExrReader.m
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
32 lines (25 sloc)
1.08 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
classdef ExrReader < imageIO.ImageIO | |
%EXRREADER Class that provides reading functionalities for exr data | |
% This class is a wrapper around the openexr matlab mex files, provided | |
% here: https://bitbucket.org/edgarv/hdritools | |
% The C++ code has been modified to fix some bugs and then compiled in | |
% Matlab R2016b | |
% Not every exr image can be read using this class. In particular, the | |
% files available here: https://github.com/openexr/openexr-images/tree/master/TestImages, | |
% containing data with "exotic" values. More standard images can be | |
% read without problems | |
% Author: Stefano.Masneri@brain.mpg.de | |
% Date: 03.02.2017 | |
% SEE ALSO: exrread, exrinfo, exrreadchannels | |
properties | |
end | |
methods | |
function obj = ExrReader(filename) | |
%EXRREADER Constructor of the class | |
%The constructor calls the constructor of the superclass, and then | |
%tries to get information about the file using exrinfo. | |
% Must call explicitly because we pass one argument | |
obj = obj@imageIO.ImageIO(filename); | |
end | |
end | |
end | |