Error using HDRREAD: Not a Radiance File

4 views (last 30 days)
Xiongyu Wu
Xiongyu Wu on 19 Oct 2020
Answered: Sarvani Panguluri on 22 Oct 2020
hi,
i'm trying to read an hdr file using hdrread, here is the code:
hdr_input = hdrread('untitled.hdr');
the error meaasge is "Not a Radiance file.", hdrread>readHeader (line 67)
I'm trying to find out why.
the hdr image I got is from a Blender model, I see when I set the background color to black or transparency, it will output the error message.
If the background color is another color or little brighter, then the image can be read by MATLAB.
Any help would be appreciated.
Thank you

Answers (1)

Sarvani Panguluri
Sarvani Panguluri on 22 Oct 2020
Hi,
To investigate further,can you share the untitled.hdr that you are using .

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!