How to read/write EXR images in MATLAB?
1. You
can Install HDRITOOLS from here (https://bitbucket.org/edgarv/hdritools/downloads);
Choose *x64.msi or *.x86.msi based on your current MATLAB installation
2. Say
install location of HDRITOOLS is ~Documents\MATLAB\HDRIToolsx64\matlab, here
please try reading a EXR file using following command
info=exrinfo('A003C001_120626W700021.exr');
info.channels
info.channels(1) % prints out the name of the first channel
info.channels(2) % prints out the name of the second channel
info.channels(3) % prints out the name of the third channel
c1=exrreadchannels(
'A003C001_120626W700021.exr',info.channels(1) ); % reading first channel
No comments:
Post a Comment
Please ask if anything is not clear enough..........