This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Write high dynamic range (HDR) image file





hdrwrite(hdr,filename) writes high dynamic range (HDR) image hdr to a file with name filename. The function uses run-length encoding to minimize file size.


collapse all

Read a high dynamic range image into the workspace.

hdr = hdrread('office.hdr');

Create a new HDR file, writing the high dynamic range data, hdr, to a file with a new filename.


Input Arguments

collapse all

HDR image, specified as an m-by-n-by-3 numeric array of positive numbers.

Data Types: single | double

File name of HDR image, specified as a character vector or string scalar ending with extension 'hdr'.

Example: 'office.hdr' or "office.hdr"

Data Types: char | string

See Also

| |

Introduced in R2008a