Bindings for the LibRaw library. The purpose of this package to read raw file and access the data, and apply some basic post-processing (applying coefficients and color matrices, demosaicing). Colors.jl and Images.jl could be used for further post-processing.
Bindings were automatically generated using Clang.jl, see gen/generator.jl
.
Please open an issue if a functionality is missing or broken.
- Margins are not taken into account
- Only RGBG Bayer pattern is supported
See examples/process_raw_file.jl for a more complete example.
raw_img = LibRaw.RawImage("data/ccp2.nef")
@assert LibRaw.color_description(raw_img) == "RGBG"
img = LibRaw.demoisaic(LibRaw.BayerAverage(), raw_img)#h x w x 4 Array
# apply white balance as shot
LibRaw.apply_multipliers!(img, LibRaw.camera_multipliers(raw_img))