Skip to content

twadleigh/OpenEXR.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenEXR.jl

Build Status codecov.io

Saving and loading of OpenEXR files.

Load an EXR file

using OpenEXR

myimage = OpenEXR.load("myimage.exr")

myimage has type Array{T,2} where T is one of:

  • RGBA{Float16}
  • RGB{Float16}
  • GrayA{Float16}
  • Gray{Float16}

depending on which channels are present in the file.

Save an image as an EXR file

OpenEXR.save("myimage2.exr", myimage)

myimage can be any subtype of AbstractArray{C,2} where C is any color type defined in ColorTypes.jl.