File tree 1 file changed +19
-6
lines changed
1 file changed +19
-6
lines changed Original file line number Diff line number Diff line change 5
5
6
6
Saving and loading of OpenEXR files.
7
7
8
- Basic usage:
8
+ # Load an EXR file
9
+
9
10
``` jl
10
11
using OpenEXR
11
12
12
- # read an EXR file into an `Array{RGBA{Float16},2}`.
13
- myimage = OpenEXR. load (File {DataFormat{:EXR}} (" myimage.exr" ))
13
+ myimage = OpenEXR. load (" myimage.exr" )
14
+ ```
15
+
16
+ ` myimage ` has type ` Array{T,2} ` where ` T ` is one of:
17
+
18
+ - RGBA{Float16}
19
+ - RGB{Float16}
20
+ - GrayA{Float16}
21
+ - Gray{Float16}
14
22
15
- # save an image to an EXR file
16
- OpenEXR. save (File {DataFormat{:EXR}} (" myimage2.exr" ), myimage)
23
+ depending on which channels are present in the file.
24
+
25
+ # Save an image as an EXR file
26
+
27
+ ``` jl
28
+ OpenEXR. save (" myimage2.exr" , myimage)
17
29
```
18
30
19
- TODO: get this registered with [ FileIO] ( https://github.com/JuliaIO/FileIO.jl ) .
31
+ ` myimage ` can be any subtype of ` AbstractArray{C,2} ` where ` C ` is any color type defined in
32
+ [ ColorTypes.jl] ( https://github.com/JuliaGraphics/ColorTypes.jl ) .
You can’t perform that action at this time.
0 commit comments