parse-hdr
Parses HDR (Radiance) files
Usage
hdrInfo = parseHDR(buffer)
Parameters:
buffer
- Uint8Array or ArrayBuffer
Returned object properties:
shape
- an array representing [width, height]
of the image
exposure
- exposure of the image
gamma
- gamma of the image
data
- floating point pixel array [R, G, B, R, G, B, ..]
of length = width * height * 3
Example
var parseHDR = var io = io
License
MIT, see LICENSE.md for details.