Main Content

hdrwrite

Write high dynamic range (HDR) image file

Description

example

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.

Examples

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.

hdrwrite(hdr,'newHDRfile.hdr');

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

Version History

Introduced in R2008a

See Also

| |