JuicyPixels-3.1.7: Picture loading/serialization (in png, jpeg, bitmap, gif, tiff and radiance)

Safe HaskellNone

Codec.Picture.HDR

Description

Module dedicated of Radiance file decompression (.hdr or .pic) file. Radiance file format is used for High dynamic range imaging.

Synopsis

Documentation

decodeHDR :: ByteString -> Either String DynamicImageSource

Decode an HDR (radiance) image, the resulting pixel type can be :

  • PixelRGBF

encodeHDR :: Image PixelRGBF -> ByteStringSource

Encode an High dynamic range image into a radiance image file format. Alias for encodeRawHDR

encodeRawHDR :: Image PixelRGBF -> ByteStringSource

Encode an High dynamic range image into a radiance image file format. without compression

encodeRLENewStyleHDR :: Image PixelRGBF -> ByteStringSource

Encode an High dynamic range image into a radiance image file format using a light RLE compression. Some problems seem to arise with some image viewer.

writeHDR :: FilePath -> Image PixelRGBF -> IO ()Source

Write an High dynamic range image into a radiance image file on disk.

writeRLENewStyleHDR :: FilePath -> Image PixelRGBF -> IO ()Source

Write a RLE encoded High dynamic range image into a radiance image file on disk.