LibRaw.jl

Julia bindings for the LibRaw library
Author jonathanBieler
Popularity
3 Stars
Updated Last
2 Years Ago
Started In
July 2022

LibRaw

Stable Build Status Coverage Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.

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.

screenshot

Known issues

  • Margins are not taken into account
  • Only RGBG Bayer pattern is supported

Example

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))

Used By Packages

No packages found.